Corrupt jar files
I recently finished a very basic enviroment andtried to make a jar file of it. However, it was corrupt, even with the main class and the main() method. HELP!
There are two ways of getting the .jar
First is to click project (top left) and click create .jar. This takes allot of this since it will copy the whole folder at a pretty slow pace. Wait maybe 5-10 minutes.
second is to right click a class that has:
inside of it and click create distribution .jar file. This one goes much faster and also gets you .exe and mac applet.
You really need to put more info in your help requests. The information you have supplied is weak. Corrupt can mean any number of things.
Try to be more specific if you want help faster.
Hope this helps, cheers!
#link to exe/ .jar creation
Hello! Do the following:
Create a new class called Game.
Put this inside of it:
This would only work if your controller class is called Yolo and your looping method is called play.
Basicly replace "Yolo" with the name of your main controller class and "play()" with the name of your game loop method. But better to use play() it worked for me.
And make sure your main loop method is public for example:
In a main controller class called "Yolo" you would find the main method play() as seen below
If your main class is called Game then name the new class GameApp or something else but just make sure you respect the following:
for a new class called GameApp:
public class GameApp
Make sure you can't find whats below ANYWHERE in your code exept in the new class you have created or it won't work.
If you can't see the dropdown, do the following:
- Make sure you close all the BlueJ projects (Ctrl-W I think).
- Close BlueJ.
- Re-open BlueJ, now use "Project -> Open Project" to open your env3d_template
- The env3d menu should be back
The problem basically is that BlueJ can only handle one env3d_template project opened at a time. If you have 2 or more projects opened, it will screw it up.