This is what I am trying to do:
I have written a Java program which requires two file paths as input parameters. The code is working fine and accurate. The problem here is that every time I need to give the complete file path in command prompt. So what I thought is to link this with a HTML page which will give you two browse button in order to browse file.
Now my problem is how to give the two browsed file path in a Java method. I had written entire Java code in batch file as of now. I tried using <input type=file> in HTML, but how to pass this value in Java that I am unaware of?
If this application is to be used on the desktop you don’t need servlets or HTML, simply pop up two JFileChoosers and select the files using these.
The code to do this is:
Have fun! 😀