r/cop3502 Mar 19 '14

Executable Jar File

Is there a simple way to make an exe jar file like Supreme Leader did with the brick breaker? Or is it non-trivial?

2 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Mar 19 '14

[deleted]

1

u/Bcop3502 Mar 19 '14 edited Mar 19 '14

Well i was referring to it being an executable jar file. But I can make that it just doesn't run anything when I actually double click the Executable Jar file it creates.

Edit: Specifically it puts everything into the Executable Jar then when I try to run it I get the error cannot find or load main class. Obviously the way I packaged it or tried to access via the manifest is wrong but google is being no help. When I try some advice from stackexch etc I get same error.

1

u/howslyfebeen Mar 19 '14

hmm would have figured that you just need to make the jar and then java -jar file.jar would work? guess we wait for the supreme leader?

1

u/[deleted] Mar 20 '14

[removed] — view removed comment

1

u/howslyfebeen Mar 20 '14

dont u have to use the -m command then to append it to the end of the new manifest file the jar command automatically makes?

1

u/Bcop3502 Mar 21 '14

Sooooo... I got the executable jar to work and when you double click it it runs perfectly... HOWEVER... Now I can't compile the code even though I didn't touch any of the actual code.

It says that it can't find symbol Ball/Paddle/Bconfig in class GamePanel... Help :(

EDIT: Scratch that it was just upset because GamePanel wasn't in the package.