I have this simple program that does nothing:

```
class ShowTheNameOfTheFile{
  static public void main(String[] argv){

  }
}

```

I compile it as ShowTheNameOfTheFile.jar and configure my Windows machine to open all txt files with it.

Now, when I click a txt file it will open my ShowTheNameOfTheFile.jar program.

In java, how can I know with txt file has opened the ShowTheNameOfTheFile application?