Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Java applet errors

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 12-01-2010
Member
 
Join Date: Dec 2009
Posts: 12
Java applet errors
  

I have IBM Pentium D desktop computer with Windows XP and Mac as dual operating system on it. I am a beginner programmer and learning programming languages like Core Java, C++, DBMS, Html and C sharp. When i run java applets on XP, it works fine but when on MAC it gives me errors i.e
java.lang.NoClassDefFoundError
java.lang.NoSuchFieldError: BLACK
java.lang.NoClassDefFoundError
I don't what is the problem on MAC? Please help me

Reply With Quote
  #2  
Old 12-01-2010
Member
 
Join Date: Apr 2008
Posts: 1,947
Re: Java applet errors

I am not that much sure, but according to me there is problem with the code that is written in java, nothing else. The error i.e java.lang.NoClassDefFoundError arrives when the file cannot be found. Example: if we type in "java ababab" in the command prompt, then you tget that error. I don't think there is any problem in java code running on XP or MAC. Hope your problem get solved.
Reply With Quote
  #3  
Old 12-01-2010
Member
 
Join Date: May 2008
Posts: 2,007
Re: Java applet errors

My studies about JAVA says that, the error java.lang.NoClassDefFoundError comes when there some problem with the classpath. In short, thi means that the classpath is incorrectly. So, unsure that your JAVA_HOME is set up right and classpath is set rightly. Also check that the JAVA is completed install perfectly and jdk should be working correctly. Hope your problem get solve soon, and will be to do your programming.
Reply With Quote
  #4  
Old 12-01-2010
Member
 
Join Date: Apr 2008
Posts: 2,000
Re: Java applet errors

I would firstly recommend you to run any of the SDK examples program on the MAC operating system And if the SDK examples does not work , then it would be the classpath problem. If you want to verification of this, you can try invoking java using the cp switch to tell it explicitly where to find the class. E.g: if your prac.class is in a directory called c:\java1, then you could try java -cp c:\java1 prac. If this work properly then we can saythat it is classpath problem only. Correct the class path and problem will be solved.
Reply With Quote
  #5  
Old 12-01-2010
Member
 
Join Date: May 2008
Posts: 2,290
Re: Java applet errors

According to me this error comes because it could not find the core class. This error conditions like this are not applicable with the JVM developers spending time on. There could be hundreds of reasons for this error. And it occurs so seldom that it isn't worth them wasting their time. I would tell you to re-install the whole java software again and try running that some program and check it gives runs perfectly or not. Hope your problem will get solve.
Reply With Quote
  #6  
Old 12-01-2010
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Java applet errors

I think there something incorrect while typing the class name. The errors you mentioned occurs when write the class name incorrect. i.e if class is Testdemo and you would writing it has testdemo, this will definitely give you error. And this is done correctly then the problem would be with the classpath. Set the class path correctly and try this your errors will get fix.

Last edited by Modifier : 12-01-2010 at 11:13 AM.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Java applet errors"
Thread Thread Starter Forum Replies Last Post
How to run java applet program using cmd Rao's Software Development 3 07-01-2012 02:35 PM
Zoom in on a Java Applet? Bharata Software Development 6 21-10-2010 07:01 AM
Adobe AIR support with Java Applet? Head-Hunter Windows Software 4 30-06-2010 01:08 PM
Difference between Applet and Japplet in java Jalabala Software Development 3 21-11-2009 06:48 AM
Refresh Java Applet Brake Fail Software Development 6 16-03-2009 10:02 PM


All times are GMT +5.5. The time now is 10:03 AM.