Hi Niels, thanks for your help but I guess it doesn't work. I tried the command that you gave me and this is what I got:
eman@eman-laptop:~$ java -classpath /usr/local/ilog/cplex90/lib/cplex.jar\ -Djava.library.path=3D /usr/local/ilog/cplex90/lib/i86_linux2_glibc2.3_gcc3.2 LPex1Exception in thread "main" java.lang.NoClassDefFoundError: .usr.local.ilog.cplex90.lib.i86_linux2_glibc2.3_gcc3.2
at gnu.java.lang.MainThread.run(libgcj.so.90)
Caused by: java.lang.ClassNotFoundException: .usr.local.ilog.cplex90.lib.i86_linux2_glibc2.3_gcc3.2 not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.90)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at gnu.java.lang.MainThread.run(libgcj.so.90)
I think I am missing up things so I will give you what I have done:
The LPex1.java under my home directory
the ilog folder is under the /usr/local folder which has the .jar file in the library at the mintioned path
they are in different directories so if I want to run the LPex1 should I save it under the /usr/local directory!
the following was the way that I got from the ilogcplex tutorial to run java:
eman@eman-laptop:~$ javac -classpath /usr/local/ilog/cplex90/lib/cplex.jar LPex1.java
eman@eman-laptop:~$ java -Djava.library.path=/usr/local/ilog/cplex90/bin/i86_linux2_glibc2.3_gcc3.2 LPex1Exception in thread "main" java.lang.NoClassDefFoundError: LPex1
at gnu.java.lang.MainThread.run(libgcj.so.90)
Caused by: java.lang.ClassNotFoundException: LPex1 not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/local/ilog/cplex90/lib/cplex.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.90)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at gnu.java.lang.MainThread.run(libgcj.so.90)
Hi Niels, thanks for your help but I guess it doesn't work. I tried the command that you gave me and this is what I got:
eman@eman-laptop:~$ java -classpath /usr/local/ ilog/cplex90/ lib/cplex. jar\ -Djava. library. path=3D /usr/local/ ilog/cplex90/ lib/i86_ linux2_ glibc2. 3_gcc3. 2 LPex1Exception in thread "main" java.lang. NoClassDefFound Error: .usr.local. ilog.cplex90. lib.i86_ linux2_ glibc2. 3_gcc3. 2 lang.MainThread .run(libgcj. so.90) ClassNotFoundEx ception: .usr.local. ilog.cplex90. lib.i86_ linux2_ glibc2. 3_gcc3. 2 not found in gnu.gcj. runtime. SystemClassLoad er{urls= [], parent= gnu.gcj. runtime. ExtensionClassL oader{urls= [], parent=null}} URLClassLoader. findClass( libgcj. so.90) runtime. SystemClassLoad er.findClass( libgcj. so.90) ClassLoader. loadClass( libgcj. so.90) ClassLoader. loadClass( libgcj. so.90) lang.MainThread .run(libgcj. so.90)
at gnu.java.
Caused by: java.lang.
at java.net.
at gnu.gcj.
at java.lang.
at java.lang.
at gnu.java.
I think I am missing up things so I will give you what I have done:
The LPex1.java under my home directory
the ilog folder is under the /usr/local folder which has the .jar file in the library at the mintioned path
they are in different directories so if I want to run the LPex1 should I save it under the /usr/local directory!
the following was the way that I got from the ilogcplex tutorial to run java:
eman@eman-laptop:~$ javac -classpath /usr/local/ ilog/cplex90/ lib/cplex. jar LPex1.java library. path=/usr/ local/ilog/ cplex90/ bin/i86_ linux2_ glibc2. 3_gcc3. 2 LPex1Exception in thread "main" java.lang. NoClassDefFound Error: LPex1 lang.MainThread .run(libgcj. so.90) ClassNotFoundEx ception: LPex1 not found in gnu.gcj. runtime. SystemClassLoad er{urls= [file:/ usr/local/ ilog/cplex90/ lib/cplex. jar], parent= gnu.gcj. runtime. ExtensionClassL oader{urls= [], parent=null}} URLClassLoader. findClass( libgcj. so.90) runtime. SystemClassLoad er.findClass( libgcj. so.90) ClassLoader. loadClass( libgcj. so.90) ClassLoader. loadClass( libgcj. so.90) lang.MainThread .run(libgcj. so.90)
eman@eman-laptop:~$ java -Djava.
at gnu.java.
Caused by: java.lang.
at java.net.
at gnu.gcj.
at java.lang.
at java.lang.
at gnu.java.