Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set .jar file association in WinXP

Status
Not open for further replies.

twoeyes

Technical User
Sep 19, 2002
62
CA
Hi there.

I've recently started playing around with Java, and ran into one of those stupid problems that just shouldn't exist. =)

I can't associate .jar files in Windows XP (and ONLY WinXP) to "javaw -jar %1". The dialog doesn't like having any parameters, at least it didn't seem to for me.

Am I the only one with this problem? Short of digging through the registry, is there a recommended way to do create the association?

As an aside, if anyone is looking for a Java based "net send" replacement for NT/2K/XP, you can grab my creation for free at: Yeah, it's a shameless plug. =) Check out my irrelevant personal website:
 
Can't you do it with the "file types" tab of the "folders options" dialog in explorer ? Water is not bad as long as it stays out human body ;-)
 
Nope. Tried that. At least on my install of WinXP, XP tries to do some magic error checking, and rejects ANY parameters send to the "associate to" program.

And I quote from XP:

"java.exe -jar
File not found.
Please verify..."

Stupid. Works fine in win 98...


Thanks anyway.

LC Check out my irrelevant personal website:
 
I tried it and had the same error until I put the full path for javaw. to be clear :
Code:
javaw -jar %1
or
Code:
javaw.exe -jar %1
gave me the famous ;-) "file not found" while
Code:
D:\LOGICIEL\WSAD\jre\bin\javaw -jar %1
worked well (I think it's useless to say that "D:\LOGICIEL\WSAD\jre\bin" is the path to reach javaw.exe)
Water is not bad as long as it stays out human body ;-)
 
Hmm, thanks for the response. I tried again... and still couldn't get it to work!

Looking at your example, I tried testing a path that had no spaces in it - no luck.

I don't know what I'm doing wrong here... I've just tested this on NT4 - no problems there...

Ah well, it's not that important.

LC Check out my irrelevant personal website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top