Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 6th, 2005, 5:43 PM   #1
Krista
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 Krista is on a distinguished road
...java.lang.UnsupportedClassVersionError.....

I get the following error when trying to run a server sided program. Does anyone know what it means?

Exception in thread "main" java.lang.UnsupportedClassVersionError: CommServer (Unsupported major.minor version 49.0)

at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass0(Unknown Source)
etc.....

I assume it has to do with the version of the .class files...but unsure. How do I go about fixing it if that is the problem...any suggestions?

Thanks

Last edited by Krista; Dec 6th, 2005 at 5:46 PM. Reason: more meaningful title
Krista is offline   Reply With Quote
Old Dec 6th, 2005, 6:01 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 730
Rep Power: 4 Dameon is on a distinguished road
Perhaps the code was compiled using a later/earlier version of Java than is available on the server. Check what version the server is running. If it has the appropriate version available but is using the wrong one, you may need to specifically use the proper java executable.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 6th, 2005, 6:16 PM   #3
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 836
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Dameon may be right, but you can try adding
private static final long serialVersionUID = 1L;
to certain classes. My compiler is always bugging me with warnings that I should add this line, so try it and see if it does the trick (Apparently the number you supply, 1 in this case, is the version your code is at). Tell me if this works... I have no idea if it will.
titaniumdecoy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:04 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC