How to modify the Eclipse Run Configuration classpath for an OSGi application?

霸气de小男生 提交于 2019-12-25 05:14:01

问题


At Eclipse Run/Debug Configurations there is a 'Classpath' tab when it is a 'Java Application' configuration, but when it is an 'OSGi Framework' it doesn't. How can I set the classpath for an OSGi application?


回答1:


I've found it by myself.

Settings tab > Bootstrap entries

From: Eclipse documentation

Bootstrap Entries

By default, the only entry on the launch configuration classpath is the ${target_home}/plugins/org.eclipse.equinox.launcher JAR. The ${target_home}/plugins/org.eclipse.equinox.launcher JAR file houses the org.eclipse.equinox.launcher.Main class which contains the bootstrap code. The ${target_home} variable refers to the location of the target platform as specified on the Window > Preferences... > Plug-in Development > Target Platform preference page.

The Bootstrap Entries field allows you to specify and append additional locations to the classpath, if required.



来源:https://stackoverflow.com/questions/43370147/how-to-modify-the-eclipse-run-configuration-classpath-for-an-osgi-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!