'How to change path when running java -jar from command line?

The current path is:

Directory

  • A.jar
  • jre
    • bin
      • java.exe

I figured I could do something like this from the command line:

cd Directory/jre/bin
java -jar ../../A.jar

However, when I click the tab, A.jar does not appear and cannot be found.

How to do it via path move rather than specifying a path directly?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source