Failed to find a Main Class in "/Applications/"

I’m trying to run the Galaxy Watch Studio on macOS Catalina and when I run the app, I get the error Failed to find a Main Class in "/Applications/". The only option that appears is “Ok”.

Hi @GiraffeMan,

The problem arises due to Java incompatibility. The Mac user needs to install JDK 8/14 (not JRE). See the Required Java version and may have a look at FAQ#05 in FAQs.

Therefore, I hope installing the required JDK will remedy your problem eventually.


I’m further than I was before, so I’m guessing it worked! Is there a solution option on this forum?

I don’t think we have it enabled. I’ll talk to the systems engineer when he gets back from vacation and see if we can add it. You are not the first to ask for it.

Samsung Developer Program

I have the same error message.
I run OS X El Capitan 10.11.6
Installed v2.0.0 and Java 1.6.0.jdk
I am still getting the same message
If I run “java -version” command in terminal it gives me below:

Exception in thread “main” java.lang.NoClassDefFoundError: ?version

Caused by: java.lang.ClassNotFoundException: ?version


at Method)


at java.lang.ClassLoader.loadClass(

at sun.misc.Launcher$AppClassLoader.loadClass(

at java.lang.ClassLoader.loadClass(

If I run “javac –version” command, it comes back with this

javac: invalid flag: ?version

Usage: javac

use -help for a list of possible options

If I run echo $JAVA_HOME command, it return an empty line.
If I run echo $PATH command, it return this:
As it is giving me something, I went to amend the info.plist file
Added the following after comment lines:

That didn’t work.

I’m not an IT person and have no clue what to do now. Any clues?

all didn’t paste

string doesn’t show for some reason

See GWS Fails to Launch on this page. It will give you information on how to set up Java so GWS can find it.

It has a check list that should make it much simpler.

Samsung Developer Program

This is what I’m trying to follow but none of it works or I’m not doing it right.
It’s not explained fully how to add paths to .bash_profile or amend the info.plist file
I’m not an IT person trained in computer code, so don’t know if I’m not doing it right or something else is wrong.

I haven’t used a Mac in years so I can’t help you on that either.

Someone said to download the Java JDK from Oracle and if you install it that will set your variables for you.


thank you.
App started with latest Java JDK from Oracle