| | |
noclassdeffound error
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2007
Posts: 12
Reputation:
Solved Threads: 0
I am getting this error
Exception in thread "main" java.lang.NoClassDefFoundError: TestApp (wrong name: Test/TestApp)
which I have googled and tried suggestions, but it doesn't fix it. I have tried unsetting my CLASSPATH etc. and it doesn't work. The file TestApp.class IS in the directory that I am running the program from.
I only get this error when I try and put my two classes in "package Test;" Otherwise it executes fine.
Thanks for the help
Exception in thread "main" java.lang.NoClassDefFoundError: TestApp (wrong name: Test/TestApp)
which I have googled and tried suggestions, but it doesn't fix it. I have tried unsetting my CLASSPATH etc. and it doesn't work. The file TestApp.class IS in the directory that I am running the program from.
I only get this error when I try and put my two classes in "package Test;" Otherwise it executes fine.
Thanks for the help
![]() |
Similar Threads
- Exception in thread "main" java.lang.NoClassDefFoundError: Invaders Error (Java)
- Installtion problem of MySql JDBC driver JConnector 5.0 (Java)
- Path setting problem in jdk1.5 (Java)
- NoClassDefFound while accessing JNI (Java)
- tomcat showin error while executing jsp file (JSP)
- Please Help me......error in compiling (Java)
- Regarding batch file....... (Java)
Other Threads in the Java Forum
- Previous Thread: JAVA: copying 1d array's value into a specific row of a 2d array
- Next Thread: Sudoku Logic
| Thread Tools | Search this Thread |
Tag cloud for Java
addressbook android api apple applet application arguments array arrays automation awt binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception file fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer invokingapacheantprogrammatically j2me java javaprojects jme jmf jni jpanel julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree variablebinding webservices windows






