Java generation output

I invoque the following command line :
java -classpath xxx/toto.jar toto.Tool file.g
which generates files I want but where I want, the output directory is bad
how to indicate to the compiler which directory to put the generated files ?
in c++ we use -o as an option
I don't find the equivalent for java..

That option is for specifying destination of.class
files for javac. I don't think that's what the OP
wants.Ahem. "how to indicate to the compiler which
directory to put the generated files ?" That's
exactly what "-d" does.Ahem. Reread the whole command line. The OP is running a class with "java", not compiling with "javac". The OP has the terminology messed up. I think the OP's class itself generates files.

Similar Messages

  • Mainframe problem - java -version output : Error: unable to allocate

    Hi,
    I am calling "java -version" command from my java program. my program is executing well but when it comes to execute this command using Java Runtime it giving following error.
    java -version output : Error: unable to allocate 67108864 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 53686784 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 42949120 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 34359296 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 27487232 bytes for GC in j9vmem_reserve_memory.
    JVMJ9VM015W Initialization error for library j9jit23(11): cannot initialize JIT
    Could not create the Java virtual machine.
    and pogram continue executing.
    is any body have idea why it is behaving like this and wht needs to be done.
    this program i am writing for IBM mainframe machine.

    java -version output : Error: unable to allocate 67108864 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 53686784 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 42949120 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 34359296 bytes for GC in j9vmem_reserve_memory.
    Error: unable to allocate 27487232 bytes for GC in j9vmem_reserve_memory.
    JVMJ9VM015W Initialization error for library j9jit23(11): cannot initialize JIT
    Could not create the Java virtual machine.As a guess
    1. Environment is messed up
    2. Install of java is messed up.
    You might look for command line options that allow you to change the heap size. Try making it smaller.
    You might also want to verify that the 'java' you are running is actually the binary that you think it is, versus a script/link to someplace weird.

  • I read that the apple tv 2nd generation output resolution is 1080p but the one i have only list up to 720HD  my Tv is a Sony KDL-42EX440 capable of 1080

    I read that the apple tv 2nd generation output resolution is 1080p but the one i have only list up to 720HD?
      my Tv is a Sony KDL-42EX440 capable of 1080

    No, second generation AppleTV outputs 720p HD only, the 3rd generation outputs 1080p.
    2nd gen can decode 1080p in theory but the output resolution maxes out at 720p.
    If it's any consolation AppleTV 2's can fetch good 2nd hand values compared to ATV 3's.
    AC

  • Java binding - output log file

    I have successfully implemented a simple java binding interface, but I am having some issues with the java class and I would like to do some debugging.
    I was under the assumption that system.out.pritntln statements in the code would simply redirect to the default domain.log, however I don't see any of my output.
    Does anyone know how I should go about debugging the external class? I am sure that using log4j would be more appropriate, but for now, I just want some simple output to let me know the health and status.
    Thanks in advance.

    solved by adjusting the opmn config output to re-direct the stdout

  • Java Wrong Output

    After two weeks I finally got my project to run only its not outputting all the information that is suppose to.
    My output should display the dollar amount along with the tax catergory, but its only displaying the tax category, can someone please assist me in locating what am doing wrong.
    Correct Output: The tax rate category for an annual salary of 34400 is 3.
    My Ouput: The tax rate category for annual salary of 6
    * AnnualSalary.java
    * Johnise Felder
    * This program should display the annual salary and tax category.
    package annualsalary;
    * @author felde301
    import javax.swing.JOptionPane;
    public class AnnualSalary {
    /** Creates a new instance of AnnualSalary */
    public AnnualSalary() {
    * @param args the command line arguments
    public static void main(String[] args) {
         float annualsalary = 0;
         int taxratecategory = 0;
         String input =
    JOptionPane.showInputDialog (null,"Enter an annual salary",
         "Input Dialog Demo",
    JOptionPane.QUESTION_MESSAGE);
    annualsalary = Integer.parseInt(input);
    if (annualsalary < 15000){
    taxratecategory = 1;
    else if (annualsalary > 15000 && annualsalary < 25000)
    taxratecategory = 2;
    else if (annualsalary > 25001 & annualsalary < 40000)
    taxratecategory = 3;
    else if (annualsalary > 400001 & annualsalary < 65000)
    taxratecategory = 4;
    else if (annualsalary > 65001 & annualsalary < 80000)
    taxratecategory = 5;
    else if (annualsalary > 80000)
    taxratecategory = 6;
    //end if
    //display the result
    JOptionPane.showMessageDialog(null,"The tax rate category for an annual salary of:" + taxratecategory);
    }

    hi,
    take your modified code
    * AnnualSalary.java
    * Johnise Felder
    * This program should display the annual salary and tax category.
    package annualsalary;
    * @author felde301
    import javax.swing.JOptionPane;
    public class AnnualSalary {
    /** Creates a new instance of AnnualSalary */
    public AnnualSalary() {
    * @param args the command line arguments
    public static void main(String[] args) {
    float annualsalary = 0;
    int taxratecategory = 0;
    String input =
    JOptionPane.showInputDialog (null,"Enter an annual salary",
    "Input Dialog Demo",
    JOptionPane.QUESTION_MESSAGE);
    annualsalary = Integer.parseInt(input);
    if (annualsalary < 15000){
    taxratecategory = 1;
    else if (annualsalary >= 15000 && annualsalary <= 25000)
    taxratecategory = 2;
    else if (annualsalary >= 25001 && annualsalary <= 40000)
    taxratecategory = 3;
    else if (annualsalary >= 400001 && annualsalary <= 65000)
    taxratecategory = 4;
    else if (annualsalary > 65001 && annualsalary <= 80000)
    taxratecategory = 5;
    else if (annualsalary >= 80000)
    taxratecategory = 6;
    //end if
    //display the result
    JOptionPane.showMessageDialog(null,"The tax rate category for an annual salary of:" + taxratecategory);
    }

  • Exec() - G77 Fortran blocks read(*,*)  until Java closes output stream.

    This is my first post!
    I have a program in fortran using G77 from GNU. When I start the program and write to the output stream I have to close() the stream for the message to arrive at the other end. G77 seems to need Java to close the stream for the message to be sent.
    Then, the stream is forever closed and can not be re-obtained for subsequent writes.
    I do not need to close() with microsoft fortran. It works fine with a simple flush().
    My code for Microsoft is below, followed by same code for G77:
    Any ideas?
    Disciple285
    // write to stream with Microsoft Fortran
    std_out.println(message);
    std_out.flush();
    // write to stream with G77 Fortran
    std_out.println(message);
    std_out.close();

    Hi:
    The internal OJVM is not affected by your installations of any other Sun JDK on the server.
    So you can not upgrade your internal OJVM without upgrading the entire DB.
    Oracle 10g includes a JDK 1.4 runtime, 11g a 1.5 runtime and so on.
    If you can upgrade your Oracle 9.2.0.8 to a 10g release you can then compile the code, if not you should re-write the code to compile with an standard JDK 1.3 release.
    Best regards, Marcelo.

  • JAVA mapping, output...

    Hello guys,
    Again here I am with some simple and easy doubts.
    When I'm creating a mapping between two interfaces with JAVA, I'll have a call to :
    execute(InputStream in, OutputStream out).
    The questions are, these two arguments are two XML files. The first will be the file we want to send, but the second how will it be?
    If I'm using a call to a RFC, the structure of the second file will have the importing, exporting and tables arguments of the RFC? And how are they disposed...?
    The idea is to perform the correspondence from the original file to the parameters of the RFC, but how will the RFC load the parameters from the file...?
    I know it's a really simple doubt but can anyone clear my mind?
    Thanks a lot in advance...

    > Hello guys,
    >
    > The questions are, these two arguments are two XML
    > files. The first will be the file we want to send,
    > but the second how will it be?
    These arguments dont necessarily need to be XML structures, in fact this method accepts any kind of input i.e. flat structure, strings, etc.. However, you are using this mapping within a message mapping so most likely you will pass an XML structure to it. The first parameter is the input (the source) and the second one is the resultt of your Java mapping.
    > If I'm using a call to a RFC, the structure of the
    > second file will have the importing, exporting and
    > tables arguments of the RFC? And how are they
    > disposed...?
    The RFC structure you have to download it from the R/3 system where you want to call this RFC. You do this from your SWCV in the repository. After you have downloaded the RFC metadata you will see both messages, the request and the response message.
    > The idea is to perform the correspondence from the
    > original file to the parameters of the RFC, but how
    > will the RFC load the parameters from the file...?
    Here is where your message mapping (enhanced with your Java mapping) will come into picture.
    PS: Without knowiing your requirements I think you can do this mapping from file to RFC call without the use of a Java mapping. i.e. message mapping.
    >
    > I know it's a really simple doubt but can anyone
    > clear my mind?
    >
    > Thanks a lot in advance...
    Good Luck,
    Roberto
    Message was edited by: Roberto Viana
    Message was edited by: Roberto Viana

  • Jni code snippet for wrapping Java Dos output

    I want to wrap a small Java Application in a Windows System "Window".
    Please how do I go about this? I know nothing of C++ or C. I had a little Fortran 4 years ago and currently learning Java. I just need the code that will call up a System Window in Windows 98 2nd. If it would be C or C++?

    Why?

  • R12 Winodws Install -- Concurent Manager not generation output file

    Hello,
    just install R12 VIS on windows 2003 server, all seem working find, but when I run "Active Responsibilities and Users" concurent requiest it completed sucsesfully but its not creating out put file
    Please help.
    Thank you,

    no error in the logs, is just popup window "The concurent request ##### did not crerate an output file"
    Application Object Library: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    FNDSCARU module: Active Responsibilities and Users
    Current system time is 07-SEP-2012 16:03:48
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Executing request completion options...
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 5816743      
    Number of copies : 0      
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 07-SEP-2012 16:03:49
    ---------------------------------------------------------------------------

  • What to make of java -version output?

    hi,
    I have two machines with java on them, doing a -version gives:
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    and
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    The problem is that the first produces a strange error
    ERROR: could not initialize interface awt - exception: java.lang.NoSuchMethodError: processSynchronousLightweightTransfer
    so I was wondering what the differences are between b03 and b92, and where these might be documented on suns website?
    thanks,
    asjf

    You posted the same thing.
    As far as I know b92 was the release of 1.4.0. Builds previous to that would have been betas. Newer builds have bug fixes in them, just as x.x.n builds do.
    You might also compare video cards, drivers and fonts on the two systems. Many problems in the GUI systems are caused by variances in those.

  • Java Help Output

    In the Javahelp viewer I am having difficulty getting the screens to display as they are written. If you view the HTML screen in another viewer it looks as written; however, if you open it in the Javahelp viewer some of the tables are stretched across the page. I would say that about 75% of the document appears as it is supposed to and approx. 25% is skewed. What I cannot figure out is that there are mulitple fields that are the exact same format, only different pictures and text in them, and 7 of 10 will appear fine and the other 3 will be skewed. I contacted robohelp and they along with our developers found that the code is correct and the problem is in the viewer. I have downloaded the latest products in hope of solving the problem and the issue still remnains. I have a copy of this HTML if anyone would like to see it please contact me at [email protected] and I will be happy to send it to you. I am writing to find a solution to this issue and to bring it to the developers attention that this problem is out there. Thank you for your help.

    The Javahelp viewer supports HTML 3.2 and a "bit" more, but not the full HTML 4.0.
    If find it best to write the HTML without style sheets, and to explicitly set the image size on any imbedded images.

  • Java console output

    I have a command line app, and I want to rewrite the same line of text
    Let's say I have:
    System.out.println("--");
    System.out.println("----");
    System.out.println("------>");
    Instead of showing on 3 lines, I'd like it to show it on one - "animated" because it's being changed.

    Something like this should do it.
    public static void main(String[] args) throws Exception {
              char c = '-';
              int [] ints = {3,5,7};
              for (int i = 0; i < ints.length; i++) {
                   for (int j = 0; j < ints; j++) {
                        System.out.print(c);
                        Thread.sleep(80);
                   Thread.sleep(500);
              System.out.println(">");

  • How to output java logging only to a log file except stderr?

    I create a file logging and noticed that java logging output a log file and stderr simultanously. How to output the logging message only to the log file?
    Thanks.

    HarishDv wrote:
    I dont have indesign  installed on my system. I only have the binary , which needs modification and i have to save back to the DB as indd.
    Can't be done, for a realistic assessment of "can". InDesigns documents cannot reliably be created or modified without InDesign itself. (*)
    If you need to do this on native InDesign documents, you have to buy and install it.
    * "Not true, there is always IDML". But that's not a 'binary'; and you cannot (**) "convert" a binary INDD to IDML and back again without InDesign.
    ** Again, for a remotely realistic value of "can".

  • 6534 in Pattern Generation Input and Output

    Hello All
    I have a PCI 6534 High Speed Digital I/O card that I am trying to use to generate a pattern output from port A and acquire some data from port C. I have connected Port C, bit 0 to high and all the others low and I have also connected the two REQ pins together. This is to allow for the REQ pin from the pattern generation output to drive the input as an external clock. I have set the timebase as 1uS and the request interval as 10, to give a REQ pulse every 10uS. The idea being that the pattern generation output will generate a REQ pulse every 10uS and this would cause an input read to occur. My code can be found in the attached word file.
    Now initially I placed the DIG_Block_In command before the DIG_Block_Out and set the two counts to 100. For a single run of the application this filled my input buffer array with 50 elements of 257.... which I think is what I would expect as for a count of 100 it takes 2 to fill both the upper and lower 8 bits of the input array. OK....
    Now if I change the In Count to 200 and leave the Out Count at 100 I only fill 48 elements. I have no idea why this would happen. In my finall application I hope to increase the count to nearer 2000 and this loss of elements becomes significant.
    If I swap the DIG_Block_Out command to go before the DIG_Block_In then with both counts set to 100 I get no data acquired at all. If I increase both counts to say 2000, I actually acquire 944 elements, 56 less than I would expect? Why is this....?? Is it because the DIG_Block_Out command has already started the process before the DIG_Block_In command is initiated?
    Does anybody know what is going on here? I have had the same problem with a PCMCIA 6533 card (worse) and thought it would be solved with the PCI 6534. Does anybody know how I can ensure the correct numbers of data are acquired every time I run this operation? I need to be sure that all the desired data is being acquired as my final application is very dependent on this.
    Any help would be gratefully appreciated.
    Jamie
    Attachments:
    6534_Timing_Issues.doc ‏27 KB

    Hi Jamie,
    Whenever you are communicating from one group to the other on the 653x boards, you should have the input clocked on an external signal and you should have the output start AFTER the input process has started.
    As for why your input buffer is half your output buffer, it could be that the intermediate PC memory buffer is in terms of bytes and your application buffer was casting this data to a 2 byte word.
    I linked on one of your other posts 2 example programs. Adapting those might suit your needs best. Have a good day.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HFORCEKWTID=75069:5&HOID=5065000000080000008BA10000&HExpertOnly=&UCATEGORY_0=_31_%24_12_&UCATEGORY_S=0
    Ron

  • JNI: Reading Java output from console window

    Hi!
    Sorry if this is wrong place to put this topic, but I didn't know where to put it, so now it's here.
    I'm trying to make a launcher program with C++ which would start my java program. I'm using "env->CallStaticVoidMethod (romexisClass, mid, args);" and it works perfectly. But I'd like to read the text which my java program outputs to the console window and save it into a text file. Is this possible and how? It looks like I stdout etc. won't work.
    Or as other option I could use some Java Exe Wrapper, but I haven't found any which would allow passing arguments to the main() without -D option and I need to be able to read those arguments from a .ini-file. It should be a subtitute for the following command "java -Xss$var1k -Xms$var2m -classpath $var3 test.program host=$var4" in which I'd read $vars from a .ini-file.
    Thx,
    Lassi

    Maybe this will do the job:
    http://cboard.cprogramming.com/archive/index.php/t-86580.html

Maybe you are looking for

  • 2013 MacBook Pro 15 retina display with broken screen

    My girlfriend broke my screen on my 15 inch Macbook pro 2013. will the warranty cover the replacement of the screeN. How much will it cost to replace screen

  • How can I change two elements in an array from double to integer.

    I have my program working just fine until it comes to saving the file. I have a 2 dimensional array that has data at 0,0 0,1 and 0,2. It is being displayed perfectly the way I have it set up. The problem is where it comes to saving the file. I want e

  • Stacking with Apple TV1

    Is it OK to stack an Apple TV 1 on top of 2010 Mac Mini? The Apple TV 1 puts out a lot of heat, even when left in 'sleep' mode. The Mac Mini & the Apple TV 1 will be left on all of the time. I put four small felt pads between them.

  • HT4623 Password - not sure which one!

    I just downloaded the latest update, but it's now asking for a password. It's not accepting my Apple pw. I don't know which other password we're supposed to enter here. Help on this issue will be greatly appreciated.

  • How retieve ste data records(I did not export) in Site manager

    corrupted my vista (files exist not lost) how retieve ste data records(I did not export) in Site manager for use in a new installation... was dw cs4 now dw cs6...