This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I'm making a game .. and i want it to download easily on anyone's computer easily.. what's the best way? what does the installation requires?? another thing, I still dont know how to deal with jar files.. should i download something that can be run through a jar file?? what should i do? what is the class path? how can i create this .bat file? They may seem stupid and repeated questions, so if these things were discussed before.. just give me a url 1000000 thx
Ai no corrida..That's where I am<br />You send me there<br />Your dream is my command...
saeed, You could make an executable JAR file, but I don't know whether this will work on all platforms. It works on Windows though. Create a text file called ManifestAddition.txt containing the main class atribute of you application (i.e. the place where you want the application to start. After this line add a carriage return or it won't work!!!
now use the JAR tool in the command window to create the executable JAR, putting all your classes in there
This should create a .jar file that you can double click to run the appplication. If you want to go the .bat route create a windows batch file or equivalent shell script with the necessary java command in and also provide the java classes. Then when the user doube clicks the batch file the system will invoke the java command you ahve specified in the batch file and hopefully run the application. Note both of these require the user to have a Java runtime installed.