On Feb 20, 2008 4:22 AM, David Barrett <[EMAIL PROTECTED]> wrote:

> Hi, this might already be well known, but it took me a long time to find
>  the answer so I'm posting this lesson to the list in the hope that it
>  helps others. The short of it is the JRE included by default in Ubuntu
>  7.10 needs to be upgraded to the JDK from Sun in order to compile MXML.
>  For a more detailed explanation, see below:
>
>  (I originally wrote this up as a bug report, but I discovered the fix
>  while writing it.)
>
>  I've been using MXMLC for a while now (http://bottomupflash.com) on
>  Windows and Mac, and I'm a huge fan. But now that I switch to Ubuntu
>  7.10, I'm unable to compile even the most basic .mxml files.
>  Specifically, if I run MXMLC from the command line with no parameters,
>  it works fine.
>
>  [EMAIL PROTECTED]:~/flex2/bin$ ./mxmlc
>  Loading configuration file /home/dbarrett/flex2/frameworks/flex-config.xml
>  Error: a target file must be specified
>
>  Use 'mxmlc -help' for information about using the command line.
>  [EMAIL PROTECTED]:~/flex2/bin$
>
>  Similarly, if I compile a basic .as file, it works fine:
>
>  [EMAIL PROTECTED]:~/flex2/bin$ cat Test.as
>  package {
>  public class Test { }
>  }
>  [EMAIL PROTECTED]:~/flex2/bin$ ./mxmlc Test.as
>  Loading configuration file /home/dbarrett/flex2/frameworks/flex-config.xml
>  /home/dbarrett/flex2/bin/Test.swf (462 bytes)
>  [EMAIL PROTECTED]:~/flex2/bin$
>
>  But if I try to compile even the most basic .mxml file, it pegs the CPU
>  at 100% forever. Even worse, after about 30s it starts consuming
>  massive amounts of memory -- allocating hundreds of MB/s until all
>  physical and virtual RAM is exhausted.
>
>  [EMAIL PROTECTED]:~/flex2/bin$ cat Test.mxml
>  <?xml version="1.0"?>
>  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; xmlns="*">
>  </mx:Application>
>  [EMAIL PROTECTED]:~/flex2/bin$ ./mxmlc Test.mxml
>  Loading configuration file
>  /home/dbarrett/flex2/frameworks/flex-config.xml
>  (hangs here forever at 100% CPU and all available RAM)
>
>  As for the Java version, I'm using gij 4.2.1:
>
>  [EMAIL PROTECTED]:~/flex2/bin$ java -version
>  java version "1.5.0"
>  gij (GNU libgcj) version 4.2.1 (Ubuntu 4.2.1-5ubuntu5)
>
>  Aha, but now I realize if I install "sun-java6-jdk" it works just fine:
>
>  [EMAIL PROTECTED]:~/flex2/bin$ java -version
>  java version "1.6.0_03"
>  Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
>  Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
>  [EMAIL PROTECTED]:~/flex2/bin$
>
>  Whew, problem solved. I hope this helps!

Hum.... the first thing I checked on Ubuntu was if it had the jdk from
sun installed. I never liked the other jdks. Don't know why.

But, it is interesting to know about that. That way, if someone one
happens to come across that same problem, then I know what the problem
is.

Fidel.

Reply via email to