First go to the root directory where the jar files and java files are placed
Use the command line to compile the java file with the jar package:
javac -cp jcifs-1.3.17.jar -encoding utf8 RemoteFileUpload.java
Execute :
java -Djava.ext.dirs=./ RemoteFileUpload