Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

class file has wrong version 48.0m should be 47.0

Status
Not open for further replies.

archer2002

Programmer
Dec 5, 2002
6
UA
Hello all.
I got the problem with J2SDK1.4.1 on JDeveloper 9.0.3
I try to deploy some project to standalone OC4J AS, but got the message:
---- Deployment started. ---- Dec 11, 2002 8:41:19 AM
Wrote EJB JAR file to /home/archer/Work/Java/Hipbone/HipboneWeb/deploy/ejb.jar
Wrote EAR file to /home/archer/Work/Java/Hipbone/HipboneWeb/deploy/ejb.ear
Invoking OC4J admin tool...
/usr/java/j2sdk1.4.0/jre/bin/java -jar /usr/opt/oracle/jdeveloper/9.0.3/j2ee/home/admin.jar ormi://nemo.asperasg.com/ admin **** -deploy -file /home/archer/Work/Java/Hipbone/HipboneWeb/deploy/ejb.ear -deploymentName Hipbone
Auto-unpacking /usr/opt/oracle/jdeveloper/9.0.3/j2ee/home/applications/ejb.ear... done.
Copying default deployment descriptor from archive at /usr/opt/oracle/jdeveloper/9.0.3/j2ee/home/applications/ejb/META-INF/orion-application.xml to deployment directory /usr/opt/oracle/jdeveloper/9.0.3/j2ee/home/application-deployments/Hipbone...
Auto-deploying Hipbone (New server version detected)...
Copying default deployment descriptor from archive at /usr/opt/oracle/jdeveloper/9.0.3/j2ee/home/applications/ejb/ejb.jar/META-INF/orion-ejb-jar.xml to deployment directory /usr/opt/oracle/jdeveloper/9.0.3/j2ee/home/application-deployments/Hipbone/ejb.jar...
WebSpiderSessionEJBHome_StatelessSessionHomeWrapper37.java:9: cannot access java.lang.Object
bad class file: /usr/java/j2sdk1.4.1/jre/lib/rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class WebSpiderSessionEJBHome_StatelessSFatal Error: Syntax error in source
essionHomeWrapper37 extends com.evermind.server.ejb.RemoteStatelessSessionEJBHome implements perceptivei.univision.server.ejb.WebSpiderSessionEJBHome
^
1 error
com.evermind.compiler.CompilationException: Syntax error in source
at com.evermind.compiler.FileLinkedCompilation.run(FileLinkedCompilation.java:118)
at java.security.AccessController.doPrivileged(Native Method)
at com.evermind.compiler.FileLinkedCompiler.compile(FileLinkedCompiler.java:20)
at com.evermind.compiler.Javac.compile(Javac.java:42)
at com.evermind.server.ejb.compilation.Compilation.compileClasses(Compilation.java:422)
at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:306)
at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:526)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:536)

Exit status of OC4J admin tool (-deploy): 0
Elapsed time for deployment: 8 seconds
---- Deployment finished. ---- Dec 11, 2002 8:41:27 AM
May someone help me? Very urgent. Thanks.
 
Try to replace tools.jar of OC4J with the newer (1.4.1) one. Though afaik 1.4.1 is not supported by oc4j. Regards, Dima
 
Dear archer2002...were you able to solve this?
I get the same error when I changed compilers and tried to run my old code
"bad class file: D:\jdk1.4.202\jre\lib\rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top