LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2021, 11:03 PM   #1
troysie
LQ Newbie
 
Registered: Oct 2020
Posts: 12

Rep: Reputation: Disabled
Java web start


Please could you tell me how to solve this java error. Do I need to download additional software




Code:
estelle@estelle-H81M-S2H:~/Documents$ javaws qs.jnlp
selected jre: /usr/lib/jvm/java-16-oracle
WARNING: package sun.applet not in java.desktop
WARNING: package com.sun.net.ssl.internal.ssl not in java.base
WARNING: package javax.jnlp not in java.desktop
Exception in thread "main" java.lang.NoClassDefFoundError: sun/awt/AWTSecurityManager
	at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:261)
	at net.sourceforge.jnlp.runtime.Boot.init(Boot.java:349)
	at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:58)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:270)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:210)
Regards Troysie
 
Old 07-28-2021, 02:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,803

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
sun/awt/AWTSecurityManager has been removed, so either you need to use an older java version or a newer software.
(actually I have no idea what is it all about, dropping in an error message is insufficient).
 
Old 07-28-2021, 08:07 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

Does "qs.jnlp" refer to "QuoteStream" - the commercial software you were trying to run nine months ago?

https://www.linuxquestions.org/questions/linux-software-2/launching-quotestream-on-linux-mint-ulyana-4175683740

 
Old 07-29-2021, 05:53 AM   #4
troysie
LQ Newbie
 
Registered: Oct 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
The same quotestream and still trying. I am trying to get away from windows, quotestream is the only program I cannot get to run on linux. When I get it to work I am windows free
 
Old 07-29-2021, 06:58 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

Then you first need to pay attention to the published requirements:
Quote:
Originally Posted by https://www.quotestream.com/download/
Java SE8 Update 172 to Java 10 (current version)
Note: Web Start is unsupported in Java 11
Since Java 11 and above are unsupported, the latest release of Java 8 LTS is the one to try.
Also, since they use Java Web Start it needs to be the Oracle version - the requirements links you to the relevant download page.

If that still doesn't work you need to talk to QuoteMedia - the company you paid for the software!

If they refuse to help, you can try running the Windows Desktop version in Wine, or (if there's no other software that does what you want) put up with Windows in a VM.

 
1 members found this post helpful.
Old 07-30-2021, 05:11 AM   #6
troysie
LQ Newbie
 
Registered: Oct 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
I have got java 8 on my system and have selected it from alternatives. I have run
Quote:
java -version
which shows me java 8 is selected. when I run
Quote:
javaws qs jnlp
it still selects java 16. How do I make it select java 8
 
Old 07-30-2021, 10:06 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

Hrm... guessing that's could be JAVA_HOME or path related.

Can you provide the outputs for each of the following commands:
Code:
pwd
which --all java
which --all javaws
env | egrep 'JAVA|JDK|JRE'
echo "$PATH" | tr ':' '\n' | egrep -i 'java|jdk|jre|oracle'
(Using [code]...[/code] rather than [quote]...[/quote] will preserve formatting.)

 
Old 07-31-2021, 02:56 AM   #8
troysie
LQ Newbie
 
Registered: Oct 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
java web start

Thanks for your reply, here are my results.
Code:
estelle@estelle-H81M-S2H:~$ pwd
/home/estelle
estelle@estelle-H81M-S2H:~$ which --all java
Illegal option --
Usage: /usr/bin/which [-a] args
estelle@estelle-H81M-S2H:~$ which --all javaws
Illegal option --
Usage: /usr/bin/which [-a] args
estelle@estelle-H81M-S2H:~$ env | egrep 'JAVA|JDK|JRE'
JAVA_HOME=/usr/lib/jvm/java-16-oracle
estelle@estelle-H81M-S2H:~$ echo "$PATH" | tr ':' '\n' | egrep -i 'java|jdk|jre|oracle'
 
Old 07-31-2021, 08:20 AM   #9
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

Yep, that JAVA_HOME value is probably causing the issue.

To change the value for just one command, you can prefix it to the command, like so:
Code:
JAVA_HOME=/path/to/java8/java javaws qs.jnlp
To confirm the path to use, run "which -a java" (instead of "which --all java", because you've got a non-GNU version of which on your system).

 
Old 07-31-2021, 11:39 AM   #10
troysie
LQ Newbie
 
Registered: Oct 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
java web start

Code:
estelle@estelle-H81M-S2H:~$ which -a java
/usr/bin/java
/usr/lib/jvm/java-16-oracle/bin/java
estelle@estelle-H81M-S2H:~$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
estelle@estelle-H81M-S2H:~$ sudo update-alternatives --config java
[sudo] password for estelle:         
There are 4 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-16-oracle/bin/java             1091      manual mode
* 3            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  4            /usr/lib/jvm/open-jdk-11/bin/java                1         manual mode

Press <enter> to keep the current choice[*], or type selection number: 
estelle@estelle-H81M-S2H:~$ cd Downloads
estelle@estelle-H81M-S2H:~/Downloads$ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java javaws qs.jnlp
selected jre: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
thread 'main' panicked at 'Error spawning JVM process, java executable: [/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java], arguments: [["-splash:/usr/share/icedtea-web/javaws_splash.png", "-Xbootclasspath/a:/usr/share/icedtea-web/javaws.jar:/usr/share/java/js.jar:/usr/share/java/tagsoup.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java/lib/ext/nashorn.jar:", "-classpath", "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java/lib/ext/jfxrt.jar:", "-Dicedtea-web.bin.name=javaws", "-Dicedtea-web.bin.location=/usr/lib/icedtea-web/bin/javaws", "net.sourceforge.jnlp.runtime.Boot", "qs.jnlp"]]', src/os_access.rs:36:19
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Have I used the correct path and should I have cd Downloads where qs.jnlp is located
 
Old 01-18-2022, 06:15 PM   #11
cla
LQ Newbie
 
Registered: Jan 2022
Posts: 1

Rep: Reputation: 0
Hi Troysie
to solve your problem install icedtea-netx

Code:
 sudo apt-get install icedtea-netx
after run

Code:
javaws qs.jnlp
where is the qs.jnlp

After Java start IcedTes ad then Quotestream start, but same time have a problem when load the VM

Ciao
 
  


Reply

Tags
java



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
Rant: Java java java..... Jeebizz General 28 01-29-2009 02:23 PM
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 06:30 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM
SUSE 9.0- suse help & java web start- take 3mins "before" they start to load Bodkin Linux - Distributions 3 11-16-2003 09:23 AM
java java oh java chingasman Linux - General 2 02-20-2003 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 AM.

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
Open Source Consulting | Domain Registration