Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

rmi problems

Thread view: 
boyScout - 20 Feb 2007 07:01 GMT
hi I need help, I'm learning rmi and when trying to run the server
code I get an error:
Exception in thread "main"
java.lang.UnsupportedClassVersionError:srcEcho(Unsupported major.minor
version 50.0):
at ....
at ....
at ....
and I'm using java 1.3.1_01.

What should I do? Thanks
rajatag - 20 Feb 2007 07:34 GMT
> hi I need help, I'm learning rmi and when trying to run the server
> code I get an error:
[quoted text clipped - 7 lines]
>
> What should I do? Thanks

You are probably using two different versions of Java for compiling /
executing.
Lew - 20 Feb 2007 13:43 GMT
"boyScout" wrote:
>> hi I need help, I'm learning rmi and when trying to run the server
>> code I get an error:
[quoted text clipped - 7 lines]
>>
>> What should I do? Thanks

Java 1.3 is obsolete. Java 1.4 is getting ancient. Java 5 is the previous
version. Java 6 is the current version.

The class was compiled with a version of Java that uses classfile version
50.0. I am not sure, I leave the Googling to you, but I think that is a class
file generated by Java 6. You tried to run it under the obsolete, unsupported
Java 1.3 and it failed.

Either compile the class with "-target 1.3" or upgrade to a current,
non-obsolete version of Java.

- Lew
boyScout - 20 Feb 2007 16:19 GMT
sorry I don't understand, last week I installed java 6 and now if i
did understand you're trying to tell to install java 5. I'm still
confused. Why is my class version of 1.3 when I have java 6. I have
both jdk 1.6.0 and jre 1.6.6. I can't understand why it don't work.
Nigel Wade - 20 Feb 2007 17:23 GMT
> sorry I don't understand, last week I installed java 6 and now if i
> did understand you're trying to tell to install java 5.

No, Lew didn't suggest that, I don't know where you got that idea from.

> I'm still
> confused. Why is my class version of 1.3 when I have java 6. I have
> both jdk 1.6.0 and jre 1.6.6. I can't understand why it don't work.

The other way around. Your compiler is Java 6. The JRE you are using to execute
the byte-code (maybe either java or rmiregistry if you are using that) is from
an older version of Java and cannot use the 50.0 version classfiles.

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Jujo - 20 Feb 2007 16:50 GMT
> "boyScout" wrote:
>>> hi I need help, I'm learning rmi and when trying to run the server
[quoted text clipped - 21 lines]
>
> - Lew

Hmm not true Java 1.4 is geeting ancient - in fact it`s still used in most
business projects...

Jujo
Chris Uppal - 20 Feb 2007 18:38 GMT
> Hmm not true Java 1.4 is geeting ancient - in fact it`s still used in most
> business projects...

Both can be true at once ;-)

Businesses often like to use the oldest available version of software that
still works.  So often the most popular version is also ancient...

   -- chris
Sanjay - 20 Feb 2007 13:30 GMT
> hi I need help, I'm learning rmi and when trying to run the server
> code I get an error:
[quoted text clipped - 7 lines]
>
> What should I do? Thanks

I guess your rmi server needs 1.5 rather than 1.3


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.