Showing posts with label Ant. Show all posts
Showing posts with label Ant. Show all posts

Friday, May 13, 2011

Flex 3.5 and using asdocs

I just noticed that running asdocs on 3.5 will throw the following error:

Loading configuration file C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\flex-config.xml
Adobe ASDoc
Version 3.5.0 build 12683
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
Error: ” is not a directory
Use ‘asdoc -help’ for information about using the command line.

This is happening because the asdocs folder, and more importantly asdocs/templates folder wasn't included in the 3.5 distribution of the Flex SDK.  Simply copy asdocs from 3.4 or another 3.x sdk and it'll work.

Tuesday, March 08, 2011

DSC Deployment Issue

When using the LiveCycle Component tool as I've blogged about in the past, sometimes you'll run into class issues when deploying your dsc to either a LiveCycle 8.2 or ES2 server that looks like the following:
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file

What you can do to rectify this is to specify the version that your javac task is targeting like so:

<target name="compile" depends="prepare">
<javac destdir="${classes.dir}" classpathref="class.path" debug="on" deprecation="on" optimize="off" target="1.5">
<src path="${src.dir}"/>
</javac>
</target>

Wednesday, June 02, 2010

Compc not found...

I was setting up another project today and I ran into an odd issue with compc in my ant tasks. Here is the error that I was getting:

compile:
[compc] java.lang.NoClassDefFoundError: flex2/tools/Compc
[compc] Caused by: java.lang.ClassNotFoundException: flex2.tools.Compc
[compc] at java.net.URLClassLoader$1.run(Unknown Source)
[compc] at java.security.AccessController.doPrivileged(Native Method)
[compc] at java.net.URLClassLoader.findClass(Unknown Source)
[compc] at java.lang.ClassLoader.loadClass(Unknown Source)
[compc] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[compc] at java.lang.ClassLoader.loadClass(Unknown Source)
[compc] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[compc] Could not find the main class: flex2.tools.Compc. Program will exit.
[compc] Exception in thread "main"

BUILD FAILED
D:\xx\xx\xx\build.xml:91: compc task failed.

This was the actual location of my flex_sdk:

C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in (2)\sdks\3.2.0.3958

Oddly enough, I tried all sorts of different combinations to reproduce this in another location to no avail. After digging through the following posts I moved the sdk to the root of my drive and that seemed to do the trick.

For more reading:
http://bugs.adobe.com/jira/browse/SDK-13003
https://bugs.adobe.com/jira/browse/SDK-13602