简体   繁体   中英

Is there a Java 7 to Java 6 converter?

Android SDK requirements state that either JDK 5 or JDK 6 is required.

However, I have a Java class library written in Java 7 and I would like to use it for my Android project.

Instead of manually converting Java 7 to Java 6 by hand, I was wondering if anyone know of a converter that could do this job for me?

Or do we have to code one up from scratch?

Do you have the source for the JAR? If so, you can use the javac -target parameter set to either 5 or 6 to generate either Java 5 or 6 class files. See this page .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM