You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Nemi <ne...@gmail.com> on 2016/10/06 21:42:06 UTC

How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

I want to setup FB 4.7 to use latest Java.

Has anyone done that? Is it ok just to set other JRE in Preferences as
default? What about existing projects?

What I have now in FB's jre folder:
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

Related:
ADT build fails: "Could not generate timestamp: Remote host closed
connection during handshake"
http://apache-flex-users.2333346.n4.nabble.com/Error-handshaking-for-timestamp-during-AIR-packaging-tp13743.html




--
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-tp13775.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Nemi <ne...@gmail.com>.
Thanks. jre from jdk folder is really different.
After installing JDK, and copy jre folder from there to FB folder, and
adding a line to FlashBuilder.ini:
"-Djava.util.Arrays.useLegacyMergeSort=true"

Packaging error: Could not generate timestamp
<https://forums.adobe.com/message/9053353>  
"internal build error" happens very often on 64bit Eclipse Juno
<https://issues.apache.org/jira/browse/FLEX-33744>  
compiler with apache flex 4.10 occur error : Uncaught exception in compiler.
<https://issues.apache.org/jira/browse/FLEX-33667>  
Problem with build. <https://forums.adobe.com/thread/938014>  
JDK 7 Compatibility Issues <http://kb.yworks.com/article/550/>  



--
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-tp13775p13792.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Oleg Konovalov <ol...@gmail.com>.
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 <ne...@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.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Nemi <ne...@gmail.com>.
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.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Oleg Konovalov <ol...@gmail.com>.
Hi,

We run FB4.7 with Java7 and now Java8 64 (but usually select Java7
compilation level) bit
on Win10 without any issues.

Just point JAVA_HOME to it, select it inside Eclipse as current, and voila.

What problems do you experience?


Thank you,
Oleg.

On Fri, Oct 7, 2016 at 9:42 PM, Nemi <ne...@gmail.com> wrote:

> Yes, you can run. But, in my case when building, new thing is that I must
> add
> new line
> "-tsa other_than_default_url" to every Ant script.
>
> And also, as doug777 noted, in Flash Builder 4.7 Export Release Build
> option
> fails on the end of packaging with timestamping error:
> "Error creating native installer file:Could not generate timestamp: Remote
> host closed connection during handshake"
>
>
> Alex Harui wrote
> > Sorry, forgot that was Mac.
> >
> > I haven't used Windows much lately.  Is there no way to run Java 1.6 for
> > FB on Windows any more?
> >
> > -Alex
> >
> > On 10/6/16, 5:27 PM, "Nemi" &lt;
>
> > neminovno@
>
> > &gt; wrote:
> >
> >>Thank you, but that is guide for Mac(?) I wonder how to do it on Windows
> 7
> >>64bit.
> >>From my previous experience, I remember having issues when having
> multiple
> >>installed 32 vs 64bit Java versions.
> >>
> >>
> >>
> >>
> >>--
> >>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-tp13775p13777.html
> >>Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>
>
>
>
> --
> 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-tp13775p13786.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>



-- 
Thank you,
Oleg.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Nemi <ne...@gmail.com>.
Yes, you can run. But, in my case when building, new thing is that I must add
new line 
"-tsa other_than_default_url" to every Ant script.

And also, as doug777 noted, in Flash Builder 4.7 Export Release Build option
fails on the end of packaging with timestamping error:
"Error creating native installer file:Could not generate timestamp: Remote
host closed connection during handshake"


Alex Harui wrote
> Sorry, forgot that was Mac.
> 
> I haven't used Windows much lately.  Is there no way to run Java 1.6 for
> FB on Windows any more?
> 
> -Alex
> 
> On 10/6/16, 5:27 PM, "Nemi" &lt;

> neminovno@

> &gt; wrote:
> 
>>Thank you, but that is guide for Mac(?) I wonder how to do it on Windows 7
>>64bit.
>>From my previous experience, I remember having issues when having multiple
>>installed 32 vs 64bit Java versions.
>>
>>
>>
>>
>>--
>>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-tp13775p13777.html
>>Sent from the Apache Flex Users mailing list archive at Nabble.com.





--
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-tp13775p13786.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by doug777 <do...@gmail.com>.
FYI It is now not possible to do an Export Release Build on Windows 10 with
Timestamp selected in FlexBuilder 3 or FlashBuilder 4.x.

Doug




--
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-tp13775p13780.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Alex Harui <ah...@adobe.com>.
Sorry, forgot that was Mac.

I haven't used Windows much lately.  Is there no way to run Java 1.6 for
FB on Windows any more?

-Alex

On 10/6/16, 5:27 PM, "Nemi" <ne...@gmail.com> wrote:

>Thank you, but that is guide for Mac(?) I wonder how to do it on Windows 7
>64bit.
>From my previous experience, I remember having issues when having multiple
>installed 32 vs 64bit Java versions.
>
>
>
>
>--
>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-tp13775p13777.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Nemi <ne...@gmail.com>.
Thank you, but that is guide for Mac(?) I wonder how to do it on Windows 7
64bit.
From my previous experience, I remember having issues when having multiple
installed 32 vs 64bit Java versions.




--
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-tp13775p13777.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Alex Harui <ah...@adobe.com>.
See 
http://blogs.adobe.com/flashplayer/2016/09/running-adobe-flash-builder-on-m
ac-with-java-78.html

I haven't tried it myself.

-Alex

On 10/6/16, 2:42 PM, "Nemi" <ne...@gmail.com> wrote:

>I want to setup FB 4.7 to use latest Java.
>
>Has anyone done that? Is it ok just to set other JRE in Preferences as
>default? What about existing projects?
>
>What I have now in FB's jre folder:
>java version "1.6.0_31"
>Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
>Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
>
>Related:
>ADT build fails: "Could not generate timestamp: Remote host closed
>connection during handshake"
>http://apache-flex-users.2333346.n4.nabble.com/Error-handshaking-for-times
>tamp-during-AIR-packaging-tp13743.html
>
>
>
>
>--
>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-tp13775.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by Nemi <ne...@gmail.com>.
And then, what file to run?
I'll try it when I get more time. Thanks.




--
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-tp13775p13785.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to set Flash Builder 4.7 Win7 64bit to use Java 1.8 ?

Posted by マルマン 田中 良夫 <y-...@mcs-kk.co.jp>.
Hi

I installed FB4.6 Plug-in with Eclipse3.7 on Windows7 64bit and java8.

On FB4.7, May be similar step is available.
If this step is useful, please do it.

1. Install Java8 64bit.
    Set the environment variable JAVA_HOME and PATH.
    (ex) JAVA_HOME=D:\Java8_64
         PATH=%JAVA_HOME%\bin

2. Download and deploy Eclipse.
    (ex) D:\eclipse3.7_64

3. Install FB4.7.

4. Make the link file in eclipse dropins folder.
    file   : fb-4_7-plugin-encoded.link
    content: path=C:/Program Files/Adobe/Adobe Flash Builder 4.7 (64 Bit)

5. Make the .eclipseextension file in FB eclipse folder.
    file   : .eclipseextension
    content: name=Eclipse Platform
             id=org.eclipse.platform
             version=3.7.0
    * if you use another version, change version no. (version=4.2.0 etc)

On 2016/10/07 6:42, Nemi wrote:
> I want to setup FB 4.7 to use latest Java.
>
> Has anyone done that? Is it ok just to set other JRE in Preferences as
> default? What about existing projects?
>
> What I have now in FB's jre folder:
> java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
>
> Related:
> ADT build fails: "Could not generate timestamp: Remote host closed
> connection during handshake"
> http://apache-flex-users.2333346.n4.nabble.com/Error-handshaking-for-timestamp-during-AIR-packaging-tp13743.html
>
>
>
>
> --
> 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-tp13775.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>
>


-- 
------------------------------------------
\u30de\u30eb\u30de\u30f3\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30b5\u30fc\u30d3\u30b9\u682a\u5f0f\u4f1a\u793e
   \u4f01\u753b\u30fb\u55b6\u696d\u672c\u90e8\u3000\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u90e8\u3000\u30b7\u30b9\u30c6\u30e0\u958b\u767a
                           \u7530\u4e2d\u3000\u826f\u592b

Tel\uff1a0172-33-5166\u3000Fax\uff1a0172-36-3362
E-Mail\uff1ay-tanaka@mcs-kk.co.jp
URL\uff1a http://www.mcs-kk.co.jp
------------------------------------------