Can't run Eclipse - SHA1 not available [message #1470955] |
Wed, 12 November 2014 19:20 |
Jon Tandy Messages: 1 Registered: November 2014 |
Junior Member |
|
|
I am having problems getting Eclipse running in a Linux VM. When running Eclipse, I get an error, "SHA-1 not available.". I've looked on Google, and the answers there didn't help, so I am out of ideas.
Below is my system information and the full text of the error output.
I am running Ubuntu Linux (12.04 LTS) in a VirtualBox VM within Windows 7.
Windows 7 is 64-bit, but the Linux System window shows it as "32-bit".
Output from uname -a :
Linux username-VirtualBox 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686 i686 i386 GNU/Linux
I have installed Java 1.7 (jdk-7u67-linux-i586.rpm) and Eclipse Luna (eclipse-jee-luna-SR1-linux-gtk.tar.gz).
Java is installed at:
/usr/java/jdk1.7.0_67/
Eclipse is installed at:
/usr/local/eclipse/luna
Here are the outputs from running Java from command line with -version flag:
$java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode)
$ javac -version
javac 1.7.0_67
$ javaws -version
Java Web Start splash screen process exiting ...
Bad installation: JAVAWS_HOME not set: No such file or directory
(I'm not sure whether it's important for me to have JAVAWS_HOME set just to run Eclipse.)
I have modified my path (in /etc/profile) to include all the relevant variables:
$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/java/jdk1.7.0_67/bin:/usr/java/jdk1.7.0_67/jre/bin:/usr/local/apache-maven-3.0.5/bin:/usr/java/jdk1.7.0_67/bin:/usr/java/jdk1.7.0_67/jre/bin:/usr/local/apache-maven-3.0.5/bin:/usr/local/eclipse/luna
Following some instructions I found, I unpacked/installed the files using unpack200:
jre/lib/rt.jar, jsse.rar, and charsets.jar; and lib/tools.jar
I also tried adding the full path to Java in the eclipse.ini using the -vm parameter.
Full system output of running Eclipse:
$ eclipse
An exception occurred while writing to the platform log:
java.lang.NullPointerException
at org.eclipse.equinox.launcher.Main.openLogFile(Main.java:2585)
at org.eclipse.equinox.launcher.Main.log(Main.java:2418)
at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Logging to the console instead.
!ENTRY org.eclipse.equinox.launcher 4 0 2014-11-12 12:15:02.549
!MESSAGE Exception launching the Eclipse Platform:
An exception occurred while writing to the platform log:
java.lang.NullPointerException
at org.eclipse.equinox.launcher.Main.openLogFile(Main.java:2585)
at org.eclipse.equinox.launcher.Main.log(Main.java:2418)
at org.eclipse.equinox.launcher.Main.run(Main.java:1477)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Logging to the console instead.
!STACK
java.lang.InternalError: internal error: SHA-1 not available.
at sun.security.provider.SecureRandom.init(SecureRandom.java:99)
at sun.security.provider.SecureRandom.<init>(SecureRandom.java:78)
at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:191)
at java.security.SecureRandom.<init>(SecureRandom.java:155)
at com.sun.crypto.provider.SunJCE.<clinit>(SunJCE.java:94)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
at sun.security.jca.ProviderList.getProvider(ProviderList.java:232)
at sun.security.jca.ProviderList$3.get(ProviderList.java:147)
at sun.security.jca.ProviderList$3.get(ProviderList.java:142)
at java.util.AbstractList$Itr.next(AbstractList.java:358)
at java.security.SecureRandom.getPrngAlgorithm(SecureRandom.java:542)
at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:187)
at java.security.SecureRandom.<init>(SecureRandom.java:155)
at java.io.File$TempDirectory.<clinit>(File.java:1878)
at java.io.File.createTempFile(File.java:1987)
at org.eclipse.equinox.launcher.Main.canWrite(Main.java:1324)
at org.eclipse.equinox.launcher.Main.computeDefaultConfigurationLocation(Main.java:1306)
at org.eclipse.equinox.launcher.Main.getConfigurationLocation(Main.java:1763)
at org.eclipse.equinox.launcher.Main.processConfiguration(Main.java:1822)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:570)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
An error has occurred and could not be logged:
internal error: SHA-1 not available.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03043 seconds