you need Air SDK
Alexey Vashchenkov wrote:
I tried to compile simple air application but I have en error.
> Information:d:\programming\java\jetbrains\intellij idea 9.0m1\jre\jre/bin/java.exe -Dapplication.home=D:/programming/flex/Adobe/Flex Builder 3/sdks/3.3 -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -classpath D:\programming\Java\JetBrains\IntelliJ IDEA 9.0M1/plugins/flex > /lib/idea-fcsh-fix.jar;D:/programming/flex/Adobe/Flex Builder 3/sdks/3.3/lib/fcsh.jar com.intellij.flex.FcshLauncher > Information:Adobe Flex Compiler SHell (fcsh) > Information:Version 3.3.0 build 4852 > Information:Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved. > Information:mxmlc -load-config+=Admin_temp_flex_config.xml > Information:Loading configuration file D:\programming\flex\Adobe\Flex Builder 3\sdks\3.3\frameworks\flex-config.xml > Information:Loading configuration file F:\work\programming\contextshop\proj_files\Admin_temp_flex_config.xml > Information:Compilation completed with 1 error and 0 warnings > Information:1 error > Information:0 warnings > F:\work\programming\contextshop\flex\admin\src\Admin.mxml > Error:Error:Unable to locate specified base class 'mx.core.WindowedApplication' for component class 'Admin'. > > >
Here the code of Admin.mxml
<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:VBox> <mx:Button label="1"></mx:Button> </mx:VBox> </mx:WindowedApplication>
I have select all libraries from flex sdk directory (only for player 10)
What should i do to be able comiple air appplication?
Original message URL: http://www.jetbrains.net/devnet/message/5241254#5241254
IntelliJ Labs / JetBrains Inc.
"Develop with pleasure!"
I'm having the same problem. However, I do use an Adobe AIR SDK. Here is my configuration:
- IDEA 9.0 beta (build# 90.193)
- Adobe Flex 4 SDK
- Adobe AIR 2 SDK (simply unzipped it at the root folder of the Flex SDK)
Maybe IDEA does not support these recent SDKs from Adobe?
I get the error when trying to compile the generated Hello World application.
Thank you very much in advance,
IDEA should understand AIR 2.0beta SDK. Make sure that you haven't removed <Flex SDK>frameworks/libs/air/airframework.swc file. AIR 2.0beta SDK doesn't contain it, but Flex SDK 4 does.
Do you use AIR SDK in terms of IDEA for your Flex module (or facet)? Please see http://blogs.jetbrains.com/idea/2009/05/air-applications-development-in-intellij-idea-9/ Information is a bit outdated there, because AIR run configuration is now separate from Flex one but general things remained the same, so I hope it will help.
If not - please provide some details:
- Full contents of Messages tool window after unsuccessful compilation (invoke compilation by using Build -> Rebuild Project)
- Screenshot of AIR SDK configured in IDEA (its Classpath tab)
- Screenshot of Dependencies tab and Flex Compiler Settings tab of your Flex module (or Flex facet configuration page)
Thank you very much for your quick reply. Yes, my "airframework.swc" had disappeared. I'm sorry, I did not notice it. It's working now. I'll now further investigate and test the Flex support.
I did many tests and everything seems OK. However, I noticed that the following construct is not recognized yet:
<fx:DesignLayer d:id="26" ai:objID="4723ef00" d:userLabel="sombra fondo">
<!-- Here, graphics:BackgroundImage refers to an FXG file inside assets/graphics -->
<graphics:BackgroundImage resizeMode="scale" percentHeight="100" left="3" top="54" right="3" bottom="3"/>
Idea signals that "Element graphics is not allowed there"...The code compiles and runs well, this is only a small inconvenience. Maybe there is a workaround in Idea's configuration?
Do you have news about the FXG support ? I see nothing about this. Maybe you have a roadmap about this topic ?
Thank you very much in advance,