JavaCC - how to run within the IDE?

Hi,
I'm trying to run JavaCC from within the IDE but it always gives me this error:
java.lang.NoClassDefFoundError: COM/sun/labs/javacc/Main
When I run it from the command line it's fine - I just have to set the classpath to point at my javacc.jar. So I've mounted javacc.jar in the IDE, but no joy :-(
I'm not very familiar with Ant so it could be something to do with that. This is my build.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="Test" name="Test">
<target name="Test">
<javacc buildparser="true" buildtokenmanager="true" forcelacheck="true" ignorecase="true" javacchome="c:\javacc-3.0" lookahead="2" sanitycheck="true" target="Test.jj"/>
</target>
</project>
Can anyone help?
Thanks,
Ciaran

What version and build number of the IDE are you running?

Similar Messages

  • How do I get values into a vi from a subvi while the subvi is still running within the vi?

    Hello
    This is my problem. I have a subvi that runs an experiment. At different point in the experiment different instruments are on or off and I have a boolean array display this info. It is updated at various points of the experiment via a local variable. That works fine. Here is the problem though. I run that subvi from a main vi program (that runs it several times for several experiment cycles). I would like to pass the status of that array onto the mainvi to display there too. The problem is that the array in the main vi is not updated until the subvi is done running and thus displays only the array status at end of experiment (instead of changing
    as the status changes within the subvi). I tried using a global variable to write to it in the subvi every time there is an update, and read from it in the mainvi, but that doesn't work, it still displays just the status at the end of the subvi execution. Does anyone know how to make this work, or if there is a workaround this? Thanks.

    If you have LabVIEW 6i, you can update indicators of a calling VI from
    a SubVI, while the subVI is running.
    In your case you need
    1) an indicator on the main VI panel to display the boolean array
    2) to pass a reference to that indicator to the subvi when you call it
    3) to use this reference in the subVI, connect a property node to it and
    write the values to be displayed to the 'value' property of this node
    If you don't have version 6, you can write the values to be displayed to
    a global and display this global in the main VI from within a while loop
    which must run in the main VI in parallel to the running subVI.
    It's more complicated, since you need a mechanism to gracefully shut
    down the while loop after subVI finishes. You could do this with
    another global control boolean which is not displayed but just connected
    to the repeat terminal of the while loop. Don't forget to put a 'Wait' of,
    say, 50...100 msec in that while loop.
    -Franz
    zkajan schrieb:
    > Hello
    > This is my problem. I have a subvi that runs an experiment. At
    > different point in the experiment different instruments are on or off
    > and I have a boolean array display this info. It is updated at
    > various points of the experiment via a local variable. That works
    > fine. Here is the problem though. I run that subvi from a main vi
    > program (that runs it several times for several experiment cycles). I
    > would like to pass the status of that array onto the mainvi to display
    > there too. The problem is that the array in the main vi is not
    > updated until the subvi is done running and thus displays only the
    > array status at end of experiment (instead of changing as the status
    > changes within the subvi). I tried using a global variable to write
    > to it in the subvi every time there is an update, and read from it in
    > the mainvi, but that doesn't work, it still displays just the status
    > at the end of the subvi execution. Does anyone know how to make this
    > work, or if there is a workaround this? Thanks.
    Franz Josef Ahlers
    Section Semiconductor Devices
    Physikalisch-Technische Bundesanstalt
    Bundesallee 100
    D-38116 Braunschweig
    phone: (+49) 531 592 2410
    fax: (+49) 531 592 2405

  • How 2 search within the API documentation?

    i have downloaded it. but there seems to be no option to search within the vast api. any idea how to?

    you have downlaoded it meaning you have everythiing..swing..awt etc etc etc ect on ur comp..?
    Very simple...
    Just go to start>search
    put in the classname you want to search in the place where you have put the javadocs
    press enter
    you will get list of files(considerably smaller)
    sift through them.
    if you want to search WITHIN a document, then go to EDIT>find..
    Enjoy!!
    u really need'nt download them
    just type 'javadocs' on the google and the first result..click on that..!
    ahem...my duke dollars...sooo..??
    Message was edited by:
    KayDeE

  • How to run just the data flow

    We are in the process of converting from one ETL tool to Data Services 3.0.  I have a workflow with several data flows underneath it and have to make a change to the data flow.  Is there a way to run just the dataflow without executing the whole job?  For example, I just want to run DF4 below.
    WF --> DF1 --> DF2 --> DF3 --> DF4 --> DF5
    Thanks,
    Dan

    Although this topic is solved, just a few clarifications:
    When you create a new job and drag 'n drop the workflow/dataflow into it, you are not creating a second object (class), you are calling the object a second time (instantiate). It is like a BASIC program. I created a sub-procedure and called in DF1. In my filesystem I can see that sub-procedure as a seperate file in the folder object_library -> dataflow_procedures.
    Then I have two main programs, both just calling that sub-procedure with "gosub DF1".
    In the job you see the calls, when you drill into DF1 you see its definition and what object it calls.
    Using a conditional is okay but not adviced in my opinion. You are losing too much, the handling is complex and development takes a few seconds longer. my two cents only.
    https://wiki.sdn.sap.com/wiki/display/BOBJ/Testing

  • Defining a non local server for use within the IDE - version9.2

    How do I add a server that's running on another machine to one that my
    workshop is running. When I invoke the New Server dialog and modify the
    host from localhost to the one on which the server instance is running, then
    everything is blanked out and I can't do anything. I can't find anything in
    the documentation that tells me how to do this.
    Thanks,
    SB

    While deployment can be done manually, it is possible to run and debug a
    server remotely.
    For an example on how to do things remotely, see Chris Hogue's blog:
    http://dev2dev.bea.com/blog/hogue/archive/2006/09/debugging_remot.html
    Could you send me info on your environment? broth at bea dot com, and I
    will try and get you some answers. This sounds like a requirement we need
    to meet.
    br
    Stanley Beamish wrote:
    How do I add a server that's running on another machine to one that my
    workshop is running. When I invoke the New Server dialog and modify the
    host from localhost to the one on which the server instance is running, then
    everything is blanked out and I can't do anything. I can't find anything in
    the documentation that tells me how to do this.
    Thanks,
    SB

  • How to run/build the JSP file using Eclipse

    Hello,
    I want to build a new project for running the jsp file in eclipse.
    Can you help me in doing that?
    with some structure format?
    where to create web.xml file
    how to configure that fiel with our eclipse java poject?
    like that...
    Thanks,
    Soorya

    On New Project creation, choose 'Dynamic Web Project'. Then the structure will be created for you.

  • How to run from the caller's step in teststand

    Hi,
    When an error occurs in a step during a sequence, I can use the SequenceFilePostStepRuntimeError call back to catch the error. But how can I go back to the step which is the one just raised the error for a retry run again? I do not want to make all test fail straightway, but want to go back to the caller step to have retry a few times 1st.
    Many thanks,
    WeiL
    Solved!
    Go to Solution.

    There is an example which shows how to do exactly what you are asking located at:
    <TestStand Public>\Examples\Callbacks\PostStepRuntimeErrorCallback\ErrorHandlerExample.seq
    Hope this helps,
    -Doug

  • [915 Series] How do I enable the IDE raid Slots (the yellow ones)

    On the Bios there is an option to enable the onboard raid slots, but whem I
    enable it, noting happens, and in the next restart, this item doen't show in
    the bios menu.
    I read on the forum that this problem appened to other owners of this
    motherboard, but I couldn't find any solution.
    I've already installed the Via IDE Raid Drivers in "»Windows install »F6."
    When I tried to install the upgrade of this drivers form the Drives&
    utilities CD, a message apeard saying that it could't find the hardware, so I
    installed them anyway from a floppy disk in "»Windows install »F6."
    I have connected to the blue IDE slot one IDE drive and one DVD drive, and
    in the second slot(yellow), another IDE drive.I've tried to exange the drive
    positions but the drives on the raid slots where never recognized.
    I know from the forums that others have solved this problem, so I think this
    is not a mainboard mailfunction.
    Please someone help me in this issue.
    Thank you.

    Tanks everyone
    I also tried that procedure but I thik i have a problem in Bios or in the motherboard.
    When I enable The raid controler in Bios this Item just disapears form the options, next time I restart.
    Strange, no?
    No mater I took the computer to the shop where I bought the Moterboard and monday, I hope I have good News.
    At that time I'll give you notice of what's happening.
    See you
    "My Gear: Motherboard MSI 915G Neo2 Platinum
                  Pentium 4 3.0GHz 630
                  1024 Mb of ram oem
                  Graphic card Nvidia Geforce 6200
                  HDD Hitachi IDE 80Gb 7200 133
                  HDD SCSI II 37Gb and PCI Controler Adaptec
                  Drive DVD Recorder LG GSA 4163B
                  Drive DVD Player Toshiba
                  Sound Card Digidesign Digi 001

  • Openscript / script chaining / how to run all the scripts if one fails ?

    Hello,
    I have a problem using openscript and please I would like to know if there is a work around.
    here is what I am doing :
    with open script:
    1/ I am recording many differents scripts for the same app : one script = one functionnality
    2/ Then I am creating a script and I run all these previous script.
    The problem is :
    I get an error "Timeout occurred waiting for page to load." which is a normal error (the link is broken, the page is missing etc).
    I cannot recover, and main script stops. Although I would like others scripts also to be played back.
    I tried to set option ERR_RESPONSE_TIME_ERROR to Warn (instead of fail). But no way ! It fails !
    please could you tell me what I am missing ?
    thank you.
    Michael
    Edited by: user12252276 on 24 nov. 2009 01:38

    I dont have dependancies between scripts. I mean I did be careful : each script open and close properly the browser.
    Even by setting ALL parameters to Warn instead of fail, this does not help.
    Error : Timeout occurred waiting for page to load cannot be skipped this way.
    In my run I have 4 Runscript. 2nd fails with this error. 3 and 4 will not be (even) tried.
    Never mind. Try/Catch should be working :-) (I hope so)
    thanks.
    Michael.
    14:24:26,960 ERROR [IteratingVUser] Script ATHCASE. Error in section Run
    oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException: Timeout occurred waiting for page to load.
         at oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException.createWaitForPageTimeoutException(PlaybackException.java:46)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.handleWaitforPageException(DOMBrowser.java:152)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.waitForPage(DOMBrowser.java:110)
         at script.run(script.java:85)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.insertScriptRun(IteratingVUser.java:280)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:621)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:593)
         at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.runScript(IteratingVUserScript.java:458)
         at script.run(script.java:24)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:632)
         at java.lang.Thread.run(Thread.java:619)
    14:24:27,050 ERROR [1] Error in section Run at line (script.java:24). Timeout occurred waiting for page to load.
    oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException: Timeout occurred waiting for page to load.
         at oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException.createWaitForPageTimeoutException(PlaybackException.java:46)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.handleWaitforPageException(DOMBrowser.java:152)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.waitForPage(DOMBrowser.java:110)
         at script.run(script.java:85)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.insertScriptRun(IteratingVUser.java:280)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:621)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:593)
         at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.runScript(IteratingVUserScript.java:458)
         at script.run(script.java:24)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:632)
         at java.lang.Thread.run(Thread.java:619)
    14:24:27,050 ERROR [1] Iteration 1 failed at line (script.java:24). Timeout occurred waiting for page to load.
    oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException: Timeout occurred waiting for page to load.
         at oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException.createWaitForPageTimeoutException(PlaybackException.java:46)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.handleWaitforPageException(DOMBrowser.java:152)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.waitForPage(DOMBrowser.java:110)
         at script.run(script.java:85)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.insertScriptRun(IteratingVUser.java:280)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:621)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:593)
         at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.runScript(IteratingVUserScript.java:458)
         at script.run(script.java:24)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:632)
         at java.lang.Thread.run(Thread.java:619)
    14:24:27,390 INFO [1] Finished VU 1 for script repeat

  • Staffing changes and how to handle within the middle of a project

    Hello,
    Our users have this issue.  They have a project set up that is partially complete.  Let's say the project lasts three years and we have finished half of the project.  We have a resource staffed to a role that has been listed as the responsible person for a number of tasks.  The role also has tasks assigned to it.  This person isn't responsible for all of the tasks assigned to this role, just a subset.  We are half way through the project so some of the tasks are completed.
    This person moves to a new team.  I want to ensure they don't see the tasks for this particular role anymore, but want to keep the information that they were responsible for some completed tasks prior to moving to a new team. 
    So far the only we we have to do this is to go through all completed tasks for which they were the responsible person, reset complete, delete responsible person, and mark complete.  This is so we can delete the staffing assignment since this person has moved to a different team. 
    Is there any way to show that they were assigned to the role for half of the project, leave the completed tasks alone, but keep the user from seeing future work for his/her old team on the task dashboard?  We are losing the history of what this person worked on because it is more important to ensure they see an accurate picture of their current and future work assignments.
    I tried putting start and end date values for the staffing assignment, but I still see the future tasks on my task dashboard even though my end date has passed.
    Any suggestions would be greatly appreciated.
    Thank you,
    Wendy Miller

    Hi Wendy,
    I'm afraid that currently it's simply not possible to achieve this. For one of the essential features of the dashboard is to show the tasks where you are responsible, so by defintion all of those tasks will be shown. The notion of "changing teams" is not known in cProjects and thus it's not modelled in cProjects. However, a possible workaround could be through authorizations (either by user-groups or org)
    In order to track the work, the time recorded with CATS could used of course...
    Other than that, I currently see only some development at your side as possibility to get this done. As far as I understood, this would require some interference in the logic of the task-dashboard, and the creation of customer tables where the history would be stored...
    Best regards,
    Thomas

  • How to print within the margins of the page when printing from iPad to HP Envy D410a?

    When I try to print something from the iPad, either the 1 or the 2, the result is that the image sent from the iPad is printed Borderless, which of course results in parts of the print being cutoff, is there someway to resize the print through the printer, since the iPads don't have drivers?
    Also, I seem to have a similar problem when printing from my PC, only in it's case the resulting print is smaller, it seems to print into a margin size of 1" on all sides. The only app that I have found that lets me override this is Adobe Reader which has the page scaling options.
    All suggestions will be appreciated. TIA.
    Stephen.
    This question was solved.
    View Solution.

    You may download HP iPrint software to edit margins & borders:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01616126&lc=en&cc=au&dlc=en&product=4073738
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • How to run lint in the Sun Studio 12 IDE

    I'm a newbie to the Sun Studio IDE, and I can't find a way to run lint in the IDE. The C compiler does not give many warnings (unused variables, etc), and lint does, so I want to get the lint diagnostics within the IDE.
    I can run lint from a terminal, but that is very cumbersome when you have many source files.
    Thanks

    I've inherited a large project and need to run Lint on the code. I came across this thread doing an internet search. This is my first time using SunStudio, so I'm pretty clueless with every aspect of getting this code through Lint.
    I have been able to get the code compiled and everything is imported correctly into Sun Studio, though I'm not 100% sure how I did it.
    Can somebody explain the above commands for me to add into the Makefile, so I can run Lint in the IDE? Or, explain a better way to get Lint running on the code in the IDE?
    Thank you for your help, in advance.

  • NetBeans IDE: How to run a prog with arguments

    Hi:
    I have the following code that copies contents of inputFile to outputFile.
    The inputFile is taken as argument to the java program.
    ie java Copy fileA
    public class Copy {
    public static void main(String[] args) throws IOException {
        String dir_sep = System.getProperty("file.separator");
            String inputFileLoc;       
            inputFileLoc = args[1];
             File outputFile = new File("C:" + dir_sep + "temp" + dir_sep + "out.xml");      
            File inputFile = new File(inputFileLoc);
            FileReader in = new FileReader(inputFile);
            FileWriter out1 = new FileWriter(compstopFile, true);
            int c;
            while ((c = in.read()) != -1)
                         out1.write(c);     
            in.close();       
            out1.close();
    }I need to know how to run this program by passing the argument to it within the IDE? Just running the program from the IDE Run menu option, causes ArrayIndexOutOfBounds exception.
    Thanks a lot in advance!

    sourcecode's filenode -> ContextMenu -> Properties -> In the second block, there's one called "Arguments" -> Edit that -> You're done.
    Yours,

  • How to run the application in weblogic

    Hello!
    I have deployed 1 application in Apache Tomcat , it is working fine. Now i want to deploy same application in Weblogic Server. I have already installed "Weblogic 9.1". Now i dont know how to do and what to do next.
    I also dont know where to copy that application folder in weblogic, and how to run & deploy the application?
    I have stuck over here.
    Please if anybody knows how to run the application in weblogic, plz let me know.
    I need your help.
    Thank you.

    hi,
    have you gone through [this link.|http://e-docs.bea.com/wls/docs92/index.html]. i think it may help.

  • How to run the jsp file

    i am writing a simple jsp file
    i dont know how to run in the tomcat server
    for servlets first i created the dot class files by using the command prompt and then in the tomcat server we go the webapps folder and i copy the class files and due to xml file i run the program
    I have added the jsp-api.jar and el-api.jar files in the environment variables so what i do to run the jsp
    can anyone can tell me how to do that
    here is the program
    <%@page contentType="text/html" import="java.util.*" %>
    <!--
    Date.jsp
    -->
    <html>
    <body>
    <p> </p>
    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing
    ="0" width="460" bgcolor="#EEFFCA">
    <tr>
    <td width="100%"><font size="6" color
    ="#008000"> Date Example</font></td>
    </tr>
    <tr>
    <td width="100%"><b> Current Date
    and time is: <font color="#FF0000">
    <%= new java.util.Date() %>
    </font></b></td>
    </tr>
    </table>
    </center>
    </div>
    </body>
    </html>

    i am getting an http 500 error for running the jsp file
    here is the code
    <%@ page import="java.util.Date" %>
    <% Date now = new Date(); %>
    <html>
    <body>
    <p>Hello, world! It is now <%= now.toString() %>.</p>
    </body>
    </html>

Maybe you are looking for