Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Headless (commandline) rcp and error return code
Headless (commandline) rcp and error return code [message #468243] Tue, 04 August 2009 16:06 Go to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
Hello,

I am trying to create a batch (headless) rcp application, and everything
seems to be working fine on both windows and linux after using
eclipsec.exe on windows.

The main problem I am having is that my application returns error codes in
case of any problems while operation, and it seems that the JVM traps that
and issues a popup with the error code, the commandline arguments, ...

This happens on both windows and linux.

Is there a way to suppress this popup message with non-zero return codes
from the application?

minor point, the error message says that -showSplash argument is passed,
is this needed, how can I change that? (No splash screen appears, just the
argument in the error message)

Thanks in advance,
Mamado


Best Regards,
Mohamed.
Re: Headless (commandline) rcp and error return code [message #468254 is a reply to message #468243] Tue, 04 August 2009 17:53 Go to previous messageGo to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
I added the following to the Program arguments (that results in the
generated application.ini)
-nosplash
--launcher.suppressErrors

and no popups are generated but the error message is printed to the
console. Is there a way to supress it?

Thanks,
Mamado

> I am trying to create a batch (headless) rcp application, and everything
> seems to be working fine on both windows and linux after using
> eclipsec.exe on windows.

> The main problem I am having is that my application returns error codes in
> case of any problems while operation, and it seems that the JVM traps that
> and issues a popup with the error code, the commandline arguments, ...

> This happens on both windows and linux.

> Is there a way to suppress this popup message with non-zero return codes
> from the application?

> minor point, the error message says that -showSplash argument is passed,
> is this needed, how can I change that? (No splash screen appears, just the
> argument in the error message)

> Thanks in advance,
> Mamado


Best Regards,
Mohamed.
Re: Headless (commandline) rcp and error return code [message #481938 is a reply to message #468254] Mon, 24 August 2009 19:16 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
To suppress it completely, your application should set the java system
property "eclipse.exitdata" to an empty string.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=209080#c21

-Andrew

Mamado wrote:
> I added the following to the Program arguments (that results in the
> generated application.ini)
> -nosplash
> --launcher.suppressErrors
> and no popups are generated but the error message is printed to the
> console. Is there a way to supress it?
>
> Thanks,
> Mamado
>
>> I am trying to create a batch (headless) rcp application, and
>> everything seems to be working fine on both windows and linux after
>> using eclipsec.exe on windows.
>
>> The main problem I am having is that my application returns error
>> codes in case of any problems while operation, and it seems that the
>> JVM traps that and issues a popup with the error code, the commandline
>> arguments, ...
>
>> This happens on both windows and linux.
>
>> Is there a way to suppress this popup message with non-zero return
>> codes from the application?
>
>> minor point, the error message says that -showSplash argument is
>> passed, is this needed, how can I change that? (No splash screen
>> appears, just the argument in the error message)
>
>> Thanks in advance,
>> Mamado
>
>
Previous Topic:Headless build on Windows using a Linux Galileo platform + Delta Pack
Next Topic:Plugin dependencies, product file, run cfg, pde build?
Goto Forum:
  


Current Time: Wed Sep 25 04:04:36 GMT 2024

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

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

Back to the top