aspose file tools*
The moose likes Java in General and the fly likes urgent-help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "urgent-help please" Watch "urgent-help please" New topic
Author

urgent-help please

Sammer Meer
Greenhorn

Joined: Mar 24, 2004
Posts: 19
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...
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Those ranchies could really create a forum for such urgent questions!
(Bat.jar will not work - tried it).


http://home.arcor.de/hirnstrom/bewerbung
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
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.


SCJP 1.4, www.gsi3d.org.uk
Sammer Meer
Greenhorn

Joined: Mar 24, 2004
Posts: 19
Thank you very much Ben Wood
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: urgent-help please