LinuxQuestions.org
Review your favorite Linux distribution.
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 01-06-2017, 03:05 PM   #1
Dr.Lightning
LQ Newbie
 
Registered: Mar 2016
Posts: 24

Rep: Reputation: Disabled
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
 
Old 01-08-2017, 03:30 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch buster
Posts: 1,769

Rep: Reputation: 107Reputation: 107
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
 
Old 01-08-2017, 07:02 AM   #3
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20.1 MATE, MX-19.3, antiX, EndeavourOS
Posts: 3,325
Blog Entries: 17

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
Dr.Lightning,

HowTo from UbuntuHandbook:

http://ubuntuhandbook.org/index.php/...u-16-04-15-10/
 
Old 01-09-2017, 05:29 AM   #4
Dr.Lightning
LQ Newbie
 
Registered: Mar 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-08-2017, 07:44 AM   #5
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 296

Rep: Reputation: 60
Quote:
Originally Posted by kaz2100 View Post
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.
 
  


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
Difficulty installing a program Oddi Linux - Newbie 8 12-13-2014 10:46 AM
LXer: Eclipse V3.3 New Menu Mechanism LXer Syndicated Linux News 0 02-22-2008 11:11 AM
Difficulty installing wxPython aregmi Linux - Software 2 05-29-2007 04:33 PM
difficulty installing java walterbyrd Debian 5 01-14-2006 02:47 AM
difficulty installing distributions namayay Linux - Software 4 10-19-2004 12:01 PM

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

All times are GMT -5. The time now is 03:44 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
Open Source Consulting | Domain Registration