Hi , I am working on a JSSE tutortial from Oracle. See the link below.
https://docs.oracle.com/javase/10/security/sample-code-illustrating-secure-socket-connection-client-and-server.htm#JSSEC-GUID-3561ED02-174C-4E65-8BB1-5995E9B7282C
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.
Roy