Hi

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

thank you
Charbel

Re: check if Java is installed 80 80

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

Re: check if Java is installed 80 80

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:

Re: check if Java is installed 80 80

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

Re: check if Java is installed 80 80

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

Re: check if Java is installed 80 80

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)?

Re: check if Java is installed 80 80

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.