Question
Tizen Studio was working normally until I installed Java 11. After the installation, it fails to start. I've tried reinstalling Tizen Studio without success.
I've reviewed this thread: https://developer.tizen.org/forums/sdk-ide/tizen-studio-2.0-not-working-on-macos-sierra
While I got the package manager working, the studio still crashes after selecting the workspace. I attempted to configure TizenStudio.app to use Java 8 (which previously worked) by editing these files:
- ./Contents/MacOS/TizenStudio
- ./Contents/Eclipse/eclipse.ini
- ./Contents/Eclipse/Eclipse.app/Contents/Info.plist
However, the logs show it's still trying to use Java 11, resulting in the following error:
!ENTRY org.eclipse.osgi 4 0 2019-08-05 12:26:21.270
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
...
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
The error suggests missing javax libraries in Java 11. How can I resolve this issue?
Answer
Problem Understanding
The issue occurs because Tizen Studio requires javax libraries that are not included in Java 11 by default. The error indicates a compatibility problem between Tizen Studio and Java 11.
Solution Methods
-
Complete Java Version Configuration:
- Edit the JVM path in
./Contents/Info.plistto point to Java 8 - Ensure all configuration files consistently reference Java 8
- Edit the JVM path in
-
Alternative Solution - Use Tizen Studio 3.7+:
- Download the latest Tizen Studio (3.7 or newer) from: https://developer.tizen.org/development/tizen-studio/download
- This version comes with bundled Java, eliminating compatibility issues
Additional Tips
- When switching Java versions, ensure all configuration files are updated
- Consider completely uninstalling Java 11 if you don't need it for other projects
- The latest Tizen Studio versions have improved Java compatibility and are recommended for new projects