FlexJS SDK

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

FlexJS SDK

Carlos Cruz

In case the developers want to know. I get compiler error in Flash Builder 4.7 64 bit on Windows 10 and Flash Builder 4.6 32 bit on Windows 7 64 bit. This is what I’m doing:

1.       With the Windows installer I install FlexJS SDK

2.       add the SDK to Flash Builder

3.       Import he launch configurations.

4.       Create a new Flex Project

5.       Convert Flex Project to FlexJS project

6.       The autobuild and clean display the same compiler error messages.

 

I would like to know if this is an issue with Windows systems or if I’m doing something wrong. If I’m going to start working with FlexJS I need a stable IDE and a fairly stable compiler.

 

Thx!

Carlos

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS SDK

Alex Harui-2
Hi Carlos.

What version of FlexJS or Royale did you install, and what error(s) are you getting?

Thanks,
-Alex

From: Carlos Cruz <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Saturday, October 28, 2017 at 8:38 PM
To: "[hidden email]" <[hidden email]>
Subject: FlexJS SDK

In case the developers want to know. I get compiler error in Flash Builder 4.7 64 bit on Windows 10 and Flash Builder 4.6 32 bit on Windows 7 64 bit. This is what I’m doing:

1.       With the Windows installer I install FlexJS SDK

2.       add the SDK to Flash Builder

3.       Import he launch configurations.

4.       Create a new Flex Project

5.       Convert Flex Project to FlexJS project

6.       The autobuild and clean display the same compiler error messages.

 

I would like to know if this is an issue with Windows systems or if I’m doing something wrong. If I’m going to start working with FlexJS I need a stable IDE and a fairly stable compiler.

 

Thx!

Carlos

Reply | Threaded
Open this post in threaded view
|

RE: FlexJS SDK

Carlos Cruz

Both machines have a several Flex SDKs but the one I’m using to test is SDK FlashJS 0.8.0 installed with the installer;

 

I’m including the full error output in case it’s helpful. FB 4.7 and FB 4.6 produce slightly different messages.

 

Flash Builder 4.7

Message: Uncaught exception in compiler Plug-in: com.adobe.flexbuilder.project

Exception stack trace:

ava.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/ErrorManager : Unsupported major.minor version 51.0

                at java.lang.ClassLoader.defineClass1(Native Method)

                at java.lang.ClassLoader.defineClassCond(Unknown Source)

                at java.lang.ClassLoader.defineClass(Unknown Source)

                at java.security.SecureClassLoader.defineClass(Unknown Source)

                at java.net.URLClassLoader.defineClass(Unknown Source)

                at java.net.URLClassLoader.access$000(Unknown Source)

                at java.net.URLClassLoader$1.run(Unknown Source)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(Unknown Source)

                at com.adobe.flexbuilder.project.sdks.FlexClassLoader.findClass(FlexClassLoader.java:159)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at com.adobe.flexbuilder.project.sdks.FlexClassLoader.loadClass(FlexClassLoader.java:129)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at org.apache.flex.compiler.internal.driver.mxml.flexjs.MXMLFlexJSBackend.createPublisher(MXMLFlexJSBackend.java:128)

                at org.apache.flex.compiler.internal.driver.mxml.flexjs.MXMLFlexJSBackend.createPublisher(MXMLFlexJSBackend.java:62)

                at org.apache.flex.compiler.clients.MXMLJSCFlex.compile(MXMLJSCFlex.java:327)

                at org.apache.flex.compiler.clients.MXMLJSCFlex._mainNoExit(MXMLJSCFlex.java:245)

                at org.apache.flex.compiler.clients.MXMLJSCFlex.mainNoExit(MXMLJSCFlex.java:202)

                at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:352)

                at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:287)

                at flex2.tools.oem.Application.compile(Application.java:638)

                at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:366)

                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.resources.Workspace.buildInternal(Workspace.java:513)

                at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)

                at org.eclipse.jdt.internal.ui.util.CoreUtility$BuildJob.run(CoreUtility.java:165)

                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 

Session Data:

eclipse.buildId=M20110909-1335

java.version=1.6.0_31

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US

Command-line arguments:  -os win32 -ws win32 -arch x86_64

 

FYI the installed Java is Java 1.8 JDK

 

 

Flash Builder 4.6

Error 1: Problems occurred when invoking code from plug-in: "org.eclipse.core.resources"

 

Exception stack trace

java.lang.NoClassDefFoundError: flex2/tools/oem/OEMException$CircularLibraryDependencyException

                at java.lang.Class.getDeclaredConstructors0(Native Method)

                at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)

                at java.lang.Class.getConstructor0(Unknown Source)

                at java.lang.Class.newInstance0(Unknown Source)

                at java.lang.Class.newInstance(Unknown Source)

                at com.adobe.flexbuilder.project.sdks.FlexSDK.createSDKDependentImplementation(FlexSDK.java:945)

                at com.adobe.flexbuilder.project.sdks.FlexSDK.createSDKDependentImplementation(FlexSDK.java:930)

                at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProjectSettings.computeCompilerLibraryPath(ActionScriptProjectSettings.java:1620)

                at com.adobe.flexbuilder.project.compiler.internal.BuilderUtils.copyAndOptimizeRSLs(BuilderUtils.java:130)

                at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:451)

                at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:187)

                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)

Caused by: java.lang.ClassNotFoundException: flex2.tools.oem.OEMException$CircularLibraryDependencyException

                at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

                at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

                at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

                at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at com.adobe.flexbuilder.project.sdks.FlexClassLoader.loadClass(FlexClassLoader.java:133)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at java.lang.ClassLoader.loadClassInternal(Unknown Source)

                ... 23 more

 

Session Data

eclipse.buildId=I20100608-0911

java.version=1.6.0_16

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

Command-line arguments:  -os win32 -ws win32 -arch x86

 

 

Error 2:Uncaught exception in compiler

 

Exception stack trace:

java.lang.NoClassDefFoundError: flex2/tools/oem/OEMException$CircularLibraryDependencyException

                at java.lang.Class.getDeclaredConstructors0(Native Method)

                at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)

                at java.lang.Class.getConstructor0(Unknown Source)

                at java.lang.Class.newInstance0(Unknown Source)

                at java.lang.Class.newInstance(Unknown Source)

                at com.adobe.flexbuilder.project.sdks.FlexSDK.createSDKDependentImplementation(FlexSDK.java:945)

                at com.adobe.flexbuilder.project.sdks.FlexSDK.createSDKDependentImplementation(FlexSDK.java:930)

                at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProjectSettings.computeCompilerLibraryPath(ActionScriptProjectSettings.java:1620)

                at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.applySettings(ASBuilder.java:357)

                at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.setup(ASApplicationBuilder.java:65)

                at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.setup(ASItemBuilder.java:50)

                at com.adobe.flexbuilder.project.compiler.BuilderFactory.createBuilderWithData(BuilderFactory.java:77)

                at com.adobe.flexbuilder.project.compiler.BuilderFactory.createBuilder(BuilderFactory.java:86)

                at com.adobe.flexbuilder.project.compiler.BuilderManager.getBuilder(BuilderManager.java:190)

                at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.preBuild(FlexIncrementalBuilder.java:491)

                at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectBuilder.java:604)

                at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:382)

                at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:187)

                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)

Caused by: java.lang.ClassNotFoundException: flex2.tools.oem.OEMException$CircularLibraryDependencyException

                at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

                at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

                at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

                at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at com.adobe.flexbuilder.project.sdks.FlexClassLoader.loadClass(FlexClassLoader.java:133)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at java.lang.ClassLoader.loadClassInternal(Unknown Source)

                ... 30 more

 

Session Data

eclipse.buildId=I20100608-0911

java.version=1.6.0_16

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

Command-line arguments:  -os win32 -ws win32 -arch x86

 

Java installed Java 1.7 JDK

 

From: Alex Harui [mailto:[hidden email]]
Sent: Sunday, October 29, 2017 1:40 AM
To: [hidden email]
Subject: Re: FlexJS SDK

 

Hi Carlos.

 

What version of FlexJS or Royale did you install, and what error(s) are you getting?

 

Thanks,

-Alex

 

From: Carlos Cruz <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Saturday, October 28, 2017 at 8:38 PM
To: "[hidden email]" <[hidden email]>
Subject: FlexJS SDK

 

In case the developers want to know. I get compiler error in Flash Builder 4.7 64 bit on Windows 10 and Flash Builder 4.6 32 bit on Windows 7 64 bit. This is what I’m doing:

1.       With the Windows installer I install FlexJS SDK

2.       add the SDK to Flash Builder

3.       Import he launch configurations.

4.       Create a new Flex Project

5.       Convert Flex Project to FlexJS project

6.       The autobuild and clean display the same compiler error messages.

 

I would like to know if this is an issue with Windows systems or if I’m doing something wrong. If I’m going to start working with FlexJS I need a stable IDE and a fairly stable compiler.

 

Thx!

Carlos

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS SDK

Justin Mclean
Hi,

Flash Builder 4.7 
Message: Uncaught exception in compiler Plug-in: com.adobe.flexbuilder.project
Exception stack trace:
ava.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/ErrorManager : Unsupported major.minor version 51.0

Looks like Flash Builder is getting java 7 (i.e. version 51) but is expecting Java 6 trying "-target 1.6” as a compiler option may fix it.

Thanks,
Justin
Reply | Threaded
Open this post in threaded view
|

RE: FlexJS SDK

Carlos Cruz

Thanks for the input, but the Flex compiler does not have an option “target” (I don’t think so anyways) although I don’t think this is the problem I did try changing the JRE compliance 1.6 and 1.7, FB does not seem to recognize JRE 1.8 (Windows -> preferences -> Java -> compilers -> JDK compliance) .

 

I think the issue is with flexJS 0.8.0 itself because FlexJS 0.7.0 does not give an error.

 

Thx!

Carlos

 

From: Justin Mclean [mailto:[hidden email]]
Sent: Sunday, October 29, 2017 1:16 PM
To: [hidden email]
Subject: Re: FlexJS SDK

 

Hi,



Flash Builder 4.7 

Message: Uncaught exception in compiler Plug-in: com.adobe.flexbuilder.project

Exception stack trace:

ava.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/ErrorManager : Unsupported major.minor version 51.0

 

Looks like Flash Builder is getting java 7 (i.e. version 51) but is expecting Java 6 trying "-target 1.6” as a compiler option may fix it.

 

Thanks,

Justin

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS SDK

Alex Harui-2
Hi Carlos,

See: <a href="https://cwiki.apache.org/confluence/display/FLEX/Using&#43;FlexJS&#43;with&#43;Adobe&#43;Flash&#43;Builder">https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder

Where it says: 

Also, starting with Apache FlexJS 0.8.0, you will need to have upgraded Flash Builder to run on Java 7 or 8.  See http://blogs.adobe.com/flashplayer/2016/09/running-adobe-flash-builder-on-mac-with-java-78.html

Someday we'll get this information ported over to Royale.

Thanks
-Alex

From: Carlos Cruz <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Sunday, October 29, 2017 at 1:25 PM
To: "[hidden email]" <[hidden email]>
Subject: RE: FlexJS SDK

Thanks for the input, but the Flex compiler does not have an option “target” (I don’t think so anyways) although I don’t think this is the problem I did try changing the JRE compliance 1.6 and 1.7, FB does not seem to recognize JRE 1.8 (Windows -> preferences -> Java -> compilers -> JDK compliance) .

 

I think the issue is with flexJS 0.8.0 itself because FlexJS 0.7.0 does not give an error.

 

Thx!

Carlos

 

From: Justin Mclean [[hidden email]]
Sent: Sunday, October 29, 2017 1:16 PM
To: [hidden email]
Subject: Re: FlexJS SDK

 

Hi,



Flash Builder 4.7 

Message: Uncaught exception in compiler Plug-in: com.adobe.flexbuilder.project

Exception stack trace:

ava.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/ErrorManager : Unsupported major.minor version 51.0

 

Looks like Flash Builder is getting java 7 (i.e. version 51) but is expecting Java 6 trying "-target 1.6” as a compiler option may fix it.

 

Thanks,

Justin

Reply | Threaded
Open this post in threaded view
|

RE: FlexJS SDK

Carlos Cruz

Thx!!

Sorry if this is something I overlooked and wasted some of your time, I thought changing the target JRE and creating a new project would’ve taken care of this since I was already using Java 1.8.

 

As per the instructions I copied JRE 1.8.xxx into the FB…jre directory and the errors went away!

 

Thx again!!

Carlos

 

From: Alex Harui [mailto:[hidden email]]
Sent: Sunday, October 29, 2017 10:58 PM
To: [hidden email]
Subject: Re: FlexJS SDK

 

Hi Carlos,

 

 

Where it says: 

 

Also, starting with Apache FlexJS 0.8.0, you will need to have upgraded Flash Builder to run on Java 7 or 8.  See http://blogs.adobe.com/flashplayer/2016/09/running-adobe-flash-builder-on-mac-with-java-78.html

 

Someday we'll get this information ported over to Royale.

 

Thanks

-Alex

 

From: Carlos Cruz <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Sunday, October 29, 2017 at 1:25 PM
To: "[hidden email]" <[hidden email]>
Subject: RE: FlexJS SDK

 

Thanks for the input, but the Flex compiler does not have an option “target” (I don’t think so anyways) although I don’t think this is the problem I did try changing the JRE compliance 1.6 and 1.7, FB does not seem to recognize JRE 1.8 (Windows -> preferences -> Java -> compilers -> JDK compliance) .

 

I think the issue is with flexJS 0.8.0 itself because FlexJS 0.7.0 does not give an error.

 

Thx!

Carlos

 

From: Justin Mclean [[hidden email]]
Sent: Sunday, October 29, 2017 1:16 PM
To: [hidden email]
Subject: Re: FlexJS SDK

 

Hi,




Flash Builder 4.7 

Message: Uncaught exception in compiler Plug-in: com.adobe.flexbuilder.project

Exception stack trace:

ava.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/ErrorManager : Unsupported major.minor version 51.0

 

Looks like Flash Builder is getting java 7 (i.e. version 51) but is expecting Java 6 trying "-target 1.6” as a compiler option may fix it.

 

Thanks,

Justin