Dear all (Sorry for the beginners question, it's my first post here..),
I am starting to do some Java coding with Visual Studio Code. My app runs fine in VSCode, and I can create a jar file. But I cannot run the jar file with "java PicSorter.jar", it says:
Error: Could not find or load main class PicSorter.java
Caused by: java.lang.ClassNotFoundException: PicSorter.java
Any idea why? The build seems fine, I picked the main class and get in the terminal this:
* Executing task: java (buildArtifact): default
[OK] Successfully added the file to the exported jar: DBController$1.class
[OK] Successfully added the file to the exported jar: DBController.class
[OK] Successfully added the file to the exported jar: Gui.class
[OK] Successfully added the file to the exported jar: PicLabel.class
[OK] Successfully added the file to the exported jar: PicSorter.class
[OK] Successfully added the file to the exported jar: ShaHashOf.class
[OK] Successfully extracted the file to the exported jar: sqlite-jdbc-3.36.0.3.jar
[SUCCESS] Export Jar process is finished successfully * Terminal will be reused by tasks, press any key to close it.
(What) do I need to make it "executable" ? I was hoping that VSCode adds all this for me :-)