I
Ian
Hello!
I have written quite a large application that uses RMI. I can run rmic and
generate the skeletons which I copied to
http://www.dur.ac.uk/i.j.hammond/project/codebase/.
My application uses an external jar called ldapjdk.jar which is located in
the same directory as all my class files.
When I run java -
Djava.rmi.server.codebase=http://www.dur.ac.uk/i.j.hammond/project/codebase
RCSImpl
I get the error java.lang.NoClassDefFoundError: netscape/ldap/LDAPException
So I then set my classpath to read:
java -classpath .:/home/hudson/ug/d25sg2/ldapjdk.jar -
Djava.rmi.server.codebase=http://www.dur.ac.uk/i.j.hammond/project/codebase
RCSImpl
and I get the same error even though ldapjdk.jar does exist. I have also
tried placing the jar in the codebase with no effect.
If I remove the binding to the RMI in the RCSImpl class then all works fine
and the jar is found.
Does anyone have any advice?
Thanks,
Ian
I have written quite a large application that uses RMI. I can run rmic and
generate the skeletons which I copied to
http://www.dur.ac.uk/i.j.hammond/project/codebase/.
My application uses an external jar called ldapjdk.jar which is located in
the same directory as all my class files.
When I run java -
Djava.rmi.server.codebase=http://www.dur.ac.uk/i.j.hammond/project/codebase
RCSImpl
I get the error java.lang.NoClassDefFoundError: netscape/ldap/LDAPException
So I then set my classpath to read:
java -classpath .:/home/hudson/ug/d25sg2/ldapjdk.jar -
Djava.rmi.server.codebase=http://www.dur.ac.uk/i.j.hammond/project/codebase
RCSImpl
and I get the same error even though ldapjdk.jar does exist. I have also
tried placing the jar in the codebase with no effect.
If I remove the binding to the RMI in the RCSImpl class then all works fine
and the jar is found.
Does anyone have any advice?
Thanks,
Ian