Chris
Chris

Reputation: 3

.jar File made from Eclipse won't run

I have a single class for an Applet I made, and I have been trying to make it into a .jar file. In Eclipse, I right click on the folder -> Export -> Java-> Jar File->Finish. When it finishes, it says "Exported with compile warnings: FirstApplet/src/ScoreCountingApplet.java". When I click it, it won't do anything, and it is completely unresponsive. I even checked the MF file and made sure that I added in the "Main-Class: ScoreCountingApplet" line to the Manifest. I have no idea how to make it work. Any feedback would be greatly appreciated. Thanks!

**Note: Also, if I try to compile with "javac" in the Command Prompt, it says something to the effect of "javac is not recognized as an internal or external command, operable program, or batch file.

Upvotes: 0

Views: 1011

Answers (2)

emecas
emecas

Reputation: 1586

Applets use to run a HTML file, on a browser or Appletviewer tool.

Also you have the option or kind of trick to embed a Panel/Applet into a Frame/JFrame,

If the second one is not your case I am not sure if there is a way that your Applet/Jar is going to run.

Upvotes: 1

wchargin
wchargin

Reputation: 16047

Try using "Export as Runnable Jar."

Upvotes: 0

Related Questions