Skip to content

Java bundled with Arduino 1.8.9 broken on Ubuntu 18.04.2 LTS due to missing libjli #8993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
luigicalligaris opened this issue Jun 18, 2019 · 5 comments
Labels
Type: Bug Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug

Comments

@luigicalligaris
Copy link

When running the Arduino IDE 1.8.9 on one of my machines (Kubuntu 18.04.2 LTS), the bundled java interpreter throws a linker error, failing to find libjli.so

$ ./arduino-1.8.9/arduino
/home/user/opt/arduino-1.8.9/java/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

This behaviour is not observed with the previous version 1.8.8, which starts up correctly.

$ ./arduino-1.8.8/arduino
Picked up JAVA_TOOL_OPTIONS:

This previous version bundles libjli, while 1.8.9 seems to be lacking this library. The library sits at:

./java/lib/amd64/jli/libjli.so

I downloaded 1.8.9 from the official site as a tgz archive for Linux amd64 machines.

@facchinm
Copy link
Member

Hi @luigicalligaris ,
I just tested 1.8.9 on a fresh Ubuntu 18.04.2 installation and the IDE starts well.
I think something may have failed when you untarred the 1.8.9 package. Whould you mind removing the folder and trying again? Thanks!

@facchinm facchinm added the Waiting for feedback More information must be provided before we can proceed label Jun 19, 2019
@luigicalligaris
Copy link
Author

Hi Martino @facchinm, I re-downloaded the archive from the site, untarred again and it appears that this archive had more files in it. Weird, I don't recall seeing errors related to a premature end of the tar archive. Now the library is there, and it works.

@per1234 per1234 added Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug and removed Waiting for feedback More information must be provided before we can proceed labels Jun 19, 2019
@PanderMusubi
Copy link

@per1234
Copy link
Collaborator

per1234 commented Jul 14, 2019

@PanderMusubi the bug report you linked is about the version of the Arduino IDE in the Ubuntu package repository not being able to be updated past Arduino IDE 1.0.5 due to licensing problems with the IDE source code (#2703). I don't see how that's in any way relevant to this issue.

@PanderMusubi
Copy link

Was more that that issue also is also related to Ubuntu and Java, not specifically only the license issue and version update. As there are not that many people able to help with the packaging of Arduino for Ubuntu, I mentioned it here in the hope to find some more help, nothing more than that. Sorry if it caused some confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

No branches or pull requests

4 participants