Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Where to put my java.policy?
Where to put my java.policy? [message #546602] Tue, 13 July 2010 14:15 Go to next message
Mike Rumpf is currently offline Mike RumpfFriend
Messages: 44
Registered: July 2009

another question: In our OSGi application we are doing a lot of RMI. Therefore a java.policy file is needed for the security manager.

At the moment this file needs to be placed alongside the exe (after an product export) via the vm argument

I would like to have the policy file inside one of my bundles. How can I achieve that?

Re: Where to put my java.policy? [message #546684 is a reply to message #546602] Tue, 13 July 2010 18:12 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 482
Registered: July 2009
Senior Member
The java.policy property is expecting a path to a file which can be read very early in the VM startup. I don't see how you could reference a file contained in a bundle very easily.

The only way I could see how to do this was if your bundle was a directory bundle (opposed to a jar'ed bundle) and you pointed to the path to the file located inside the directory bundle located on disk. This is rather brittle though.

Previous Topic:p2 ant tasks
Next Topic:Product export fails: exe does not start
Goto Forum:

Current Time: Sun Jun 24 03:46:10 GMT 2018

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

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

Back to the top