This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
It Takes the data file from the folder and insert it into database now again next day it takes the data file(new one) and delete old data and insert new data. There is file handle.java which is need to be invoked to do all these functions
Now question- 1)only deploying jar file on server will work?
2)if yes How to invoke this file under jar usind java command? command because it is linux
Well, you will probably need to set a classpath, which should at least include your jar file and probably another jar that has the database driver. It's possible that other entries will also be needed.
Once you get the classpath right, you should be able to invoke the class the same way you would if it were in a directory:
I assume handle.java (should be Handle.java, but I won't quibble) has a main method? Alternately, you can get fancy with the jar's manifest. This would allow you to invoke it as:
java -jar yourjar.jar
The Java command line tools work the same on Windows and Linux.