View Full Version : classpath in linux...

September 22nd, 2010, 06:34 PM
i cant run any program im receiving for everything

Exception in thread "main" java.lang.NoClassDefFoundError: bank/aaa
Caused by: java.lang.ClassNotFoundException: bank.aaa
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
Could not find the main class: bank.aaa. Program will exit.
im guessing that is class-path issue but which path i need to set, to were???

im using ubuntu and eclipse ...

September 22nd, 2010, 08:26 PM
1) If you don't know where/what "bank/aaa" is then no one can help you.
2) Setting classpath under eclipse is easy to find out by... googling!