Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2007, 02:44 AM
Member
 
Join Date: Nov 2007
Posts: 50
sireesha is on a distinguished road
problem with final
sir,i have tried that in both ways but i got a new error.
like
Exception in thread "main" java.lang.NoClassDefFoundError: TestConst (wrong name
: Testconst)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2007, 03:31 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
This error says that you used the wrong spelling of the class name:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: TestConst (wrong name : Testconst)
It says you typed it as "TestConst" and that you should type it as "Testconst".
It is spelled as "Testconst" in your previous post. The compiler doesn't care about case but the jvm, ie, the "java" command/tool, is very picky about it.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UJO Framework 0.73.final Java Tip Java Announcements 0 04-15-2008 08:53 PM
UJO Framework 0.72.final JavaBean Java Announcements 0 03-17-2008 10:28 PM
I have a problem with final sireesha New To Java 1 11-20-2007 02:25 AM
PLz i really need help on this final thing jason27131 New To Java 2 08-03-2007 04:31 AM
Poi 3.0-final levent Java Announcements 0 05-22-2007 09:05 AM


All times are GMT +3. The time now is 03:05 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org