This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Java in General and the fly likes java 5  and java 6 compatability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java 5  and java 6 compatability" Watch "java 5  and java 6 compatability" New topic
Author

java 5 and java 6 compatability

Kowshik Nandagudi
Ranch Hand

Joined: Dec 09, 2010
Posts: 57
Hi All,

My production server has jre5 but the application in my local runs in jre6 . can i run that application in my production server which is java5


Best Regards,
Kowshik NS
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20128
    
  30

Only if you
a) do not use any class, method or field that was introduced in Java 6; these will have a "Since Java 1.6" inside the Javadoc pages.
b) use the -target 1.5 compiler flag to get binary compatibility. If you forget this you will get an error when running your code.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java 5 and java 6 compatability
 
It's not a secret anymore!