This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Runtime issue finding external drivers


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]