Alex Harui wrote
> One thing I’ve hit:  FB is apparently stuck using Java 1.6.  That’s how
> old the version of Eclipse is that it uses.  Some of the code you’ve
> written uses Java 1.7.  Can we change back to Java 1.6 syntax?  Really,
> only the code paths used by FB seem to need to be in Java 1.6, so the
> flex-oem-compiler project and its dependencies.  I don’t know how Java
> version mixing works, but it might be possible to compile just compiler.jx
> and compiler.jx.tests with support for Java 1.7.
> 
> Thoughts?
> -Alex

I've run into this issue as well. I tried working around it by modifying
FlashBuilder.ini like so:

-vm
C:\Program Files\Java\jdk1.8.0_60\bin\javaw.exe

which made it possible to run asjsc from Flash Builder.  However, when I try
to run flex-falcon/build.xml from Flash Builder I am running into this issue
again. I don't yet understand which .jar file it is failing to execute:

BUILD FAILED
C:\flex-falcon\build.xml:66: The following error occurred while executing
this line:
C:\flex-falcon\compiler\build.xml:250:
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main :
Unsupported major.minor version 52.0

I've found this page which explains how to compile newer Java code to run
under earlier versions (write Java 1.7 code, run under 1.6):
http://javarevisited.blogspot.com/2015/05/fixing-unsupported-majorminor-version.html
Basically you need to use the -target switch when compiling the java code.



--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FalconJX-Vanilla-compiler-all-externs-parsing-and-contained-in-SWC-tp47556p50889.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to