I would check what version of Java you're running the class in.  I 
suspect that you are using an older or incorrect version of Java and the 
flex compiler jars are not compatible with it.

I can't remember what 48.0 is.  Do any of the Adobe folks know what 
version of Java was used to compile the released compiler jars?

Christian.

Shannon Hicks wrote:
>
> Sounds to me like you need one of these:
>
> http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks
> http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell
>
> Just released!
>
> Shan
>
> Derek Vadneau wrote:
>
>> Hi all,
>>
>> I have Flex Builder 2 but I need to start using the command-line
>> compilers to produce projects that are being integrated with a build
>> system.
>>
>> However, when I try running from the command-line I get this:
>>
>> Exception in thread "main" java.lang.UnsupportedClassVersionError: 
>> flex2/tools/C
>> ompiler (Unsupported major.minor version 48.0)
>> at java.lang.ClassLoader.defineClass0(Native Method)
>> 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$100(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 java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>
>> The above is what I get after running one of the samples included in
>> the Flex SDK 2 directory. I tried my own projects with the same
>> result.
>>
>> I'm not sure what's going on here. Looks like something about the
>> version of JRE I have. Am I right in this assumption? If so, what is
>> required for the Flex 2 SDK? I couldn't find anything about requiring
>> JRE on the SDK pages on Adobe.
>>
>> -- 
>>
>> Derek Vadneau
>>
>
>  


-- 

*christian** gruber + process coach and architect*

*Israfil Consulting Services Corporation*

*email** [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023*

Reply via email to