-
Exception in thread "main" java.lang.NoClassDefFoundError: MyApp
hi all,
I'm getting the mentioned error while trying to run my app. I'm using TextPad to compile and run my app. i have also try to run from command prompt but it shows same error. I have checked my jdk bin dir and jre bin dir. Both of them are the correct path. where did I go wrong?
rgds,
jpdbay
-
Silly question, but do you have a main class?
Have you tried explicitly putting the classpath when running from the command prompt?
-
of coz I hv main class and tried explicitly to run but still I'm getting same error.
-
This is what I was looking for.
http://forum.java.sun.com/thread.jsp...rt=15&tstart=0
This helped when I was getting the same error.
-
Just curios but have you been able to fix this problem?
-
I think your custom enviroment varibales are messed up. Do a search on how to set your CLASSPATH in the enviroment variable.
-
set " . " in classpath
hello friend,
this problem "class not found " boz of u save your class in this folder you run in same folder,or in your classpath u not use ". ",
for example set your classpath like this:
c:\rahul>set classpath=%classpath%;.
see i wrote " ." in the end of classpath.
"." means current folder included that means classes are also find in current folder.
--diwakar
-
Attach software www.cajoon.com to your Java environmeny (J2SE, J2EE) and get 'root-cause' for every exception
Similar Threads
-
Replies: 4
Last Post: 12-29-2008, 08:25 AM
-
Replies: 3
Last Post: 04-02-2007, 05:51 PM
-
By jjamesis in forum Java
Replies: 4
Last Post: 04-02-2007, 05:37 PM
-
Replies: 0
Last Post: 03-29-2002, 07:28 PM
-
Replies: 2
Last Post: 10-27-2000, 03:07 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks