|
Installation Guide
Linux
This guide applies to the installation of the binary version (.jar) of jdivelog on Linux systems. The installation from the source code or from cvs is commited to well-disposed users only.
Download and install the Java Development Kit 5.0 from SUN appropriate for your platform. For state-of-the-art distributions for this JDK
an automated installation process may be provided.
Download the Java Comm API 2.0 for the SPARC platform (javacomm20-sparc.tar.Z) from
here.
Extract the comm.jar file and place it in the $JAVA_HOME/jre/lib/ext directory. Again: Use the comm.jar from the SPARC version.
Create two files: javax.comm.properties in $JAVA_HOME/jre/lib containing the line Driver=gnu.io.RXTXCommDriver and
javax.comm.rxtx.properties in $JAVA_HOME/jre/lib/ext with the content:
javax.comm.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1:/dev/ttyUSB0:/dev/ttyUSB1 or something similar consistent with your hardware.
Download the rxtx package from here. Do not use version 2.1, it won't
work. Unpack the package and install it as usual with ./configure; make; make install. The configure script should run smoothly and has to print
these lines: [...] comm.jar appears to be installed already. [...] javax.comm.properties appears to be installed [...]
Otherwise there is something wrong with your Java installation.
Download JDiveLog from sourceforge.net and install it with the
command "java -jar jdivelog-installer-2.0.jar".
Be Happy ;-)
Since Release 2.3 you can also install RXTX-2.1 instead of Java Comm API and RXTX-2.0!
Windows
This guide applies to the installation of the binary version (.jar) of jdivelog on Windows systems. The installation from the source code or from cvs is commited to well-disposed users only.
Download and install the Java Runtime Environment 5.0 (JRE) from SUN for Windows.
Download the Java Comm API 2.0 for the WINDOWS platform (javacomm20-win32.zip) from
here.
Extract the comm.jar file of javacomm20-win32.zip to the lib\ext directory of the previously installed JRE
Extract the javax.comm.properties file of javacomm20-win32.zip to the lib directory of the previously installed JRE
Extract the win32com.dll file of javacomm20-win32.zip to the bin directory of the previously installed JRE
Download JDiveLog (the jdivelog-installer-X.X.jar!) from sourceforge.net and doubleclick on the downloaded file. If no installer appears try the command "java -jar jdivelog-installer-2.0.jar".
Be Happy ;-)
Mac OS X (Thanks go to Marting Polak for the OS X Package and Instructions)
- Download the OSX-version of JDiveLog from Sourceforge. (jdivelog-macosx-<version>.zip)
- Unpack it and drag the application to your /Applications folder
- In order to being able to communicate with your dive-computer you also have to install a serial driver library, so download the OSX-version of the rxtx serial driver library as found on http://users.frii.com/jarvi/rxtx/download.html. you have two options for this:
- Automatic Install:
- Download the source-package (tested with http://rxtx.qbang.org/pub/rxtx/rxtx-2.1-7-r2.zip) and unpack the archive (e.g. to your desktop or home directory).
- Go to the (MACOSX_IDE/ForPackageMaker folder), try to install RXTX binaries using the Installer by double clicking on MACOSX_IDE/ForPackageMaker/RXTX_Tiger.pkg
- check existence of the folder "/var/spool/uucp", if you don't have it create it with command
sudo mkdir /var/spool/uucp
Permissions should be: drwxrwxr-x, if they are not do command sudo chmod 775 /var/spool/uucp
- YOU (and everyone using the serialport/lib should be a member of the uucp group, you can check it with command
niutil -readprop / /groups/uucp users
You should see your name in output of the niutil command. If you don't see it, do following: sudo niutil -appendprop / /groups/uucp users <yourname>
Substitute <yourname> with your user's name
NOTES: RXTX.pkg should create uucp folder and insert your name in uucp group automatically but you might want to repeat those steps for other users. If everything went without errors, you should be done now. Remember that changing group memberships of users might need a reboot, so please consider doing so.
- ALTERNATIVELY (experienced user)
you can also install the lib manually by, downloading the binary package (http://rxtx.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip) and copy the files manually:
- Reboot or at least log-off and log-on again (for the group membership to become effictive)
- Run JDiveLog and Be Happy ;-)
- If your (USB)-serialport does not appear on the list of available ports in the preferences tab of JDiveLog, make sure that you have a driver from your cable vendor installed on your system.
|