Eme wrote:
> Hi All,
> I am experiancing similar problem. In my case I am installing Ilog
> ceplex and planning to use the JAVA concert technology. so whe I compile the
> java file (name: LPex1.java) I have no problem but when I try to run it I got
> the following message
>
Hi Eme
> e...@eman-laptop:~$ java
> -Djava.library.path=/usr/local/ilog/cplex90/bin/i86_linux2_glibc2.3_gcc3.2
> LPex1
> Exception 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)
>
> Notice that I am specifying the LD_library Path in the java command
> line!
>
> I was serching on the net and I found alot of similar bugs for different
> types of lib files and one suggestion was to download the JDK od SUN
> which I wasn't sure if it would be the solution of my problem.
>
> Please help if you know the solution.
>
Your problem is unrelated to eclipse. Your problem is probably that you
do not add any jars or folders to your classpath. You are most likely
missing a "-cp $jar1:$jar2:...:$jarN" in your command besides the
-Djava.library.path
~Niels
--
Eclipse did not install AppletViewer
https://bugs.launchpad.net/bugs/323763
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs