View Full Version : how do i open a (exportert alice in web jar file) in java??
zento
03-20-2006, 01:56 PM
How do i open a jar file(extracted to web) in java??
e.x. bat commands??
What are you trying to do? The applet is meant to be used in a web browser to display your world.
zento
03-22-2006, 06:44 AM
I trying to open the jar file in java.exe!
lanceA
03-22-2006, 07:57 AM
If the .jar file was not created as an Executable Jar file you can not 'open' it. Normally a jar file is simply a compressed (archive) file containing numerous other files, similar to a Zip file. If it was created as an 'executable' simply click on it to run it.
To view the contents of a jar file you can open a DOS/Command Prompt window in the folder that has the file and type:
jar tf <name of your jar file>.jar
To extract the contents of a jar file, i.e., the files contained within the jar, use:
jar xf <name of your jar file>.jar *These will usually be .class files
Good luck
zento
03-22-2006, 08:37 AM
I mean:
Open the DOSwindow and write: Java <Option> <Args>
What shoud i write in <oprion> and <Args>?
I have tryed to write "java game.jar" but it's coming an error!
lanceA
03-22-2006, 09:56 AM
Java.exe is the runtime file for Sun's java. (Javac is the compiler). With that said, typing java game.jar will cause an error because java.exe is looking for .class files to run/execute. If you would like to learn further information about Java's jar files you may wish to look here:
http://java.sun.com/docs/books/tutorial/deployment/jar/
In order to view an Alice world on the web I had to first download and install Java 3d (DirectX) runtime. Maybe this is what you need ?
I apologize if I am confused about what you are trying to accomplish.