3 Replies Latest reply: Sep 9, 2013 3:50 PM by hhfrancois RSS

    java.lang.ClassNotFoundException: flex2.compiler.i18n.PropertyTranslationFormat

    hhfrancois Community Member

      Hi, I try to compile generated library with java process.

      So I use the library flex-compiler-oem.jar

       

      And I do something like that :

       

       

      lib = new Library();
      lib.addComponent(new File(sourcesDir, "ClassAS.as"));
      lib.setOutput(new File(swcDir, libraryName));
      lib.build(true);
      

       

      but after the message : Loading configuration file E:\flexsdks\3.5.0\frameworks\flex-config.xml

       

      I have a beautiful stacktrace

       

      Error: java.lang.ClassNotFoundException: flex2.compiler.i18n.PropertyTranslationFormat
                at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
                at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
                at org.apache.tools.ant.module.bridge.AntBridge$MainClassLoader.findClass(AntBridge.java:647)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
                at java.lang.Class.forName0(Native Method)
                at java.lang.Class.forName(Class.java:270)
                at flex2.compiler.i18n.I18nUtils.getTranslationFormat(I18nUtils.java:395)
                at flex2.compiler.i18n.Compiler.<init>(Compiler.java:105)
                at flex2.tools.API.getCompilers(API.java:261)
                at flex2.tools.oem.Library.recompile(Library.java:739)
                at flex2.tools.oem.Library.compile(Library.java:1205)
                at flex2.tools.oem.Library.build(Library.java:611)
      
      

       

      The class PropertyTranslationFormat is in classpath in fact, I dont understand, and I found nothing from google

      Someone meet this issues ?

       

      Thanks