Results 1 to 10 of 10
  1. #1
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    263
    Rep Power
    6

    Default Using Old Version of Java

    For a number of stupid excuses, my CS professor is requiring us to use an old outdated IDE and an OLD version of java. I'm worried that some of the syntax I'm use to using will not be included in his old version of Java, so is there a line of code to put in my files to tell them to compile using an OLD version of Java... or something like that? >_>

    thanks.

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

    Default

    You can code your application with old versions and run it with the latest versions. But the vise verse make you lots of trouble.

    My advice is move with the latest stuff, no point of hang on with old version. What you really going to learn with old stuff? I don't know what's your professors' expectation.

  3. #3
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    263
    Rep Power
    6

    Default

    From my observation, he's a stubborn, old fashioned guy... he's not even a Java programmer, yet they're making him teach a Java based course. I fully agree, and would much rather use newer stuff... but he refuses to upgrade his personal version of Java, and so forces us to use an older version. Trust me, I've complained to the fullest extent of my abilities. xD

    Well, if I can run older stuff with newer Java, how do I know if the code will actually run on his older version? Quite frankly, I don't know what is new and what is old. That's my main problem. :|

    Basically, I have/use Java 6 and he has Java 4 to test the code on. Idk if enough has changed to affect the functioning of the program in any way.
    Last edited by AndrewM16921; 09-26-2010 at 08:14 PM.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    That's an interesting requirement from your prof.
    What level of the SDK does he want you to use?
    Personally I use 1.4 for most of my stuff because I have a compiler from MS that does subsecond compiles vs the current javac which takes seconds. I only use the newest for generics and new features used after 1.5.

  5. #5
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    263
    Rep Power
    6

    Default

    He requires us to use JBuilder 2005 with Java 1.4, and submit it in a zipped JBuilder Project File. Typically speaking, simple things like System.out, java.util.Scanner, and basic syntax should still work fine in 1.4, correct? I'm more worried for when we get to the GUI stuff.
    Last edited by AndrewM16921; 09-26-2010 at 08:38 PM.

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Not familiar with JBuilder. Will it tell you if you try to use a method or class that is younger than 1.4? If you try to use a 1.6 class like Console or an Arrays class method like toString, will it tell you? I'm not sure where you will have a problem.

    Do you have the JDK API doc for 1.4? The doc for 1.6 has notes for most classes and methods saying what release they came with.

  7. #7
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    263
    Rep Power
    6

    Default

    Well the only problem I had was with java.util.Scanner, which was introduced in Java 5 if I recall. So, I wrote my own little class to handle that... I think I'll manage from here. Thanks very much for the help! :)

    Of course, any further information is welcome from anyone who has it.

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

    Default

    Quote Originally Posted by AndrewM16921 View Post
    Well, if I can run older stuff with newer Java, how do I know if the code will actually run on his older version? Quite frankly, I don't know what is new and what is old. That's my main problem. :|

    Basically, I have/use Java 6 and he has Java 4 to test the code on. Idk if enough has changed to affect the functioning of the program in any way.
    Actually there are a lot, and I think the most suitable way to find this is read all the release notes and make your own list. Normally programmers are remember only the major changes, between older and newer.

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

    Default

    You can do one thing, but may bit of hard work. Using older version such as 1.4, still you can build the same functionality. If your design strong enough to do that, then nothing to worry. But the problem is, if you are going to user older versions deeper and deeper then the workload is more. When comes to newer versions, what Suns' people does is improve the functionality to do in easy steps with the considering there performance, and safety.

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,825
    Rep Power
    19

    Default

    Quote Originally Posted by Norm View Post
    Not familiar with JBuilder. Will it tell you if you try to use a method or class that is younger than 1.4? If you try to use a 1.6 class like Console or an Arrays class method like toString, will it tell you? I'm not sure where you will have a problem.

    Do you have the JDK API doc for 1.4? The doc for 1.6 has notes for most classes and methods saying what release they came with.
    Yep, JBuilder will highlight all of that. At least it did that when I used it years ago.

    Not too sure about this chap zipping up JBuilder and handing out copies...

    OP: Anyway, since JBuilder should inform you if you are trying to do things that aren't allowed in 1.4 then I don;t see the problem.

    GUI-wise there's not too much different.

Similar Threads

  1. How to find java version
    By roshithmca in forum New To Java
    Replies: 3
    Last Post: 04-27-2012, 06:10 AM
  2. Version of java
    By waqar100 in forum New To Java
    Replies: 3
    Last Post: 06-04-2010, 04:29 AM
  3. java -version pointing to older version
    By deepakts in forum New To Java
    Replies: 4
    Last Post: 05-06-2010, 09:59 AM
  4. java dumps(1.6 version)
    By manieie05 in forum New To Java
    Replies: 0
    Last Post: 04-17-2009, 10:58 AM
  5. version of java????
    By j2vdk in forum New To Java
    Replies: 6
    Last Post: 09-07-2008, 04:34 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
  •