Having an issue with jre 6u24

kosie99

New member
Local time
5:43 PM
Messages
5
Hi,

I have a jar file that I want to execute on my Win 7 box but when I run it, it says "main class not found" when double-clicking on it to launch. When I open a command-line box and type in "java -jar ap.jar", then it works fine. This problem is just when I double-click it.

To make sure it tries to run it with the JRE, I did an "open with.." and selected the JRE there, but still no go.

I have then copied the jar file across to another box that had the jre already installed and it works there, so there is nothing wrong with the jar file itself.

Any ideas what the issue could be?

Thanks!
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
so your having a problem with opening it? Or with the code?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64 (32-bit)SIS Mirage 3 Graphics
Computer Manufacturer/Model Number
Fujitsu Siemens V5355
OS
Windows 7 Ultimate x64 (32-bit)
Graphics Card(s)
SIS Mirage 3 Graphics
Sound Card
High Definition Audio Device
Monitor(s) Displays
Mobile Pc Display

My Computer My Computer

At a glance

Windows 7 Ultimate x64AMD Sempron Dual Core3GBNVIDIA GeForce 6150SE nForce 430
Computer Manufacturer/Model Number
Compaq Desktop
OS
Windows 7 Ultimate x64
CPU
AMD Sempron Dual Core
Memory
3GB
Graphics Card(s)
NVIDIA GeForce 6150SE nForce 430
Screen Resolution
1024x768
Hard Drives
150GB Sata
so your having a problem with opening it? Or with the code?

I have issues opening it, not the code. The application works fine in other Windows installations (it works on a macbook as well), it is just on this one Windows 7 box that it would not open.

And I have uninstalled the JRE and rebooted several times, but still no joy.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Hi, welcome to the forums :)

You may find the following article of interest as it's related

Can't open .jar files on my windows 7 - Microsoft Answers

Thanks :)

I have downloaded and installed the JRE numerous times to try and solve this, but it does not work. As I said, it works fine where starting it from the command-line, but when I double-click on it, then I get that error.

And the JRE is associated with the .jar extention. It definitely loads the JRE, because it is the JRE itself that complains about the "main class not found".
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64

My Computer My Computer

At a glance

Windows 10 ProIntel Core i7-4770K (3.5Ghz)32 gig Corsair Dominator Platinum (4x8Gig)Sapphire Tri-X R9 Fury
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built by me.
OS
Windows 10 Pro
CPU
Intel Core i7-4770K (3.5Ghz)
Motherboard
Gigabyte G1 Sniper 5 (F10 Bios)
Memory
32 gig Corsair Dominator Platinum (4x8Gig)
Graphics Card(s)
Sapphire Tri-X R9 Fury
Sound Card
Soundblaster ZXR
Monitor(s) Displays
NEC PA242W 24" LCD Monitor
Screen Resolution
1920 x 1200
Hard Drives
Primary - Samsung 850 Pro (512gig), Samsung 840 Pro (256gig), 2TB WD Caviar Black.
PSU
EVGA Supernova 1000 G2
Case
Cooler Master HAF X
Cooling
Corsair H100i with Corsair Air Series SP120 Quiet Fans
Keyboard
Logitech Wireless Wave
Mouse
Logitech Performance MX
Internet Speed
High Speed Cable
Antivirus
Norton Security
Browser
IE11
Other Info
Memory Timings - 1866MHz @ 9-9-9-27-1T @ 1.5 volts
OK. BTW did you look at the instructions in the link?
 

My Computer My Computer

At a glance

Windows 10 ProIntel Core i7-4770K (3.5Ghz)32 gig Corsair Dominator Platinum (4x8Gig)Sapphire Tri-X R9 Fury
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built by me.
OS
Windows 10 Pro
CPU
Intel Core i7-4770K (3.5Ghz)
Motherboard
Gigabyte G1 Sniper 5 (F10 Bios)
Memory
32 gig Corsair Dominator Platinum (4x8Gig)
Graphics Card(s)
Sapphire Tri-X R9 Fury
Sound Card
Soundblaster ZXR
Monitor(s) Displays
NEC PA242W 24" LCD Monitor
Screen Resolution
1920 x 1200
Hard Drives
Primary - Samsung 850 Pro (512gig), Samsung 840 Pro (256gig), 2TB WD Caviar Black.
PSU
EVGA Supernova 1000 G2
Case
Cooler Master HAF X
Cooling
Corsair H100i with Corsair Air Series SP120 Quiet Fans
Keyboard
Logitech Wireless Wave
Mouse
Logitech Performance MX
Internet Speed
High Speed Cable
Antivirus
Norton Security
Browser
IE11
Other Info
Memory Timings - 1866MHz @ 9-9-9-27-1T @ 1.5 volts
OK. BTW did you look at the instructions in the link?


Yes, going to follow them. The jre that I downloaded is the "offline install" version, but I am going to follow the instructions step-by-step.

The only real difference between these steps and what I have done previously, is that I did not close my web browser first. I allowed the jre install to close it for me. But for this one I will make sure nothing runs.


Thanks.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Good luck.
 

My Computer My Computer

At a glance

Windows 10 ProIntel Core i7-4770K (3.5Ghz)32 gig Corsair Dominator Platinum (4x8Gig)Sapphire Tri-X R9 Fury
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built by me.
OS
Windows 10 Pro
CPU
Intel Core i7-4770K (3.5Ghz)
Motherboard
Gigabyte G1 Sniper 5 (F10 Bios)
Memory
32 gig Corsair Dominator Platinum (4x8Gig)
Graphics Card(s)
Sapphire Tri-X R9 Fury
Sound Card
Soundblaster ZXR
Monitor(s) Displays
NEC PA242W 24" LCD Monitor
Screen Resolution
1920 x 1200
Hard Drives
Primary - Samsung 850 Pro (512gig), Samsung 840 Pro (256gig), 2TB WD Caviar Black.
PSU
EVGA Supernova 1000 G2
Case
Cooler Master HAF X
Cooling
Corsair H100i with Corsair Air Series SP120 Quiet Fans
Keyboard
Logitech Wireless Wave
Mouse
Logitech Performance MX
Internet Speed
High Speed Cable
Antivirus
Norton Security
Browser
IE11
Other Info
Memory Timings - 1866MHz @ 9-9-9-27-1T @ 1.5 volts
Back
Top