ttmind

Main Navigation

ttmind
  • jim-jams
  • Tech
  • Positive
Login

Login

Facebook Google

OR

Remember me Forgot password?

Don't have account? Signup here.

Sort by Categorys

.Net

PHP

Java

JavaScript

Database

Server

Client Side

Tools

Artificial Intelligence

Cloud

Hybrid Development

Event

Smart City

Education

Security

Scrum

Digital Marketing

APP Development

Business

Internet

Simulation

Art

Network

Microservices

Architecture

Technology

Leadership

    Top Articles

  • How Does Social Media Bring People Together?
    TTMind Author
  • How to read appSettings JSON from Class Library in ASP.NET Core
    Anil Shrestha
  • Printing Support In Asp.Net Core
    TTMind Author
  • HOW TO EXTRACT TEXT FROM IMAGE USING JAVASCRIPT (OCR with Tesseract.js)?
    Prakash Pokhrel
  • Images Upload REST API using ASP.NET Core
    Prakash Pokhrel
  • Related Topic

  • Android releases its new version, Android 9 Pie (2018)
  • Tech
  • About Us
  • Contact Us
  • TechHelp
  • PositiveHelp
  • Jim-Jams Help
  • Terms & Conditions

© Copyright ttmind.com

Main Content

Java program to check whether Java is installed on your computer or Not?

Java Core Java about 6 years ago || 6/14/2019 || 5.2 K View

  • Hide

Write a Java program to check whether Java is installed on your computer?

Source Code:

public class TestProgram {
 public static void main(String[] args) {
  System.out.println("\nJava Version: " + System.getProperty("java.version"));
  System.out.println("Java Runtime Version: " + System.getProperty("java.runtime.version"));
  System.out.println("Java Home: " + System.getProperty("java.home"));
  System.out.println("Java Vendor: " + System.getProperty("java.vendor"));
  System.out.println("Java Vendor URL: " + System.getProperty("java.vendor.url"));
  System.out.println("Java Class Path: " + System.getProperty("java.class.path") + "\n");
 }
}

Output:

Java Version: 1.8.0_71                                                                                        
Java Runtime Version: 1.8.0_71-b15                                                                            
Java Home: /opt/jdk/jdk1.8.0_71/jre                                                                           
Java Vendor: Oracle Corporation                                                                               
Java Vendor URL: http://java.oracle.com/                                                                      
Java Class Path: .

 

 

  • 0
  • 0
  • 0
    • Facebook
    • Twitter
    • Google +
    • LinkedIn

About author

Anthony M. Healey

Anthony M. Healey

Touch of Creativity and a bit of active on brain power

Reset Your Password
Enter your email address that you used to register. We'll send you an email with your username and a link to reset your password.

Quick Survey