Skip to main content
13 events
when toggle format what by license comment
Jun 29, 2016 at 18:52 comment added Michael D Sure, glad to hear you got it working.
Jun 29, 2016 at 16:41 comment added Fauzan I completely removed java and installed openjdk 9. Now it points to /etc/alternatives/java, before it was pointing to some other location (I don't remember). And the program runs fine. Thanks a lot @Michael for your help!
Jun 29, 2016 at 16:38 vote accept Fauzan
Jun 29, 2016 at 15:32 comment added Michael D What do you get for which java? If /usr/bin/java what does it point to?
Jun 29, 2016 at 12:46 comment added Fauzan On running $ locate libjli.so, I get: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jli/libjli.so. Added the path to LD_LIBRARY_PATH. sudo ldconfig. Now when I try to run again, Error: could not find libjava.so and Error: Could not find Java SE Runtime Environment.. So I also added the location of file mentioned in the first error message to LD.... Still getting the two error messages. But libjli.so seems to have bee found.
Jun 29, 2016 at 11:08 comment added Michael D Do you see libjli.so in /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/../lib/amd64/jli/tls/x86_64/libjli.so? If not put it there, or set LD_LIBRARY_PATH to include where libjli.so is.
Jun 29, 2016 at 10:36 comment added Fauzan No luck, it is still throwing up the same error when I try to run.
Jun 29, 2016 at 10:10 comment added Michael D I still think it is a link problem. Try this rm -rf /usr/bin/java and ln -s /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java /usr/bin/java. Next time while posting comments, please format it accordingly. It's difficult to read the sys output on your previous comment.
Jun 29, 2016 at 8:40 comment added Fauzan On pastebin: pastebin.com/sythD16e
Jun 29, 2016 at 8:31 comment added Fauzan It is too long, more than 200k characters, cant post here.
Jun 28, 2016 at 17:04 comment added Michael D Can you please post the output of strace -f java -version?
Jun 28, 2016 at 15:59 comment added Fauzan After running the second command, I am getting: There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing to configure. update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java because link group java is broken And still the same error when trying to run arduino
Jun 28, 2016 at 14:31 history answered Michael D CC BY-SA 3.0