This document discusses enabling Java 2 runtime security with Eclipse plug-ins. It analyzes the security requirements for OSGi-enabled platforms. It provides an example of a client calling a library method that creates a socket and logs information to a file. It shows how to modify the library code to use privileges to grant the necessary permissions via doPrivileged. It outlines the steps taken to check permissions for the socket creation and file access. Finally, it describes the components of a static analysis engine for Eclipse and OSGi that can perform access rights analysis, privileged code placement analysis, tainted variable analysis, and other security checks.