Results 1 to 7 of 7
  1. #1
    j2vdk's Avatar
    j2vdk is offline Member
    Join Date
    Aug 2008
    Posts
    45
    Rep Power
    0

    Default (solved) how to find version of java????

    how to find de version of java, we using..


    what is the program statement, that tells about the java we using??
    Last edited by j2vdk; 09-07-2008 at 07:33 PM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    System.getProperty("java.version")

  3. #3
    j2vdk's Avatar
    j2vdk is offline Member
    Join Date
    Aug 2008
    Posts
    45
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    System.getProperty("java.version")
    didnt get any output,with this line,,,,...

    but no errors,,,

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    didnt get any output,with this line,,,,...
    If you read the API, specifically the System class's getProperty(...) method you'll see that it returns a String. How do you display any string?

  5. #5
    j2vdk's Avatar
    j2vdk is offline Member
    Join Date
    Aug 2008
    Posts
    45
    Rep Power
    0

    Default

    i need a program tat prints the version of java which we using,,, how to write

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    how to write
    I already told you how to produce a String. Do you know how to print a String? Please show at least a little initiative here!

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. How to find java version
    By roshithmca in forum New To Java
    Replies: 3
    Last Post: 04-27-2012, 07:10 AM
  2. using different JDK version in one IDE
    By happyknappy in forum New To Java
    Replies: 3
    Last Post: 09-02-2008, 03:10 PM
  3. Replies: 7
    Last Post: 06-05-2008, 04:54 PM
  4. Netware: JAVA.NLM Version 1.31h Parameters
    By Larry Mateo in forum New To Java
    Replies: 0
    Last Post: 03-21-2008, 12:34 AM
  5. Internet Explorer java version
    By shimer in forum Java Applets
    Replies: 2
    Last Post: 07-31-2007, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •