Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do I detect the jdk version a user has installed?

Posted on 2004-08-18
3
526 Views
Last Modified: 2012-05-05
Hi
I have a java class that needs to have jdk2 to run how do I detect this is available and if not take user to the java download page? If there is not a workable asp way to do this perhaps I could use a combination of javascript and asp.

Thanks
0
Comment
Question by:caddworx
3 Comments
 
LVL 5

Accepted Solution

by:
cristy56 earned 500 total points
ID: 11828859
Not too sure if this could help, take it as a reference :

String strVersion = System.getProperty("java.version");
String strRequired = "1.3.1";
         
if (strVersion.compareTo(strRequired) < 0) {
   String str = "WARNING: ....blabla .. run
           with a " +strRequired+" or higher
           version Virtual Machine!!!\nYou
           should install a new Runtime
           Environement.\nLook at
           http://java.sun.com .";

      ErrorDialog d = new ErrorDlg(str);
          d.setVisible(true);
                              System.exit(1);


nil_dib

----------------------------------
Cristy
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
API not working 33 66
wordpress display sub menu only when click 12 48
Hide cell in a table 2 26
Obtaining data on ASP 8 28
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question