CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    6

    Compiling Old Code (1.0, 1.2)

    I have some old source written for Java versions 1.0 and 1.2. I've noticed that the javac -source option only allows compiling for 1.3 and on.

    Is there a way to compile with 1.0 and 1.2?
    If so, how?

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Compiling Old Code (1.0, 1.2)

    The compiler -source option only determines whether code with assertions will be accepted, it doesn't stop you compiling older versions. In principle, the Java language is backwardly compatible, so you should be able to compile the code OK - although you may have to change names if they clash with new keywords.

    The main thing to watch out for is library code. This will probably have changed a lot over the years, so you may need access to the original libraries to get a clean compile.

    Why not try it and see?

    Programming can be fun, so can cryptography; however they should not be combined...
    Kreitzberg and Shneiderman
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured