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 |
Mohamed Hussein 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 |
Mohamed Hussein 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 |
Andrew Niefer 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
>
>
|
|
|
Goto Forum:
Current Time: Sun Jan 26 01:27:43 GMT 2025
Powered by FUDForum. Page generated in 0.03324 seconds
|