Eclipse Installer: can not initialize cryptographic mechanism - java

I have OpenJDK 9 installed on my computer and I am attempting to install Eclipse. However, I get an error every time I start the installer:
Internal Error:
Cannot initialize cryptographic mechanism
Details: java.lang.ExceptionInInitializerError
at java.base/javax.crypto.JceSecurityManager.<clinit>(JceSecurityManager.java:66)
at java.base/javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2610)
at java.base/javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2634)
at java.base/sun.security.ssl.CipherSuite$BulkCipher.isUnlimited(CipherSuite.java:602)
at java.base/sun.security.ssl.CipherSuite$BulkCipher.<init>(CipherSuite.java:574)
at java.base/sun.security.ssl.CipherSuite$BulkCipher.<clinit>(CipherSuite.java:460)
at java.base/sun.security.ssl.CipherSuite.<clinit>(CipherSuite.java:1074)
at java.base/sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuiteList(SSLContextImpl.java:354)
at java.base/sun.security.ssl.SSLContextImpl.access$100(SSLContextImpl.java:42)
at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:590)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:292)
at java.base/java.security.Provider$Service.getImplClass(Provider.java:1844)
at java.base/java.security.Provider$Service.newInstance(Provider.java:1820)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:169)
at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
at org.apache.http.conn.ssl.SSLContexts.createSystemDefault(SSLContexts.java:78)
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(MultiProtocolRetrieveAdapter.java:92)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnectionRequest(ECFURIHandlerImpl.java:1641)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandlerImpl.java:1392)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:303)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.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:549)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:348)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:174)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(SetupCoreUtil.java:168)
at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(SetupWizard.java:167)
at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(SetupWizard.java:159)
at org.eclipse.oomph.setup.internal.installer.Installer.<init>(Installer.java:40)
at org.eclipse.oomph.setup.internal.installer.InstallerApplication.run(InstallerApplication.java:222)
at org.eclipse.oomph.setup.internal.installer.InstallerApplication.start(InstallerApplication.java:408)
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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:547)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:118)
... 49 more
Caused by: java.lang.SecurityException: Can't read cryptographic policy directory: unlimited
at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:324)
at java.base/javax.crypto.JceSecurity.access$000(JceSecurity.java:73)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:109)
at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:106)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:105)
... 49 more
It then gives me the option to update:
This is an emergency update: Contiune?
After clicking yes, this error appears:
Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
Details: java.lang.reflect.InvocationTargetException
at org.eclipse.oomph.setup.internal.installer.InstallerApplication$6$2.run(InstallerApplication.java:484)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:292)
at java.base/java.security.Provider$Service.getImplClass(Provider.java:1844)
at java.base/java.security.Provider$Service.newInstance(Provider.java:1820)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:169)
at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
at org.apache.http.conn.ssl.SSLContexts.createSystemDefault(SSLContexts.java:78)
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(MultiProtocolRetrieveAdapter.java:92)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnectionRequest(ECFURIHandlerImpl.java:1641)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandlerImpl.java:1392)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:303)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.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:549)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:348)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:174)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(SetupCoreUtil.java:168)
at org.eclipse.oomph.setup.ui.SelfCommitContext.changeRepositoryIfNeeded(SelfCommitContext.java:113)
at org.eclipse.oomph.setup.ui.SelfCommitContext.migrateProfile(SelfCommitContext.java:80)
at org.eclipse.oomph.setup.internal.installer.SelfUpdate.resolve(SelfUpdate.java:127)
at org.eclipse.oomph.setup.internal.installer.InstallerApplication$6$2.run(InstallerApplication.java:465)
... 1 more
Finally, this message appears:
JVM terminated. Exit code=1
/usr/bin/java
-Xms256M
-Xmx1024M
-jar /home/george/Downloads/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/george/Downloads/eclipse-installer/eclipse-inst
-name Eclipse Installer
--launcher.library /home/george/Downloads/eclipse-installer//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133/eclipse_1624.so
-startup /home/george/Downloads/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.appendVmargs
-exitdata 770005
-data #noDefault
-vm /usr/bin/java
-vmargs
-Xms256M
-Xmx1024M
-jar /home/george/Downloads/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
Is there any way to fix this so I can install eclipse?

I was struggling with a very similar problem and found the solution (your problem had the same cause and can be fixed the same way). After installing Eclipse on Ubuntu 17.04 with JDK 9, I got the following error on startup: Loading available Gradle versions has encountered a problem and Details button reveals this error:
An internal error occurred during: "Loading available Gradle versions".
Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
Later you can get related errors when working with Eclipse.
As I found out after looking very similar problem in docker, the problem is in Ubuntu 17.04 JDK installation (build 9-Ubuntu+0-9b161-1) where there is no /conf directory. This should be fixed in newer JDK build in Ubuntu 17.10.
So far you have 2 options to fix this yourself:
(easy method, fakes conf directory with symlink): create symlink inside JDK 9 directory (for me it is /usr/lib/jvm/default-java) with following command: sudo ln -sn lib conf
As security policy files are under /lib, this fixes the problem.
(more complex, solves the problem by installing alternative JDK with proper /conf directory): download JDK 9 from Oracle and install into some arbitrary folder; then add this folder to PATH (e.g. in .bashrc); then change JAVA_HOME to this folder in /etc/environment

See how to configure Eclipse (Installer) for Java 9 or download an Eclipse package directly instead of using the Eclipse installer.

Related

Thingsboard Windows Installation Error

When i run the install.bat file on a windows 7 machine. i receive the following error:
Detecting Java version installed. Detecting if it is 64 bit machine
CurrentVersion Detecting if it is 32 bit machine CurrentVersion 1.8
Java 1.8 found! Installing thingsboard ... Error: Could not find or
load main class Files\thingsboard\lib\thingsboard.jar ThingsBoard
installation failed!
I assumed it was reading the BASE file directory incorrectly. So I it to the absolute directory location as shown below:
SET BASE="C:\Program Files\thingsboard"
SET LOADER_PATH=%BASE%\conf,%BASE%\extensions
SET SQL_DATA_FOLDER=%BASE%\data\sql
SET jarfile=%BASE%\lib\thingsboard.jar
SET installDir=%BASE%\data
I get the following error:
Detecting Java version installed. Detecting if it is 64 bit machine
CurrentVersion Detecting if it is 32 bit machine CurrentVersion 1.8
Java 1.8 found! Installing thingsboard ... Logging system failed to
initialize using configuration from 'C:\Program
Files\thingsboard\install\logback.xml'
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in
ch.qos.logback.core.rolling.RollingFileAppender[fileLogAppender] -
Failed to create parent directories for [C:\ Program
Files\thingsboard\conf\"C:\Program
Files\thingsboard"\logs\install.log] ERROR in
ch.qos.logback.core.rolling.RollingFileAppender[fileLogAppender] -
openFile("C:\Program Files\thingsboard"\logs /install.log,true) call
failed. java.io.FileNotFoundException: "C:\Program
Files\thingsboard"\logs\install.log (The file name, directory name, or
volume label syntax is incorrect)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:161
)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithSpecificConfig(AbstractLoggingSystem.jav
a:57)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:47)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:114)
at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:
304)
at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:272)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingAppl
icationListener.java:235)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.jav
a:208)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMult
icaster.java:166)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMult
icaster.java:138)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMult
icaster.java:121)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListe
ner.java:68)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java
:54)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:337)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
at org.thingsboard.server.ThingsboardInstallApplication.main(ThingsboardInstallApplication.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:521)
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in
ch.qos.logback.core.rolling.RollingFileAppender[fileLogAppender] -
Failed to create parent directories for [C:\ Program
Files\thingsboard\conf\"C:\Program
Files\thingsboard"\logs\install.log] ERROR in
ch.qos.logback.core.rolling.RollingFileAppender[fileLogAppender] -
openFile("C:\Program Files\thingsboard"\logs /install.log,true) call
failed. java.io.FileNotFoundException: "C:\Program
Files\thingsboard"\logs\install.log (The file name, directory name, or
volume label syntax is incorrect) ThingsBoard installation failed!
What am I doing wrong?
The quotes seem to be a problem.
C:\ Program Files\thingsboard\conf\"C:\Program
Files\thingsboard"\logs\install.log java.io.FileNotFoundException:
"C:\Program Files\thingsboard"\logs\install.log
Have you tried to use SET BASE=%ProgramFiles%\thingsboard or escape the space in the path with a ^ SET BASE=C:\Program^ Files\thingsboard?
edit:
The problem is because of the space in the install dir.
I have tried to install it in "c:\test folder" and got the same problem.
There was no problem when installing in a folder without space like "c:\test"
I changed the following part in the install.bat file and was able to install it in the folder with a space.
SET "BASE=%~dp0"
SET "LOADER_PATH=%BASE%conf,%BASE%extensions"
SET "SQL_DATA_FOLDER=%BASE%data\sql"
SET "jarfile=%BASE%lib\thingsboard.jar"
SET "installDir=%BASE%data"
PUSHD %BASE%conf
java -cp "%jarfile%" -Dloader.main=org.thingsboard.server.ThingsboardInstallApplication "-Dinstall.data_dir=%installDir%" -Dinstall.load_demo=%loadDemo% -Dspring.jpa.hibernate.ddl-auto=none -Dinstall.upgrade=false "-Dlogging.config=%BASE%install\logback.xml" org.springframework.boot.loader.PropertiesLauncher
if errorlevel 1 (
#echo ThingsBoard installation failed!
POPD
exit /b %errorlevel%
)
POPD
"%BASE%thingsboard.exe" install
When I received this error, I ran the command with Run as Administrator and my problem was solved.
if you receive the same result:
Install JRE
Delete the space in the installation directory
Run command with Run as Administrator

Eclipse Neon won't start due to Provisioning exception

I am having problems starting the standard Eclipse Neon IDE. I am running Eclipse Neon 1 with Java jdk 1.8.0. After rebooting my computer, Eclipse won't start (no new plugins / software were install during last usage). I tried deleting everything in .metadata/.plugins/ per this question but it still won't start up. Please help.
P.S. the date of the log seems to be off; I am not sure why but this is the only !SESSION in this log file.
Here is a partial copy of the .metadata/.log file.
!SESSION 2017-06-13 10:46:37.214 -----------------------------------------------
eclipse.buildId=4.6.1.M20160907-1200
java.version=1.8.0_131
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
This is a continuation of log file C:\Users\XXX\workspace\.metadata\.bak_0.log
Created Time: 2017-06-13 11:39:01.054
!ENTRY org.eclipse.equinox.p2.core 4 0 2017-06-13 11:39:01.054
!MESSAGE Provisioning exception
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://download.eclipse.org/modeling/emf/emf/updates/2.10.x/.
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.oomph.util.ReflectUtil.invokeMethod(ReflectUtil.java:116)
at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.fail(CachingRepositoryManager.java:330)
at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:233)
at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager$Metadata.loadRepository(CachingRepositoryManager.java:453)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
.
.
.
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 21 more
!SUBENTRY 1 org.eclipse.jdt.core 4 985 2017-06-15 10:41:43.156
!MESSAGE Remote host closed connection during handshake
!STACK 0
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
.
.
.
Update
After opening the CMD with Administrator privilege and running either
> java -version
or
> java
both responded with
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
So I guess that something is wrong with my java installation, not eclipse.
There might be several problems for eclipse to fail on start but in you case this ProvisionException occurs may be because of the you didn't cleared proxy or your network connection is set to Ditect it should be Native. And also check SSH certificates
C:\Program Files\Java\jdk1.6.0_45\jre\lib\security
if not found then get it. Please check once you are running eclipse having same architecture means on 32-bit jdk there should be 32-bit eclipse or it won't work.
If you have more than one jre then check eclipse referring to which one. Hope this will help you.
Solved. The problem was with my java installation.
First, I try changing the system environment variable path to only
C:\Program Files\Java\jre1.8.0_131\bin;
This failed, resulting in the same java error message. Then I 'reverted' to an older java installation changing both JAVA_HOME and path to
C:\Program Files\Java\jdk1.8.0_102\bin;
This works fine and solves the problem.
For reference, these links also helped me.
JRE 1.7 returns: java/lang/NoClassDefFoundError: java/lang/Object
Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
https://geekycoder.wordpress.com/2009/07/08/java-tips-adventure-in-resolving-the-java-error-error-occurred-during-initialization-of-vm/

Running precompiled java files from the command line (Ubuntu)

I checked (based on cannot execute binary file and some other SO questions) that the java file I'm trying to run is indeed executable on Ubuntu 12.04.
$ file ORA/include/OraFiles/bin/ora
ORA/include/OraFiles/bin/ora: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
But when I try to run it
$ ORA/ora.sh -measures ORA/include/OraFiles/xml/ora_xml_measures.xml -script junkin.xml -log 1999-progress.log
Exception in thread "main" java.lang.NoClassDefFoundError: edu/cmu/casos/OraUI/controller/OraMain
Caused by: java.lang.ClassNotFoundException: edu.cmu.casos.OraUI.controller.OraMain
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: edu.cmu.casos.OraUI.controller.OraMain. Program will exit.
or
$ ORA/include/OraFiles/bin/ora -measures ORA/include/OraFiles/xml/ora_xml_measures.xml -script junkin.xml -log 1999-progress.log
ORA/include/OraFiles/bin/ora: error while loading shared libraries: liborautils.so.0: cannot open shared object file: No such file or directory
however liborautils.so.0 does in fact exist:
$ ls ORA/include/OraFiles/bin/
construct.exe libjogl_cg.so libora.so.0
dynetml2orgahead.exe libjogl.jnilib libora.so.0.0.0
gluegen-rt.dll libjogl.so liborautils.so
html_to_ppt_converter.exe libnetstatplusfog.so **liborautils.so.0**
j3dcore-ogl.dll libnetstatplusfog.so.0 liborautils.so.0.0.0
jogl_awt.dll libnetstatplusfog.so.0.0.0 libtinyxml.so
jogl_cg.dll libnetstatplus.so libtinyxml.so.0
jogl.dll libnetstatplus.so.0 libtinyxml.so.0.0.0
libcasos_utils.so libnetstatplus.so.0.0.0 ora
libcasos_utils.so.0 libnewran.so ora.exe
libcasos_utils.so.0.0.0 libnewran.so.0 ora_jni.dll
libgluegen-rt.jnilib libnewran.so.0.0.0 ora_log.txt
libgluegen-rt.so libora_jni.so orgahead.exe
libjogl_awt.jnilib libora_jni.so.0 orgahead_perf.exe
libjogl_awt.so libora_jni.so.0.0.0
libjogl_cg.jnilib libora.so
How do I make Java see that it's there? I'm trying to run ng-nailgun but the instructions on nailgun quickstart don't seem to relate to the Ubuntu sudo apt-get install nailgun.
I installed ant, nailgun, and maven2 in the hopes that their dependencies would install whatever java stuff I need. This is on a 64-bit EC2 prebuild of Ubuntu 12.04.1.
UPDATE: Here is the text of ora.sh:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./include/OraFiles/bin/lib:./include/OraFiles/bin
java -splash:include/OraFiles/images/ORA-splash-screen.png -Xmx1024m -cp ora.jar:lib/jfreechart-1.0.13.jar:lib/jfreechart-1.0.13-swt.jar:lib/TableLayout.jar:lib/jcommon-1.0.9.jar:lib/httpcore-nio-4.0-beta3.jar:lib/j3dcore.jar:lib/httpcore-4.0-beta3.jar:lib/jung.jar:lib/twitter4j-1.1.7.jar:lib/jcalendar.jar:lib/rssutils.jar:lib/omj3d.jar:lib/json-1.0.jar:lib/commons-collections-3.1.jar:lib/jsi-generics.jar:lib/opencsv-1.7.jar:lib/trove-2.0.4.jar:lib/xml-writer.jar:lib/commons-logging-api-1.1.1.jar:lib/junit.jar:lib/jts-1.7-generics.jar:lib/casosparser.jar:lib/jgraphlayout.jar:lib/htmlparser.jar:lib/facebook-util-1.8-final.jar:lib/j3d-vrml97.jar:lib/omcorba.jar:lib/ant-launcher.jar:lib/colt.jar:lib/wwj/worldwind-ora.jar:lib/freehep/freehep-graphics2d-2.0.jar:lib/gt2-2.3.3/gt2-widgets-swing-2.3.3.jar:lib/gt2-2.3.3/batik-svggen-1.6.jar:lib/gt2-2.3.3/spatialdb-0.1.jar:lib/gt2-2.3.3/velocity-1.4.jar:lib/gt2-2.3.3/gt2-go-2.3.3.jar:lib/gt2-2.3.3/jsr108-0.01.jar:lib/gt2-2.3.3/db2jcc_dummy-8.2.1.jar:lib/gt2-2.3.3/gt2-postgis-2.3.3.jar:lib/gt2-2.3.3/gt2-xml-gml3-2.3.3.jar:lib/gt2-2.3.3/gt2-xml-2.3.3.jar:lib/gt2-2.3.3/concurrent-1.3.4.jar:lib/gt2-2.3.3/gt2-image-2.3.3.jar:lib/gt2-2.3.3/jaxb-impl-1.3.jar:lib/gt2-2.3.3/gt2-tiger-2.3.3.jar:lib/gt2-2.3.3/imageioext-asciigrid-1.0-rc1.jar:lib/gt2-2.3.3/gt2-api-2.3.3.jar:lib/gt2-2.3.3/gt2-shapefile-2.3.3.jar:lib/gt2-2.3.3/gt2-main-2.3.3.jar:lib/gt2-2.3.3/gt2-validation-2.3.3.jar:lib/gt2-2.3.3/commons-jxpath-1.2.jar:lib/freehep/freehep-graphicsio-svg-2.0.jar:lib/gt2-2.3.3/ecore-2.1.0.jar:lib/gt2-2.3.3/postgis-driver-1.0.jar:lib/gt2-2.3.3/commons-beanutils-1.4.jar:lib/gt2-2.3.3/relaxngDatatype-X.jar:lib/gt2-2.3.3/gt2-db2-2.3.3.jar:lib/gt2-2.3.3/geowidgets-1.0-M1.jar:lib/jai_codec.jar:lib/freehep/freehep-graphicsio-2.0.jar:lib/jogl/jogl.jar:lib/freehep/freehep-io-2.0.1.jar:lib/freehep/freehep-xml-2.0.1.jar:lib/gt2-2.3.3/ant-optional-1.5.1.jar:lib/gt2-2.3.3/gt2-vpf-2.3.3.jar:lib/gt2-2.3.3/gt2-demo-property-2.3.3.jar:lib/gt2-2.3.3/commons-pool-1.3.jar:lib/gt2-2.3.3/gt2-cql-2.3.3.jar:lib/gt2-2.3.3/geoapi-nogenerics-2.1-M2.jar:lib/gt2-2.3.3/gt2-sde-dummy-2.3.3.jar:lib/gt2-2.3.3/vecmath-1.3.1.jar:lib/gt2-2.3.3/velocity-dep-1.4.jar:lib/gt2-2.3.3/gt2-coverage-2.3.3.jar:lib/gt2-2.3.3/batik-util-1.6.jar:lib/gt2-2.3.3/gt2-wms-2.3.3.jar:lib/gt2-2.3.3/jaxb-api-1.3.jar:lib/omsvg.jar:lib/gt2-2.3.3/batik-xml-1.6.jar:lib/gt2-2.3.3/batik-bridge-1.6.jar:lib/gt2-2.3.3/commons-lang-2.1.jar:lib/gt2-2.3.3/gt2-render-2.3.3.jar:lib/gt2-2.3.3/batik-dom-1.6.jar:lib/gt2-2.3.3/gt2-graph-2.3.3.jar:lib/gt2-2.3.3/gt2-epsg-hsql-2.3.3.jar:lib/gt2-2.3.3/gt2-indexed-shapefile-2.3.3.jar:lib/gt2-2.3.3/jlfgr-1.0.jar:lib/gt2-2.3.3/gt2-hsql-2.3.3.jar:lib/java-getopt-1.0.13.jar:lib/gt2-2.3.3/batik-svg-dom-1.6.jar:lib/gt2-2.3.3/common-2.1.0.jar:lib/gt2-2.3.3/gt2-geotiff-2.3.3.jar:lib/toolkits_1-2-0.jar:lib/milStd2525_png.jar:lib/j3dutils.jar:lib/JAXWS2.1.3-20071218.jar:lib/Jama-1.0.1.jar:lib/commons-codec-1.3.jar:lib/gt2-2.3.3/gt2-imagemosaic-2.3.3.jar:lib/iText-2.1.0.jar:lib/commons-math-1.2.jar:lib/gt2-2.3.3/postgresql-8.1-407.jdbc3.jar:lib/freehep/freehep-util-2.0.1.jar:lib/idw-1.5.0/idw.jar:lib/gt2-2.3.3/batik-awt-util-1.6.jar:lib/gt2-2.3.3/gt2-gtopo30-2.3.3.jar:lib/gt2-2.3.3/gt2-wfs-2.3.3.jar:lib/gt2-2.3.3/picocontainer-1.2.jar:lib/gt2-2.3.3/gt2-arcgrid-2.3.3.jar:lib/gt2-2.3.3/gt2-mysql-2.3.3.jar:lib/gt2-2.3.3/gt2-openoffice-2.3.3.jar:lib/gt2-2.3.3/batik-ext-1.6.jar:lib/gt2-2.3.3/gt2-oracle-spatial-2.3.3.jar:lib/gt2-2.3.3/batik-gvt-1.6.jar:lib/gt2-2.3.3/gt2-svgsupport-2.3.3.jar:lib/svgSalamander-tiny.jar:lib/jhall.jar:lib/gt2-2.3.3/batik-css-1.6.jar:lib/gt2-2.3.3/gt2-mappane-2.3.3.jar:lib/gt2-2.3.3/gt2-demo-mappane-2.3.3.jar:lib/gt2-2.3.3/gt2-directory-2.3.3.jar:lib/gt2-2.3.3/gt2-geomedia-2.3.3.jar:lib/activation.jar:lib/commons-logging-1.1.1.jar:lib/gt2-2.3.3/gt2-mif-2.3.3.jar:lib/openmap-4.6.5.jar:lib/gt2-2.3.3/gt2-xml-filter-2.3.3.jar:lib/httpmime-4.0-beta2.jar:lib/gt2-2.3.3/junit-3.8.1.jar:lib/jai_core.jar:lib/gt2-2.3.3/xml-apis-1.0.b2.jar:lib/mail.jar:lib/gt2-2.3.3/hsqldb-1.8.0.1.jar:lib/jogl/gluegen-rt.jar:lib/gt2-2.3.3/commons-cli-2.0-gt2-pre1.jar:lib/gt2-2.3.3/commons-io-1.2.jar:lib/gt2-2.3.3/xsd-2.1.1.jar:lib/gt2-2.3.3/gt2-demo-data-2.3.3.jar:lib/gt2-2.3.3/batik-transcoder-1.6.jar:lib/javaml-0.0.12.jar:lib/gt2-2.3.3/gt2-epsg-access-2.3.3.jar:lib/gt2-2.3.3/jta-1.0.1B.jar:lib/gt2-2.3.3/gt2-epsg-postgresql-2.3.3.jar:lib/gt2-2.3.3/gt2-referencing-2.3.3.jar:lib/freehep/freehep-graphicsio-pdf-2.0.jar:lib/gt2-2.3.3/gt2-brewer-2.3.3.jar:lib/gt2-2.3.3/xercesImpl-2.7.1.jar:lib/commons-httpclient-3.1.jar:lib/gt2-2.3.3/imageioext-customstreams-1.0-rc1.jar:lib/gt2-2.3.3/jdbc-stdext-2.0.jar:lib/httpclient-4.0-beta2.jar:lib/gt2-2.3.3/jaxb-libs-1.3.jar:lib/gt2-2.3.3/gt2-imagepyramid-2.3.3.jar:lib/gt2-2.3.3/batik-script-1.6.jar:lib/gt2-2.3.3/xsdlib-20050614.jar:lib/facebook-java-api-1.8-final.jar:lib/gt2-2.3.3/gt2-arcsde-2.3.3.jar:lib/gt2-2.3.3/gt2-coveragetools-2.3.3.jar:lib/MDateSelector14-00347.jar:lib/rome-1.0.jar:lib/gt2-2.3.3/gt2-shapefile-renderer-2.3.3.jar:lib/gt2-2.3.3/gt2-epsg-wkt-2.3.3.jar:lib/gt2-2.3.3/gt2-gml-2.3.3.jar:lib/gt2-2.3.3/log4j-1.2.6.jar:lib/gt2-2.3.3/xml-apis-xerces-2.7.1.jar:lib/gt2-2.3.3/batik-parser-1.6.jar:lib/gt2-2.3.3/gt2-xml-gml2-2.3.3.jar:lib/gt2-2.3.3/gt2-referencing3D-2.3.3.jar:lib/jdom-1.1.jar:lib/jide-oss-2.8.8.jar edu.cmu.casos.OraUI.controller.OraMain

error after sofware upgrade with eclipse

I recently updated some of the addons for eclipse (3.7). To do so, I started eclipse with sudo (as not doing so caused some errors while installing new Software earlier). Now I get an error immediatly before the splash screen would appear when I start eclipse without using sudo:
!ENTRY org.eclipse.equinox.launcher 4 0 2012-09-20 12:27:48.447
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
I do not get this error when I start eclipse with "sudo eclipse". Any suggestions on how to solve this issue? I am using Ubuntu 11.04.
Cheers
Nebwi
A wild guess. This could be permission issue.
Did you give permissions to the folders as a sudo. Please right click and see the properties of the files in org.eclipse.core.runtime.adaptor.EclipseStarter
And give the read and execute permissions and try. Hope this may help.
While you were "sudo"ing, you may have changed ownership of the files so that you can no longer read them as you. In a command window cd to you install and type:
ls -al
If the owner is root, then you will need to change it back to you. To do this you really need to know your group. It could be your username, the word "staff", "user" etc. To find out for sure, just do that same ls command in your home directory. If you need to change the owners, then type:
sudo chown -R yourUserName.yourUserGroup *
On some unix systems it is "yourUserName:yourUserGroup". Then try eclipse.

How to run Eclipse 3.4.1 on MacOS 10.5.6?

I am trying to run Eclipse 3.4.1 on MacOS 10.5.6?
I think I am using java 1.5 when I run eclipse:
$ which java
/usr/bin/java
$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
And then I click eclipse icon.
In the Preferences->Java->Installed JREs, I did click 'JVM 1.6.0', since I needs to use 1.6 for my project.
But in the .log file, I am getting these errors, why there is class file bad version number? And how can I fix it?
!SESSION 2009-01-29 10:07:29.618 -----------------------------------------------
eclipse.buildId=M20080911-1700
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -keyring /Users/samuel/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws carbon -arch x86 -keyring /Users/samuel/
.eclipse_keyring -consoleLog -showlocation
!ENTRY com.android.ide.eclipse.adt 4 0 2009-01-29 10:07:42.947
!MESSAGE Failed to start com.android.ide.eclipse.editors
!STACK 0
org.osgi.framework.BundleException: Exception in com.android.ide.eclipse.editors
.EditorsPlugin.start() of bundle com.android.ide.eclipse.editors.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:1028)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:265)
at com.android.ide.eclipse.adt.AdtPlugin$11.run(Unknown Source)
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class
file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at com.android.ide.eclipse.editors.resources.manager.ProjectClassLoader.
findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.loadAndParseRClass(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.projectOpenedWithWorkspace(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.ResourceMonitor.add
ProjectListener(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.setupMonitor(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.ResourceManager.set
up(Unknown Source)
at com.android.ide.eclipse.editors.EditorsPlugin.start(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bund
leContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:1003)
... 4 more
Root exception:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at com.android.ide.eclipse.editors.resources.manager.ProjectClassLoader.
findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.loadAndParseRClass(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.projectOpenedWithWorkspace(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.ResourceMonitor.add
ProjectListener(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.setupMonitor(Unknown Source)
at com.android.ide.eclipse.editors.resources.manager.ResourceManager.set
up(Unknown Source)
at com.android.ide.eclipse.editors.EditorsPlugin.start(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bund
leContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:1003)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:265)
at com.android.ide.eclipse.adt.AdtPlugin$11.run(Unknown Source)
Eclipse on Mac OS X on Intels only works with JDK 5 (it's horrible). I always have to create two versions of my plugins.
However, it seems that the Android editor plugin that you're using was compiled against 1.6, so I'm not sure that there's a solution...
Take a look at this line:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
That error means that you're attempting to execute bytecode in a JRE that is older than the JDK you used to compile. In your case, the version 5 JRE doesn't recognise the file magic added by the v6 JDK and quits before it hits bytecode it can't understand.
The solution to this is to either specify a target version for the compiler, or upgrade your JRE.
You will need to install java 6 on to your Mac if you want to 1.6 in your project. You should be able to get java 6 here:
http://developer.apple.com/java/download/
I was able to get Eclipse 3.5M5 to run with JDK 1.6.0 as its base VM with a slightly modified path from above:
./eclipse -vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
Better, I was able to put it in the eclipse.ini file in /Applications/eclipse3.5/Eclipse.app/Contents/MacOS, so long as it went above the '-vmargs'. For example:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.0.200.v20090128-1500.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.0.0.v20081125-1800
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
-showsplash
org.eclipse.platform
-vmargs
...
You can try the latest Galileo (Eclipse 3.5) milestone. It is not very stable, but it will run on Apple's JDK 1.6. Get it here (3.5M4 is the latest). Make sure you get the cocoa 64 bit version.
Start it with -vm /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
Again, an early beta with all implications.

Categories

Resources