LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Difficulty installing Eclipse. Can not initialize cryptographic mechanism (https://www.linuxquestions.org/questions/linux-software-2/difficulty-installing-eclipse-can-not-initialize-cryptographic-mechanism-4175596936/)

Dr.Lightning 01-06-2017 03:05 PM

Difficulty installing Eclipse. Can not initialize cryptographic mechanism
 
I'm really grasping at straws here due to my limited admin knowledge. I'm trying to install Eclipse. I end up with "eclipse-inst" giving me an "Internal error" "Can not initialize cryptographic mechanism". Here's how I got to this point.

1) Cloned a rather young Ubuntu guest (VirtualBox, Win10 host) to a new VM
2) Followed advice at http://www.howtogeek.com/191427/how-...to-install-it/ to install Java, but it failed. So I ended up doing "sudo apt-get install openjdk-9-jre-headless" instead of "-6-".
3) Followed advice at http://ubuntuhandbook.org/index.php/...u-16-04-15-10/ and so downloaded eclipse from https://www.eclipse.org/downloads/do...&mirror_id=454 which should be 64-bit linux version.
4) Extracted the tar.gz and found executable "eclipse-inst".
5) Double-clicked "eclipse-inst" to run it and got the error message mentioned previously.
6) Tried "sudo ./eclipse-inst" from terminal, but that didn't help.
7) Thought about java versions so did "sudo apt-get install openjdk-8-jre-headless" by simply overtyping "-8-" on "-9-". Didn't help

So now I have no clue how to get past the problem. Please help. Surely I've simply hosed something somewhere by doing the wrong thing along the way...

Details for the error:
java.lang.ExceptionInInitializerError
at javax.crypto.JceSecurityManager.<clinit>(java.base@9-Ubuntu/JceSecurityManager.java:65)
at javax.crypto.Cipher.getConfiguredPermission(java.base@9-Ubuntu/Cipher.java:2595)
at javax.crypto.Cipher.getMaxAllowedKeyLength(java.base@9-Ubuntu/Cipher.java:2619)
at sun.security.ssl.CipherSuite$BulkCipher.isUnlimited(java.base@9-Ubuntu/CipherSuite.java:602)
at sun.security.ssl.CipherSuite$BulkCipher.<init>(java.base@9-Ubuntu/CipherSuite.java:574)
at sun.security.ssl.CipherSuite$BulkCipher.<clinit>(java.base@9-Ubuntu/CipherSuite.java:460)
at sun.security.ssl.CipherSuite.<clinit>(java.base@9-Ubuntu/CipherSuite.java:1074)
at sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuiteList(java.base@9-Ubuntu/SSLContextImpl.java:353)
at sun.security.ssl.SSLContextImpl.access$100(java.base@9-Ubuntu/SSLContextImpl.java:41)
at sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(java.base@9-Ubuntu/SSLContextImpl.java:582)
at java.lang.Class.forName0(java.base@9-Ubuntu/Native Method)
at java.lang.Class.forName(java.base@9-Ubuntu/Class.java:291)
at java.security.Provider$Service.getImplClass(java.base@9-Ubuntu/Provider.java:1844)
at java.security.Provider$Service.newInstance(java.base@9-Ubuntu/Provider.java:1820)
at sun.security.jca.GetInstance.getInstance(java.base@9-Ubuntu/GetInstance.java:236)
at sun.security.jca.GetInstance.getInstance(java.base@9-Ubuntu/GetInstance.java:164)
at javax.net.ssl.SSLContext.getInstance(java.base@9-Ubuntu/SSLContext.java:166)
at org.apache.http.conn.ssl.SSLContexts.createSystemDefault(SSLContexts.java:75)
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransferFactory.newInstance( HttpClientRetrieveFileTransferFactory.java:27)
at org.eclipse.ecf.internal.provider.filetransfer.Activator.getFileTransfer(Activator.java:608)
at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(Mult iProtocolRetrieveAdapter.java:92)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnec tionRequest(ECFURIHandlerImpl.java:1640)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandler Impl.java:1391)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.jav a:302)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConver terImpl.java:360)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1269)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.handleArchiveRedirection(SetupCoreUtil.java :548)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:347 )
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:173 )
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(SetupCoreUtil.java:167)
at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(SetupWizard.java:164)
at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(SetupWizard.java:156)
at org.eclipse.oomph.setup.internal.installer.Installer.<init>(Installer.java:40)
at org.eclipse.oomph.setup.internal.installer.InstallerApplication.run(InstallerApplication.java:213)
at org.eclipse.oomph.setup.internal.installer.InstallerApplication.start(InstallerApplication.java:341)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at javax.crypto.JceSecurity.<clinit>(java.base@9-Ubuntu/JceSecurity.java:91)
... 48 more
Caused by: java.lang.NullPointerException
at sun.nio.fs.UnixPath.normalizeAndCheck(java.base@9-Ubuntu/UnixPath.java:75)
at sun.nio.fs.UnixPath.<init>(java.base@9-Ubuntu/UnixPath.java:69)
at sun.nio.fs.UnixFileSystem.getPath(java.base@9-Ubuntu/UnixFileSystem.java:280)
at java.nio.file.Paths.get(java.base@9-Ubuntu/Paths.java:84)
at javax.crypto.JceSecurity.setupJurisdictionPolicies(java.base@9-Ubuntu/JceSecurity.java:254)
at javax.crypto.JceSecurity.access$000(java.base@9-Ubuntu/JceSecurity.java:49)
at javax.crypto.JceSecurity$1.run(java.base@9-Ubuntu/JceSecurity.java:82)
at javax.crypto.JceSecurity$1.run(java.base@9-Ubuntu/JceSecurity.java:79)
at java.security.AccessController.doPrivileged(java.base@9-Ubuntu/Native Method)
at javax.crypto.JceSecurity.<clinit>(java.base@9-Ubuntu/JceSecurity.java:78)
... 48 more

kaz2100 01-08-2017 03:30 AM

Hya

I am not a Ubuntu user, but as a Debian user, I installed eclipse not long ago without trouble.
I am not positive, but am pretty sure that ubuntu has eclipse repo.

cheers

beachboy2 01-08-2017 07:02 AM

Dr.Lightning,

HowTo from UbuntuHandbook:

http://ubuntuhandbook.org/index.php/...u-16-04-15-10/

Dr.Lightning 01-09-2017 05:29 AM

Oh, I see my problem. I'm using Ubuntu in a VM on a Win10 host. I used the same (but older) instructions as linked by beachboy2. My problem, however, is that I browsed to the eclipse download using my Win10 host, then cut and paste into the Ubuntu VM. I ended up downloading a windows version rather than a linux version.

I re-created my young VM from scratch, and the following worked. Here are my noes:

1) Install Eclipse per http://ubuntuhandbook.org/index.php/...u-16-04-15-10/
A) "java -version" shows not found, therefore definitely do not have java installed already.
B) Install Oracle Java 8 per http://ubuntuhandbook.org/index.php/...-ubuntu-14-04/
i) sudo add-apt-repository ppa:webupd8team/java
ii) sudo apt-get update
iii) sudo apt-get install oracle-java8-installer
iv) sudo apt-get install oracle-java8-set-default (((didn't do much)))
v) java -version (((Shows java version 1.8.0_111, SE runtime build 1.8.0_111-b14, Hotspot build 25.111-b14)))
C) From http://www.eclipse.org/downloads/ do *NOT* click download ad near top. Find "Get Eclipse Neon" and click its download
i) This leads to https://www.eclipse.org/downloads/do...linux64.tar.gz where clock to download eclipse-inst-linux64.tar.gz. SAVE file.
ii) Show download progress in Firefox by clicking bar icon in top right corner of browser, to the right of address bar.
iii) From Files browser, locate Downloads, right click on eclipse-inst-linux64.tar.gz and Extract Here. Then show the files insde.
iv) Go in folder eclipse-installer and double click "eclipse-inst" program.
v) Choose "Eclipse IDE for C/C++ Developers" and install. DO NOT LAUNCH YET.

Mr. Macintosh 03-08-2017 07:44 AM

Quote:

Originally Posted by kaz2100 (Post 5651962)
Hya

I am not a Ubuntu user, but as a Debian user, I installed eclipse not long ago without trouble.
I am not positive, but am pretty sure that ubuntu has eclipse repo.

cheers

Eclipse is in the Ubuntu repositories, but last time I checked (a few months ago), the version of Eclipse in the repositories is a few versions behind the current one.


All times are GMT -5. The time now is 06:45 PM.