Question

I am currently working on creating an artificial world and I have followed the following website http://www.ethics.ubc.ca/eame/eameweb/Simulators/JavaProject/TofC.html

He used an applet to create it and have 9 classes in total.

I have done edited the coding and it works perfectly fine in Eclipse but when I try to export a .jar file its just not working.

I have tried to export it as a "Jar File" and generate a Bug.jar and I extract the file and add, in the MANIFEST.MF file:

Main-Class: Bugs.World 

Then when I double click the Bug.jar file, nothing happen.

When I try to export with "Runnable Jar File", I can't find my program under the Launch Configuration.

Can anyone help me on this please? Thanks!

No correct solution

OTHER TIPS

Then when I double click the Bug.jar file, nothing happen.

That won't work for an applet. For more info., run it from the CLI as:

java -jar Bug.jar 

To launch an applet, it needs to be embedded in HTML or launched using Java Web Start (embedded or free floating) using a JNLP.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top