'Java was started but returned exit code 1' error message when trying to run Studio

Problem Description

Attempting to run Studio generates the following error message:

Java was started but returned exit code 1:

image.PNG

 

Warnings

!ENTRY org.eclipse.osgi 4 0 2018-05-21 13:36:06.747
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:256)
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
	at org.eclipse.swt.internal.C.<clinit>(C.java:21)
	at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
	at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
	at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
	at org.talend.license.gui.Application.start(Application.java:39)
	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:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	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.equinox.launcher.Main.invokeFramework(Main.java:648)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

 

Root Cause

You are using a 32-bit Java Virtual Machine, but Eclipse has 64-bit native libraries. A 32-bit JVM cannot load 64-bit native libraries and the reverse is also true as shown in the log:

Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM

 

Solution

Install a 64-bit JDK to run Studio.

 

If both are 64-bit and you still see the error, add the following to the Talend-Studio-win-x86_64.ini file.

-XX:-UseCompressedOops -vm C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll
Version history
Revision #:
6 of 6
Last update:
‎06-22-2018 12:02 PM
Updated by:
 
Contributors