participate


Java Compiler - Why did class version go to 50?
<<   Back to Forum  |   Give us Feedback
This topic has 2 replies on 1 page.
jordanz
Posts:57
Registered: 1/8/98
Why did class version go to 50?   
Jan 8, 2007 3:49 PM

 
Sorry if this is posted somewhere else but it doesn't seem to be possible to search just the Java Compiler board...

Why was the class file version incremented to 50 in Java 6? Now, if I compile with Java 6 I can't run in Java 5. Is there a way around this?
 
PeterAhe
Posts:408
Registered: 12/7/00
Re: Why did class version go to 50?   
Jan 9, 2007 6:09 AM (reply 1 of 2)  (In reply to original post )

 
http://blogs.sun.com/ahe/entry/javac_default_class_file_version
 
jordanz
Posts:57
Registered: 1/8/98
Re: Why did class version go to 50?   
Jan 9, 2007 10:56 AM (reply 2 of 2)  (In reply to #1 )

 
Thanks.

FYI - for others. Add "-target 5" to your javac command line to work around this.
 
This topic has 2 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 28
  • Guests : 133

About Sun forums
  • Oracle Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Oracle Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums