Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Java Language
Expertise: Beginner
Mar 28, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning


I'm a beginner in Java. I've tried two different applets now (one of which I borrowed from another site), both of which involved text fading and color changing. I put all of the HTML tags in correctly, and I have the right files uploaded, but the Java just doesn't work. Instead I get a grey box with a message below that says "Applet can't start: error: java.lang.ClassFormatError."

I'm wondering if this might be a problem with file extensions, because I've had problems in the past with the renaming of uploaded three-letter file extensions from my Windows system to longer extensions such as .html, .java, and .class. Every time I upload a .class file, I have to change it from .cla to .class, and maybe somewhere in that process the file format has been screwed up. I'm guessing this because of problems I've had before with .html. Any help or suggestions would be appreciated.

The file name conversions between Windows and DOS drive me crazy, too. But judging from your error message, I'd guess the problem has to do with the way you downloaded your class files. I always download class files as raw data.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date