Hi,
I tried to install the Atlassian SDK Today on my MAC but I'm keeping getting exceptions.
Attached the error message and the log with the exceptions.
Logs:
Exception:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source)
at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source)
at com.install4j.runtime.installer.Installer.main(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.desktop/javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
... 9 more
Caused by: java.lang.NoClassDefFoundError: com/apple/eawt/ApplicationListener
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at com.install4j.runtime.installer.frontend.WizardScreenExecutor.<init>(Unknown Source)
at com.install4j.runtime.installer.frontend.InstallerWizardScreenExecutor.<init>(Unknown Source)
at com.install4j.runtime.installer.Installer$1.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue.access$600(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.apple.eawt.ApplicationListener
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 19 more
System properties:
gopherProxySet=false
awt.toolkit=sun.lwawt.macosx.LWCToolkit
java.specification.version=10
file.encoding.pkg=sun.io
sun.cpu.isalist=
sun.jnu.encoding=UTF-8
java.class.path=/private/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/AppTranslocation/F162646B-9CD0-4601-B2BD-A615EB81B877/d/Atlassian Plugin SDK 6.3.10 Installer.app/Contents/Resources/app/.install4j/i4jruntime.jar:/private/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/AppTranslocation/F162646B-9CD0-4601-B2BD-A615EB81B877/d/Atlassian Plugin SDK 6.3.10 Installer.app/Contents/Resources/app/user.jar
sun.awt.enableExtraMouseButtons=true
java.vm.vendor="Oracle Corporation"
sun.arch.data.model=64
i4j.ownBundlePath=/private/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/AppTranslocation/F162646B-9CD0-4601-B2BD-A615EB81B877/d/Atlassian Plugin SDK 6.3.10 Installer.app
install4j.exeDir=/private/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/AppTranslocation/F162646B-9CD0-4601-B2BD-A615EB81B877/d/
sun.font.fontmanager=sun.font.CFontManager
java.vendor.url=http://java.oracle.com/
user.timezone=Europe/Stockholm
os.name=Mac OS X
java.vm.specification.version=10
sun.java.launcher=SUN_STANDARD
user.country=SE
sun.boot.library.path=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib
sun.java.command=com.install4j.runtime.launcher.MacLauncher
http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16
jdk.debug=release
sun.cpu.endian=little
user.home=/Users/admin
user.language=en
java.specification.vendor=Oracle Corporation
java.version.date=2018-07-17
java.home=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
file.separator=/
java.vm.compressedOopsMode=Zero based
line.separator=
java.specification.name=Java Platform API Specification
java.vm.specification.vendor=Oracle Corporation
java.awt.graphicsenv=sun.awt.CGraphicsEnvironment
exe4j.moduleName=/private/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/AppTranslocation/F162646B-9CD0-4601-B2BD-A615EB81B877/d/Atlassian Plugin SDK 6.3.10 Installer.app
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16
java.runtime.version=10.0.2+13
user.name=admin
path.separator=:
os.version=10.14
java.runtime.name=Java(TM) SE Runtime Environment
file.encoding=UTF-8
sun.java2d.noddraw=true
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vendor.version=18.3
i4j.jreBundle=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin
install4j.appDir=/private/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/AppTranslocation/F162646B-9CD0-4601-B2BD-A615EB81B877/d/Atlassian Plugin SDK 6.3.10 Installer.app/Contents/Resources/app/
java.vendor.url.bug=http://bugreport.java.com/bugreport/
java.io.tmpdir=/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/
java.version=10.0.2
user.dir=/private/var/folders/41/v900jrb95y36j89tc6vb9fw40000gp/T/AppTranslocation/F162646B-9CD0-4601-B2BD-A615EB81B877/d/Atlassian Plugin SDK 6.3.10 Installer.app/Contents/Resources/app
os.arch=x86_64
java.vm.specification.name=Java Virtual Machine Specification
java.awt.printerjob=sun.lwawt.macosx.CPrinterJob
sun.os.patch.level=unknown
java.library.path=/Users/admin/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
java.vendor=Oracle Corporation
java.vm.info=mixed mode
java.vm.version=10.0.2+13
sun.io.unicode.encoding=UnicodeBig
java.class.version=54.0
socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16
I believe the problem here is your version of Java:
java.vm.version=10.0.2+13
Which appears to be a Java 10 distro. The problem with that is the SDK currently only supports the Java JDK 8 versions as per https://developer.atlassian.com/server/framework/atlassian-sdk/downloads/
Perhaps you already have this Java JDK 8 installed to your system, however if your JAVA_HOME system variable is not set to this path then it could still cause this kind of error when trying to load the SDK is using an unsupported version of Java. If you're not sure how to set this, I'd recommend following the steps in Installing Java to set this system path.
Hi Andrew,
Thanks for your reply. I managed to set the JAVA_HOME directory to version 8 but the problem never went away. Anytime I try to install the SDK from the dmg I always got the same error message. Not sure if I needed to restart my mac to take effect for instance (?)
However, I got to resolve the issue by installing the SDK using the Homebrew option on the SDK installation page : install-the-atlassian-sdk-on-a-linux-or-mac-system
Thank you for your help and have a nice day!
/Nader
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nader, using Homebrew on Mac worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Homebrew on Mac worked for me too.
I had Java 10 and Java 8 installed on my Mac already. I've set the JAVA_HOME directory to version 8 but the problem is not fixed. Finally the Homebrew installation option worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.