I am no longer blocked with the compilation command but now it's terrific and nobody faced this in the previous posts.
I am a bit at lost with the following error when I try to run this :
I typed : java -cp %CLASSPATH%;AdviceAppClient.jar AdviceClient
I ve got this :
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/JDKBridge at com.sun.corba.ee.internal.core.IOR$LocalCodeBaseSingletonHolder.<clinit>(IOR.java:90) at com.sun.corba.ee.internal.core.IOR.<init>(IOR.java:238) at com.sun.corba.ee.internal.iiop.messages.LocateReplyMessage_1_2.read(LocateReplyMessage_1_2.java:137) at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPInputStream.java:126) at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnection.java:671) at com.sun.corba.ee.internal.iiop.IIOPConnection.send(IIOPConnection.java:778) at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(InitialNamingClient.java:786) at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostInfo(InitialNamingClient.java:597) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(InitialNamingClient.java:573) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBInitRef(InitialNamingClient.java:544) at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1080) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981) at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425) at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:52) at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120) at javax.naming.InitialContext.lookup(Unknown Source) at AdviceClient.go(AdviceClient.java:20) at AdviceClient.main(AdviceClient.java:12)
Please tell me where I have been wrong, because for sure I am wrong somewhere...
Try adding appsvrt2.jar (I m not really sure the file name but got to be something similar to this) in J2EE_HOME/lib directory your class path.
This might work
Christ Alain Bassop
Joined: May 11, 2005
Hi guys, spcialy Lahiru and thank for your assistance
quote : ________________________________________________________________________ Try adding appsvrt2.jar (I m not really sure the file name but got to be something similar to this) in J2EE_HOME/lib directory your class path.
This might work _________________________________________________________________________
How can I add this file (appsvrt2.jar) I don't have it, I searched on my machine in J2EE and JAVA folder could not see it.
Is this a physical path in my machine or that has to be in my machine or is it a path located in the AdviceAppClient.jar file. If this pysical path has to be somewehere in my machine I don't have it in JAVA_HOME J2EE_HOME directories and subdirs.
it seems that nobody has gotten this error, it's hot for me now I keep waisting my time with this error, is there somebody there.
I too had run into the same kind of "NoClassDefFoundError" problem. I think
it is due to incompatibility between j2sdk versions.
When i got this error i had Jdk1.5 and i checked in JAVA_HOME/jre/lib/rt.jar ( this is where all the corba related files are grouped). but i didn't find the specified class. So, i downloaded j2sdk1.4.2_08 and checked in the "rt.jar" file. In this version i could find the file. So, i set the JAVA_HOME to the new version and every thing worked fine.
So, in your case too you may need to check the rt.jar file for j2sdk1.4.2_04 version. If you don't find the class in that jar, just download j2sdk1.4.2_08. I hope that solves your problem.
btw: i don't think you need "c:\j2sdk1.4.2_04\lib\j2ee.jar" in your class path.