LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-05-2021, 07:57 AM   #1
bigfuzzydog
LQ Newbie
 
Registered: Aug 2016
Posts: 20

Rep: Reputation: Disabled
Java JNLP won't run on Debian - "Cannot grant permissions to unsigned jars"


I realize you don't want to run random unsigned code from random places on the internet, but this seems pretty reputable - it's the ROES (internet upload utility) for ProDPI, who are a pretty well-known photo lab.

When I try to run it, I get "Fatal: Initialization Error: Could not initialize application"

For details, I get:

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.
at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:813)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:532)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:936)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.
at net.sourceforge.jnlp.runtime.JNLPClassLoader$SecurityDelegateImpl.getClassLoaderSecurity(JNLPClassLo ader.java:2393)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:321)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:734)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:805)
... 2 more

Of all that, I'm guessing the salient part is:

Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.

I've seen ways to turn that protection off, but is there a way to fix the situation without doing that? I updated everything with apt-get update yesterday, but it did not help.

Thanks in advance!
 
Old 10-05-2021, 08:37 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
So you a did a web search for that error and found something like this.
If you are not prepared to downgrade your java security, then you need the other end to upgrade their security.
 
Old 10-05-2021, 09:02 AM   #3
bigfuzzydog
LQ Newbie
 
Registered: Aug 2016
Posts: 20

Original Poster
Rep: Reputation: Disabled
That's exactly the page I found.

Glad to know that I wasn't missing something glaringly obvious =)

So I made the recommended change, but it still fails. Now it gives me this:

"Fatal: Launch Error: Could not launch JNLP file."

Details:
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:580)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:936)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:574)
... 1 more
Caused by: java.lang.NoClassDefFoundError: javafx/application/Platform
at com.softworks.roes.app.ROESApp.<init>(Unknown Source)
at com.softworks.roes.app.ROESApp.main(Unknown Source)
... 6 more
Caused by: java.lang.ClassNotFoundException: javafx.application.Platform
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1562)
... 8 more
 
Old 10-05-2021, 05:43 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by bigfuzzydog View Post

"Fatal: Launch Error: Could not launch JNLP file."

Details:
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
Both your posts show the same error.

There appears to be some initialization step that has been skipped. Do a little more research on how to setup and start that app and follow all the steps. Once properly initialized it should start.

Even within the error message it gives you steps to follow.
 
  


Reply



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
Oracle Java 7 installed, but I can't run any "jnlp" files (apps) vvladimir Linux - Software 0 04-21-2014 12:45 PM
[SOLVED] C - printf with %d for unsigned char vs unsigned int average_user Programming 10 09-05-2013 01:45 PM
unsigned long int uint32_t to unsigned char and back MicahCarrick Programming 2 08-02-2009 01:39 AM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM
convert unsigned char * to unsigned long int linux_lover2005 Programming 3 04-26-2005 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 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