954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

check if Java is installed

Hi

How to know if there is any version of Java installed on the user PC and what revision, using JavaScript

thank you
Charbel

CharbelKahi1
Newbie Poster
1 post since Sep 2004
Reputation Points: 11
Solved Threads: 0
 

You cannot run any system related command using java script..... java script doesnot need jvm to be installed ...

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

Kindly run your DOS prompt, ie command.com then in the DOS type javac the press enter.
if java is installed it will show the syntax and some valid commands :mrgreen:

sploxz
Newbie Poster
1 post since Sep 2004
Reputation Points: 11
Solved Threads: 0
 

and you can type jview in dos prompt to see if microsoft jvm is installed ...

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

i just put java on my computer and how do i know if i did it the right way i go to my control panel and go to advanced and click on the internet that i do have for it to work and its still not working

amr 10 15 90
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 
i just put java on my computer and how do i know if i did it the right way i go to my control panel and go to advanced and click on the internet that i do have for it to work and its still not working

It depends. Are you talking about the Java Runtime Environment (the program used to open Java files online) or are you talking about the Java Development Kit (used to create Java programs and applets)?

DaMoogle
Light Poster
34 posts since Jun 2005
Reputation Points: 18
Solved Threads: 0
 

Actually yes their is a way to check if a user has java installed :), but unfortunately I dont know a way to put out a command if they do not have java installed. But if I find one I will post it.

Here you go..

<script> document.write(new String("<b>Great! it looks like you have java!</b>"),alert('yay it looks like you have java installed!'),window.close()); </script>


Happy Scripting :D

scriptWolf
Newbie Poster
1 post since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You