Hi , I am working on a JSSE tutortial from Oracle. See the link below.
Using the sample code for ClassFileServer I have created a project in netbeans 11. It cleans and builds OK.
Please see the attached files ClassFileserver.java, and ClassServer.java
When the jar file is executed from the command prompt I get this error:
C:\dist>java -jar ClassFileServer.jar 2001 C:\
Error: Could not find or load main class classfileserver.DateServer
Caused by: java.lang.ClassNotFoundException: classfileserver.DateServer
Note: I also executed this with the optional arguments, TLS and TLS true. Same result.
Not sure how to fix this, the text "DateServer" does not appear in either of the java files.
Any help would be appreciated.