Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

urgent-help please

 
Sammer Meer
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those ranchies could really create a forum for such urgent questions!
(Bat.jar will not work - tried it).
 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sammer Meer
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Ben Wood
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic