Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

basic .class .jar question?

843789Oct 29 2009 — edited Oct 30 2009
To Whom It May Concern!

I am new to the world of Java (in the development sense) and am trying to untangle a little problem, which I think might be classpath-related.

While attempting to run a Java-based application from the command line within a linux environment...

$ java ButtonEncryption

...I receive the following series of error messages...

Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSException
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.cms.CMSException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: ButtonEncryption. Program will exit.

...which I have a feeling are "simply" related to the .class (ButtonEncryption.class) not being properly "pathed" to the application's .jar files....

I am learning the ropes - so, I hope I have articulated the issue clearly (and accurately)!

Any thoughts or guidance would be welcomed!

Thank you!

maclenin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2009
Added on Oct 29 2009
46 comments
727 views