aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
jQuery in Action, 2nd edition
 
subject: rmic assistance