Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.UnsupportedClassVersionError

843793Jul 11 2005 — edited Jul 15 2005
hi!

I have a simple RMI app that writes something on a text file (client) and prints the file content (server). During execution, it gives this error:

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

i following these steps from http://engronline.ee.memphis.edu/advjava/misc/rmi2.htm:

File Directory: C:\RMISample\*.java
Class Directory: C:\RMISample\server\*.class, C:\RMISample\client\*.class

1. Place interface class, which extends Remote on the client and server.
2. Place class extending RemoteObject on server.
3. Generate stubs and skeleton by running rmic. Copy the stubs to the client.
4. Start the registry on server.
5. Start program that creates and registers objects on the server.
6 Run program that looks up server objects and invokes remote methods.

I'm not sure how to do steps 5 and 6, though (i did java server.ServerImpl)

thanks in advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2005
Added on Jul 11 2005
21 comments
200 views