.JAR files won't run on double-click

5 posts / 0 new
Last post
skirge01's picture
Offline
Joined: 21 Dec 2006
.JAR files won't run on double-click

This is HTPC related, but the problem is pretty much a Windows issue I've been unable to resolve.  I have BDSup2Sub installed, but I can't get it to launch via a double-click.  I've tried everything I could think of and searched endlessly online to no avail.  I tried getting help here and here, but haven't had much luck.

To sum up, here's the situation in a nutshell (reposted from the 2nd link, above):

Quote:
I'm having trouble getting this to run via double-clicking the jar file. Any time I try that I get a message of "Could not find the main class: C:\BDSup2Sub\BDSup2Sub.jar. Program will exit." If I place BDSup2Sub.jar in my java installation directory and open a command line, I can type "java -jar BDSup2Sub.jar" and it executes without issue. But, double-clicking the BDSup2Sub.jar file never works, nor does dropping it onto the java.exe or javaw.exe. I installed/reinstalled both the 32-bit and 64-bit JREs (Windows 7 Home Premium 64 bit), then tried installing them outside of C:\Program Files*, just to see if some security setting might be causing the issue. I also right-clicked the .jar and "unblock"ed it, since Windows said it came from another computer. I also edited the system paths for Windows to include the java directories and .jar extensions. Still nothing.

I also have ensured that .jar files are associated with java.exe or javaw.exe, but that has not helped.  Anyone have some ideas?  I've spent countless hours on this since Saturday, but have made zero progress.

Thanks!

Server: WHS, SuperMicro dual Xeon X7DWE, 1 x Xeon L5410, Thermalright HR-01, 4GB Crucial ECC, 8 port PCI-X SATA, 4 port RocketRAID 2300, 5x1 PortMultiplier, Corsair HX1000W PSU, Lian-Li PC343B case [blog]
Storage:
2 x Addonics 5-in-3 bays, 13TB
Client:
SageTV 7, Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion [blog]
Tuners: 2 x HD-PVR (serial control), 2 x HDHR, USB-UIRT

mikinho's picture
Offline
Joined: 19 Mar 2007

If you are NOT opening with an existing command prompt javaw.exe needs to be used. 

javaw.exe -jar "%1"

If you want ping me on GChat and I'll give you different registry files you can import for .jar and .sup

Mikinho | Missing Remote | Windows Entertainment and Connected Home MVP

skirge01's picture
Offline
Joined: 21 Dec 2006

Mikinho wrote:

If you are NOT opening with an existing command prompt javaw.exe needs to be used. 

javaw.exe -jar "%1"

If you want ping me on GChat and I'll give you different registry files you can import for .jar and .sup

It's actually being launched from a different program (Another EAC3to GUI Plus), which is trying to pass parameters to the jar.  I don't have IM set up on the new HTPC yet, but thanks for the offer.  Plus, it's a little late, so maybe tomorrow.

Server: WHS, SuperMicro dual Xeon X7DWE, 1 x Xeon L5410, Thermalright HR-01, 4GB Crucial ECC, 8 port PCI-X SATA, 4 port RocketRAID 2300, 5x1 PortMultiplier, Corsair HX1000W PSU, Lian-Li PC343B case [blog]
Storage:
2 x Addonics 5-in-3 bays, 13TB
Client:
SageTV 7, Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion [blog]
Tuners: 2 x HD-PVR (serial control), 2 x HDHR, USB-UIRT

mikinho's picture
Offline
Joined: 19 Mar 2007

Sounds like you may have some leftover files from various versions.  Java 6 Update 20 x86-64 should be enough to run it.  Open Java Control Panel applet and under the Java tab hit View.  Ensure you have Product 1.6.0_20 , it is enabled and the proper path for javaw.exe.

I would also check the file versions of javaw.exe in %SystemRoot%\system32 and %SystemRoot%\SysWOW64

Mikinho | Missing Remote | Windows Entertainment and Connected Home MVP

skirge01's picture
Offline
Joined: 21 Dec 2006

Mikinho was nice enough to work with me for some time, trying a number of different things to get this fixed.  In the end, it took a simple file I found here.  This little EXE was able to fix it in about 15 seconds.  Based on the description, it sounds like it does everything Mikinho and I tried, but, I guess there's just a little black magic mixed in, as well.  Smile

Server: WHS, SuperMicro dual Xeon X7DWE, 1 x Xeon L5410, Thermalright HR-01, 4GB Crucial ECC, 8 port PCI-X SATA, 4 port RocketRAID 2300, 5x1 PortMultiplier, Corsair HX1000W PSU, Lian-Li PC343B case [blog]
Storage:
2 x Addonics 5-in-3 bays, 13TB
Client:
SageTV 7, Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion [blog]
Tuners: 2 x HD-PVR (serial control), 2 x HDHR, USB-UIRT

Login or register to post comments
Website design by Yammm Software
Powered by Drupal