Feedback compilation time to the program

I would like to be able to feedback the compilation time (or any information really) to the resulting java classes (or the resulting jar) when I compile. Eg so when the java program starts it writes somehing like "Program compiled 2003-08-25 13:10:31".
I know this i possible in unix/linux by compiling with scripts (eg from the script modifying a String in the Java code before compiling), but my problem is that I'm using JBuilder so I can only compile without scripts.
Any suggestions how this can be achieved without scripts?
Gil

... without me having to sweat to
keep track of the hundreds of java files...
Ant is relatively intimidating, at least
I thought so when I was trying to figure it out.
The thing that really makes it manageable is that
it uses regular expressions to specify lists of
files.
This allows one to easily ask Ant to run
javac on all the java code files in directory
"a" and put the resulting class "tree" into
directory "b".
The line of ant "code" to do what is described above
would be as follows. The ${*} are properties that are
substituted for values that are set earlier in the
script. They can (of course) be literal paths.
<javac srcdir="${src_dir}" destdir="${build_dir}"/>The above example does not actually use regular
expressions, but hopefully it will demonstrate
that Ant is not as complicated as it would appear.

Similar Messages

  • Since I installed Firefox 17.0.1, the program has become unstable. I have a hard time getting the program to respond to start. I have to try at least 3 times

    As I mentioned, the program will not start on the first time that I click the icon. The hourglass appears for a second or two and then disappears.
    I have to try at least 3 or more times before the program responds.
    Should I try to uninstall 17 and reinstall 16.
    I have already uninstalled 17 and reinstalled it.

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Validate/madatory  in order to avoid  long time for the program execution.

    Below is my selction screen.  I would like to do validations for specific fields to make them mandatory fields   as well.
    Could you please suggeste me what are the fields that I can validate/madatory  in order to avoid  long time  for the program  run.
    *Program selections
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-h01.
    SELECT-OPTIONS : o_as4loc   FOR v_as4local,
                     o_ddlang   FOR ddlanguage,
                     o_vkorg    FOR vkorg     MEMORY ID vko,
                     o_auart    FOR auart              MEMORY     ID aat,
                     o_fdnam    FOR fdnam,
                     o_spart    FOR spart   MEMORY ID spa,
                     o_vbeln    FOR vbeln            MEMORY ID aun,
                     o_posnr    FOR posnr,
                     o_matnr    FOR matnr            MEMORY ID mat,
                     o_pltyp    FOR pltyp            MEMORY ID vpl,
                     o_j_3ar    FOR j_3arqda,
                     o_kzr00    FOR kbetr,                       " -ZR00
                     o_kalsm    FOR kalsmasd,
                     o_kmwst    FOR kbetr,                       " -MWST
                     o_kbmen    FOR kbmeng,
                     o_land1    FOR land1            MEMORY ID LND
    SELECTION-SCREEN  : END OF BLOCK b1.
    Thanks in advance.

    Hi,
    Make key fields as well as fields on which there in an index in the database table mandatory.
    Regards,
    Abhijit G. Borkar

  • I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the

    I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the automatically uploading of old material?
    Thanks

    You have 2 unreachable statements in this method.
    public static int eval(String s2, String op, String s3) {
    return lookup(s2);
    return lookup(op);
    return lookup(s3);
    } You're missing a } at the end of this method:
    public static int lookup(String s) {
        for(int k = 0; k < symbols.length; k++){
            String symbol = symbols[k];
            if(s.equals(symbol))
                return k;
        }You have some loose } and ; at the end of the file:
    public static void main(String args[])
    commandline();
    }

  • Preferences are not saving. Each time I start Fire Fox it acts as if it is my first time starting the program.

    Each time I open Fire Fox, it acts as if it is the first time I'm opening the program. The 'Welcome to Fire Fox' first-run page always shows up when I open the program.
    None of my preferences, like the custom themes, save - however my bookmarks, which I chose to have transferred over from my previous Fire Fox, seem to be saving.
    I have version 5.01
    Also, I tried all of the steps from this help page: http://support.mozilla.com/en-US/kb/Preferences%20are%20not%20saved?s=settings+don%27t+save+after+firefox+is+closed&as=s
    However, I am unable to delete or make changes (such as renaming) the ''Prefs'' file because it keeps telling me that the file is open. However, when ever I go to my task manager there is nothing under the name or description of Fire Fox running. So I can't figure out how to close this file that is supposedly still open.

    Which security software (firewall, Anti-virus software) do you have?
    Make sure that it isn't locking the .js file(s) in the Firefox Profile Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Help in generating the same random numbers each time of the program executi

    dear friends
    i am facing a problem that the random numbers generated at time of each exectuion of the program are not the same, i want to generate the same random numbers every time time i run the program. i need your help. i am giving the code in c++ if anybody can help in providing the solution so that i get the same random numbers at every run of the program. waiting for your help
    wit regards
    jaya shankar
    #include<iostream.h>
    #include<stdio.h>
    #include<stdlib.h>
    #include<time.h>
    #include<math.h>
    class density
    int s[150][150],parent[150][150],i,j,l,n,loop;
    public:
    void bd(void);
    void css(void);
    void density :: bd(void)
    cout<<"ENTER THE POPULATION SIZE = ";
    cin>>n;
    cout<<"\nENTER THE NO.OF LOOPS = ";
    cin>>loop;
    for(i=0;i<n;i++)
    for(j=0;j<80;j++)
    s[i][j]=rand()%2;
    cout<<"s:"<<s[i][j];
    void density :: css(void)
    int a,b;
    float c;
    for(i=0;i<n;i=i+2)
         b=rand()%100;
         cout<<"random b="<<b;
    main()
    density d;
    d.bd();
    d.css();

    To generate the same random,it's impossible!
    why do you want to do that?

  • I have tried to download and install Firefox 3.16 (US version) on a XP system three times. The program installs normally but cannot be launched. Clicking on the shortcut or even on the firefox.exe in Windows Explorer does not launch the program.

    I had a similar problem on a Windows 7 system, but there I succeeded after a second attempt. On the XP system I desinstalled the Firefox program before every new attempt. But no way. Firefox appears in the Program groups in System Information, so I suppose the program is normally installed. Intelliguard of PC Tools was temporarily disabled, so that is not the problem. Skype is version 5. Is there a registry problem?

    I have tried it many times now. I get the alert that I should seriously upgrade, so being a dutiful Firefox and Mozilla user, I try. My iBook G4, several years old now, won't launch it.

  • FATAL RUN-TIME ERROR: The program has caused a 'General Protection' fault at 0x6846680A.

    Dear all,
    I have some troubles with LabWindows CVI. Sometimes (maybe 2 or 3 times by week) my application crash with General protection error in cvirte adress. This crash never happens in the same part of the code is always happens in random way. The problem is that in debug mode we don't have any information about where the problem occurs in cvirte. This bugs can happens with differents application from very simple application to very complex applications.
    Do you have some ideas that how can I solve these problems?
    Thanks

    Hello J. Romero!
    Thank you for the crash information you provided!
    Hover you managed to collaborate with NI France more in order to determine the cause of this crash?
    Unfortunately, the information you provided is still not sufficient for us to determine the exact cause and circumstance of this crash:
    The provided event logs only contain relative addresses of the locations. An absolute crash address can better suggest the exact location. Please provide a screenshot of the crash window dialog, which contains the exact absolute address of this crash.
    In your original post, you mentioned that you can reproduce the crash with a "very simple application". Is it possible for you to send us the application on our incoming FTP server, so that we can build and run the program on our side?
    Do you have a suspicion for any particular libraries, components or UI controls that you are using, which reproduce the crash. E.g. "whenever I perform this action in a Numeric Control, the crash occurs...". This will further help us to narrow down on the problem!
    If #2 is not possible, one other solution would be to send us a crash dump of the application. Please follow the steps in this Developer Community post, in order to generate and send us a crash dump: https://decibel.ni.com/content/docs/DOC-1496
    Best regards!
    - Johannes

  • Anyone having issues using "iPhoneconfigutility?"  I downloaded it several times, but the program never opens.

    Anyone having problems using, "iPhoneconfigutility

    I've tried installing, reinstalling and removing and installing itunes 9.1 but the program will not start. I have clicked on the desktop shortcut, the itunes.exe in the program folder but all i get is a brief loading hourglass and then nothing. I have checked in task manager and the programs itunes.exe and ituneshelper.exe are in the processes window but the program is not visible on the desktop.
    Starting some basic-principles troubleshooting here, if you're game.
    The first thing to try isn't a cure in itself, but can rule out some possible causes of problems, and narrow in on others. We're going to check to see if this is a systemwide issue or if it is specific to one particular user account.
    From the Start menu, choose Control Panel.
    Open Add or remove user accounts (If using the Classic View in Windows Vista, open User Accounts. Then open Manage another account).
    Select Create a new account and follow the instructions to complete the account setup process. Give the new user account full administrative rights.
    Once the new account is created, choose Log Off from the Start menu. Log into the newly created user account. (Don't use fast user switching to move between accounts.)
    Launch itunes in the new account. The setup assistant will/should run. Do not add any files when prompted to do so (if things get that far). Just let it eventually open to an empty library.
    ... does it eventually open to an empty library? Or do you get the same sort of behavior as in the usual user account?

  • I downloded iphoto 11 9.2 and when opened it for the first time and the program started to update my iPhoto library the file got corrupted. That has happened in the two macs I have (both of them rather new and updated to last Lion version 10.7.2).

    I downloaded Iphoto 11 9.2 from the apps store (was on iphoto '09 before version 8.x) and when opened it for the first time it tried to update my photo librery and ended up corupting it to the extreme that I had to get a backup from time capsule and downgrade my iphoto version. I spent yesterday 6 hours at the genius bar in an apple store and they were not able to provide me with any other solution. In the emantime, I have to forget about about photo streaming... Any idea, is this a bug that somebody knows how tp fix?

    In fairness, this isn't an issue in iPhoto 11 but one in your Library. Some file or other in there is damaged and that's what causes the crash during the upgrade.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • How to set the system time in the program

    Hi All,
    How do we update the system time inside java programme.

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • I can't delete more than 150 to 200 emails at a time without the program freezing, how would I delete 38,000 without wiping out saved messages?

    I'm on Win8/Win8.1. A laptop and a PC, and Thunderbird freezes on both if I try to delete a larger quantity of emails. I want to save some of the emails, and delete the rest. About 38,000 as I have kept putting this off. Is there another way to do this, or any third party software that would work?

    What is your anti-virus software?

  • How can I reduce FPGA compiler time

    Hi,
    I am trying to implement a PID control loop on the FPGA of a cRIO. 
    The VI which runs on the FPGA target takes very long to compile (1h+).
    Does anyone have an idea while the compilation takes so long and how I might be able to inprove compilation time?
    The program can be found in attachment.
    Best regards,
    Jasper
    Attachments:
    PID FPGA TEST.zip ‏160 KB

    Hi Jasper,
    FPGA's normally take a very long time to compile compared to software compilations. 1 hour sounds about right for a slightly above average sized project. Compile times of anywhere from 2-4 hours (and longer for larger devices!) are not unheard of.
    Companies who are serious about FPGA compilation and rely on quick turnaround invest in servers which contain many computers to work on the compilation (this is also why when you compile, it asks you if you would like to compile on the "local sever" (your computer) or an external server).
    NI also has a cloud compiler available that will let you compile your code on their servers, however you must pay for the time. I think they offer a free trial if you wanted to see how it works.
    So if you seriously need quick turnaround, you must consider some serious hardware.
    Otherwise, you will have to queue up multiple compilations and let them run overnight like the rest of us.  
    www.movimed.com - Custom Imaging Solutions

  • Can anyone answer my question regarding compile time ?

    can anyone answer my question? What happens exactly during compile time when the program is compiled in java ? My answer is for this question is the compiler places all the references to the variables we used in a stack and also places the references to the objects used in the program in a stack. Is my answer correct and complete ? Does the compiler do anything more ? if so please mention me . THANKS A LOT for all the ones replying for this question . THANK YOU

    suryakiran_s wrote:
    can anyone answer my question? What happens exactly during compile time when the program is compiled in java ? My answer is for this question is the compiler places all the references to the variables we used in a stack and also places the references to the objects used in the program in a stack. Is my answer correct and complete ? Does the compiler do anything more ?That's not correct.
    Compilation is a process which turns a program (or part of a program) written in one language into the same program in another language. This can take place both at compile-time and run-time, but always before execution (when the program code is actually run)
    A stack is a data structure used during program execution to handle variables with a lifespan limited to that of a method call.

  • How do I give the program time to write to a JTextArea field

    Hi,
    I created a swing application which listens for user input with a simple button that starts a whole process of reading database records, looping the records, writing files to a file system etc.
    What I would like to do, is to present the user of the application with regular feedback on how far the program is in the overall execution of this big task.
    something like:
    - file a.pdf moved
    - file b.gif moved
    etc..
    I write these line of text to a JTextArea control in my main panel.
    I know the routines work, as feedback from the other controls are posted without problems in the JTextArea.
    In a previous life (...those days) I did some work with .Net, and with something similar I learned that sometimes the application needs some time to "catch up" to be able to write to an UI component, by sleeping the thread for a second after each pass.
    However, Thread.sleep(1000) does not seem to do the trick in my swing app.
    Any ideas on how to do this?
    Thanks,
    -Rogier

    JTextArea.append() is a thread-safe method, so you can call it and java thread scheduling will do everything for you
    I'm not sure what you mean by "catch up", if your GUI stays responsive during your long job, than textArea will be updated.
    public void runVeryLongJob(){
          for(int i=0;i<numOfTasksInLongJob;i++){
               doStuff(i);
               //update JTextArea     
           yourTextArea.append("Task "+i+" done");
    }ok...camickr already answere this.. of course you have to be in separate thread for long job

Maybe you are looking for