Problem compiling in Linux using ant

Hi,
I have a problem using ant in Linux.
When I build my application using ant in Windows it works fine, but when I try to build the same application with ant in Linux it gives me the following exception:
/identifier/MidiReader.java:5: error: Class or interface `javax.sound.midi.Sequence' not found in import.
I have already checked and the 'javax.sound.midi.Sequence' exists in import.
Can anybody help me?
Regards,
David

In your javac task (in Ant), you need to explicitly include any external JAR's required for compilation (see ant.apache.org's docs for info). Importing them in a Java source file does not tell Ant where to locate the JAR for linking.
- Saish
"My karma ran over your dogma." - Anon

Similar Messages

  • Compiling flex application using ANT throws error

    Hi i m tryin to compile my flex project using ANT, and i have used [Embed(source="/assets/images/inuse/phonering.png")] lot of places in my project. How can i solve this error. I have lot of swf file also for css.
    Thanks in advance
    Rupam

    OK, I checked my build script and remember having this problem. I'm deploying a war file that contains some java EE and flex code. So my solutions does not apply to your case, but check out this blog post.
    http://www.olocity.com/blogs/2009/05/13/adobe-flex-ant-builds/
    Also this is probably helpful
    http://www.mail-archive.com/[email protected]/msg123564.html//www.mail-archive.com/[email protected]/msg123564.html

  • How to compile Java files using Ant in Eclipse

    Hi All ,
    I would like to compile all Java files using Ant in Eclipse.Since am very new to Ant and Eclipse can someone help me to create a build.xml file and let me know how to compile all the java files.
    For ex , I have placed my java files inside the path C:\HEC\Terab.Initially the Terab folder holds 7 jar files which i had decompiled using JD compiler and placed the unzipped 7 folders (which contains the java files ).Now i have imported the HEC project into Eclipse using New ->Project ->Java Project.after importig it throwed me an error saying missing jar files.again i copied the jar files and placed inside Terab folder with other 7 folder.
    Now How i can compile the java files and convert in to class files.Then after compiling the files i will again need to jar all the 7 folder.
    Please tell me the steps i need to follow.How to write an build.xml file ? where i should keep it ? only one build.xml file is enough or should i write 7 build.xml file for each folder ? Please help me out...
    Thanks & Regards
    Kar1983

    put it another way, what I am trying to do is to compile David Brackeen's ch 18 code from his book. The java sourse files can be downloaded here:
    http://www.brackeen.com/javagamebook/
    my question is that how would I complie all of these file so that I can get the program in ch18src\src\com\brackeen\javagamebook\test\ to run?

  • Compiling with JRockit using ant

    I am considering switching to JRockit.
    Our java code is compiled using ant, with the 'javac' task.
    The javac task has an option to invoke different compilers:
    - classic (the standard compiler of JDK 1.1/1.2) – javac1.1 and javac1.2 can be used as aliases.
    - modern (the standard compiler of JDK 1.3/1.4/1.5/1.6) – javac1.3 and javac1.4 and javac1.5 and javac1.6 can be used as aliases.
    - jikes (the Jikes compiler).
    etc
    The Jrockit compiler is not on this list.
    I have found a suggestion (http://www2.sys-con.com/ITSG/virtualcd/Java/archives/0811/pepperdine/index.html) to use an exec call as a workaround,
    but are there any alternatives? I could perhaps persuade ant to use JRockit by deinstalling any other JDK's and pointing JAVA_HOME to JRockit;
    what I want however is to keep the option to use different compilers.
    Has anyone got any suggestions?

    The javac compiler bundled with JRockit is the exact same one that you get with the Sun JDK. Oracle licenses the JDK (class libraries, tools, etc) from Sun. So I would just set JAVA_HOME to point at JRockit as you suggest.
    Henrik

  • Problem in building app using ant.

    Hi,
    I downloaded JWSDP EA1 and trying to build, deploy and run the sample application programs using tutorial. while building the app using "ant build" command I get an error saying class org.apache.catalina.ant.InstallTask not found. when I removed this class from build.xml, it was able to build the application,but, then "ant install" failed saying that install not found, which means that I must get this InstallTask class. my classpath is ok.
    Somebody please tell me where can get this class ? I could not get on jakarta.apache.org site as well.
    Thanks a lot.

    The install task is only available in JWSDP EA2, not EA1.

  • CompileException: Error compiling web service (using ant jwsc)

    Hi,
    I try to use the ant task jwsc to create my portable artefacts for a web service.
    Unfortunately I get the following exception:
    BUILD FAILED
    C:\Sun\jwsdp-2.0\apache-ant\bin\build.xml:7: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: C:\Sun\jwsdp-2.0\apache-ant\bin\src\test\WsTest.java
    I do not know why the ant task can not compile my jws file (shown below) whereas Eclipse can!
    package test;
    import javax.jws.WebService;
    @WebService (name="WsTestName", serviceName="WsTestServiceName")
    public class WsTest {
    * @param name
    * @return Say hello to the person.
    public String sayHello(String name) {
    return "Hello, " + name + "!";
    I hope somebody can help me.
    Thanks
    Franz

    I thought I would post an update since I found a solution. The problem was a ClassCast exception in a part of the SSL stack, that wanted to use the ant BuildException class. This has the effect of hiding the real issue which was that the SSL connection was not successfully occuring. The real problem was that the SSL connection started with a WSDL retrieved via SSL, but the connection for the port was through a username/password. When a username/password is used to create a port, the WL stack falls back to http and causes a ClassCast exception on weblogic.wsee.connection.transport.http.HttpTransportInfo. The solution is to create an https transport object when the service impl is created:
    HttpsTransportInfo transport = new HttpsTransportInfo ();
    transport.setUsername (user.getBytes ());
    transport.setPassword (pass.getBytes ());
    gServiceImpl = new PersistenceManagerService_Impl (url, transport);
    and to create the port without parameters:
    port = getServiceImpl ().getPersistenceManagerServicePort ();
    This allows one-way SSL with username/password for the connection.

  • Problem deploying BPEL process using ANT

    Hi,
    I am trying to deploy BPEL process by executing ANT command from Windows environment.
    JDK version of SOA suite installation and my system is 1.4.2.
    But ANT is throwing the following error
    BUILD FAILED
    java.lang.UnsupportedClassVersionError: com/collaxa/cube/lang/compiler/bpel/depl
    oy/task/generatePlan (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at org.apache.tools.ant.loader.AntClassLoader2.defineClassFromData(AntCl
    assLoader2.java:76)
    at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader
    .java:1090)
    at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
    der.java:1154)
    at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:110
    7)
    at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
    at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:183)
    at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:161)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:330)
    at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:236)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    131)
    at org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:140)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    142)
    at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
    a:91)
    at org.apache.tools.ant.Main.runBuild(Main.java:653)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Total time: 1 second
    java.lang.UnsupportedClassVersionError: com/collaxa/cube/lang/compiler/bpel/depl
    oy/task/generatePlan (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at org.apache.tools.ant.loader.AntClassLoader2.defineClassFromData(AntCl
    assLoader2.java:76)
    at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader
    .java:1090)
    at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
    der.java:1154)
    at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:110
    7)
    at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
    at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:183)
    at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:161)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:330)
    at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:236)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    131)
    at org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:140)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
    142)
    at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
    a:91)
    at org.apache.tools.ant.Main.runBuild(Main.java:653)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    com/collaxa/cube/lang/compiler/bpel/deploy/task/generatePlan (Unsupported major.
    minor version 49.0)
    D:\jdevstudio10134\jdev\mywork\BPELPractise\HelloWorldBPELProcess>
    Can any one tell me what could be the problem
    Regards
    Srinivas

    I assume you checked the reasons that are suggested in the message:
    "This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details"
    It looks like a typo...
    Lonneke

  • JAVA ME - Problems compiling and running (using Eclipse)

    Hello,
    I am new to Java ME and I am trying to run a copied HelloMIDlet application. I am getting following error when I am trying to run the application:
    Running with storage root C:\Users\Niklas\j2mewtk\2.5.2\appdb\MediaControlSkin
    Running with locale: Swedish_Sweden.1252
    Running in the identified_third_party security domain
    java.lang.NullPointerException
         at javax.microedition.lcdui.Item.addCommandImpl(+11)
         at javax.microedition.lcdui.StringItem.addCommandImpl(+11)
         at javax.microedition.lcdui.Item.addCommand(+11)
         at HelloMIDlet.<init>(+99)
         at java.lang.Class.runCustomCode(+0)
         at com.sun.midp.midlet.MIDletState.createMIDlet(+34)
         at com.sun.midp.midlet.Scheduler.schedule(+52)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+80)
    Execution completed.
    3415817 bytecodes executed
    17 thread switches
    1667 classes in the system (including system classes)
    17760 dynamic objects allocated (533540 bytes)
    2 garbage collections (459436 bytes collected)And the applicaiton:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloMIDlet extends MIDlet
           implements CommandListener {
      // The exit command
      private Command exitCommand;
      // The display for this MIDlet
      private Display display;   
      // create a ticker
      private Ticker hi = new Ticker("J2ME is cool");
      public HelloMIDlet() {
        display = Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.SCREEN, 2);
      public void startApp() {
        TextBox t = new TextBox("Hello MIDlet",
                    "Wireless Internet", 256, 0);
        t.addCommand(exitCommand);
        t.setCommandListener(this);
        t.setTicker(hi); // set the ticker
        display.setCurrent(t);
      public void pauseApp() { }
      public void destroyApp(boolean unconditional) { }
      public void commandAction(Command c, Displayable s) {
        if (c == exitCommand) {
          destroyApp(false);
          notifyDestroyed();
    }I did try to remove as much code as possible still being able to compile it. Exactly the same type of error was presented still...
    I have another MIDlet in the same projects that works fine.
    What is the problem?
    Thank you in advance!
    Best Regards,
    Niklas

    java.lang.NullPointerException
         at HelloMIDlet.<init>(+99)
    ...Try to modify your code about as follows:
      private Ticker hi;  // initialize ticker in startApp
    /* don't override the MIDlet constructor
      public HelloMIDlet() {
      public void startApp() {
        // initialize all MIDP UI stuff in startApp
        hi = new Ticker("J2ME is cool");
        display = Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.SCREEN, 2);
        TextBox t = new TextBox("Hello MIDlet",
                    "Wireless Internet", 256, 0);
        t.addCommand(exitCommand);
        t.setCommandListener(this);
        t.setTicker(hi); // set the ticker
        display.setCurrent(t);
    //...The problem might be caused by initializing MIDP UI stuff prior to entering startApp method. I also think that overriding MIDlet constructor is not quite a good idea. Check [MIDP tutorials (Google search shows plenty)|http://www.google.com/search?q=MIDP+tutorials] if you're interested to know more details on that.

  • Problem in reloading project using ANT in Eclipse

    Hello Friends,
    I have created one application in which i just put one jsp page and the application is based on Strtus.
    for loading project in tomcat i have done following step,
    all,install
    now for next time after changes made in jsp page i have perform all,reload
    but it will give me the error.
    BUILD FAILED
    *<Path of projct> \build.xml:192: FAIL - Encountered exception java.lang.NoSuchMethodError: org.apache.commons.logging.LogFactory.release(Ljava/lang/ClassLoader;)V*
    Total time: 30 seconds
    but for loading project i perform all,remove,install
    so now i have to perform 3 steps each time.
    anyone know about the above problem.
    i have put common-logging.jar file and in that there is a release method which is abstract.
    Thanks in advance,
    Ajay Patel

    Continueee....on above...
    when i perform all,remove,install for reinstalling application on tomcat,
    i also got same error while performing remove operation but still it delets from tomcat.
    And when i perform all,remove
    it gives me
    reload:
    *[reload] FAIL - Encountered exception java.lang.IllegalStateException: Container StandardContext[EventManagementSystem] has not been started*
    BUILD FAILED
    *C:\Documents and Settings\Ajay\Desktop\ajay\JspWorkspace\EventManagement\build.xml:192: FAIL - Encountered exception java.lang.IllegalStateException: Container StandardContext[EventManagementSystem] has not been started*
    Total time: 2 seconds
    can anyone know about this.....how can i solve the LogFactory error.
    Thank You in advance,
    Ajay Patel

  • Ant fails to compile modules which use interfaces

    Hi, I am having a major problem compiling flex modules with ANT.
    I will try to give ALL necessary information so we can avoid days of useless novice questions.
    I have an application that uses many modules.  They DO compile perfectly in flash builder.
    First question.  How can I get flashbuilder 4.7 to show me the command line which it uses for mxmlc?  If I could see this, I could do everything myself.
    Second question:  What is wrong with my work below?
    I have a module which looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    implements="com.hof.lobby.modules.IVolatileAssets"
    width="400" height="300"
    creationComplete="onDummy(event)"
    >
    I have inside this module various other properties which are themselves instances typed as various other interfaces.
    when I build the main applicaiton, everything is fine.
    I created a macrodef in ANT to build all my modules efficiently.
        <macrodef name="buildModule">
            <attribute name="module-name" default="none" />
            <attribute name="module-package" default="none" />
                  <attribute name="out-path" default="." />
            <sequential>
                      <echo message="building @{module-name} to @{out-path}/@{module-name}.swf" />
                      <mxmlc file="${APP_ROOT}/src/@{module-package}/@{module-name}.mxml"
                                   output="${DEPLOY_DIR}/@{out-path}/@{module-name}.swf"
                                   keep-generated-actionscript="false"
                                   incremental="false"
                                   debug="true"
                                   fork="true"
                                   load-externs="${ANT_ROOT}/link-report.xml"
                                   optimize="false"
                                   >
                                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                    <source-path path-element="${FLEX_HOME}/frameworks"/>
                                <compiler.library-path dir="${HOF_COMMON_ROOT}" append="true">
                                          <include name="bin"/>
                                </compiler.library-path>
                                <compiler.library-path dir="${APP_ROOT}" append="true">
                                          <include name="libs"/>
                                </compiler.library-path>
                    <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                        <include name="libs" />
                        <include name="../bundles/{locale}" />
                    </compiler.library-path>
                                <source-path path-element="${APP_ROOT}/src/locale/{locale}"/>
                </mxmlc>
            </sequential>
        </macrodef>
        <target name="modulesDebug" depends="lobbyDependencies" description="Build the lobby modules for debug">
                  <!--<buildModule module-name="InboxDlg" module-package="com/hof/lobby/modules/dlgs" out-path="modules3/dlgs"/>-->
                  <buildModule module-name="VolatileAssets" module-package="com/hof/lobby/modules" out-path="modules3"/>
              </target>
    So then when i run this target, i get the following output:
    modulesDebug:
         [echo] building VolatileAssets to modules3/VolatileAssets.swf
        [mxmlc] Loading configuration file F:\var\sdk\flex_sdk_4.5.1.21328A\frameworks\flex-config.xml
        [mxmlc] F:\var\projects\hof\svn2.-----.com\lobby\branches\3.1.39.0\src\com\hof\lobby\modules\Vola tileAssets.mxml(-1):  Error: Interface IVolatileAssets was not found.
        [mxmlc] <?xml version="1.0" encoding="utf-8"?>
    BUILD FAILED
    F:\var\projects\hof\svn2.-----.com\lobby\branches\3.1.39.0\build.xml:98: The following error occurred while executing this line:
    F:\var\projects\hof\svn2.-----.com\lobby\branches\3.1.39.0\build.xml:51: mxmlc task failed.
    Total time: 7 seconds
    If i remove the implements attribute in the module component definition then i get a cascading failure for EVERY SINGLE interface in the module.
    Basically something is causing ANT to fail to load the class def for ANY interface in the module.
    What on earth am I doing wrong?
    Please help.
    Thank you.

    I am replying to my own thread because I absolutely HATE IT when i see a post with the exact problem that I have and no answer.
    here is the answer to the problem:
    I had to create an external config file and load it with
    <load-config filename="${basedir}/config/ModuleConfig.xml"/>
    the contents of ModuleConfig.xml re-define nearly every framework configuration.  none of them seem non standard to me...
    Basically I just defined everything to be what it SHOULD be and loaded this config file after I apply the default flex-config.xml from the sdk.
    do what I posted below and it will work.
    so now, my macrodef is:
        <macrodef name="buildModule">
            <attribute name="module-name" default="none" />
            <attribute name="module-package" default="none" />
                  <attribute name="out-path" default="." />
                  <attribute name="debug" default="true" />
            <sequential>
                      <echo message="building @{module-name} to @{out-path}/@{module-name}.swf" />
                      <mxmlc file="${APP_ROOT}/src/@{module-package}/@{module-name}.mxml"
                                   output="${DEPLOY_DIR}/@{out-path}/@{module-name}.swf"
                                   keep-generated-actionscript="false"
                                   incremental="true"
                                   debug="@{debug}"
                                   fork="true"
                                   optimize="false"
                                   size-report="${basedir}/reports/@{module-name}-size_report.xml"
                                   >
                                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                                <load-config filename="${basedir}/config/ModuleConfig.xml"/>
                </mxmlc>
            </sequential>
        </macrodef>
    and my ModuleConfig file is:
    <flex-config xmlns="http://www.adobe.com/2006/flex-config">
      <compiler>
        <warn-no-constructor>false</warn-no-constructor>
        <accessible>true</accessible>
        <fonts>
          <managers>
            <manager-class>flash.fonts.JREFontManager</manager-class>
            <manager-class>flash.fonts.BatikFontManager</manager-class>
            <manager-class>flash.fonts.AFEFontManager</manager-class>
            <manager-class>flash.fonts.CFFFontManager</manager-class>
          </managers>
        </fonts>
        <source-path>
          <path-element>${basedir}/src/locale/{locale}</path-element>
          <path-element>${basedir}/src</path-element>
        </source-path>
        <debug>true</debug>
        <theme>
          <filename>${FLEX_HOME}frameworks/themes/Spark/spark.css</filename>
        </theme>
        <namespaces>
          <namespace>
            <uri>http://ns.adobe.com/mxml/2009</uri>
            <manifest>${FLEX_HOME}frameworks/mxml-2009-manifest.xml</manifest>
          </namespace>
          <namespace>
            <uri>library://ns.adobe.com/flex/spark</uri>
            <manifest>${FLEX_HOME}frameworks/spark-manifest.xml</manifest>
          </namespace>
          <namespace>
            <uri>library://ns.adobe.com/flex/mx</uri>
            <manifest>${FLEX_HOME}frameworks/mx-manifest.xml</manifest>
          </namespace>
          <namespace>
            <uri>http://www.adobe.com/2006/mxml</uri>
            <manifest>${FLEX_HOME}frameworks/mxml-manifest.xml</manifest>
          </namespace>
        </namespaces>
        <library-path>
          <path-element>${FLEX_HOME}frameworks/locale/{locale}</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/rpc.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/osmf.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/spark.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/charts.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/framework.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/spark_dmv.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/sparkskins.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/textLayout.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/advancedgrids.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/authoringsupport.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/flash-integration.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/mx/mx.swc</path-element>
          <path-element>  ---- proprietary libs - redacted ----  </path-element>
        </library-path>
        <external-library-path>
          <path-element>${FLEX_HOME}frameworks/libs/player/10.2/playerglobal.swc</path-element>
        </external-library-path>
        <locale>
          <locale-element>en_US</locale-element>
          <locale-element>es_ES</locale-element>
          <locale-element>fr_FR</locale-element>
          <locale-element>it_IT</locale-element>
        </locale>
      </compiler>
      <target-player>10.2</target-player>
      <swf-version>11</swf-version>
      <static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/framework.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/framework_4.5.1.21489.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>framework_4.5.1.21489.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/textLayout.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>textLayout_2.0.0.232.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/osmf.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/osmf_1.0.0.16316.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>osmf_1.0.0.16316.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/spark.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/spark_4.5.1.21489.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>spark_4.5.1.21489.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/sparkskins.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/sparkskins_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>sparkskins_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/rpc.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/rpc_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>rpc_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/charts.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/charts_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>charts_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/spark_dmv.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/spark_dmv_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>spark_dmv_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/mx/mx.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/mx_4.5.1.21489.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>mx_4.5.1.21489.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/advancedgrids.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/advancedgrids_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>advancedgrids_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <file-specs>
        <path-element>${APP_ROOT}/src/@{module-package}/@{module-name}.mxml</path-element>
      </file-specs>
      <output>${DEPLOY_DIR}/@{out-path}/@{module-name}.swf</output>
    </flex-config>

  • Error while compiling using ant

    While compiling a project using ant, I got an error that a particular method is missing in the class.
    But the method is actually present in the class.
    What may be the problem?. Any link will be useful.
    Regards,
    Joshua

    Its compiling and running fine in eclipse.

  • Problem compiling module with named package

    Hi,
    I'm relatively new to Flex and only recently came upon Flex modules. I am trying to use an interface between the modules and my main application, both to enforce compatibility and to ease data access from the modules to the main application (i.e., the preferred approach on Adobe's module implementation docs). I am, however, running into a problem when trying to compile the module (using Ant) due to its implementation of an interface in a named package. It seems I have a choice between two compilation errors:
    1) an error referring to difference between the named package structure and the unnamed package for my module
    2) an interface not found error when I specify the full package name for the interface in the module "implements" attribute
    #2 seemed more promising as I figured this was just some sort of source path error. After adjusting the source path many times, though, I have been unable to get past the interface not found error. I even tried to compile the interface into a SWC and then place the SWC on the library path.
    Overall, the structure of the code is very simple:
    com.example.workers.IModule
    WorkerModule1
    If I go ahead and make IModule part of an unnamed package, I can get past problem #1 (avoid #2) and get it to compile, but then I do not have the ability to cast the child of the loaded module (ModuleLoader.child) to the interface in my main application to insure that it is of the right type (though I can hack around this by checking if the child has a certain property or function).
    Anyway, I am guessing that there might be something simple that I am missing here--i.e., some way to get the named package onto the path for my mxmlc-based compilation of the module or some way to add the named package structure to my module (adding an xmlns did not accomplish anything). In any case, any help here would be greatly appreciated.
    --jonathan

    You definitely have the wrong version. You want 2.0.1 (we
    haven't made a 2.1). The download on the Flex page is always the
    most current version, 2.0.1 in this case. Try it again.

  • "Error running javac.exe compiler" when using ant to compile Eclipse plugin

    Hi
    I encounter an error "Error running C:\jdk1.5.0_06\bin\javac.exe compiler" when building my project using ant1.7.
    My project has 10 eclipse plugins, and each plugin is compiled by invoking following ant target
    <!-- ===================================================================
    Compile specified plugin
         target parameters:
              param.plugin.dir: the plugin directory
              param.plugin.targetJarFile: the name of jar file for the given plugin
              param.plugin.src.dir: the folder name of source codes. Note: it is relative path name
              param.fork: indicate if another process is forked to run javac
    =================================================================== -->
    <target name="compilePlugin">
         <!-- Prepare compile environment -->
         <!-- Delete obsolete build folder -->
         <delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
         <!-- Delete obsolete jar file -->
         <delete file="${param.plugin.dir}/${param.plugin.targetJarFile}" quiet="true"/>
         <mkdir dir="${param.plugin.dir}/${build.dir}"/>
         <!-- Compile source codes -->
         <javac      srcdir="${param.plugin.dir}/${param.plugin.src.dir}"
                   destdir="${param.plugin.dir}/${build.dir}"
                   failonerror="${javacFailOnError}"
                   verbose="${javacVerbose}"
                   debug="${javacDebugInfo}"
                   deprecation="${javacDeprecation}"
              optimize="${javacOptimize}"
                   source="${javacSource}"
                   target="${javacTarget}"     
                   fork="${param.fork}" memoryInitialSize="256m" memoryMaximumSize="512m">
              <classpath refid="compile.classpath" />
         </javac>
         <!-- Create plugin jar file -->
         <copy todir="${param.plugin.dir}/${build.dir}" failonerror="true">
              <fileset dir="${param.plugin.dir}/${param.plugin.src.dir}" excludes="**/*.java, **/package.htm*" />
         </copy>
         <jar jarfile="${param.plugin.dir}/${param.plugin.targetJarFile}" basedir="${param.plugin.dir}/${build.dir}"/>
         <delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
    </target>
    Since each of first 9 plugins contains less than 500 java source files, we always set "param.fork" to false when invoking this ant target.
    For the 10th plugin, it has about 1000 source files. If we set "param.fork" to false, we will get the error "Error running javac.exe compiler". So we have to set "param.fork" to true when compiling it. This week, this plugin contains about 1250 files and we get the same error again when compiling it. I tried to increase the "memoryMaximumSize" to "768", but still couldn't get through it.
    BTW, There are about 150 jar files in our classpath for compiling plugins. Do many jar files cause this problem?
    Any help is highly appreciated.
    Many thanks
    Oceanman

    I encountered a very similar error and I was able to resolve it by removing the following parameters from the javac task:
    fork="${param.fork}"
    memoryInitialSize="256m"
    memoryMaximumSize="512m"My values were not the same as yours, before I removed them, the values were set to:
    fork="true"
    memoryInitialSize="256m"
    memoryMaximumSize="256m" Not sure why this fixed my problem but it did. I was using Ant 1.7 and Java 1.6_07 hope this helps.

  • Sun Studio Compilers for Linux: Problems with undefined variables using CC

    I am experiencing the following errors below while trying to compile C++ programs using Sun C++ from the latest release of Sun Studio Compilers for Linux Alpha, on Red Hat Enterprise Linux 4 with kernel 2.6.9-34.EL and Ubuntu Breezy Badger 5.10 with kernel 2.6.12-10-686. I get the same exact errors on both OS's and on two different machines.
    root@ubuntu:/home/jc/cs225/Machine Problems/cs225/mp1/cs225_mp1# make
    CC -c -g string.cpp
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 74: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 75: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 191: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 194: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 261: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 265: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 299: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 302: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 410: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 414: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 506: Error: The function "strstr" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 523: Error: The function "strcspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 529: Error: The function "strspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 214: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 221: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 277: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 335: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 392: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 443: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 504: Error: Template declarations cannot have extern "C" linkage.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/limits", line 558: Error: Template declarations cannot have extern "C" linkage.
    Compilation aborted, too many Error messages.
    make: *** [string.o] Error 1
    Except on ubuntu, it has one more error
    "/usr/include/wctype.h", line 47: Error: A declaration was expected instead of "}".
    and what is on line 47 is below
    __END_NAMESPACE_C99
    When I comment this line out, that particular error does not show up but still the other errors above still show up.
    From the testing I did, it appears to have these problems for most of the C++ programs I have written, especially the ones that involve object oriented programming. All programs that I wrote do not have these problems with g++ or Sun CC for Solaris. It does however work fine only for small fraction of the programs I have written. I dont quite understand why it works in some cases and others it doesnt, but I know for sure, that it should be working for all cases when Sun CC from Sun Studio 10 on Solaris 10 for X86 has no problems compiling the same programs.

    I tried workaround number 2 from the 3 choices that were listed by horsh. That fixes the mathcalls.h problem but still I have the following errors.
    jcurran2@ubuntu:~/cs225/Machine Problems/cs225/mp1/cs225_mp1$ make
    CC -c -g string.cpp
    "/usr/include/wctype.h", line 47: Error: A declaration was expected instead of "}".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 74: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/iosfwd", line 75: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 191: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 194: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 261: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 265: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 299: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 302: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 410: Error: "," expected instead of "get_state".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 414: Error: Use ";" to terminate declarations.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 506: Error: The function "strstr" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 523: Error: The function "strcspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/traits", line 529: Error: The function "strspn" must have a prototype.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 125: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/rwlocale", line 130: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 55: Error: mbstate_t is not defined.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 55: Error: Template parameter std::stateT requires a type argument.
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 61: Error: "," expected instead of "state_type".
    "/opt/sun/LinuxCompilers/sunstudiomars/prod/include/CC/Cstd/rw/codecvt", line 63: Error: Use ";" to terminate declarations.
    Error: Cannot continue processing because of prior errors.
    Compilation aborted.
    make: *** [string.o] Error 1
    jcurran2@ubuntu:~/cs225/Machine Problems/cs225/mp1/cs225_mp1$
    Can someone please respond? There is more to the problem. Perhaps
    there are more glibc headers that have problems. In addition, if Sun wants to port the Sun Studio Compilers for linux to be stable on all linux distributions I suggest using VM ware and installing several linux distrobutions as virtual machines and testing this software on each virtual machine to see the problems that occur on each distribution. That way you might be able to uncover more problems to find a solution that will work best for portability on all linux distributions.

  • Error deploying JDeveloper project using ant-sca-compile.xml

    Hi all, I'm having problems on deploying a JDeveloper project using ant-sca-compile.xml. The output in C:\XXXX\YYYYY\SCA-INF\classes\scac.log is:
    java.lang.NoClassDefFoundError: 4\jdeveloper\////oracle_common
    Caused by: java.lang.ClassNotFoundException: 4\jdeveloper\....oracle_common
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    Could not find the main class: 4\jdeveloper\/../oracle_common. Program will exit.
    Exception in thread "main"
    What's missing in wich classpath?
    Regards
    Efren.

    Same composite we were able to deploy successfully without any error, from Monday onward we are experiencing this issue.
    We checked in Installation Guide provided by oracle. Oracle has suggested few memory related changes in ant-sca-compile.xml file.
    Increasing Memory to avoid Compilation Errors
    To avoid out-of-memory errors during compilation of a SOA composite application, you need to
    increase the following memory settings.
    To increase memory settings:
    1. Open the ant-sca-compile.xml file in the SOA_HOME/bin directory.
    2. Under the scac element, increase the following memory settings.
    <jvmarg value="-Xms2048m"/>
    <jvmarg value="-Xmx2048m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    3. For Windows change the following memory settings to.
    <jvmarg value="-Xms1536m"/>
    <jvmarg value="-Xmx1536m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    We did those changes but still experiencing same error. I checked H:\AIASOAProject\AIAReceiptInterface\ReceiptListEbizProvider\SCA-INF\classes\scac.log ; file its showing Could not create the Java virtual machine.
    Regards
    Manish

Maybe you are looking for

  • Why won't Front Row play movies located in my iPhoto Library?

    I currently have a little over 300 short movies from my digital cameras. I keep them in subfolders located at /Users/shared/Shared Movies/digital camera movies/ and Front Row plays them just fine under each user account since each user has an alias t

  • Sales Invoice Approval Workflow

    Hello Experts,    I want to trigger workflow when any billingis generated with the transaction VF01.    After research, I've found that there might be no standard workflow for approval of Sales Invoice.    However I've found the business object VBRK.

  • PDF into image

    Hi! I have pdf file with smooth quality and I tried to turn it into image (png).When I rendered the text the result was jagged text and when I zoomed it it was smooth again.How can I turn the pdf file with the same quality into png file?

  • How to data log graphs using front panel data logging?

    Hello I have a VI that collects data from DAQmx thermocouple readings and graphs the temperature vs time using a while loop to collect data and graph. I have 9 control operators that define the correction factor of the thermocouples. I want to create

  • Does anyone have trouble serializing the enterprise version-education?

    Does anyone have trouble serializing the enterprise version (education) by any chance? We can't seem to serialize using the serializing tool. the CC 2014 reverts to a trial...