I installed JRE 1.4.2_13 and it's working from the command-line now.

I had added the path in the environment variables before installing the new
JRE. Now that I've installed the new JRE I don't recall the version that was
installed, but I think it was 1.3 (not sure the rest).

Anyhow, everything seems to be good - thanks everyone.


On 1/25/07, Wagner dos Anjos <[EMAIL PROTECTED]> wrote:

  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 you environment 'path' to point to the right 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

----- Original Message ----
From: Derek Vadneau <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, January 25, 2007 11:53:47 AM
Subject: [flexcoders] Command-line compiler Java errors

 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.Unsupport edClassVersionEr ror:
flex2/tools/ C
ompiler (Unsupported major.minor version 48.0)
at java.lang.ClassLoad er.defineClass0( Native Method)
at java.lang.ClassLoad er.defineClass( Unknown Source)
at java.security. SecureClassLoade r.defineClass( Unknown Source)
at java.net.URLClassLo ader.defineClass (Unknown Source)
at java.net.URLClassLo ader.access$ 100(Unknown Source)
at java.net.URLClassLo ader$1.run( Unknown Source)
at java.security. AccessController .doPrivileged( Native Method)
at java.net.URLClassLo ader.findClass( Unknown Source)
at java.lang.ClassLoad er.loadClass( Unknown Source)
at sun.misc.Launcher$ AppClassLoader. loadClass( Unknown Source)
at java.lang.ClassLoad er.loadClass( Unknown Source)
at java.lang.ClassLoad er.loadClassInte rnal(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




--

Derek Vadneau

Reply via email to