This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Runtime issue finding external drivers
- From: Tom Tromey <tromey at redhat dot com>
- To: George Palmer <george dot palmer at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: 25 Oct 2004 12:10:39 -0600
- Subject: Re: Runtime issue finding external drivers
- References: <f83050bf04102510252c8a6cae@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "George" == George Palmer <george.palmer@gmail.com> writes:
George> I have a Java program that when I run normally I use the tag
George> -Djava.library.path=. so that the code can find .dll and .so libraries
George> bundled in the same directory.
Ok.
George> After compiling the code using GCJ and running I get an error message:
George> Caught java.lang.ClassNotFoundException: com.sun.comm.SolarisDriver
George> not found in [my classpath] while loading driver
George> com.sun.comm.SolarisDriver
George> Is this that it can't find the external comm driver or that I've
George> compiled the Java comm code wrong so it can't find the class
George> SolarisDriver?
Well, presumably this is code you supply somehow -- the free
implementations don't provide com.sun.*. If this isn't your code or
somehow freely available, then perhaps the problem is that you're
relying on undocumented APIs. (I'm not a javax.comm expert so I don't
know.)
If you have all this code in some form you can use, and it still isn't
working, then perhaps the problem is that java.library.path isn't
implemented in the version of gcj you are using. What version is it?
George> Also serial communications requires a javax.comm.properties in the lib
George> directory of a Java install so where should that go if Java isn't
George> installed? Could this be the problem?
Offhand, I have no idea. FWIW the free version of javax.comm I know
of is RXTX: http://www.rxtx.org/. Maybe that is helpful.
Tom