LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Java (https://www.linuxquestions.org/questions/linux-newbie-8/java-4175511940/)

jaws 07-22-2014 11:59 AM

Java
 
Howdy :hattip: I am trying to run a .jnlp file under a newly installed Debian, I have scoured the search engines trying to find a solution to make ends meet.

I tried to install icedtea-netx but it was already installed.
Code:

root@localhost:/tmp# javaws 6G0GAmZGkkY.jnlp
/usr/bin/javaws: line 93: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java: No such file or directory

These are the instructions I have followed thus far.
http://d.stavrovski.net/blog/post/in...eezy-or-ubuntu

This is the code I have given my terminal emulator, it differs very slightly from the instructions I was following.
Code:

root@localhost:/home/god# wget --no-cookies \
> --no-check-certificate \
> --header "Cookie: oraclelicense=accept-securebackup-cookie" \
> "http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz" \
> -O /tmp/jdk-8-linux-x64.tar.gz
--2014-07-23 01:58:43--  http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 202.7.177.80, 202.7.177.65
Connecting to download.oracle.com (download.oracle.com)|202.7.177.80|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz [following]
--2014-07-23 01:58:43--  https://edelivery.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.49.230.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.49.230.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz?AuthParam=1406044846_33e94fe87d609303fa4d3f92b1382327 [following]
--2014-07-23 01:58:46--  http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz?AuthParam=1406044846_33e94fe87d609303fa4d3f92b1382327
Connecting to download.oracle.com (download.oracle.com)|202.7.177.80|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 159019376 (152M) [application/x-gzip]
Saving to: `/tmp/jdk-8-linux-x64.tar.gz'

100%[===========================>] 159,019,376  454K/s  in 4m 21s 

2014-07-23 02:03:07 (595 KB/s) - `/tmp/jdk-8-linux-x64.tar.gz' saved [159019376/159019376]

root@localhost:/home/god# mkdir /opt/java-oracle
root@localhost:/home/god# tar -zxf /tmp/jdk-8-linux-x64.tar.gz -C /opt/java-oracle
root@localhost:/home/god# JHome=/opt/java-oracle/jdk1.8.0_11
root@localhost:/home/god# update-alternatives --install /usr/bin/java java ${JHome%*/}/bin/java 20000
update-alternatives: using /opt/java-oracle/jdk1.8.0_11/bin/java to provide /usr/bin/java (java) in auto mode
root@localhost:/home/god# update-alternatives --install /usr/bin/javac javac ${JHome%*/}/bin/javac 20000
update-alternatives: using /opt/java-oracle/jdk1.8.0_11/bin/javac to provide /usr/bin/javac (javac) in auto mode
root@localhost:/home/god# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority  Status
------------------------------------------------------------
* 0            /opt/java-oracle/jdk1.8.0_11/bin/java            20000    auto mode
  1            /opt/java-oracle/jdk1.8.0_11/bin/java            20000    manual mode
  2            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java  1061      manual mode

Press enter to keep the current choice[*], or type selection number: 0
root@localhost:/home/god# java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
root@localhost:/home/god# test ! -d /usr/lib/firefox-addons/plugins && mkdir -p /usr/lib/firefox-addons/plugins
root@localhost:/home/god# ln -sf /opt/java-oracle/jdk1.8.0_11/jre/lib/amd64/libnpjp2.so /usr/lib/firefox-addons/plugins/libnpjp2.so

:confused: But I still cannot run a .jnlp file.
Code:

root@localhost:/tmp# javaws 6G0GAmZGkkY.jnlp
/usr/bin/javaws: line 93: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java: No such file or directory

When I right click to "Open With IcedTea Java Web Start" nothing happens.

And verifying it at java.com/en/download/installed.jsp
Quote:

Verify Java Version

We are unable to verify if Java is currently installed and enabled in your browser.

If you have installed Java and there is an error with the verification, there could be a configuration issue (eg. browser, Java control panel, security settings). Try restarting your browser before trying to verify the installation again.
I have rebooted and nothing has changed. :banghead:

ondoho 07-23-2014 06:24 PM

i'm not sure about your manual-install-fu, but does this file:
"/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java"
actually exist?

jaws 07-24-2014 04:48 PM

Nope, but I don't know what that means anyway.


All times are GMT -5. The time now is 03:05 PM.