1 Reply Latest reply on Apr 11, 2007 9:54 AM by

    Compiling AS3 using MXMLC

    AmarShah
      Hi,
      I am trying to compile my AS3 file using mxmlc.exe which comes with the Flex SDK2 but I am keeep getting following errors. Can anyone help me out.


      Error: org.apache.xerces.util.XMLAttributesImpl$Attribute

      java.lang.IllegalAccessError: org.apache.xerces.util.XMLAttributesImpl$Attribute

      at java.lang.ClassLoader.defineClassImpl(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:222)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
      8)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:556)
      at java.net.URLClassLoader.access$400(URLClassLoader.java:119)
      at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:961)
      at java.security.AccessController.doPrivileged(AccessController.java:274
      )
      at java.net.URLClassLoader.findClass(URLClassLoader.java:487)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:604)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:561)
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerMMImpl.<init>(XMLDoc
      umentFragmentScannerMMImpl.java:105)
      at org.apache.xerces.impl.XMLDocumentScannerMMImpl.<init>(XMLDocumentSca
      nnerMMImpl.java:258)
      at org.apache.xerces.impl.XMLNSDocumentScannerMMImpl.<init>(XMLNSDocumen
      tScannerMMImpl.java:120)
      at org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.createD
      ocumentScanner(IntegratedParserConfigurationMMImpl.java:282)
      at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
      at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown
      Source)
      at org.apache.xerces.parsers.IntegratedParserConfigurationMMImpl.<init>(
      IntegratedParserConfigurationMMImpl.java:193)
      at org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11Config
      urationMMImpl.java:182)
      at org.apache.xerces.parsers.XML11ConfigurationMMImpl.<init>(XML11Config
      urationMMImpl.java:139)
      at java.lang.Class.newInstanceImpl(Native Method)
      at java.lang.Class.newInstance(Class.java:1263)
      at org.apache.xerces.util.ObjectFactory.newInstance(Unknown Source)
      at org.apache.xerces.util.ObjectFactory.findJarServiceProvider(Unknown S
      ource)
      at org.apache.xerces.util.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.util.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.parsers.SAXParserMMImpl.<init>(SAXParserMMImpl.java
      :155)
      at org.apache.xerces.parsers.SAXParserMMImpl.<init>(SAXParserMMImpl.java
      :138)
      at org.apache.xerces.jaxp.SAXParserMMImpl.<init>(SAXParserMMImpl.java:10
      9)
      at org.apache.xerces.jaxp.SAXParserFactoryMMImpl.newSAXParser(SAXParserF
      actoryMMImpl.java:102)
      at flex2.compiler.config.FileConfigurator.load(FileConfigurator.java:60)

      at flex2.tools.Compiler.processConfiguration(Compiler.java:465)
      at flex2.tools.Compiler.main(Compiler.java:66)

      Thanks
      Amas
        • 1. Re: Compiling AS3 using MXMLC
          Is it possible to post the code and how you are calling the compiler. You should NOT be getting this error. There are some patch jars in the "Flex SDK 2\lib" directory that look like they may not be getting picked up properly.

          -brent