Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-08-18
3
Medium Priority
?
532 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
[X]
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
3 Comments
 
LVL 5

Accepted Solution

by:
cristy56 earned 2000 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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

598 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