Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to prevent System.exit(*)?
How to prevent System.exit(*)? [message #459289] Thu, 30 November 2006 02:20 Go to next message
Eclipse UserFriend
Hi,

I have a little question about Security in eclipse.

How can I keep Plug-Ins in my RCP application from calling System.exit(*).
I
Re: How to prevent System.exit(*)? [message #459306 is a reply to message #459289] Thu, 30 November 2006 05:30 Go to previous messageGo to next message
Eclipse UserFriend
The same way as you do with Java. You provide a java.policy that
prohibits the use of System.exit on the commandline.
As far as I can remember you will have to specify this in the ini file
for startup. Take a look at the help it should be in there where to
specify VM parameters.

Regards
Stefan

Carsten Spieker wrote:
> Hi,
>
> I have a little question about Security in eclipse.
>
> How can I keep Plug-Ins in my RCP application from calling System.exit(*).
> I´m not very familiar with security management in JAVA/Eclipse, but as far
> as I know this is managed by SecurityManager in normal java applications.
> But how can I add this to a RCP application?
>
> Thanks for any help!
>
> Greetz,
> Carsten
>
>
Re: How to prevent System.exit(*)? [message #459362 is a reply to message #459306] Thu, 30 November 2006 07:33 Go to previous message
Eclipse UserFriend
Thanks for the answer!

Well, could you give me an example how you would declare this policy. I
Previous Topic:How to shutdown the application
Next Topic:Update Manager
Goto Forum:
  


Current Time: Wed Mar 19 06:42:26 EDT 2025

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

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

Back to the top