Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-06-2017, 03:05 PM   #1
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 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 and so downloaded eclipse from 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:
at javax.crypto.JceSecurityManager.<clinit>(java.base@9-Ubuntu/
at javax.crypto.Cipher.getConfiguredPermission(java.base@9-Ubuntu/
at javax.crypto.Cipher.getMaxAllowedKeyLength(java.base@9-Ubuntu/
at java.lang.Class.forName0(java.base@9-Ubuntu/Native Method)
at java.lang.Class.forName(java.base@9-Ubuntu/
at org.apache.http.conn.ssl.SSLContexts.createSystemDefault(
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransferFactory.newInstance(
at org.eclipse.ecf.internal.provider.filetransfer.Activator.getFileTransfer(
at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(Mult
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnec tionRequest(
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandler
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.jav a:302)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConver
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.handleArchiveRedirection( :548)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet( )
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet( )
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(
at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(
at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(
at org.eclipse.oomph.setup.internal.installer.Installer.<init>(
at org.eclipse.oomph.setup.internal.installer.InstallerApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication( 134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/
at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at javax.crypto.JceSecurity.<clinit>(java.base@9-Ubuntu/
... 48 more
Caused by: java.lang.NullPointerException
at sun.nio.fs.UnixPath.normalizeAndCheck(java.base@9-Ubuntu/
at sun.nio.fs.UnixPath.<init>(java.base@9-Ubuntu/
at sun.nio.fs.UnixFileSystem.getPath(java.base@9-Ubuntu/
at java.nio.file.Paths.get(java.base@9-Ubuntu/
at javax.crypto.JceSecurity.setupJurisdictionPolicies(java.base@9-Ubuntu/
at javax.crypto.JceSecurity.access$000(java.base@9-Ubuntu/
at javax.crypto.JceSecurity$
at javax.crypto.JceSecurity$
at Method)
at javax.crypto.JceSecurity.<clinit>(java.base@9-Ubuntu/
... 48 more
Old 01-08-2017, 03:30 AM   #2
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

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.

Old 01-08-2017, 07:02 AM   #3
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

HowTo from UbuntuHandbook:
Old 01-09-2017, 05:29 AM   #4
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
A) "java -version" shows not found, therefore definitely do not have java installed already.
B) Install Oracle Java 8 per
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 do *NOT* click download ad near top. Find "Get Eclipse Neon" and click its download
i) This leads to 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
Registered: Sep 2015
Distribution: Debian
Posts: 296

Rep: Reputation: 60
Originally Posted by kaz2100 View Post

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.

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.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration