-verbose output on Windows

Hi all,
I've been working using JNI to call Java methods from a Windows command-line app, that's written in C++. Recently I've moved part of the application into a windows GUI app. I use the -verbose:jni option string to get the JVM jni debug output, in the command line tool, this appears on the console along with anything else that I printf with or whatever. Now that I am using a GUI app, there is no console available. I have tried creating a new console with AllocConsole() and tried remapping stdout, stdin, stderr, cout, cin, clog and cerr to the new console. I've tested this works using printf, fprintf(stdout, ...) and about every other combination that I can think of to print to the new console that I have created, and all of my output appears, however the -verbose output does not.
Does anyone know how to redirect this output to a new console (or just anywhere that I can read it). I've also tried calling System.setOut() etc. and pointed them to files. This lets me see things like the output from ExceptionDescribe(), but the -verbose output is still sadly missing.
Thanx,
Idries

Recently I've moved part of the application into a
windows GUI app. I use the -verbose:jni option string
to get the JVM jni debug output, in the command lineI have found no solution to this. I tried even redirecting stdout/stderr from C before loading the VM with the Invocation API. Even this did not work. Maybe you would have better luck with it.
Since I was only interested in GC messages the -Xloggc:filename option worked for me. But there is no -Xlogjni option unfortunately.
A last resort option is to download the JVM source, modify it to send -verbose output always to the vfprintf hook, and use Invocation API to set that. But you would have to rebuild the VM for that. You could always look through the source for clues. I suspect that the VM will use the vfprintf hook even on Windows if it cannot open stderr.

Similar Messages

  • Updating Output Preview window

    Hello. I have a problem with output preview window. I found the thread with the same question: How to update Output Preview window? . But there are no answers. May be anybody can answer now.
    Thank you.

    I sent "PDPageNotifyContentsDidChange" notification. It helps to show new element with this colorant in document, but not in OP window.
    It is very srange behavior. If you open OP window after adding colorant, OP window show it. If change Simulation Profile from CMYK to RGB (or RGB to CMYK or GS ets.) new colorant will appeared. Workaround: Maybe it posible to change this profile programmatically?
    If you open OP window then change in preferences default working space and then open OP window again Simulation Profile won't be changed.

  • Capturing verbose output from javac??

    I am tyring to capture the verbose output from javac.
    From a UNIX shell, I type "javac -verbose Test.java 2> dump.txt" and it works fine.
    The trick is that I want to do this within a Java program. I have the following code, but I can't seem to find a solution. Any help is appreciated.
    import java.io.*;
    public class GetTree {
    public static void main(String[] args) {
         try {
         Runtime r = Runtime.getRuntime();
         String options = "-verbose";
         // The java file to compile.
         String fileName = args[0];
         String command = "javac " + options + " " + fileName + " 2>dump.txt";
    // This doesn't even create the 'dump.txt' file!?
         Process p = r.exec(command);
         catch (Exception e) {
         System.err.println(e);
    -----------------------------------------------------------------------

    Try this...
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    appu

  • BI Publisher - output file window won't open

    My customer is having an issue with opening or saving report output generated by BI Publisher.
    Environment is Siebel CRM 8.1.1 running on RH Linux 4. Out of box reports work fine to the extent we can fin all the outputs under Administration - BIP Report. However after we select the output type (PDF, EXCEL, RTF, etc), a new window opens prompting for either "open" or "save". Clicking either button will result in nothing, while the local desktop's CPU usage by IE shoot up, sometimes up to 100%. Browser is IE6 by the way.
    If anybody has seen this before or has any pointers, please let me know.
    Thanks!
    Jiang Tong | Principal Architecture Specialist | 630.618.1911 (cell) Oracle Application Expert Services Westchester, IL USA | CST Time Zone

    We un-installed 2 Microsoft patches to make it work. For the benefit of other users who might encounter the same problem - KB976749, KB974455.
    Jiang Tong | Principal Architecture Specialist | 630.618.1911 (cell) Oracle Application Expert Services Westchester, IL USA | CST Time Zone

  • RH 7 - How can I get .swf movies to work inside CHM output on Windows 7

    Hi RHelpers,
    I'm using RoboHelp Html (RH 7, latest patch) on my Win 7 64-bit machine to provide a HtmlHelp (CHM) output.
    Now that we're close to releasing, I've been doing some testing, and I've noticed that my SWF movie files do not play inside of Windows 7 when viewing them inside of the CHM file. It keeps asking to install the Adobe Flash Player. But I've already clicked Yes several times to that message, and it still doesn't play the file. I've even manually downloaded and installed it as an administrator, restarted my system and still no go. It just shows a red X in the container where the movie should be playing.
    However, viewing the same topic inside of RH's preview window (or inside a browser) seems to work fine. Also, I've copied and pasted the problem CHM onto a virtual machine running 32-bit Vista, and the movies display fine there. This tells me it's something to do with how how compiled files are handled in 64-bit environments.
    Has anyone else experienced this? Any solutions out there?

    I see the answer here:
    http://forums.adobe.com/thread/781427?tstart=2
    Also I verified that our software does use the 32-bit hh.exe so I'm only seeing this when running the help by itself, outside of our software. That's good news.

  • S video output on windows 7

    Hi All,
    i have HP Pavilion dv5131eu.
    i have upgraded to windows 7.
    i have connected to s video cable to the appropriate s video output.
    now i try to change display to s video and i cannot define it
    seems that windows 7 does not recognize this output.
    i open the display setting and i tried to change the display but i can not find this output.
    i have tried to install the  the audio drivers but still not change.
    help !! please !!!
    thanks,

    Hi,
    mm52111 wrote:
    Hi All,
    i have HP Pavilion dv5131eu.
    i have upgraded to windows 7.
    i have connected to s video cable to the appropriate s video output.
    now i try to change display to s video and i cannot define it
    seems that windows 7 does not recognize this output.
    i open the display setting and i tried to change the display but i can not find this output.
    i have tried to install the  the audio drivers but still not change.
    help !! please !!!
    thanks,
    Have you tried holding the Windows key and tapping the P key?
    As there is no support for Windows 7 for your laptop by HP at this writing, this may indeed be difficult.
    Have you checked in Device manager to see if any drivers have a yellow exclamation mark next to them?
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • HI,Can the smartforms output the windows box as the type of dashed Line?

    My customer let me Print the windows box with the dashed line in smartforms, but i searched many method ,all failed,anybody know how to do it?

    hi,Bala Muthu Raja 
    thanks for your information.
    but i means i want to output the dashed line box for the windows as following......
    ^^^^windows^^^^
    ^^^^windows^^^^
    ^^^^windows^^^^
    ^^^^windows^^^^
    ^^^^windows^^^^
    adjusting the line width just make the box line become wild or thin.
    Message was edited by: shi jack
    Message was edited by: shi jack

  • Triggering SRM PO output to windows spool

    Hi,
    I have a customer requirement to output the SRM PO to the user windows default printer.
    Customer do not want to configure printers through SPAD transaction...
    Customer do not want to display PO in PDF and then to print it to windows printer.
    Customer wants to select one or several PO (i already have a bespoke transaction for this) and then send them to the user windows default printer.
    Did anybody already implement this behaviour ?
    Kind regards,
    Yann

    Hi yann,
    I am facing similar problem .Could you tell me how you did this .
    I am trying to send smartform to printer directly ,its opening Print dialog but i dont see any front end printers when i pass Output device as LOCL .
    Could you tell me what parameters you have passed thru control parameters and output options .
    I would really appreciate your help .
    thanks

  • Diff Query output on Windows OS and Linux OS

    I execute one simple query on the production environment and on test environment, everything is same except the OS and processor speed.
    In Windows the query is :-
    select product_code , product_sht_name, product_long_name from prod_master where product_code like 'IRON'
    Output of this is everything which is equal to 'IRON'
    In a unix we have same table and when i execute the query:
    select product_code , product_sht_name, product_long_name
    from prod_master
    where product_code like 'IRON'
    No output is coming.....
    Let me know if we have diff output on diff OS??
    Application is running fine on windows OS, but it is not running on Unix OS??? Recently we migrated from SCO-Unix to Red-hat-Linux.
    need your expert opinions???

    A couple of days ago a similar question has been discussed here
    Re: Like operator functionality
    Maybe it does help.

  • Cannot read the output from windows command.

    Hello
    I have the following classes
    package cmd;
    import java.io.IOException;
    public class CMD {
        public CMD(){
            ProcessBuilder pb = new ProcessBuilder()
            .command("cmd.exe","/c","del *.*")
            .redirectErrorStream(false);
            Process p;
            try {
                p = pb.start();
                StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(), "ERROR");
                // any output?
                StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(), "OUTPUT");
                // start gobblers
                outputGobbler.start();
                errorGobbler.start();
            } catch (IOException e) {
                // TODO Auto-generated catch block
            System.out.println("eee "+e.getMessage());;
        public static void main(String[] args) {
            System.out.println("x");
            new CMD();
            System.out.println("x");
    and
    package cmd;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    public class StreamGobbler extends Thread {
        InputStream is;
        String type;
        StreamGobbler(InputStream is, String type) {
            this.is = is;
            this.type = type;
        @Override
        public void run() {
            try {
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                while ((line = br.readLine()) != null)
                    System.out.println(type + "> " + line);
            catch (IOException ioe) {
                ioe.printStackTrace();
    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    Please note that the above example is important because I am developping a tool and it is mandatory for that tool to parse the output from a windows batch command.
    Best regards,

    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    No - but I will give you a hint about ProcessBuilder and how to develop software properly.
    Hint #1: Don't try to automate something that you don't know, or understand, how to do manually.
    a. Do you know how to execute 'del *.*' manually in a command window?
    b. Did you try that manually to see what happens?
    My guess is 'no'. If you had you would know that the response to a 'del *.*' command is going to be this:
    Are you sure (Y/N)?
    And your 'java class execution' doesn't finish because the 'del' command is waiting for you to answer that question.
    Hint #2: Don't try to use ProcessBuilder for an application that requires console input unless you first know how to provide that console input via your Java code.
    Your code will wait forever since it does NOT answer that question.
    Search the net and The Java Tutorials and  you can find examples of executing command line utilities. Then try those examples first and make sure that:
    1. They work for you
    2. You understand HOW they work
    Then you can modify those examples to do what you want to do.

  • Now possible to scroll line-wrapped output in window of ModalDialog?

    Hello,
    At some point the plugin I am working on must display a window with extracted values (varPathName), in this case the full-path-names to image files.
    Depending on the users selection there are many or only a few full-path-names in the output.
    The output is one line that wraps within the given width of the window and should remain so.
    No problem for adjusting the height of the window by calculating the value for the variable 'outputlines'.
    But sometimes there might be more output than available space inside the window (full height on the screen). Therefore I would like to have a scroll-bar on the right side of the window.
    How can this be achieved given the code below. Is it possible to create a scroll-bar after all?
    local f = LrView.osFactory()
         local c = f:row{
              bind_to_object = props,
                   f:column {
                        f:edit_field {
                             value = varPathName,
                             width_in_chars = 80,
                             height_in_lines = outputlines
         dialogValue = LrDialogs.presentModalDialog({
              title = "extracted Paths and File Names" ,
              contents = c,
    Feedback is much appreciated.
    (reference: http://forums.adobe.com/message/3190135#3190135)
    Message was edited by: snahphoto

    Thanks Rob,
    so the output gets saved to a file in the system-temp folder and then opened in an editor.
    Like this:
    communicatorFile = LrFileUtils.chooseUniqueFileName(LrFileUtils.chooseUniqueFileName( LrPathUtils.child(LrPathUtils.getStandardFilePath("temp"), "FilesPathsList_string.txt")))
    local createFile = assert(io.open(communicatorFile,"w+"))
         createFile:write(varPathName)
         createFile:close()
    fileToOpen = string.format("%q", communicatorFile)
    LrShell.openFilesInApp( { fileToOpen }, "notepad.exe")

  • Default file location render settings and output module - Windows 7?

    Hi all,
    Confession: I am generally confused about render settings and output modules, so forgive me if this question seems stupid.
    Problem 1: Where does AE store the default render settings and output module files (I'm on Windows 7)? I want to backup a copy of these in case I mess them up, but can't find the folder. I think they are .aom and .ars files, but I just upgraded my CC 2014, lost all my custom settings, and want to save the defaults before I try loading my various customized files to see if I can get my settings back. When I search for *.aom or *.ars, I can't find any "default" settings from later than 2013 (I would think there would be a newer one somewhere.
    Thanks in advance,
    Lori

    They're in the same folder as the general preferences file and the keyboard shortcuts file. You can open that folder by clicking the button at the bottom of the Preferences dialog box.
    But there is no need to back up the defaults. If you delete the render settings or output module settings file, After Effects will just recreate the defaults.

  • AfterEffects CS4 Crash on Output Module Windows Media

    After sitting on hold for 2:15:00 yesterday, I have yet to discover humans working support, so I turn to this forum....
    I own CS4 Production Premium, on a HP Z800 with XP64, sp2 and 16gb, nvidia quadro fx 3700.
    Since installing it several months ago, I have not been able to use the render que in After Effects CS4. When an item is in the render que, selecting the "Output Module", and then selecting the "Format" drop down, as soon as I release the mouse on the "Windows Media" option, AE begins a predictable crash routine.
    No matter what the project is, this is the same result.
    What is remarkable is the fact that I can run Adobe Media Encoder and render perfectly fine to this format. But this is an awkward middle man, when I'd really like-and should be able to, to encode the project directly from AE, not AME. Premiere also renders perfectly to this format as well. Only AE appears to crash when activating the Format->Windows Media drop down.
    I've installed the latest 9.0.2 update. I've installed various WME packages from MS. I've uninstalled and reinstalled the entire suite several times. The last alternative is to surrender the machine to the IT guys to set up a clean installation of XP64 again.
    Sure would be lovely if I could speak to a support technician or get some help solving this problem ;-)

    Here's a thread that might help:
    http://forums.adobe.com/thread/429333
    There appear to be some problems with some Windows Media presets.
    Here's a thread about CS3 that seems to indicate the same thing:
    http://forums.creativecow.net/thread/2/971962
    I found these threads with this search.
    BTW, I'm not saying that this is related to this problem, but note that 64-bit Windows XP is not one of the operating systems that we recommend for After Effects. Here is the system requirements page.

  • Any problems running Windows 7-created help output on Windows XP machines?

    Hi,
    I feel a bit silly even asking this, but I'm not a coder and don't have the technical knowledge to know for sure that it's a silly question.
    Background: We are upgrading to Windows 7 from XP in the near future. We will be using RoboHelp 10 and Word 2010 - at least that's the plan ...
    For our department's major product, since it's big and has been around a long time, we are still stuck using RoboHelp for Word to generate WinHelp. We then use the RHelp for Word source to generate WebHelp, since some modules of the product require WinHelp, some require HTML pages, and much of the source material is needed in both outputs. And yes, I did read someone's post likening this process to drinking coffee while running a sprint - believe me, if I had any choice about this I wouldn't be doing it. If RoboHelp has added the capability to generate WinHelp from RoboHelp HTML, let me know  .
    Anyway, because of previous weird experiences after upgrades, I am being asked to find out: Has anyone used RoboHelp for Word to generate help output -  .hlp or .chm or HTML pages - on a Windows 7 machine and tested it on a Windows XP machine? If so, were any problems observed?
    Assuming we can still creak along with RoboHelp 10 to generate the same antiquated output ... which we can, right?? ... my gut tells me that a file is a file and I can't see why an .hlp file or web-based help files that run on Windows 7 wouldn't run on XP. But again, I don't have the technical knowledge to say this for certain.
    Any advice appreciated. Thank you - Sandy
    Message was edited by: sdryer

    Creating an output on a later OS does not affect its ability to be used an older OS. The issue, as you know, is creating winhelp to be used on Windows 7 or 8. That forces each user to download a file to support winhelp.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Audigy 2 ZS Pro digital output and Windows XP Pro

    Recently "upgraded" my system to Windows XP Pro X64. My soundcard, an Audigy 2 ZS Pro, connects to my logitech 5. digital speakers via the front coaxial connector, no longer seems to output digital signal. The speakers indicate that there is no signal from the coaxial connection. I can hear sound from headphone through the analog output though.
    Before the upgrade, I had everything working, but I don't remember all the details I went through to get it to work.
    I have installed latest driver for Windows XP X64 from Creative, and I have modified the setting to bypass onboard decoding. Is there anything else I need to do? Online documentation talks about applications that I don't seem to have. Is there a X64-compatible application I need to run to get this to work? Thanks.
    George

    Okay Robert, I downloaded and installed your 6.25 drivers and they work fine. However, the Audigy 4 pro software, http://files.filefront.com/Pax+Audig.../fileinfo.html, does not install anything but drivers, no software applications. I looked on your board and could not find any definati've method for resolving this problem.
    Perhaps you or someone else who is familiar with installing the software apps would care to provide a detailed solution.

Maybe you are looking for

  • Error 1935 when trying to install Lightroom on windows 7 64 bit.

    Having problems installing lightroom it comes up with the following message halfway through install: Help!

  • How can I apply existing WCS "WLAN Config" templates to a new WLC?

    We've been running a pair of WLC 4402s managed by WCS, thus we are still on the older 7.0.235.0 (WCS) / 7.0.235.3 (WLC) release. I'm trying to add an additional WLC 4402-50 as a hot spare. I first ran the manual setup steps to give it an IP in our ra

  • CD splits during import

    sometimes when I am importing a CD its contents are split into two different albums with the same name, is there anyway I can merge the two albums into one?

  • RFSG Peak vs Average Power

    I'm using a PXIe-5673E to generate multitone signals, and am currently adding the ability to pulse the output using script generation in RFSG. The problem is that when the 5673 is set to script, the power level type needs to be set to peak power. Eve

  • Premiere CS6 crash with "serious problem"..on Macbook Pro?

    Every minute or two it will crash. I just recently bought the whole adobe suite and am mainly using premiere but I can't get anywhere with it continually crashing. My Mac info: Version 10.8.3 Processor: 2.53 GHz Intel Core i5 Memory: 4GB 1067 MHz DDR