Go Back   Tech Support Forum > Microsoft Support > Windows XP Support

How to run a .jar file

This is a discussion on How to run a .jar file within the Windows XP Support forums, part of the Tech Support Forum category. I have windows xp and i was wondering how to run a .jar file


Closed Thread
 
Thread Tools Search this Thread
Old 10-14-2008, 05:09 PM   #1
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


I have windows xp and i was wondering how to run a .jar file

__________________
Sk MightyMouse is offline  
Old 10-14-2008, 05:14 PM   #2
Registered Member
 
Join Date: Jul 2008
Location: Dover,Fl
Posts: 49
OS: xp Home



Google is your friend.

http://www.google.com/search?source=...=Google+Search

__________________
needtolearn is offline  
Old 10-14-2008, 05:27 PM   #3
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


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
__________________
Sk MightyMouse is offline  
Old 10-14-2008, 05:32 PM   #4
Registered Member
 
Join Date: Jul 2008
Location: Dover,Fl
Posts: 49
OS: xp Home



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.
__________________
needtolearn is offline  
Old 10-14-2008, 05:34 PM   #5
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


sorry...i am talking about a extension
__________________
Sk MightyMouse is offline  
Old 10-14-2008, 05:50 PM   #6
Registered Member
 
Join Date: Jul 2008
Location: Melbourne
Posts: 16
OS: Windows XP SP3

My System


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.
__________________
dissembly is offline  
Old 10-14-2008, 06:02 PM   #7
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


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
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 10-14-2008, 06:03 PM   #8
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


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?
__________________
Sk MightyMouse is offline  
Old 10-14-2008, 06:05 PM   #9
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


ok give me a minute to read the html and ill reply to see i could find out how to do it
__________________
Sk MightyMouse is offline  
Old 10-14-2008, 06:07 PM   #10
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


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.
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 10-14-2008, 06:09 PM   #11
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


when you click on the .jar file, isnt it automatically suppose to associate it with JRE and "run it"
__________________
Sk MightyMouse is offline  
Old 10-14-2008, 06:13 PM   #12
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


you mean enter it like C:\Documents and Settings\.....
__________________
Sk MightyMouse is offline  
Old 10-14-2008, 06:25 PM   #13
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


Quote:
Originally Posted by Sk MightyMouse View Post
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
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 10-14-2008, 06:30 PM   #14
Happy to support TSF!
 
nickster_uk's Avatar
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,189
OS: XP Pro SP3, Windows 7 Ultimate (x64), Ubuntu v8.04

My System


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
__________________
nickster_uk is offline  
Old 10-14-2008, 07:11 PM   #15
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


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
__________________
Sk MightyMouse is offline  
Old 10-14-2008, 09:01 PM   #16
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


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"
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 10-14-2008, 09:40 PM   #17
Registered Member
 
Join Date: Aug 2008
Location: California
Posts: 71
OS: Windows 7 32 bit

My System


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
__________________
Sk MightyMouse is offline  
Old 10-15-2008, 03:47 AM   #18
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


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 ?
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 11-18-2008, 09:07 PM   #19
Registered Member
 
Join Date: Nov 2008
Posts: 1
OS: WIN XP



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"
Attached Files
File Type: zip poiss.zip (208.5 KB, 167 views)
__________________
sathis is offline  
Old 11-19-2008, 04:45 PM   #20
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


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.

__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2


All times are GMT -7. The time now is 07:05 AM.


Copyright 2001 - 2014, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts