1 Reply Latest reply on Jan 23, 2012 12:48 AM by Flex harUI

    Running or creating sdk2 projects with FB4.5

    oznevo

      I need to run and compile a project on sdk 2 and I use FB4.5. I downloaded SDK 2.0.1 (HF3) and added it to the SDKs in FB.

      I then created a new Library project and stated that the SDK for it will be the SDK2. The project was created with errors. From the .log:

      !ENTRY com.adobe.flexbuilder.project 4 43 2012-01-23 12:05:53.522

      !MESSAGE C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\2.0.1_HF3\templates\air\descriptor-template.xml (The system cannot find the path specified)

      !STACK 0

      java.io.FileNotFoundException: C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\2.0.1_HF3\templates\air\descriptor-template.xml (The system cannot find the path specified)

                at java.io.FileInputStream.open(Native Method)

                at java.io.FileInputStream.<init>(Unknown Source)

                at com.adobe.flexbuilder.project.sdks.FlexSDK.getAirVersion(FlexSDK.java:1103)

                at com.adobe.flexide.editorcore.ui.sdks.FlexSDKChooserControl.updateTextInfoField(FlexSDKCho oserControl.java:1107)

                at com.adobe.flexide.editorcore.ui.sdks.FlexSDKChooserControl.access$4(FlexSDKChooserControl .java:1100)

                at com.adobe.flexide.editorcore.ui.sdks.FlexSDKChooserControl$5.widgetSelected(FlexSDKChoose rControl.java:790)

                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)

                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)

                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)

                at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)

                at org.eclipse.jface.window.Window.open(Window.java:801)

                at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java: 135)

                at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

                at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)

                at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

                at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)

                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)

                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)

                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)

                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)

                at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)

                at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)

                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

                at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)

                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)

                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)

                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)

                at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

       

       

      !ENTRY com.adobe.flexbuilder.project 4 43 2012-01-23 12:06:15.773

      !MESSAGE Uncaught exception in compiler

      !STACK 0

      java.lang.NoClassDefFoundError: flex2/linker/LinkerConfiguration

                at com.adobe.flexbuilder.multisdk.compiler.internal.FlexLibraryBuilder.setup(FlexLibraryBuil der.java:76)

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

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

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

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

                at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectB uilder.java:572)

                at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuild er.java:345)

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

                at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)

                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)

                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)

                at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)

                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)

                at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)

                at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)

                at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)

                at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)

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

      Caused by: java.lang.ClassNotFoundException: flex2.linker.LinkerConfiguration

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

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

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

                at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a: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)

                ... 20 more

       

      Can someone assist with those errors?

      Cheers