Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems running AdviceClient

 
Helmut Schmutt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, but here we go again... First of all, I've read all postings related to this topic and I've tried it all so I'd really appreciate some help here.

Here's my env
J2EE_HOME = C:\Development\j2sdkee1.3.1
JAVA_HOME = C:\Development\jdk1.3.1_17
PATH = C:\Development\j2sdkee1.3.1\bin;C:\Development\jdk1.3.1_17\bin
CLASSPATH = .;C:\Development\j2sdkee1.3.1\lib\j2ee.jar;C:\Development\jdk1.3.1_17\lib;C:\Development\jdk1.3.1_17\jre\lib\

When I try to run the AdviceClient I get the following Exception:

C:\Development\projects\advice>java AdviceClient
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/JDKBridge [...]

When I try add rt.jar (That's the one with JDKBridge, right?) to the classpath specifically I get the following exception:

C:\Development\projects\advice>java -classpath %CLASSPATH%;AdviceAppClient.jar AdviceClient

Exception in thread "main" java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native
Method)
at com.sun.corba.se.internal.util.JDKClassLoader.loadClass(JDKClassLoade
r.java:53) [...]

And when I add rt.jar I have to add %CLASSPATH% as an argument to java.exe.

As you can see I'm a bit lost here...

best regards
 
Jonny Andersson
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you got your server, the RI-server I guess, to run as it should?

Here is my command to execute the advice-client:



I use the full path to my Java because I have my JDK 5 in my path instead of JDK 1.3 for other Java work. The subdirectory bin is where Eclipse have put my class file for the client and I have put the jar for with the interfaces for the client that I got from the server when I deployed the bean in the sub directory lib. And the remaining thing in the class path is the J2EE jar.

For convenience did I put everything into a BAT file when I got it to work to not have to ughh print all that on the command line very time.

Hope this may give you some clue to get it to work.
 
Helmut Schmutt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jonny Andersson:

I use the full path to my Java because I have my JDK 5 in my path instead of JDK 1.3 for other Java work.


I uninstalled the Java 5 Runtime and Bob's your Uncle! (I'll probably have to install it again at some point, but then I'll use a .bat-file the same way you're doing.

Thanks a lot and happy holidays!
 
Jonny Andersson
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you got it to work now? Great!

But I prefer Swedish julmust for Christmas instead of beer

Happy holidays for you too!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic