Question
I'm encountering an error when trying to launch Tizen Studio on macOS Mojave. The error log shows:
!SESSION 2018-10-17 16:00:47.610
eclipse.buildId=2.5
java.version=11
java.vendor=Oracle Corporation
...
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct
The error persists despite having Java installed. How can I resolve this issue?
Answer
Problem Understanding
The error occurs because Tizen Studio requires Java Development Kit (JDK) 8 specifically, and is incompatible with newer Java versions (like Java 11) on macOS Mojave. The error message indicates missing Java annotations that are part of JDK 8.
Solution Methods
-
Install JDK 8:
- Download JDK 8 from the official Oracle website
- Follow the installation instructions
- Verify installation by running
java -versionin terminal
-
Remove other Java versions:
- Check installed Java versions with
/usr/libexec/java_home -V - Remove all Java versions except JDK 8
- Set JDK 8 as default:
export JAVA_HOME=/usr/libexec/java_home -v 1.8`
- Check installed Java versions with
-
Use latest Tizen Studio (3.7+):
- Download from Samsung Tizen OS
- This version comes with bundled Java and doesn't require separate JDK installation
Additional Tips
- After installing JDK 8, restart your system before launching Tizen Studio
- If issues persist, try completely uninstalling all Java versions before reinstalling JDK 8
- For Tizen Studio 3.7+, no Java environment configuration is needed as it includes bundled Java