flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Konovalov <oleg...@gmail.com>
Subject Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?
Date Sat, 08 Oct 2016 19:16:43 GMT
Make sure you install JDK, not just JRE - which is a small part of it.

And yes, try to compile on Java7 level, that might help with your problem.


>BTW Why do you "usually select Java7 compilation level" ?
>Why not latest if it works ok?
it is internal issue - we inherited Flex+Java app, and slowly upgrading it
(SDK, Flex-Spring integration, Spring3->4, ...).
So far we haven't used JDK8 in production, maybe we should try it soon,
but not using a single JDK8 feature today.
Actually, planning to slowly migrate from Flex to Angular2...


On Sat, Oct 8, 2016 at 2:21 PM, Nemi <neminovno@gmail.com> wrote:

> Hi Oleg,
>
> For now, I have just tried to manually replace FB 4.7 original "jre" folder
> contents (v1.6.0) with v1.8 and FB starts ok, Ant scripts works ok, but
> when
> I do clean project I got "An internal build error has occured. See the
> error
> log for more information.", and in error view I can see:
>
> ----------------------------------------
> java.version=1.8.0_101
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
> Command-line arguments:  -os win32 -ws win32 -arch x86_64
>
> Uncaught exception in compiler
>
> java.lang.IllegalArgumentException: Comparison method violates its general
> contract!
>         at java.util.TimSort.mergeHi(Unknown Source)
>         at java.util.TimSort.mergeAt(Unknown Source)
>         at java.util.TimSort.mergeCollapse(Unknown Source)
>         at java.util.TimSort.sort(Unknown Source)
>         at java.util.Arrays.sort(Unknown Source)
>         at flex2.compiler.swc.SwcGroup.updateMaps(SwcGroup.java:279)
>         at flex2.compiler.swc.SwcGroup.<init>(SwcGroup.java:65)
>         at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:107)
>         at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:89)
>         at flex2.compiler.CompilerSwcContext.load(
> CompilerSwcContext.java:92)
>         at flex2.tools.oem.Application.recompile(Application.java:1169)
>         at flex2.tools.oem.Application.compile(Application.java:893)
>         at
> flex2.tools.flexbuilder.BuilderApplication.compile(
> BuilderApplication.java:367)
>         at
> com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$
> MyBuilder.mybuild(ASApplicationBuilder.java:309)
>         at
> com.adobe.flexbuilder.multisdk.compiler.internal.
> ASApplicationBuilder.build(ASApplicationBuilder.java:128)
>         at
> com.adobe.flexbuilder.multisdk.compiler.internal.
> ASBuilder.build(ASBuilder.java:203)
>         at
> com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(
> ASItemBuilder.java:93)
>         at
> com.adobe.flexbuilder.project.compiler.internal.
> FlexProjectBuilder.buildItem(FlexProjectBuilder.java:708)
>         at
> com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(
> FlexProjectBuilder.java:412)
>         at
> com.adobe.flexbuilder.project.compiler.internal.
> FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:171)
>         at
> org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
>         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>         at
> org.eclipse.core.internal.events.BuildManager.
> basicBuild(BuildManager.java:199)
>         at
> org.eclipse.core.internal.events.BuildManager.
> basicBuild(BuildManager.java:239)
>         at
> org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
>         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>         at
> org.eclipse.core.internal.events.BuildManager.
> basicBuild(BuildManager.java:295)
>         at
> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.
> java:351)
>         at
> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
>         at
> org.eclipse.core.internal.events.AutoBuildJob.doBuild(
> AutoBuildJob.java:143)
>         at org.eclipse.core.internal.events.AutoBuildJob.run(
> AutoBuildJob.java:241)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> ----------------------------------------
>
> So, I was not lucky with this quick try :)
>
> BTW Why do you "usually select Java7 compilation level" ? Why not latest if
> it works ok?
>
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/How-to-set-Flash-Builder-4-7-Win7-
> 64bit-to-use-Java-1-8-tp13775p13790.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>



-- 
Thank you,
Oleg.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message