I tried to compile and run Java 10 file with TextPad, it works nicely until I decide to put the file in a folder and use Package(namespace). It seems to be unable to load classes, I get this error:
Error: Could not find or load main class com.MyProject.HelloWorld
Caused by: java.lang.ClassNotFoundException: com.MyProject.HelloWorld
Is there anything I can do about this? I dont seem to find how it is possible to define the class path in TextPad, so I am stuck.
You need to compile it like this: