Question:
how to run filename.jar file?
2007-12-16 06:20:54 UTC
when i try to run ss.jar file, comp. says "java not found"
which software should i install
1. jdk
2. jre
Six answers:
aravind_mib
2007-12-17 05:06:58 UTC
First of all u need JRE .. But if u want u can install JDK which installs JRE either. JDK is used for compiling jav program, ie in development of java appliaction..JRE is need to run those programs/application.

JAR file is a collection files that r needed during the execution of that application.. generally jar file will have a manifest file which specifies which java class file is to executed .. in that case u just need to type these.

"java -jar filename.jar" (without quotes)



In some cases it wont be , so u need to specify the class like this.

"java -classpath filename.jar filename"

This also sometime maynot work if the classpath differs from jar filename...

U can view the jar file content using "winrar" and other compressing utilities.



NOTE: Make sure the jar file has an executable class file.



Try these links also:

http://java.sun.com/docs/books/tutorial/deployment/jar/

http://en.wikipedia.org/wiki/JAR_(file_format)
Rajaram Balakrishnan
2007-12-16 06:41:50 UTC
You should install JDK or JRE. JDK is the complete toolkit to write the java programs as well as execute them. whereas the JRE only allows to execute the java programs. JAR expands to JAVA ARCHIVE File, thats the java way of packing application files just like EXE in WINDOWS.



To answer your question,

1. Either JDK or JRE should be installed

2. You can simply double click the JAR file which would run directly or Open the command promt, go to the directory where the JAR File is present and type this command JAVA -JAR ss.jar





NOTE:

to download JRE,

http://www.java.com/en/download/manual.jsp

to download JDK,

http://java.sun.com/javase/6/
David B
2007-12-16 06:25:33 UTC
You should install the jre. The jdk is the Java developer kit which the jre is the Java runtime environment.
danyell
2016-05-24 08:50:56 UTC
3gp files cannot be converted back to media player files hence download a vlc player and runt the files
HazMat
2007-12-16 06:41:12 UTC
You can also use third party software like Archiver.exe from Linos software (free trial available). It opens jar, rar, zip, etc. files
achates
2007-12-16 12:32:17 UTC
use WINRAR. associate WINRAR with .jar file extensions.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...