GayaBalan / ivybeans

Automatically exported from code.google.com/p/ivybeans
0 stars 0 forks source link

NoClassDefFoundError when runing application with jline #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Environment : ivybeans 1.1, netbeans 6.9 , Windows XP/Windows 7 64-bit , jdk 
1.6.21

Description : Having an issue with jLine, any project with jLine as a 
dependency will fail to run with the following error:

java.lang.NoClassDefFoundError: jline/ConsoleReader
Caused by: java.lang.ClassNotFoundException: jline.ConsoleReader
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: javaapplication1.Main.  Program will exit.
Exception in thread "main" Java Result: 1

Thought it was my windows 7 64-bit at first, since jLine does some JNI, but 
then tried in my Windows XP VM and got the same issue. Am I doing something 
wrong here ?. Attached simple, non working project for testing.

Thanks.

Original issue reported on code.google.com by carra...@gmail.com on 8 Sep 2010 at 5:50

Attachments:

GoogleCodeExporter commented 9 years ago
This issue can be solved the same way as #58, turning "Compile on Save" off.

Cheers.

Original comment by carra...@gmail.com on 8 Sep 2010 at 1:14

GoogleCodeExporter commented 9 years ago

Original comment by bruce.ch...@gmail.com on 9 Sep 2010 at 4:57