dcsimg
Making class files created by Eclipse version independent?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, November 9, 2006 07:24 AM


I'm developing an application in which i have java 5 in my local machine. But when i take this aplication to production which has jre 1.4, it gives me error

java.lang.UnsupportedClassVersionError. (Unsupported major.minor version 49.0)


How can i make the class file i generate using Eclipse run on previous versions of JREs also.
Pease help

Re: Making class files created by Eclipse version independent?

Posted By:   WarnerJan_Veldhuis  
Posted On:   Thursday, November 9, 2006 08:21 AM

As long as you don't use Java 5 features like generics and auto-boxing, you can compile with these options: javac -source 1.4 -target 1.4
About | Sitemap | Contact