Hi guys,
I have created a very simple project, no
IDE used, and it takes input from System.in using Scanner and prints the output with System.out. I wanted to understand the jar tool.
The are no packages and the main class is found directly the project folder, and the path is c:Training\java\jartool\CalcPrj.
I have navigated to the above folder on the command line and typed the following command
I tried running the project by double clicking on it (the
Java Icon appears on the file btw), but nothing happens. I then used the Java Decompiler to check inside the jar and saw that it is using the path as a package.
Although when using the jar tf command, there does not seem to be any package.
Any idea why the decompiler shows the package as such.
Regards
Kris