LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2014, 12:59 PM   #1
jaws
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Rep: Reputation: Disabled
Question Java


Howdy 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
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.
 
Old 07-23-2014, 07:24 PM   #2
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837
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?
 
Old 07-24-2014, 05:48 PM   #3
jaws
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Nope, but I don't know what that means anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mountain Lion (OS X 10.8) Java Update: Unable to Access Java Settings and Preferences rm_-rf_windows Other *NIX 2 01-03-2013 10:34 AM
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 11:04 AM
java: java.util.Hashmap doesn't work for a custom object kpachopoulos Programming 2 04-15-2007 04:25 PM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 11:21 PM


All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration