rmic/classpath issues
Oscar Peñas <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Hi all. I recently installed JDK 1.4.2-07 on my linux box. I've been trying to get a stub from my RMI server using rmic withouth any success. What I've got basically is a server class in a directory called 'bin' and some libraries it depends on, in a diferent directory called 'lib', both directories inside my application dir. What I had been doing in windoze is something like this: rmic -classpath "bin:lib/xxxx.jar:lib/xxxx.jar:..." -d bin Server This worked on win with no problems. However in linux I get a beatiful: Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: Server [...] Caused by: java.lang.ClassNotFoundException: net.sf.hibernate.cfg.Configuration not found in [file:/usr/java/j2se/jre/lib/rt.jar, file:./, core:/] [...] Obviously rmic is not findind my jars. I've tried everything without any result. I recently noticed however, from the output of 'rmic --help', that rmic is ignoring the -classpath option, which is weird enough. This must be a linux-only issue :? Any clues? Can you see a solution to this, apart from putting all my jars in the CLASSPATH environment variable, something I'd like to avoid? Thanks in advance. =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html