Re: [Emc-users] RXTX problem

2020-04-29 Thread Brent Loschen


On 4/29/2020 3:52 PM, Gene Heskett wrote:

On Wednesday 29 April 2020 16:05:11 Brent Loschen wrote:


I've used jssc,
 the
successor to RXTX, with much success.  It's multi platform and open
source.  Never had much luck with RXTX.


But how do I convince the .jar that wants RXTX, that jssc is the same
flavor its looking for.

Thanks.
The api's for RXTX are different than those for jssc, so it's not a drop 
in replacement.   In the Java world, the jssc library is considered 
superior to the ancient Java wrapper library for RXTX native code, but 
to use it would require changes to the Java source code for your 
application (your .jar file).  Apologies if I misunderstood your 
original request.


If it's potentially a configuration problem, this documentation 
may help you 
determine if the RXTX components are in the right locations relative to 
your Java installation.


What does the Java application do?  Do you have the source code for it?  
If so, I'd be happy to take a crack at changing it to utilize jssc.





On 4/29/2020 1:14 PM, Gene Heskett wrote:

This has nothing to do with linuxcnc other than this install is from
one of our installers.

I have a utility that talks to a 35 yo legacy computer, but needs
the RXTX libraries to do it.

It hasn't worked since the old asus mobo burned up and was replaced
with a newer, faster board and cpu also an Asus.

Several of these libraries including one I just installed, are here
and there but it still won't load. I suspect its a path problem, but
even dropping it into the same directory with the .jar that needs it
isn't working.

I need a fresh idea. Anybody have a clue?

Thanks.

Cheers, Gene Heskett

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] RXTX problem

2020-04-29 Thread Gene Heskett
On Wednesday 29 April 2020 16:05:11 Brent Loschen wrote:

> I've used jssc,
>  the
> successor to RXTX, with much success.  It's multi platform and open
> source.  Never had much luck with RXTX.
>
But how do I convince the .jar that wants RXTX, that jssc is the same 
flavor its looking for.

Thanks.

> On 4/29/2020 1:14 PM, Gene Heskett wrote:
> > This has nothing to do with linuxcnc other than this install is from
> > one of our installers.
> >
> > I have a utility that talks to a 35 yo legacy computer, but needs
> > the RXTX libraries to do it.
> >
> > It hasn't worked since the old asus mobo burned up and was replaced
> > with a newer, faster board and cpu also an Asus.
> >
> > Several of these libraries including one I just installed, are here
> > and there but it still won't load. I suspect its a path problem, but
> > even dropping it into the same directory with the .jar that needs it
> > isn't working.
> >
> > I need a fresh idea. Anybody have a clue?
> >
> > Thanks.
> >
> > Cheers, Gene Heskett
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] RXTX problem

2020-04-29 Thread Brent Loschen


I've used jssc, 
 the successor 
to RXTX, with much success.  It's multi platform and open source.  Never 
had much luck with RXTX.


On 4/29/2020 1:14 PM, Gene Heskett wrote:

This has nothing to do with linuxcnc other than this install is from one
of our installers.

I have a utility that talks to a 35 yo legacy computer, but needs the
RXTX libraries to do it.

It hasn't worked since the old asus mobo burned up and was replaced with
a newer, faster board and cpu also an Asus.

Several of these libraries including one I just installed, are here and
there but it still won't load. I suspect its a path problem, but even
dropping it into the same directory with the .jar that needs it isn't
working.

I need a fresh idea. Anybody have a clue?

Thanks.

Cheers, Gene Heskett



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] RXTX problem

2020-04-29 Thread Gene Heskett
On Wednesday 29 April 2020 15:52:58 Jon Elson wrote:

> On 04/29/2020 02:14 PM, Gene Heskett wrote:
> > This has nothing to do with linuxcnc other than this install is from
> > one of our installers.
> >
> > I have a utility that talks to a 35 yo legacy computer, but needs
> > the RXTX libraries to do it.
>
> Not familiar with this, is this a Java library?
>
> > It hasn't worked since the old asus mobo burned up and was replaced
> > with a newer, faster board and cpu also an Asus.
>
> Well, what is the symptom?
>
> > Several of these libraries including one I just installed, are here
> > and there but it still won't load. I suspect its a path problem, but
> > even dropping it into the same directory with the .jar that needs it
> > isn't working.
>
> Is there any diagnostic capability that can tell why "it
> won't load"?
>
> Jon
Just this, from a script I wrote many years ago:
gene@coyote:/CoCo$ ./dwstart
/CoCo/dw4directory
gene@coyote:/CoCo$ deleting old lockfile /var/lock/LCK..ttyUSB1
total 4
drwxr-xr-x 2 www-data root 40 Apr 29 14:23 apache2
-rw-r--r-- 1 root root 22 Apr 29 14:23 asound.state.lock
-rw-r--r-- 1 root root  0 Apr 29 14:23 ntpdate
drwx-- 2 root root 40 Apr 29 14:23 schroot
drwxr-xr-x 2 root root 40 Apr 29 14:23 subsys
-rw-rw-rw- 1 root root  0 Apr 29 14:24 tdekbdledsync-:0.lock
total 4
drwxr-xr-x 2 www-data root 40 Apr 29 14:23 apache2
-rw-r--r-- 1 root root 22 Apr 29 14:23 asound.state.lock
-rw-r--r-- 1 root root  0 Apr 29 14:23 ntpdate
drwx-- 2 root root 40 Apr 29 14:23 schroot
drwxr-xr-x 2 root root 40 Apr 29 14:23 subsys
-rw-rw-rw- 1 root root  0 Apr 29 14:24 tdekbdledsync-:0.lock
29 Apr 2020 15:57:04 INFO  [dwserver-10   ] DriveWire Server v4.3.3o 
starting
FATAL: UseRXTX is set, but RXTX native libraries could not be loaded
Yikes!

java.lang.ExceptionInInitializerError
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.(Unknown Source)
at com.groupunix.drivewireui.MainWin.main(MainWin.java:374)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.swtjar.SWTLoader.main(SWTLoader.java:47)
Caused by: java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1124)
at org.eclipse.swt.internal.Library.load(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.(Unknown Source)
... 9 more

FATAL: Please see 
http://sourceforge.net/apps/mediawiki/drivewireserver/index.php?title=Installation

And the last link no longer exists. Somebody has redone about 75% of it 
in python, but zero installation tuts there either.  So I'm flying 
blind.
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] RXTX problem

2020-04-29 Thread Jon Elson

On 04/29/2020 02:14 PM, Gene Heskett wrote:

This has nothing to do with linuxcnc other than this install is from one
of our installers.

I have a utility that talks to a 35 yo legacy computer, but needs the
RXTX libraries to do it.

Not familiar with this, is this a Java library?

It hasn't worked since the old asus mobo burned up and was replaced with
a newer, faster board and cpu also an Asus.

Well, what is the symptom?

Several of these libraries including one I just installed, are here and
there but it still won't load. I suspect its a path problem, but even
dropping it into the same directory with the .jar that needs it isn't
working.

Is there any diagnostic capability that can tell why "it 
won't load"?


Jon


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users