This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Runtime issue finding external drivers
- From: George Palmer <george dot palmer at gmail dot com>
- To: tromey at redhat dot com
- Cc: java at gcc dot gnu dot org
- Date: Mon, 25 Oct 2004 19:30:29 +0100
- Subject: Re: Runtime issue finding external drivers
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=C7H+Rtz6gL4/9ZaBmYv1PL0UJPtmZAT2nnY24LGHsSKrBslgkQ3PeHgD4tjtQVAm/DmpI3QUz3yw+5GVnjNBovL4MdfRNWuhb4ZSoRkhfVTADZ4acGyvqZX8aozgJPJnXbR7SHn7Qjidf82lANMkQ+OM6PrY5MAV/ve/m88iue8=
- References: <f83050bf04102510252c8a6cae@mail.gmail.com> <m3u0sillcw.fsf@localhost.localdomain>
- Reply-to: George Palmer <george dot palmer at gmail dot com>
Perhaps a little more information may be of use. Basically my
software relies on several bits of 3rd party code such as dom4j and
RXTX serial (which inturn requires Java's comm for solaris). I
compile each of these and bring them together in one directory where
everything is joined and moved to the latest release folder. So yes,
com.sun.* is built by me.
I'm running gcj version 4 on windows from the www.thisiscool.com site.
Is it possible to set the java.library.path variable *within* my exe
or will I need to create a bat file to do it?
Cheers,
George
On 25 Oct 2004 12:10:39 -0600, Tom Tromey <tromey@redhat.com> wrote:
> >>>>> "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
>