Which jdk do i have mac




















Java runs many of the applications that we use daily. Many applications cannot run on older versions of Java. Hence, it is essential to know which version is installed on your system. In this tutorial, learn how to check the Java version on your Mac or Windows system. Click the Apple icon in the menu bar to open the drop-down menu and navigate to System Preferences. A new window opens with various icons and settings.

Find and click the Java icon to open the Java Control Panel. Once the Java Control Panel opens, click the About button. A new window with Java version information should appear. First, open the terminal. To do so, click the Spotlight Search button in the top-right of the screen. Type terminal in the search bar and open it by clicking on the icon in the search results. Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.

Just type javac. If it is installed you get usage information, otherwise it would just ask if you would like to install Java. Also you can verify manually by going to the specific location and then check. To do this run below command in the mac terminal. Then run ls command in the terminal again.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?

Collectives on Stack Overflow. Learn more. Ask Question. Asked 8 years, 10 months ago. Active 9 months ago. Viewed k times. Is there a command line for this? Simply open a shell interpreter command line interface such as the Terminal application, and type. The Java executable on your local machine will output the appropriate Java versioning information. Armed with this information, we can simply open Terminal and list the contents of this directory on our machine to find the JDK version, as follows:.

The only potential issue here would be if you had multiple JDK versions installed.



0コメント

  • 1000 / 1000