Forums Register Login

rmic assistance

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks that was my problem did not realize I was pointing to a differnet version of java in my path.
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1554 times.
Similar Threads
How to create the stub class using rmic
Problem with RMIC
The major.minor version error - please help
RMIC - NoClassDefFoundError:
RMIC invoke fail
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:40:00.