Derek,

You do need the Java SDK as per the Flex 2 SDK system requirements bellow:

Flex 2 SDK

    * Windows 2000, XP, or Server 2003, Java 1.4 (Sun, IBM, or BEA) or
1.5 (Sun)
    * Mac OS X 10.4.x, Java 1.5 (as shipped from Apple) on PowerPC and
Intel processor
    * Redhat Enterprise Linux 3 or 4, Suse 10, Java 1.4 (Sun, IBM, or
BEA) or 1.5 (Sun)
    * Solaris 9, 10, Java 1.4 or 1.5 (Sun) Compilers only
    * 512 MB of RAM , 1 GB recommended
    * 200 MB of free disk space 

You can find the above information at:

    http://www.adobe.com/products/flex/productinfo/systemreqs/

Since you already have Flex Builder installed and working, it's
probably just a matter of setting your 'path' environment variable to
point to the path where you have the correct Java version.  To check
the Java version you are currently pointing to, try 'java -version'
from the command line.

I hope this helps,

Wagner dos Anjos

--- In flexcoders@yahoogroups.com, "Derek Vadneau" <[EMAIL PROTECTED]> 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
>


Reply via email to