jar file not working in Windows 7

fergofm

New member
Local time
10:16 PM
Messages
3
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 Computer My Computer

OS
Windows 7
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 Computer My Computer

Computer Manufacturer/Model Number
Black_Box (homebuilt)
OS
windows 7 RTM x64
CPU
Phenom II 965 Quad Core 3.4Ghz
Motherboard
Asus M4A79T Deluxe
Memory
Mushkin Blackline 8GB (4x2gb)
Graphics Card(s)
XFX Radeon 5970 Black Edition
Sound Card
onboard
Monitor(s) Displays
Dell 2408WPF-main Dell E248WFP-secondary
Screen Resolution
1920x1200-main 1920x1200-secondary
Hard Drives
OCZ Vertex Limited Edition 100GB (OS)
x1 WD Black Edition 500GB drive (Storage)
PSU
XFX 850w Black Edition (Modular)
Case
Mountian Mods H2go
Cooling
CoolITSystems ECO A.L.C.
Keyboard
Logitech MX 5500 wireless keyboard
Mouse
Razor Copperhead
Internet Speed
16Mb down/2Mb up Wowway Cable Internet
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][FONT=Arial ! important][/FONT][/COLOR]
 

My Computer My Computer

OS
Windows 7

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Professional
Back
Top