aspose file tools*
The moose likes Applets and the fly likes ClassFormatError with an Applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "ClassFormatError with an Applet?" Watch "ClassFormatError with an Applet?" New topic
Author

ClassFormatError with an Applet?

Josh Rodrigues
Greenhorn

Joined: Apr 14, 2010
Posts: 17
Hi, I'm having some trouble working with an Applet I made in Java. I'm trying to get it up onto my forums, but I get a weird error saying the following:

Here is the website to try out the Applet. Go to http://rs3newstart.tk and simply hover over "Server" and then click on "Play". The Applet will run, but not for long. I'm still working on the forums, so not everything is in the right place as I would like it to be. I'm not sure why this error is coming up nor do I know what's causing it. Unless 000webhost does not support Jar files nor Applets? Here is the PHP script for the Play.php file I made:
If you need anymore information, please ask. Help is appreciated. Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18991
    
    8

Did you put the applet class where it is via FTP?

And if so, did you remember to use image (not ASCII) mode?
Josh Rodrigues
Greenhorn

Joined: Apr 14, 2010
Posts: 17
Paul Clapham wrote:And if so, did you remember to use image (not ASCII) mode?

Oh, how would I do that using CuteFTP? I guess I did put it in as ASCII.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18991
    
    8

Sorry, no idea. I went to their website but since it's paid-for software they don't seem to have any documentation on-line. It's funny how you get used to the idea of applications putting their docs on-line.
Josh Rodrigues
Greenhorn

Joined: Apr 14, 2010
Posts: 17
Paul Clapham wrote:Sorry, no idea. I went to their website but since it's paid-for software they don't seem to have any documentation on-line. It's funny how you get used to the idea of applications putting their docs on-line.

I'm using the free version, CuteFTP Home.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18991
    
    8

Josh Rodrigues wrote:
Paul Clapham wrote:Sorry, no idea. I went to their website but since it's paid-for software they don't seem to have any documentation on-line. It's funny how you get used to the idea of applications putting their docs on-line.

I'm using the free version, CuteFTP Home.

I thought you might be. But I don't see any documentation for it on line either. There's a forum on their website.

I'm guessing there's somewhere where you configure which file extensions represent text (like .html) and which file extensions represent binary (like .jpg), and it doesn't know about .class files. Just guessing though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassFormatError with an Applet?