[pskmail] Re: JavaPSK problem; Invoking "Preferences"?

  • From: Per Crusefalk <per@xxxxxxxxxxxx>
  • To: pskmail@xxxxxxxxxxxxx
  • Date: Sun, 05 Apr 2009 22:25:11 +0200

Hi Hal,

Yes, I'm afraid its a known issue. It happens on some PC's and not on
others. I was hoping I wouldn't have to create an installer but I have
started one now to get around this, In the meantime there is a manual
procedure to get past this. The problem is the RXTX libs for handling
the serial port:

The RXTX install should be fine as is on most installs.
However, some PC's have trouble finding the RXTX-files used to handle
the serial port. If you can launch the application but the preferences
window will not show then you need to install the files in the system.
For now there is a manual procedure for that. 

For linux using java 1.6:

1. cd to the jpskmail folder
2. copy the files to the system java path:
sudo cp librxtxSerial.so /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386/
sudo cp lib/RXTXcomm.jar /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/ext

For windows:

1. copy rxtxSerial.dll to %JAVA_HOME%\bin
(%JAVA_HOME% is the folder where JRE is installed on your system; e.g.
c:\Program Files\Java\j2re1.4.1_01)
2. copy RXTXcomm.jar to %JAVA_HOME%\lib\ext

Using java 1.6 like this:
Copy rxtxSerial.dll to c:\Program Files\Java\jre1.6.0_01\bin\
Copy RXTXcomm.jar to c:\Program Files\Java\jre1.6.0_01\lib\ext\

73 de Per, sm0rwo


sön 2009-04-05 klockan 16:05 -0400 skrev Hal:
> Greetings: I have FLDigi-3.10 running as well as JavaPSKMail, but when I
> click Preferences to get to Users nothing happens with the following
> screen dump report:  (Machine is Slackware 12.1, not this machine.)
> 
> ------------------------------------------------------------------------------
> Script started on Sun 05 Apr 2009 03:50:13 PM EDT
> bash-3.1$ fldigi3.10 &
> 
> [1] 23231
> 
> bash-3.1$ ls
> 
> configuration.xml           javapsk               librxtxSerial.so
> 
> configuration.xml.orig              javapskmail.jar       rxtxSerial.dll
> 
> configuration.xml~          lib
> 
> jPSKmail-0.3-quick-start.pdf  librxtxSerial.jnilib
> 
> bash-3.1$ java -jar javapskmail.jar
> 
> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown 
> while loading gnu.io.RXTXCommDriver
> 
> Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no 
> rxtxSerial in java.library.path
> 
>       at java.lang.ClassLoader.loadLibrary(Unknown Source)
> 
>       at java.lang.Runtime.loadLibrary0(Unknown Source)
> 
>       at java.lang.System.loadLibrary(Unknown Source)
> 
>       at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
> 
>       at javapskmail.serialport.getCommports(serialport.java:167)
> 
>       at javapskmail.optionsdialog.getComPorts(optionsdialog.java:174)
> 
>       at javapskmail.optionsdialog.<init>(optionsdialog.java:218)
> 
>       at 
> javapskmail.mainpskmailui.mnuPreferencesActionPerformed(mainpskmailui.java:1511)
> 
>       at javapskmail.mainpskmailui.access$4100(mainpskmailui.java:22)
> 
>       at javapskmail.mainpskmailui$30.actionPerformed(mainpskmailui.java:1251)
> 
>       at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> 
>       at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
> 
>       at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> 
>       at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> 
>       at javax.swing.AbstractButton.doClick(Unknown Source)
> 
>       at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
> 
>       at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown 
> Source)
> 
>       at java.awt.Component.processMouseEvent(Unknown Source)
> 
>       at javax.swing.JComponent.processMouseEvent(Unknown Source)
> 
>       at java.awt.Component.processEvent(Unknown Source)
> 
>       at java.awt.Container.processEvent(Unknown Source)
> 
>       at java.awt.Component.dispatchEventImpl(Unknown Source)
> 
>       at java.awt.Container.dispatchEventImpl(Unknown Source)
> 
>       at java.awt.Component.dispatchEvent(Unknown Source)
> 
>       at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> 
>       at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> 
>       at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> 
>       at java.awt.Container.dispatchEventImpl(Unknown Source)
> 
>       at java.awt.Window.dispatchEventImpl(Unknown Source)
> 
>       at java.awt.Component.dispatchEvent(Unknown Source)
> 
>       at java.awt.EventQueue.dispatchEvent(Unknown Source)
> 
>       at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> 
>       at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> 
>       at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> 
>       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 
>       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 
>       at java.awt.EventDispatchThread.run(Unknown Source)
> 
> bash-3.1$ exit
> 
> exit
> 
> 
> Script done on Sun 05 Apr 2009 03:51:09 PM EDT
> ------------------------------------------------------------------------------
> At first I tried editing configuration.xml which, of course, was
> overwritten to the default next run... HI.. I noted the sub-directory
> /lib that had another .jar file that I tried but; no joy.. HI..
> 
> What am I missing or doing wrong?? TIA..


Other related posts: