• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't get Glassfish hello world to work: ClassNotFoundException  RSS feed

 
Vyacheslav Belenky
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I have an ejb interface as follows:



The implementation of this class is:



Here is the client code:



When I try running it "appclient -client Client.jar" I get the following exception:

java.lang.ClassNotFoundException: slava.ejb3inaction.HelloUser

I've tried various things like making sure that in the Client.jar the Manifest.mf file contains "Class-path: .\slava.jar". I've also put this jar into the classpath. Maybe somebody has another idea. Thanks.

 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class-path: .\slava.jar


This doesn't look right. The Class-path attribute is always relative to current jar. So if your slava.jar and Client.jar are as follows:



then the Class-path in the MANIFEST.MF of Client.jar should be:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!