Protected Mode: Getting Exception in thread "main" java.lang.NoClassDefFoundError, Getting blank screen while Launching, Exception while extracting the Kar file for protected mode for iOS

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

This is an #[Informational Post]​

While running the application for protected mode (iOS), on launch of the application we are getting blue or black screen and not able to move forward into the application. Getting Exception in thread "main" java.lang.NoClassDefFoundError, Caused by: java.lang.ClassNotFoundException.

Basically, we have to understand from the exception that is missing of some JDK stuff in our machine.

Please follow below check points to resolve this error and for successful launch of protected mode build in iOS device.

—> First check whether Java is installed correctly in your mac machine or not.

—> Then check the Java Home path whether it is correctly set or not, by using below command in terminal.

echo $JAVA_HOME

—> If it is not set properly, please install new latest JDK version into your machine, then set the Java home path through following command in terminal.

export JAVA_HOME=/Users/kh2230/Desktop/KonyVisualizerEnterprise7.3.0/jdk1.8.0_112.jdk/Content

Note ***: If Visualizer is already installed in mac machine then no need of downloading JDK again, we can use same as above which will be available at KonyVisualizerEnterprise7.3.0/jdk1.8.0_112.jdk/Contents/Home.

—>Then extract Kar file and go to Xcode launched and select KProtected mode and --> Then click on Edit schema --> The popup will appear.

-->In that pop up select --> Run --> Uncheck/Disable the Debug executable checkmark and Select protected mode from dropdown.

Hope this will help to resolve above error for protected mode.

Thanks for sharing the knowledge with the community!