Eclipse installation problem with crypto mechanism










0















I had an error about policy cryptographic mechanism during compile with Eclipse 2018-09 on Ubuntu 18.04.



I found some solution on the internet but none of them worked.



I decided to delete the JVM directory and Eclipse and reinstalling JDK 11 and Eclipse. I have no problem with JDK, I have a problem with Eclipse installer due to the same error, it only runs directly with an Eclipse package, but I have a crypto mechanism when I compile.



My code:



package fr.wildcodeschool.idetest;

import java.io.IOException;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;

public class Start

public static void main(String args) throws IOException
System.out.println(ProcessHandle.current().pid());

JFrame jf = new JFrame("Gotcha!");
jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jf.add(new JLabel(new ImageIcon(new URL("https://i.imgur.com/ZGv8Usc.png"))));
jf.pack();
jf.setVisible(true);






Compiling errors:



Exception in thread "Image Fetcher 0" java.lang.ExceptionInInitializerError
at java.base/javax.crypto.KeyGenerator.nextSpi(KeyGenerator.java:363)
at java.base/javax.crypto.KeyGenerator.<init>(KeyGenerator.java:176)
at java.base/javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:244)
at java.base/sun.security.ssl.JsseJce.getKeyGenerator(JsseJce.java:228)
at java.base/sun.security.ssl.SSLConfiguration.<clinit>(SSLConfiguration.java:109)
at java.base/sun.security.ssl.ProtocolVersion.<clinit>(ProtocolVersion.java:42)
at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:559)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123)
at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335)
at java.base/javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:95)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.base/java.net.URL.openConnection(URL.java:1051)
at java.desktop/sun.awt.image.URLImageSource.getConnection(URLImageSource.java:101)
at java.desktop/sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
at java.desktop/sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:263)
at java.desktop/sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:212)
at java.desktop/sun.awt.image.ImageFetcher.run(ImageFetcher.java:176)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:120)
... 27 more
Caused by: java.lang.SecurityException: Couldn't parse jurisdiction policy files in: unlimited
at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:357)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:111)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:108)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:107)
... 27 more


Can you help me, please?










share|improve this question
























  • hum yes 2018-09 sorry !

    – Math73100
    Nov 14 '18 at 9:53















0















I had an error about policy cryptographic mechanism during compile with Eclipse 2018-09 on Ubuntu 18.04.



I found some solution on the internet but none of them worked.



I decided to delete the JVM directory and Eclipse and reinstalling JDK 11 and Eclipse. I have no problem with JDK, I have a problem with Eclipse installer due to the same error, it only runs directly with an Eclipse package, but I have a crypto mechanism when I compile.



My code:



package fr.wildcodeschool.idetest;

import java.io.IOException;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;

public class Start

public static void main(String args) throws IOException
System.out.println(ProcessHandle.current().pid());

JFrame jf = new JFrame("Gotcha!");
jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jf.add(new JLabel(new ImageIcon(new URL("https://i.imgur.com/ZGv8Usc.png"))));
jf.pack();
jf.setVisible(true);






Compiling errors:



Exception in thread "Image Fetcher 0" java.lang.ExceptionInInitializerError
at java.base/javax.crypto.KeyGenerator.nextSpi(KeyGenerator.java:363)
at java.base/javax.crypto.KeyGenerator.<init>(KeyGenerator.java:176)
at java.base/javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:244)
at java.base/sun.security.ssl.JsseJce.getKeyGenerator(JsseJce.java:228)
at java.base/sun.security.ssl.SSLConfiguration.<clinit>(SSLConfiguration.java:109)
at java.base/sun.security.ssl.ProtocolVersion.<clinit>(ProtocolVersion.java:42)
at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:559)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123)
at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335)
at java.base/javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:95)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.base/java.net.URL.openConnection(URL.java:1051)
at java.desktop/sun.awt.image.URLImageSource.getConnection(URLImageSource.java:101)
at java.desktop/sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
at java.desktop/sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:263)
at java.desktop/sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:212)
at java.desktop/sun.awt.image.ImageFetcher.run(ImageFetcher.java:176)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:120)
... 27 more
Caused by: java.lang.SecurityException: Couldn't parse jurisdiction policy files in: unlimited
at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:357)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:111)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:108)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:107)
... 27 more


Can you help me, please?










share|improve this question
























  • hum yes 2018-09 sorry !

    – Math73100
    Nov 14 '18 at 9:53













0












0








0








I had an error about policy cryptographic mechanism during compile with Eclipse 2018-09 on Ubuntu 18.04.



I found some solution on the internet but none of them worked.



I decided to delete the JVM directory and Eclipse and reinstalling JDK 11 and Eclipse. I have no problem with JDK, I have a problem with Eclipse installer due to the same error, it only runs directly with an Eclipse package, but I have a crypto mechanism when I compile.



My code:



package fr.wildcodeschool.idetest;

import java.io.IOException;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;

public class Start

public static void main(String args) throws IOException
System.out.println(ProcessHandle.current().pid());

JFrame jf = new JFrame("Gotcha!");
jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jf.add(new JLabel(new ImageIcon(new URL("https://i.imgur.com/ZGv8Usc.png"))));
jf.pack();
jf.setVisible(true);






Compiling errors:



Exception in thread "Image Fetcher 0" java.lang.ExceptionInInitializerError
at java.base/javax.crypto.KeyGenerator.nextSpi(KeyGenerator.java:363)
at java.base/javax.crypto.KeyGenerator.<init>(KeyGenerator.java:176)
at java.base/javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:244)
at java.base/sun.security.ssl.JsseJce.getKeyGenerator(JsseJce.java:228)
at java.base/sun.security.ssl.SSLConfiguration.<clinit>(SSLConfiguration.java:109)
at java.base/sun.security.ssl.ProtocolVersion.<clinit>(ProtocolVersion.java:42)
at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:559)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123)
at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335)
at java.base/javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:95)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.base/java.net.URL.openConnection(URL.java:1051)
at java.desktop/sun.awt.image.URLImageSource.getConnection(URLImageSource.java:101)
at java.desktop/sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
at java.desktop/sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:263)
at java.desktop/sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:212)
at java.desktop/sun.awt.image.ImageFetcher.run(ImageFetcher.java:176)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:120)
... 27 more
Caused by: java.lang.SecurityException: Couldn't parse jurisdiction policy files in: unlimited
at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:357)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:111)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:108)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:107)
... 27 more


Can you help me, please?










share|improve this question
















I had an error about policy cryptographic mechanism during compile with Eclipse 2018-09 on Ubuntu 18.04.



I found some solution on the internet but none of them worked.



I decided to delete the JVM directory and Eclipse and reinstalling JDK 11 and Eclipse. I have no problem with JDK, I have a problem with Eclipse installer due to the same error, it only runs directly with an Eclipse package, but I have a crypto mechanism when I compile.



My code:



package fr.wildcodeschool.idetest;

import java.io.IOException;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;

public class Start

public static void main(String args) throws IOException
System.out.println(ProcessHandle.current().pid());

JFrame jf = new JFrame("Gotcha!");
jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jf.add(new JLabel(new ImageIcon(new URL("https://i.imgur.com/ZGv8Usc.png"))));
jf.pack();
jf.setVisible(true);






Compiling errors:



Exception in thread "Image Fetcher 0" java.lang.ExceptionInInitializerError
at java.base/javax.crypto.KeyGenerator.nextSpi(KeyGenerator.java:363)
at java.base/javax.crypto.KeyGenerator.<init>(KeyGenerator.java:176)
at java.base/javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:244)
at java.base/sun.security.ssl.JsseJce.getKeyGenerator(JsseJce.java:228)
at java.base/sun.security.ssl.SSLConfiguration.<clinit>(SSLConfiguration.java:109)
at java.base/sun.security.ssl.ProtocolVersion.<clinit>(ProtocolVersion.java:42)
at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:559)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123)
at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335)
at java.base/javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:95)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.base/java.net.URL.openConnection(URL.java:1051)
at java.desktop/sun.awt.image.URLImageSource.getConnection(URLImageSource.java:101)
at java.desktop/sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
at java.desktop/sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:263)
at java.desktop/sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:212)
at java.desktop/sun.awt.image.ImageFetcher.run(ImageFetcher.java:176)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:120)
... 27 more
Caused by: java.lang.SecurityException: Couldn't parse jurisdiction policy files in: unlimited
at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:357)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:111)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:108)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:107)
... 27 more


Can you help me, please?







java eclipse ubuntu-18.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 9:53







Math73100

















asked Nov 14 '18 at 7:55









Math73100Math73100

12




12












  • hum yes 2018-09 sorry !

    – Math73100
    Nov 14 '18 at 9:53

















  • hum yes 2018-09 sorry !

    – Math73100
    Nov 14 '18 at 9:53
















hum yes 2018-09 sorry !

– Math73100
Nov 14 '18 at 9:53





hum yes 2018-09 sorry !

– Math73100
Nov 14 '18 at 9:53












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295370%2feclipse-installation-problem-with-crypto-mechanism%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295370%2feclipse-installation-problem-with-crypto-mechanism%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3

Museum of Modern and Contemporary Art of Trento and Rovereto