Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Writing to DOS Console for Headless RCP
Writing to DOS Console for Headless RCP [message #460184] Fri, 15 December 2006 14:39 Go to next message
Eclipse UserFriend
Hi,

I originally posted this in the eclipse.newcomer group, but I think this is
a better group for this particular post. Sorry about the double post!

I have to create a RCP Application which when invoked from the command-line
with a "-headless" argument, doesn't create the Workbench and simply writes
out a few lines to the system console and exits.

Questions:
(1) When I invoke my RCP from a DOS command shell, it seems to create a NEW
console to which the System.out.println() writes to. I want it to write to
the same command shell used to launch the RCP by the command-line. How can I
do this?

(2) My RCP has a splash screen which I want to hide when the user passes in
"-headless" as a command-line argument. Is there any way to do this?

Thx!
Re: Writing to DOS Console for Headless RCP [message #460188 is a reply to message #460184] Fri, 15 December 2006 20:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi.

I know that there is a "-noSplash" command line argument, is that
something you can use? Also check out Platform.endSplash().

Hope that helps,
Ali.

Ameya Barve wrote:
> Hi,
>
> I originally posted this in the eclipse.newcomer group, but I think this is
> a better group for this particular post. Sorry about the double post!
>
> I have to create a RCP Application which when invoked from the command-line
> with a "-headless" argument, doesn't create the Workbench and simply writes
> out a few lines to the system console and exits.
>
> Questions:
> (1) When I invoke my RCP from a DOS command shell, it seems to create a NEW
> console to which the System.out.println() writes to. I want it to write to
> the same command shell used to launch the RCP by the command-line. How can I
> do this?
>
> (2) My RCP has a splash screen which I want to hide when the user passes in
> "-headless" as a command-line argument. Is there any way to do this?
>
> Thx!
>
>
Re: Writing to DOS Console for Headless RCP [message #460189 is a reply to message #460184] Fri, 15 December 2006 20:46 Go to previous messageGo to next message
Eclipse UserFriend
Forgot to add: also check out "-consoleLog" command line.
Ali.

Ameya Barve wrote:
> Hi,
>
> I originally posted this in the eclipse.newcomer group, but I think this is
> a better group for this particular post. Sorry about the double post!
>
> I have to create a RCP Application which when invoked from the command-line
> with a "-headless" argument, doesn't create the Workbench and simply writes
> out a few lines to the system console and exits.
>
> Questions:
> (1) When I invoke my RCP from a DOS command shell, it seems to create a NEW
> console to which the System.out.println() writes to. I want it to write to
> the same command shell used to launch the RCP by the command-line. How can I
> do this?
>
> (2) My RCP has a splash screen which I want to hide when the user passes in
> "-headless" as a command-line argument. Is there any way to do this?
>
> Thx!
>
>
Re: Writing to DOS Console for Headless RCP [message #460233 is a reply to message #460184] Mon, 18 December 2006 09:07 Go to previous messageGo to next message
Eclipse UserFriend
Ameya Barve wrote:
> Questions:
> (1) When I invoke my RCP from a DOS command shell, it seems to create a NEW
> console to which the System.out.println() writes to. I want it to write to
> the same command shell used to launch the RCP by the command-line. How can I
> do this?

Which java do you start with? It might be that you need to run with
java.exe as opposed to javaw.exe in your -vm argument.


Later,
PW
Re: Writing to DOS Console for Headless RCP [message #460266 is a reply to message #460233] Mon, 18 December 2006 12:43 Go to previous messageGo to next message
Eclipse UserFriend
Paul, I use java.exe. Here's my command line:
myapp.exe -vm "C:\Program Files\Java\jdk1.5.0_09\bin\java.exe" -headless

Based on Ali's suggestion in an earlier reply, I tried -consoleLog, that
didn't seem to work.

Thx,
Ameya

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:em67d4$p5g$2@utils.eclipse.org...
> Ameya Barve wrote:
>> Questions:
>> (1) When I invoke my RCP from a DOS command shell, it seems to create a
>> NEW console to which the System.out.println() writes to. I want it to
>> write to the same command shell used to launch the RCP by the
>> command-line. How can I do this?
>
> Which java do you start with? It might be that you need to run with
> java.exe as opposed to javaw.exe in your -vm argument.
>
>
> Later,
> PW
Re: Writing to DOS Console for Headless RCP [message #460268 is a reply to message #460189] Mon, 18 December 2006 12:45 Go to previous messageGo to next message
Eclipse UserFriend
Thx Ali. The "-noSplash" does work; however I'm trying to dynamically hide
the splash screen whenever the user passes in "-headless", so I thought the
Platform.endSplash() would be what I would need, but it doesn't seem to
work. Do I just call it as it is, or do I need to get a reference to the
Platform from somewhere?

- Ameya

"Ali Naddaf" <ali@naddaf.org> wrote in message
news:45834FE2.6050608@naddaf.org...
> Forgot to add: also check out "-consoleLog" command line.
> Ali.
>
> Ameya Barve wrote:
>> Hi,
>>
>> I originally posted this in the eclipse.newcomer group, but I think this
>> is a better group for this particular post. Sorry about the double post!
>>
>> I have to create a RCP Application which when invoked from the
>> command-line with a "-headless" argument, doesn't create the Workbench
>> and simply writes out a few lines to the system console and exits.
>>
>> Questions:
>> (1) When I invoke my RCP from a DOS command shell, it seems to create a
>> NEW console to which the System.out.println() writes to. I want it to
>> write to the same command shell used to launch the RCP by the
>> command-line. How can I do this?
>>
>> (2) My RCP has a splash screen which I want to hide when the user passes
>> in "-headless" as a command-line argument. Is there any way to do this?
>>
>> Thx!
Re: Writing to DOS Console for Headless RCP [message #460622 is a reply to message #460189] Fri, 22 December 2006 14:18 Go to previous message
Eclipse UserFriend
I still haven't solved issue #1 below :( -consoleLog doesn't seem to work.
Ideas anyone?

"Ali Naddaf" <ali@naddaf.org> wrote in message
news:45834FE2.6050608@naddaf.org...
> Forgot to add: also check out "-consoleLog" command line.
> Ali.
>
> Ameya Barve wrote:
>> Hi,
>>
>> I originally posted this in the eclipse.newcomer group, but I think this
>> is a better group for this particular post. Sorry about the double post!
>>
>> I have to create a RCP Application which when invoked from the
>> command-line with a "-headless" argument, doesn't create the Workbench
>> and simply writes out a few lines to the system console and exits.
>>
>> Questions:
>> (1) When I invoke my RCP from a DOS command shell, it seems to create a
>> NEW console to which the System.out.println() writes to. I want it to
>> write to the same command shell used to launch the RCP by the
>> command-line. How can I do this?
>>
>> (2) My RCP has a splash screen which I want to hide when the user passes
>> in "-headless" as a command-line argument. Is there any way to do this?
>>
>> Thx!
Previous Topic:How to display a View defined in another plug-in?
Next Topic:Basics about RCP
Goto Forum:
  


Current Time: Sun Mar 16 23:06:07 EDT 2025

Powered by FUDForum. Page generated in 0.08264 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top