[quote]Just say no! Code is worthless.
[/quote]
I agree. No one is going to bother stealing code from a game. Some hobbyist hackers might want to peak at it, but really…who gives a crap. Most people would simply show the code to anyone that asks to see it anways.
Well If I give a link to a zip file containing the jar file and the graphics would you then consider trying my game?
[quote]Well If I give a link to a zip file containing the jar file and the graphics would you then consider trying my game?
[/quote]
Assumptions:
- You want us to play
- We want to play
Conclusion:
- Let us play.
Question:
- Why are you making it hard for us to play? Why not just make it easy? It is only one click (webstart) or three (download, then double-click) to play java games. Why are you making it more painful?
Well in so n00b and I would like to make a batch file you could just double click on in the zip file, but I dont know how the batch file should be.
Lets say that my jar file has 2 java files in it. (Or should it be class files?) one named RunMe.java containing the main method (/.class) and one named AnotherFile.java.
How would I execute the files from the batch file?
java -classpath myjar.jar RunMe
Only include the class files in the jar.
Thankyou, I just love this forum ! There are lots of pros to help us newbies
Thanks
For your notice I just changed the zip file. Now it containes a batch file for the execution an a jar file with all the code.
[quote]Well in so n00b and I would like to make a batch file you could just double click on in the zip file, but I dont know how the batch file should be.
?
[/quote]
I’m confused. Why do you want a batch file, which DOESNT WORK on anything except windows? If youre so keen to make windows-only games, can I suggest C++ would be a better language for you, or one of the other MS environments?
Read the java documentation, and read the section on JAR files, which explains how to make a JAR file that runs itself when people double-click on it (modulo the fact that some people have crap windows software on their PC and also dont have XP, so that they lose this ability and - without XP - it’s non-trivial to get the effect, without de-associating files etc)
Well as I said I am newbie and I was not aware of the option making a jar file that runs itself. Sorry. Where can I read about that?
You said in tje java documentation, yeah, sure. But where the fuck is that? I got Eclipse installed in my machine but I dont know where to find the “Java documentation”
[quote]Well as I said I am newbie and I was not aware of the option making a jar file that runs itself. Sorry. Where can I read about that?
[/quote]
sun.java.com.
You’re looking for ‘executable jar files’ and/or jar manifests.
This should tell you pretty much everything you need to know:
I got “Java Software Solutions” abd “Developing Games in Java” så I dont think I will spent more money on books atm.