Ubuntu 13.10上的Eclipse错误
我已在我的机器上成功安装了Oracle Java 64位版本(使用java -version
检查)。 后来我已经下载了Eclipse Kepler 64位,但是当我启动它时,它不起作用并且它给我带有消息的错误弹出窗口An error has occurred. See the log file /home/nandkumar/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1384713086093.log
An error has occurred. See the log file /home/nandkumar/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1384713086093.log
所以我检查了日志文件,见下面的日志文件内容:
!SESSION Mon Nov 18 00:01:26 IST 2013 ------------------------------------------ !ENTRY org.eclipse.equinox.launcher 4 0 2013-11-18 00:01:26.132 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.InternalError: internal error: SHA-1 not available. at sun.security.provider.SecureRandom.init(SecureRandom.java:99) at sun.security.provider.SecureRandom.(SecureRandom.java:78) at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:191) at java.security.SecureRandom.(SecureRandom.java:155) at com.sun.crypto.provider.SunJCE.(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.(SecureRandom.java:155) at java.io.File$TempDirectory.(File.java:1878) at java.io.File.createTempFile(File.java:1987) at org.eclipse.equinox.launcher.Main.canWrite(Main.java:1305) at org.eclipse.equinox.launcher.Main.checkConfigurationLocation(Main.java:698) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
请帮忙。
我不知道是什么问题,但是当我使用这个线程完全删除java(Oracle和Open JDK)时它就消失了。 我再次使用这个线程安装了Oracle java。
你得到的错误只是因为你的JDK(Java Devlopment Kit)缺少JCE(Java Cryptography Env。)function。我认为由于美国的出口管制限制,一些国家只能获得这样的“残缺”JDK。 您不能使用这样的JDK运行Eclipse。 您可以在JDK安装中检查一件事,查找文件:
/java/jdk1.7.0_40/jre/lib/security
确保它有这样的一行:
security.provider.1=sun.security.provider.Sun
这将“Sun”设置为您的加密提供程序。 这通常是Sun JDK的默认设置,但可能已在JDK中关闭。
然后查看输出
java javac javaws
如果它显示错误,那么你需要通过这种方法再次安装Java,问题肯定是在JDK中所以通过从官方站点下载最新的Oracle Java到你的Ubuntu系统架构正确安装它,然后通过以下步骤再次重新安装eclipse并使确定你已完全删除以前安装的eclipse ..
我假设你已经在家里的Download文件夹中下载了eclipse kepler,
cd Downloads
如果它是64位,那么否则.gz名称将不同于32位
tar xvf eclipse-standard-kepler-R-linux-gtk-x86_64.tar.gz sudo mv eclipse /opt
提供您的密码,并通过链接
sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
现在只需制作eclipse.desktop
sudo gedit /usr/share/applications/eclipse.desktop
并粘贴以下行为eclipse图标
[Desktop Entry] Name=Eclipse Type=Application Exec=/opt/eclipse/eclipse Terminal=false Icon=/opt/eclipse/icon.xpm Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE Name[en]=eclipse.desktop
Eclipse Kepler现在可以使用了。
发现这个:
我在AMD64机器(Ubuntu 12.04)中遇到了同样的问题。 并通过解决方法解决了它:
copy:/usr/lib/jni/libswt-*3740.so中包含’3740’的文件到〜/ .swt / lib / linux / x86_64 /
但是,请确保安装了包:libswt-gtk-3-java和libswt-gtk-3-jni。
sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java
和
sudo cp /usr/lib/jni/libswt-*3740.so~ / .swt / lib / linux / x86_64 /
如果您有一个基于32位的系统:sudo cp /usr/lib/jni/libswt-*3740.so~ / .swt / lib / linux / x86 /
这里
** [解决方案 – 1.错误的架构 – 2. ubuntu上的java] **
Eclipse和更新的Java版本的问题