I apologise if this is off-topic. I can't find aRXTX is the way to go.
suitable forum, I tried posting in the Java plugin
forum, but no luck there. I would appreciate any
ideas to find a solution.
I am trying to use the java comm api to read and
write to the serial port but I am getting the
Error loading LinuxSerialParallel:
/usr/lib64/libLinuxSerialParallel.so: Can't load IA
32-bit .so on a AMD 64-bit platform
I am using openSUSE 10.2 (X86-64) which uses Linux
I tried Switching to a 32-bit version of java (1.4.2)
from within Eclipse and I always run Eclipse in
32-bit java (/usr/share/eclipse/eclipse -vm
I still get this error.
Is there anything I can do to get the java comm api
working on a 64-bit system?
Is the java comm api still being developed and
maintained? It does not look like it is?
I've done some searching on the web and I find there
is an open source version of the java comm api called
RXTX but the website at http://www.rxtx.org/ is not
very readable. I don't think I know enough to install
this on my system.
Does this mean I need to get the source code fromYou won't know if you don't try. I was going to give it a try on my windows x64 machine, but the RXTX server seems to be having DNS problems so I can't download the source.
their website and compile it myself as 64-bit? I
don't think I have the expertise to do that.
which will check your system for all necessary libraries and set reasonable compiler/linker options for your machine.
Read the README and INSTALL files to be sure.
Do you know of any ready compiled 64-bit rxtxThey don't seem to be floating around anywhere.
Thanks, I managed to load the code from CVS butBefore running configure, type the following:
configure and make are crashing out.
I think the problem is that, in addition to building
the binaries it is trying to build the jar and it
wants to use the java here:
But I actually have java installed here:
so it is crashing out as follows:
Exception in thread "main" Exception while
configure: WARNING: using JAVA_HOME environmental
adjusted java.home is /usr/lib64/jvm/java
checking os.name Exception in thread "main"
Exception while printStackTrace():
martin@suse102:~/rxtx-devel> make install
make: *** No rule to make target `install'. Stop.
for full trace see:
I had similar errors on my x86 Linux box.
Its still not working, it feels so close but I'm justYes. the configure script is looking for a JDK. It needs the Java compiler and the jar tool.
being beaten by the complexities of running java on
but it only contains a jre directory and the
configure script seems to require the bin, include
and lib directories.
I guess that as I have been using Eclipse that itEclipse has a full JVM, but it has its own development tools (compiler, debugger, etc) so it does not need a JDK.
does not require the full jvm?
I am using theWhat does the output of
standard install that comes with SUSE10.2 inside
/usr/lib64/jvm/ there are 18 directories that seem to
be various combinations of java-sun, java-caco and
java-gcj combined with 1.4.2 or 1.5.0, some are jre
and some are full jdk. Also some of these directories
are just pointers which point to
/etc/alternatives/java_sdk which then have
subdirectories which point to other directories. All
of this makes it very hard to see what is going on, I
can't find a jdk which I am sure is sun and 64-bit.
Do you think I should install java 1.6 and startInstalling a JDK should not affect Ecplise or OpenOffice. Since Suse is RPM based, you should be able to download the RPM from here:
again with that? I don't want to do anything which
might stop Eclipse and Open Office working.
MartinThe only 64-bit machine I have access to is Windows only. Sorry.
PS if you have working 64-bit binaries I would
welcome them at firstname.lastname@example.org
I'm stuck again so I would appreciate some more help.Any small amount of progress is still progress. :)
I've managed to install the Sun 1.6 JDK and configure
and make rxtx.
But it still does not work, I get the following error<snip>
when I run the SerialDemo:
It seems to be com.sun.comm which is not finding itsNo, it's finding the shared library, unless there are a few more lines at the start of your error message that look like this:
native binary not rxtx!
It's not finding the function it is looking for in that library.
Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
This is what confuses me, theSame here after downloading the latest stuff to my x86 Linux box. I received a similar UnsatisfiedLinkError. I checked the shared libraries and the functions were not in it.
instructions say install the Solaris version of comm
api (http://www.rxtx.org/ how-to said Solaris Sparc
and the rxtx INSTALL file said Solaris x86 so I tried
both in turn and neither worked)
normally these wouldYes. There is a part of RXTX called JCL (Java Comm for Linux) that handles that.
call the Solaris binary drivers but I assume this has
to be redirected to rxtx which calls its own
Unzip it and copy the comm.jar file to the 'jre/lib/ext' folder of the JDK/JVM where everything else RXTX created was placed.
comm.jar, 2.0.3, generic, English (3rd party backward compatibility, only), English
I would be nice to encourage Sun to support thisThere is an existing Request For Enhancement:
interface better. I guess its not realistic to ask
them to support 'legacy' interfaces? I would be good
if they were to open source the code. It would be
even better a USB version of the interface were
actively developed. What is the best way for end
users to lobby Sun to do these things?