SliTaz SliTaz Forum

You are not logged in.

#26 2022-01-30 11:28:06

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

Simple consideration: notebook with rs232 > surely from several years ago > so only 32bit > a test with live 32bit

./adtpro.sh

ADTPro Server version 2.1.0

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load the jssc library: Couldn't load library library jssc

    at jssc.SerialNativeInterface.<clinit>(SerialNativeInterface.java:90)

    at jssc.SerialPortList.<clinit>(SerialPortList.java:43)

    at org.adtpro.transport.SerialTransport.getPortNames(Unknown Source)

    at org.adtpro.gui.SerialConfig.enumeratePorts(Unknown Source)

    at org.adtpro.gui.SerialConfig.<init>(Unknown Source)

    at org.adtpro.gui.SerialConfig.allocateSingleton(Unknown Source)

    at org.adtpro.gui.SerialConfig.getSingleton(Unknown Source)

    at org.adtpro.gui.Gui.<init>(Unknown Source)

    at org.adtpro.ADTPro.main(Unknown Source)

same problem as yours: no existing serial port...

I repeat which java version you have?

java -version

what version of slitaz do you use (as i know for now no official version has full 64bit support)?

And Laptop model?

Offline

#27 2022-03-06 18:44:42

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

My apologies for the long overdue response. Busy with work I had to put this problem on the backburner.

My computer is a Dell Latitude CPXJ, I have been using Slitaz on it since early version 3.0.

It Currently is running SLitaZ 4.0. I cannot get a newer version of Slitaz (or any other distro) to install on this system. ITs configured the way I need it for the most part and everything other than this issue is OK. Until recently that is, None of the Web Browsers Work anymore. I get TLS errors on everything now.

Back to the problem at hand I am running Java version "1.7.0_45"

Java (TM) SE Runtime Environment (build 24.45-b18)

Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode)

Offline

#28 2022-03-07 10:57:24

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

I did some testing and it seems to be the lack of the libjssc.so library.

It's not available in the repositories, so either compile it from source, or try this one I compiled.

https://disk.yandex.com/d/JDPG0DDr84iOXw

here the sources

https://github.com/java-native/jssc

With live 4.0 and java jdk-8u202 everything seems to work.

I didn't have your version of java.

Here is the list of commands I gave in the terminal

Tested on SliTaz live 4.0

wget http://85-207-0-21.static.bluetone.cz/java/1.8.0_202/jdk-8u202-linux-i586.tar.gz

tar -xvf jdk-8u202-linux-i586.tar.gz

download from the link jssc and copy it in /usr/lib/

su

Password:

cp libjssc.so /usr/lib/

mkdir /usr/lib/jvm

cp -ar jdk1.8.0_202 /usr/lib/jvm/

rm -rf jdk1.8.0_202*  <<< optional remove source

ln -s /usr/lib/jvm/jdk1.8.0_202/jre/bin/java /usr/bin/java

java -version

java version "1.8.0_202"

Java(TM) SE Runtime Environment (build 1.8.0_202-b08)

Java HotSpot(TM) Server VM (build 25.202-b08, mixed mode)

exit

goto on folder ADTPro-2.1.0 and then

./adtpro.sh

executed without errors and shows the serial ports

that's all!

Offline

#29 2022-03-07 15:34:37

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Thank you for the prompt followup gibor. I will try this and post back.

Offline

#30 2022-03-07 22:53:52

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Ok So I downloaded the files and uncompressed the tarball.

However when I type: cp libjssc.so /usr/lib/

I get  cp: can't stat 'libjssc.so': No such file or directory

I didnt go any further.

Offline

#31 2022-03-08 06:39:31

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

The command "cp libjssc.so /usr/lib/" must be executed in the folder where you saved the downloaded file libjssc.so.

If you really can't, I'll try to make a package including adtpro and its libraries...

ADTPro-v.r.m (build from git with libjssc)

https://disk.yandex.com/d/q2qQIWcPfBlodg

java-1.8.0_202 (153Mb)

https://disk.yandex.com/d/5-k5bOfD6HZJIQ

Offline

#32 2022-03-09 20:36:20

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

gibor that worked perfectly! Not only does the program work and see the Serial ports, but the onboard one works flawless which is what I originally wanted the laptop for!

Thank you so much for taking the time on this. I greatly appreciate it!

Offline

#33 2022-03-10 08:51:17

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

Well it was not wasted effort. We mark resolved the topic.

Offline

#34 2022-06-03 14:47:15

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Gibor, Was wondering if you can test one more facet of the adtpro package. I have been using it all these months and its been great. I have only been using the serial connection aspect of it. I was trying to use the Ethernet connectivity option on it and Its not working. When I click on ethernet the button doenst even select. Now this Slitaz computer only has a Cisco Wireless card in it which is configured but no ethernet port. Shouldnt it still work? Can you please verify if the Ethernet option works for you?

Offline

#35 2022-06-03 15:27:54

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

On the pc I have eth, and it works for me. With just a wireless lan, I don't know....

Try to check that it is not a permissions problem. Run it as root then see.

root@slitaz:/home/tux#

/usr/lib/ADTPro-v.r.m/adtpro.sh

Offline

#36 2022-06-03 16:09:34

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

It doesnt work as root either. here is the text output of when I try that.

Offline

#37 2022-06-03 19:04:52

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

java.net.UnknownHostException: slitazCPX: slitazCPX: Name or service not known

UnknownHostException indicates that the IP address of a hostname could not be determined

It sounds like a hostname problem, but I don't know how to help you....

Offline

#38 2022-06-03 22:29:41

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Well thats at least something. SlitazCPX shows up under my Iptables and as I mentioned the units wireless is working. I think the issues is in the software. Are there any java packages needed for ethernet/wireless that I could be missing?

Offline

#39 2022-06-04 19:48:46

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

Unfortunately, I know almost nothing about ADTpro. According to its instructions you can start it from the command line in several ways:

/usr/lib/ADTPro-v.r.m/adtpro.sh localhost

I get "ADTPro SIP Port1977, Host localhost."

/usr/lib/ADTPro-v.r.m/adtpro.sh ethernet

I get "ADTPro connected to IP 127.0.0.1"

and the full list of options is written in adtpro.sh

"usage: adtpro.sh [ headless ] [ serial | ethernet | audio | localhost ]"

The official guide should be this:

https://adtpro.com/configethernet.html#:~:text=ADTPro%20Ethernet%20Connections%20Connecting%20your%20Apple%20to%20your,need%20to%20set%20ADTPro%27s%20IP%20parameters%20%28details%20below%29.

But the "G" option is unknown to me.

More I don't know...

Offline

#40 2022-06-04 20:58:50

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

The G option is what you can use on the client to set viarables(the software pacage I am trying to run under slitaz is the Host).

But the Client software is useless If I cannot connect to a host. And since I cannot select the ethernet option the host wont initialize under ethernet mode.

Offline

#41 2022-06-11 15:11:39

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

gibor I reached out to the software developer. The issue I am having must be Java. I added ethernet to my slitaz machine and still no go on the ethernet option. IT wont select it. You said yours will select it correct?

Offline

#42 2022-06-12 07:04:39

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

You'll have to excuse me, but java has always been indigestible to me in all its forms (android dixit). anyway to try out the interfaces you should follow this guide: https://www.admfactory.com/how-to-get-network-interfaces-in-java/

I get this

tux@slitaz:~$ java network.java

List all network interfaces example

Net interface: wlan0 - wlan0

IP address: /XXX.XXX.XXX.XXX

Net interface: eth0 - eth0

IP address: /192.168.1.9

Net interface: lo - lo

IP address: /0:0:0:0:0:0:1%lo

IP address: /127.0.0.1

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.026 seconds, 8 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]