-
November 10th, 2008, 07:55 PM
#1
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?
-
November 11th, 2008, 03:16 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|