Tekforums

Chat => Entertainment & Technology => Topic started by: addictweb on March 29, 2006, 23:02:39 PM

Title: Urgent Help needed: Jave + Netbeans
Post by: addictweb on March 29, 2006, 23:02:39 PM
I have to demonstrate a Java program i have written tomorrow so ive just loaded it onto my housemates laptop where it wont complie!

I programmed it using netbeans (against all advice). The error im getting begins:

java.lang.UnsupportedClassVersionError: imagiview/Main (Unsupported major.minor version 49.0)

Ive got the newest versions of NetBeans (5.0) JRE and Java SDK installed, ive just re-downloaded them just incase.

They work fine on my tower with exactly the same java things installed. Also both on win XP

Please help with anything you can.
Title: Re:Urgent Help needed: Jave + Netbeans
Post by: M3ta7h3ad on March 30, 2006, 00:56:07 AM
not a problem mate.

Delete everything under your "build/classes/projectname/"

then recompile :) its the same issue I had on the macs in the lab.
Title: Re:Urgent Help needed: Jave + Netbeans
Post by: addictweb on March 30, 2006, 17:04:49 PM
Cheers, i still couldnt get it to work like that, i tried everything.

Eventually spotted that you can make a self executing jar file from your project. Much easier ... untill i realised all the paths to my images/icons were absolute and i have to change all my code.

Got it done in the end tho. 84%   :-)
Title: Urgent Help needed: Jave + Netbeans
Post by: Christopher Monkey on March 30, 2006, 20:34:20 PM
Cool beans, well done!!
Title: Re:Urgent Help needed: Jave + Netbeans
Post by: M3ta7h3ad on March 30, 2006, 20:45:38 PM
Quote from: sexytw
Cheers, i still couldnt get it to work like that, i tried everything.

Eventually spotted that you can make a self executing jar file from your project. Much easier ... untill i realised all the paths to my images/icons were absolute and i have to change all my code.

Got it done in the end tho. 84%   :-)


Nice one boyo :) did ya use tooltips? :D