• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Capture java stdout when running the JVM through JNI in C++

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am running the JVM from C++ using JNI. This will be running as a service and I want to capture the system.out.println(xx) output from C++.
The vfprintf hook does not work for me and I have seen a few posts on javasoft.com confirming that it does not work.
If it was using the standard stdout I would be in good shape but it is not!
Help!
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Warren,
I don't have an answer to your question, but I would be interested in hearing what environment you application is being developed in (windows or unix), and which parts of your program you are programming in java and which parts in c++.
I thinking about writing a client ui application in win32 and using JNI to run a JVM so that I can program the networking component using JMS in java. I know that everyone will probably say to program the entire thing in java with swing, but i'm just thinking about this idea.
Eddy
 
reply
    Bookmark Topic Watch Topic
  • New Topic