i trying use ant apache build project. however, whenever try typing in "ant" start building, error message shows on terminal:
[java] exception in thread "main" java.lang.unsatisfiedlinkerror: no em1dfwdjava in java.library.path [java] @ java.lang.classloader.loadlibrary(classloader.java:1860) [java] @ java.lang.runtime.loadlibrary0(runtime.java:845) [java] @ java.lang.system.loadlibrary(system.java:1084) the strange thing is, when run em1dfwdjava.java, compiles , runs normal. em1dfwdjava.java uses loadlibrary native library. project, using 2 libraries, libem.dylib , dipole.dylib. believe there possibility need include 2 libraries in build.xml. if so, not sure include 2 libraries without messing build. below build.xml using:
<project name='jppf application' basedir="." default="run"> <property name="build.properties.file" value="${basedir}/build.properties"/> <property file="${build.properties.file}"/> <property name="lib.dir" value="${basedir}/lib"/> <property name="config.dir" value="${basedir}/config"/> <property name="classes.dir" value="${basedir}/classes"/> <property name="src.dir" value="${basedir}/src"/> <path id="project.classpath"> <pathelement location="${config.dir}"/> <pathelement location="${classes.dir}"/> <fileset dir="${lib.dir}" includes="**/*.jar"/> </path> <target name="clean"> <delete dir="${classes.dir}" quiet="true"/> </target> <target name="init" description="initialize ressources"> <mkdir dir="${classes.dir}"/> </target> <target name="compile" depends="clean, init"> <javac srcdir="" destdir="${classes.dir}" debug="on" deprecation="off" optimize="on" includes="**/*.java"> <classpath refid="project.classpath"/> <compilerarg line="-xlint:unchecked"/> <src path="${src.dir}"/> </javac> </target> <target name="build" description="build application" depends="clean, init, compile"> <mkdir dir="${classes.dir}"/> </target> <target name="run" description="run application" depends="build"> <java fork="yes" classname="${main.class}" classpathref="project.classpath"> <jvmarg value="-djppf.config=jppf.properties"/> <jvmarg value="-djava.util.logging.config.file=config/logging.properties"/> <jvmarg value="-xmx64m"/> </java> </target> </project>
option 1: add java -djava.library.path="path em1dfwdjava"
option 2: add ld_library_path environmet variable path em1dfwdjava.
Comments
Post a Comment