Results 1 to 4 of 4
  1. #1
    core21 is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default JDK - what version?

    I want to start programming in Java. My background is Visual Basic 6 and some VB.NET and C++. Should I go ahead and download JDK 7? I read up a little and some said not every has the JRE 7 yet so you should develop with 6. Thoughts? Also, I will be developing on Windows 7 64 bit. Must I install JDK 64 bit? Should I? what does this mean for apps I compile? Anything? Thanks for all your thoughts.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: JDK - what version?

    Recently I downloaded the JRE and a message on the download page told me to use the 32-bit version as I had a 32-bit browser, or to install both. I just did what I was told...

    As far as the JDK is concerned I don't think it affects the .class files that are produced: these, by design, are machine independent. But they do depend on the user having the appropriate runtime.

    So you should be OK downloading and using the 64-bit JDK7. The point is you should decide ahead of time what runtimes you are going to support. What I mean is that you don't want to write lots of code using the new JDK7 features and only find it "won't wrok" on some user's older runtime. Especially as you begin the programs will only be for your own use so the question doesn't really arise: just use JDK7 and be happy. If you write something for someone else, then decide what you will support.

    The java compiler allows you to say what versions of source code it will accept, and what versions of .class files will be emitted. So the JDK7 will be good even if you wish to write code that can be run with older runtimes. Also the Java documentation tends to be very good about saying when (what version) methods and classes were introduced.

    -----

    You may or may not have seen them, but Oracle's Tutorial and the API documentation are resources you probably want to keep open in your browser as you code.

  3. #3
    core21 is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default Re: JDK - what version?

    Excellent, thank you! That answers my concerns.

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

Similar Threads

  1. How do I add: <?xml version='1.0'>
    By Lund01 in forum XML
    Replies: 4
    Last Post: 07-13-2011, 02:26 AM
  2. Version 6.0.25
    By alicez in forum New To Java
    Replies: 10
    Last Post: 05-20-2011, 07:48 PM
  3. java -version pointing to older version
    By deepakts in forum New To Java
    Replies: 4
    Last Post: 05-06-2010, 10:59 AM
  4. using different JDK version in one IDE
    By happyknappy in forum New To Java
    Replies: 3
    Last Post: 09-02-2008, 03:10 PM
  5. to version
    By Alan in forum New To Java
    Replies: 2
    Last Post: 05-31-2007, 07:05 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
  •