Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / November 2003

Tip: Looking for answers? Try searching our database.

Console missing: JBuilder 8?

Thread view: 
DaZoner - 10 Nov 2003 21:12 GMT
I have written a front end gui in JAVA that launches two C++ console
applications. When launched from within JBuilder 8 the console application
output goes to a pane internal to JBuilder 8 and I see that it is correct.
When launched via a desktop shortcut to the .JAR file no console window is
launched (for System.out.println calls reporting each Process'
outputstream). The Process' errorstreams are empty. JBuilder 4 (the previous
IDE for this project) automatically launched a console window when the .JAR
application was launched. Why don't I see a console now? Is this a problem
with JBuilder 8?
Raymond DeCampo - 12 Nov 2003 02:45 GMT
> I have written a front end gui in JAVA that launches two C++ console
> applications. When launched from within JBuilder 8 the console application
[quoted text clipped - 5 lines]
> application was launched. Why don't I see a console now? Is this a problem
> with JBuilder 8?

Assuming that you are using Windows, it is likely that the shortcut is
configured to run javaw.exe and not java.exe.  Since javaw.exe is a
non-console application (sorry for the Windows-speak), there is no
console window for the child processes to inherit.  Depending on how
exactly Runtime.exec() is implemented, you will see problems.  Try
running the jar from the command line with java.exe and see if it works.

Ray


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.