 |
|
10-14-2008, 05:09 PM
|
#1
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
How to run a .jar file
I have windows xp and i was wondering how to run a .jar file
__________________
|
|
|
10-14-2008, 05:14 PM
|
#2
|
|
Registered Member
Join Date: Jul 2008
Location: Dover,Fl
Posts: 49
OS: xp Home
|
Re: How to run a .jar file
__________________
|
|
|
10-14-2008, 05:27 PM
|
#3
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
I have search google and i cant find anything or the things they suggested didnt work
the google link u suggested only had programs that would scan for java errors
__________________
|
|
|
10-14-2008, 05:32 PM
|
#4
|
|
Registered Member
Join Date: Jul 2008
Location: Dover,Fl
Posts: 49
OS: xp Home
|
Re: How to run a .jar file
I don't even know what you mean by how to run a Jar file Jar is an extension. Never heard the term run a file.
__________________
|
|
|
10-14-2008, 05:34 PM
|
#5
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
sorry...i am talking about a extension
__________________
|
|
|
10-14-2008, 05:50 PM
|
#6
|
|
Registered Member
Join Date: Jul 2008
Location: Melbourne
Posts: 16
OS: Windows XP SP3
|
Re: How to run a .jar file
needtolearn, i've heard the term "run a file" before. In fact, in the second link down of the google search you provided, here: http://www.fileinfo.net/extension/jar
Quote:
Archive that contains multiple Java files and is compressed using .ZIP compression; stores Java classes and metadata and may be digitally signed; runs as a program if the Java Runtime Environment (JRE) is installed on the computer.
JAR files are used by Mozilla Firefox, Thunderbird, SeaMonkey, and Sunbird to store themes and add-ons.
|
Obviously it's a self-executable file, though i think their meaning would have been clear anyway. They want a program that will enable a *.jar file to be opened (in this case, to 'run').
Sk MightyMouse, you need to check more than just the first link in a google search. The second link says that you need to have Java Runtime Environment on your computer to execute a *.jar file, and it recommends a program called "Java Runtime 1.1". There's your answer.
__________________
|
|
|
10-14-2008, 06:02 PM
|
#7
|
|
TSF Team Emeritus Moderator, Microsoft Support
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7
|
Re: How to run a .jar file
With java installed you'll be able to play a .jar file in your browser.
It's not meant to be run in any other way but you can read this for more informations :
http://ostermiller.org/opening_jar_files.html
|
|
|
10-14-2008, 06:03 PM
|
#8
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
I have JRE (Java Runtime Environment) on my computer. It says that there used by internet browsers but im not sure what that has to do with the .jar file im trying to run. Do i need to find the program JRE on my computer?
__________________
|
|
|
10-14-2008, 06:05 PM
|
#9
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
ok give me a minute to read the html and ill reply to see i could find out how to do it
__________________
|
|
|
10-14-2008, 06:07 PM
|
#10
|
|
TSF Team Emeritus Moderator, Microsoft Support
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7
|
Re: How to run a .jar file
If JRE was installed properly it should have been associated with .jar files. You may have associated another program with .jar files.
Try entering the location of the .jar file in your browser's address bar.
|
|
|
10-14-2008, 06:09 PM
|
#11
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
when you click on the .jar file, isnt it automatically suppose to associate it with JRE and "run it"
__________________
|
|
|
10-14-2008, 06:13 PM
|
#12
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
you mean enter it like C:\Documents and Settings\.....
__________________
|
|
|
10-14-2008, 06:25 PM
|
#13
|
|
TSF Team Emeritus Moderator, Microsoft Support
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7
|
Re: How to run a .jar file
Quote:
Originally Posted by Sk MightyMouse
you mean enter it like C:\Documents and Settings\.....
|
just tested that and actually it won't play in the browser but it should prompt you to open the file with java.
If JRE is installed properly you can run the .jar file by typing
java -jar c:\pathofthefile\nameofthefile.jar
in a command prompt or using the start => run command.
Use this site to check whether java is installed properly :
http://www.java.com/en/download/help/testvm.xml
|
|
|
10-14-2008, 06:30 PM
|
#14
|
|
Happy to support TSF!
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,187
OS: XP Pro SP3, Windows 7 Ultimate (x64), Ubuntu v8.04
|
Re: How to run a .jar file
I always run jar files the following way (unless it's a game or application which I install to my phone).
I basically create a shortcut to the file and edit that target box:
"C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe" -jar "C:\location of jar file.jar"
You may need to edit the location of javaw.exe if you're using a different version of java and you will obviously have to change the location of .jar file as well.
Hope that helps
__________________
|
|
|
10-14-2008, 07:11 PM
|
#15
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
my target looks like this C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe" -jar "C:\C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe" -jar "C:\Documents and Settings\Brian\Desktop\.jar" is that rite
__________________
|
|
|
10-14-2008, 09:01 PM
|
#16
|
|
TSF Team Emeritus Moderator, Microsoft Support
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7
|
Re: How to run a .jar file
The name of the .jar file is missing and you repeated the javaw.exe part twice. Also make sure the javaw.exe file is in the c:\program files\java\bin\jre1.6.0_07\ folder, that can change if you have an older version than Version 6 Update 7.
The target of the shortcut should be :
"C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe" -jar "C:\Documents and Settings\Brian\Desktop\nameofthefile.jar"
|
|
|
10-14-2008, 09:40 PM
|
#17
|
|
Registered Member
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit
|
Re: How to run a .jar file
wow it didnt work....like i double click it and it will give me the arrow with the hour glass and then nothing happens...do u think its cuz my files corrupt or something like that
__________________
|
|
|
10-15-2008, 03:47 AM
|
#18
|
|
TSF Team Emeritus Moderator, Microsoft Support
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7
|
Re: How to run a .jar file
As said in the link in post #7 not all .jar files are executables. Could you send us a link to that .jar file or zip and upload it here so we can take a look ?
|
|
|
11-18-2008, 09:07 PM
|
#19
|
|
Registered Member
Join Date: Nov 2008
Posts: 1
OS: WIN XP
|
Re: How to run a .jar file
Herewith iam attaching a JAR file
Please check whether it is executable
and Downloaded from this website "http://www.stat.tamu.edu/~jhardin/applets/signed/Poiss.html"
__________________
|
|
|
11-19-2008, 04:45 PM
|
#20
|
|
TSF Team Emeritus Moderator, Microsoft Support
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7
|
Re: How to run a .jar file
The java application at http://www.stat.tamu.edu/~jhardin/ap...ned/Poiss.html worked fine, the .jar file shows the message "invalid or corrupt jarfile" when I tried to run it.
|
|
|
 |
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|