jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes rmic assistance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "rmic assistance" Watch "rmic assistance" New topic
Author

rmic assistance

Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
I am trying to run rmic command on my server class and get the message

error: Invalid class file format in .\SBServer.class. The major.minor version '
49.0' is too recent for this tool to understand.
error: Class SBServer not found.
2 errors

I am running the command from the directory the class is in. Please help.
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
Looks to me like SBServer was compiled with one version of Java, and rmic is run using another version. Try to do both with the same JVM and see what happens.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
yup, you're trying to use a classfile compiled with a 1.5 compiler using a 1.4 (or earlier) rmic.
That's not going to work, just as you can't run that 1.5 classfile with earlier JVMs.


42
Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
Thanks that was my problem did not realize I was pointing to a differnet version of java in my path.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rmic assistance
 
Similar Threads
Problem with RMIC
How to create the stub class using rmic
The major.minor version error - please help
RMIC - NoClassDefFoundError:
RMIC invoke fail