This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes Moving from jdk 1.4 to jdk 1.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Moving from jdk 1.4 to jdk 1.5" Watch "Moving from jdk 1.4 to jdk 1.5" New topic
Author

Moving from jdk 1.4 to jdk 1.5

Jag Bains
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
I have just recompiled all my code using JDK1.5.0_03 and now when I try to deploy it on Orion I get the following error:

Auto-deploying petardsCMS-ejb.jar (ejb-jar.xml had been touched since the previous deployment)... PetardsFacade_StatelessSessionBeanWrapper0.java:2: cannot access java.rmi.NoSuchObjectException
bad class file: c:\jdk1.5.0_03\jre\lib\rt.jar(java/rmi/NoSuchObjectException.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import java.rmi.NoSuchObjectException;
^
1 error
Error compiling C:\sandbox\java\deploy\petardsCMS/petardsCMS-ejb.jar: Syntax error in source
Orion/2.0.2 initialized

Any Ideas?
Jag Bains
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
Realised that I had to copy the latest version of tools.jar
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
Glad you posted your solution, Jag.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Thomas Schmitt
Greenhorn

Joined: Jul 28, 2005
Posts: 1
yes, thanks very much indeed!
 
GeeCON Prague 2014
 
subject: Moving from jdk 1.4 to jdk 1.5