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: jar file not working in Windows 7

28 Feb 2010   #1

Windows 7
 
 
jar file not working in Windows 7

Hi,

The scenario is as follows:
I used to run a little jar file coded by me in XP, but now that I am using Windows 7 it doesn't work any more.
My java version is Version 6 Update 18

I get the following message:

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader$1.run(Unknown Source)
...
Could not find the main class: C:\SMFilesGenerator.jar. Program will exit



I would appreciate it so much if you could help me.


My System SpecsSystem Spec
.

01 Mar 2010   #2

 

By default, applications dont have rights to access the root of c:\. Try moving the jar file to your documents folder and run it from there.
My System SpecsSystem Spec
02 Mar 2010   #3

Windows 7
 
 

Thanks for your reply
I tried moving it to 'My Documents' folder, but it is still not working. Today I installed the jdk-6u18-windows-i586, to see what happens, but there has been no change.
[COLOR=#000000 ! important][/COLOR]
My System SpecsSystem Spec
.


Reply

 jar file not working in Windows 7




Thread Tools




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 03:33 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33