File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "rmic assistance" Watch "rmic assistance" New topic

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.

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:
subject: rmic assistance
It's not a secret anymore!