Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Having an issue with jre 6u24

15 Apr 2011   #1
kosie99

Windows 7 Ultimate x64
 
 
Having an issue with jre 6u24

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 System SpecsSystem Spec
.
15 Apr 2011   #2
WindowsSkull

Windows 7 Ultimate x64 (32-bit)
 
 

so your having a problem with opening it? Or with the code?
My System SpecsSystem Spec
15 Apr 2011   #3
Orbital Shark

 
 

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
My System SpecsSystem Spec
.

15 Apr 2011   #4
kosie99

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by WindowsSkull View Post
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 System SpecsSystem Spec
15 Apr 2011   #5
kosie99

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Orbital Shark View Post
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 System SpecsSystem Spec
15 Apr 2011   #6
sygnus21

Windows 10 Pro
 
 

This post might be helpful.... MSE 2 Final Released!
My System SpecsSystem Spec
15 Apr 2011   #7
kosie99

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by sygnus21 View Post
This post might be helpful.... MSE 2 Final Released!
Thanks for the link. I am going to run JavaRa to make sure everything gets removed and then do a re-install....
My System SpecsSystem Spec
15 Apr 2011   #8
sygnus21

Windows 10 Pro
 
 

OK. BTW did you look at the instructions in the link?
My System SpecsSystem Spec
15 Apr 2011   #9
kosie99

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by sygnus21 View Post
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 System SpecsSystem Spec
15 Apr 2011   #10
sygnus21

Windows 10 Pro
 
 

Good luck.
My System SpecsSystem Spec
Reply

 Having an issue with jre 6u24




Thread Tools




Similar help and support threads
Thread Forum
Boot issue, 0xc0000098 ci.DLL file issue
OK so I hope this can be a quick fix and thanks for your help. * Randomly computer didn't start, get something telling me that the ci.dll file is missing or corrupt and error 0xc0000098 * safe mode and last know good configuration both result in bsod * Tried a few things, disconnect all...
BSOD Help and Support
net start command line issue - 64bit issue?
I am trying (in vain) to issue a net start command "net start - "C:\Program Files (x86)\uTorrent\utorrent.exe", on the command line. The error message is "the filename, directory name or volume label syntax is incorrect". I believe the 3 details are correct, as i am looking at the utorrent.exe file...
General Discussion
HP Multi Print/Scan Issue Re Install Issue?
I have an HP M1522 NF multi function peripheral attached to a PC running Windows 7. I needed to re install the drivers and software the other day but now it will only install the printer drivers and not the scanner drivers or any of the accompaying software?
Hardware & Devices
jpeg permission issue / possible encryption issue
Hello, I am new to the forums and have looked around just about everywhere I can think of for a similar topic and thus far have been unable to locate any help. If this has been previously covered, please point me in the direction and I will read up. So as for my issue.... I was running...
General Discussion
Interesting connectivity issue, just a browser issue
Opps, maybe not so unique since I just noticed an ENTIRE forum for browsers...perhaps moving this is appropriate...if so, please do. I will be reading up in there. Its interesting because I can't find any mention of it anywhere on this site. Specifically browser connectivity is lost after a...
Network & Sharing
8800GT Driver issue? Or maybe its a bios issue.
Hi all. I'm not sure where to start with this issue, it's bit spread out but it all started while I was gaming and the game froze and then the computer crashed. The freezing happened every once in a while, but the crashing had never happened. During the restart I see...
Drivers


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:07.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App