[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#849511: marked as done (general: java and javac can't run , it said "java: error while loading shared libraries: libjli.so", )



Your message dated Fri, 27 Jan 2017 15:03:47 +0000
with message-id <20170127150347.GA13837@chew.redmars.org>
and subject line Re: Bug#849511: Fwd: Bug#849511: general: java and javac can't run , it said "java: error while loading shared libraries: libjli.so",
has caused the Debian Bug report #849511,
regarding general: java and javac can't run , it said "java: error while loading shared libraries: libjli.so", 
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
849511: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849511
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: general
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***



-- System Information:
Debian Release: 8.6
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=zh_HK.UTF-8, LC_CTYPE=zh_HK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
> katcom@Bluish:~$ java
> java: error while loading shared libraries: libjli.so: cannot open
> shared object file: No such file or directory

Same result with /usr/lib/jvm/jdk8/bin/java ?

> This is my ~./bashrc
> ....
> #java configure
> export JAVA_HOME=/usr/lib/jvm/jdk8
> export JRE_HOME=${JAVA_HOME}/jre
> export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
> export PATH=${JAVA_HOME}/bin:$PATH

I think you probably need to include something like

    export LD_LIBRARY_PATH=/usr/lib/jvm/jdk8/lib

Or similar; the missing library libjli.so is probably somewhere under
/usr/lib/jvm/jdk8, and you need to include that in your LD_LIBRARY_PATH.

Within Debian, libjli.so is provided by the various OpenJDK packages,
but you probably do not want to mix those with the Oracle JDK.

I am not an expert on Oracle JDK, I have not got it installed nor have
I attempted the above myself; this is intended to try and be a helpful
hint or clue as to what to try next. I probably can't help you any
further.

I'm marking this bug closed because it is not a bug in Debian.


-- 
Jonathan Dowland

--- End Message ---

Reply to: