DEV Community

Long Nguyễn Xuân
Long Nguyễn Xuân

Posted on

Tìm path của JDK từ command line

If you are using Linux/Unix/Mac OS X:

Try this:

$ which java
Enter fullscreen mode Exit fullscreen mode

If you are using Windows:

c:\> for %i in (java.exe) do @echo.   %~$PATH:i
Enter fullscreen mode Exit fullscreen mode

https://stackoverflow.com/a/4681109/373266

Top comments (0)