-
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
-
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.
-
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.
-
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.
-
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.
-
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.
Page generated in 1,713,858,184.69773 seconds with 11 queries