Thread: [HTML] Checking Version of Java

Results 1 to 9 of 9
  1. #1 [HTML] Checking Version of Java 
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Fixed.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Whired's Avatar
    Join Date
    Aug 2007
    Posts
    2,126
    Thanks given
    238
    Thanks received
    500
    Rep Power
    822
    Maybe you mean Javascript? HTML is structure, Idk if it can even be done...why not make it a part of your Java application?
    Reply With Quote  
     

  3. #3  
    Are you really awesome?
    Aaron's Avatar
    Join Date
    May 2011
    Age
    30
    Posts
    663
    Thanks given
    14
    Thanks received
    110
    Rep Power
    0
    html script for checking java version..?
    Reply With Quote  
     

  4. #4  
    Are you really awesome?
    Aaron's Avatar
    Join Date
    May 2011
    Age
    30
    Posts
    663
    Thanks given
    14
    Thanks received
    110
    Rep Power
    0
    Bash script = java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \"
    Reply With Quote  
     

  5. #5  
    Are you really awesome?
    Aaron's Avatar
    Join Date
    May 2011
    Age
    30
    Posts
    663
    Thanks given
    14
    Thanks received
    110
    Rep Power
    0
    Reply With Quote  
     

  6. #6  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Yeah, that's what I meant.

    I want to create a java script on an html page that checks the java version.

    So if (javaVersion == versionhere) {
    display image 1
    } else {
    display image 2
    }

    I need to implement this into an html document using javascript. That's what I need help with.

    Ideas?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Whired's Avatar
    Join Date
    Aug 2007
    Posts
    2,126
    Thanks given
    238
    Thanks received
    500
    Rep Power
    822
    You're going to have to make a java applet to do this.

    Off the top of my head, the simplest way would be for your applet to open a different webpage in the default browser dependent on the java version.

    If you really just need an image, you can display it inside the applet.

    AFAIK, javascript knows nothing about third-party plugins.
    Reply With Quote  
     

  8. #8  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Well the initial problem was that users with Jre6 can't load a compiled applet from java 7 and users with jre7 can't load a compiled applet from java 6.

    So creating another applet would just defeat the purpose, wouldn't it?

    Jagex checks if the java version is above version 1.6.0_10 currently and I tried converting that code to check if the version is above 1.7 but nothing after the if statement executes, when it should.
    Reply With Quote  
     

  9. #9  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Nvm Fixed on my own.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. HTML XHTML php java
    By pk flavor in forum Help
    Replies: 3
    Last Post: 07-15-2011, 01:16 AM
  2. RuneScape fullscreen FTP (HTML) (MY VERSION)
    By Snow Cat123 in forum Guides
    Replies: 10
    Last Post: 12-12-2009, 11:52 PM
  3. Replies: 14
    Last Post: 04-25-2008, 09:09 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •