Hi,
I was building my app with cli from console but to get this error propmt :Error: Could not find or load main class
This is one target of my makefile. I get it from vscode console ouput
Hi,
I was building my app with cli from console but to get this error propmt :Error: Could not find or load main class
This is one target of my makefile. I get it from vscode console ouput
I'm able to build without specifying a classpath (on Windows). Have you tried omitting it from the command line?
In the OP you've got "-claspath .". I'm guessing it's a typo, as java won't even run with a misspelled argument like that.
Example of what works for me in Windows (newlines added for clarity):
"C:\Program Files\Eclipse Adoptium\jdk-11.0.13.8-hotspot\bin\java.exe"
-jar ...\connectiq-sdk-win-4.1.4-2022-06-07-f86da2dee\bin\monkeybrains.jar
-o bin\testdf3.prg
-f testdf3\monkey.jungle -y FULL_PATH_TO_PRIVATE_KEY -d epix2_sim -w -l 2
I'm guessing it's a typo,
Yes. I cannot run it if I delete the typo
You can try this (from the monkeyc bash script in the sdk bin folder):
java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath "$MB_HOME"/monkeybrains.jar com.garmin.monkeybrains.Monkeybrains "$@"
Or you could just run monkeyc itself.
OK I will try it tommorrow