Clement Escoffier wrote:
> Hi,
>
> I run Felix inside Eclipse. It is very useful to debug bundles.
>
> To do it, follow the following process :
> - Get the Felix Trunk projects, and compile the trunk
> - In the org.apache.felix.main subproject, launch mvn
> eclipse:eclipse (it create an eclipse project according to the pom.xml)
> - In Eclipse, add the variable M2_REPO (Window - Preference - Java -
> Build Path - Classpath Variable), this variable point inside your maven
> repository
> - Import the project org.apache.felix.main (Import existing project
> in the workspace)
> - Add the bin/felix.jar file inside the project build path.
> - Create a run configuration :
> - project = org.apache.felix.main
> - Main class = org.apache.felix.main.Main
> - check "include libraries when searching for a main class"
> - in the arguments tabs, change the working directory to :
> ${workspace_loc:org.apache.felix.main}
> - Save your configration and run it
>
> When you launch this configuration in the debug mode, you will be able
> to debug your bundles.
>
I'm able to get the "profile selection" of Felix, but then I got the
following error message:
Exception in thread "main" java.lang.NoClassDefFoundError:
org.osgi.vendor.framework property not set
at org.osgi.framework.AdminPermission$1.run(AdminPermission.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at org.osgi.framework.AdminPermission.<clinit>(AdminPermission.java:142)
at org.apache.felix.framework.Felix.<clinit>(Felix.java:105)
at org.apache.felix.main.Main.main(Main.java:189)