⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 equinox quickstart guide.htm

📁 OSGI 开发指南源代码|实例|入门及相关的文档
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0055)http://www.eclipse.org/equinox/documents/quickstart.php -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Equinox QuickStart Guide</TITLE>
<META content="Equinox Committers" name=author>
<META content="equinox, osgi, framework, runtime, resources, quick, start" 
name=keywords>
<META http-equiv=Content-Type content=text/html;charset=utf-8><LINK 
href="Equinox QuickStart Guide_files/reset-fonts-grids.css" type=text/css 
rel=stylesheet><LINK href="Equinox QuickStart Guide_files/menu.css" 
type=text/css rel=stylesheet><LINK 
href="Equinox QuickStart Guide_files/reset.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox QuickStart Guide_files/layout.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox QuickStart Guide_files/header.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox QuickStart Guide_files/footer.css" type=text/css 
rel=stylesheet><LINK media=screen 
href="Equinox QuickStart Guide_files/visual.css" type=text/css rel=stylesheet><!--[if IE]><LINK media=screen 
href="Equinox QuickStart Guide_files/ie_style.css" type=text/css rel=stylesheet><![endif]--><!--[if IE 6]><LINK media=screen 
href="Equinox QuickStart Guide_files/ie6_style.css" type=text/css 
rel=stylesheet><![endif]--><!-- Dependencies --><!-- Source File --><LINK 
href="Equinox QuickStart Guide_files/equinox.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.1830" name=GENERATOR></HEAD>
<BODY>
<DIV id=novaWrapper>
<DIV id=clearHeader>
<DIV id=logo><IMG alt=Eclipse.org 
src="Equinox QuickStart Guide_files/eclipse.png"> </DIV>
<DIV id=otherSites>
<DIV id=sites>
<UL id=sitesUL>
  <LI><A href="http://www.eclipseplugincentral.com/"><IMG 
  alt="Eclipse Plugin Central" 
  src="Equinox QuickStart Guide_files/network-wired-bw.png">&nbsp;
  <DIV>Eclipse Plugin Central</DIV></A></LI>
  <LI><A href="http://live.eclipse.org/"><IMG alt="Eclipse Live" 
  src="Equinox QuickStart Guide_files/audio-input-microphone-bw.png">&nbsp;
  <DIV>Eclipse Live</DIV></A></LI>
  <LI><A href="https://bugs.eclipse.org/bugs/"><IMG alt=Bugzilla 
  src="Equinox QuickStart Guide_files/system-search-bw.png">&nbsp;
  <DIV>Bugzilla</DIV></A></LI>
  <LI><A href="http://www.planeteclipse.org/"><IMG alt="Planet Eclipse" 
  src="Equinox QuickStart Guide_files/audio-card.png">&nbsp;
  <DIV>Planet Eclipse</DIV></A></LI>
  <LI><A href="http://wiki.eclipse.org/"><IMG alt="Eclipse Wiki" 
  src="Equinox QuickStart Guide_files/accessories-text-editor-bw.png">&nbsp;
  <DIV>Eclipse Wiki</DIV></A></LI>
  <LI><A href="http://portal.eclipse.org/"><IMG alt="MyFoundation Portal" 
  src="Equinox QuickStart Guide_files/preferences-system-network-proxy-bw.png">
  <DIV>My Foundation Portal</DIV></A></LI></UL></DIV></DIV></DIV>
<DIV id=header>
<DIV id=menu>
<UL>
  <LI><A href="http://www.eclipse.org/" target=_self>Home</A> </LI>
  <LI><A href="http://www.eclipse.org/users/" target=_self>Users</A> </LI>
  <LI><A href="http://www.eclipse.org/membership/" target=_self>Members</A> 
</LI>
  <LI><A href="http://www.eclipse.org/committers/" target=_self>Committers</A> 
  </LI>
  <LI><A href="http://www.eclipse.org/downloads/" target=_self>Downloads</A> 
  </LI>
  <LI><A href="http://www.eclipse.org/resources/" target=_self>Resources</A> 
  </LI>
  <LI><A href="http://www.eclipse.org/projects/" target=_self>Projects</A> </LI>
  <LI><A href="http://www.eclipse.org/org/" target=_self>About Us</A> 
</LI></UL></DIV>
<DIV id=search>
<FORM id=searchbox_017941334893793413703:sqfrdtd112s 
action=http://www.google.com/cse><INPUT type=hidden 
value=017941334893793413703:sqfrdtd112s name=cx> <INPUT id=searchBox size=25 
name=q> <INPUT id=searchButton type=submit value=Search name=sa> </FORM>
<SCRIPT src="Equinox QuickStart Guide_files/brand.htm" 
type=text/javascript></SCRIPT>
</DIV></DIV>
<DIV class=faux id=novaContent><BR style="CLEAR: both; HEIGHT: 1em">
<DIV id=leftcol>
<UL id=leftnav>
  <LI><A href="http://wiki.eclipse.org/Equinox/">Wiki</A> 
  <LI><A href="http://eclipse.org/mail/">Mailing Lists</A> 
  <LI class=separator><A class=separator 
  href="http://www.eclipse.org/equinox/documents/index.php">Components<IMG 
  src="Equinox QuickStart Guide_files/separator.png"></A> 
  <LI><A href="http://eclipse.org/equinox/">Equinox</A> 
  <LI><A href="http://eclipse.org/eclipse/incubator">Incubator</A> 
  <LI class=separator><A class=separator>Related<IMG 
  src="Equinox QuickStart Guide_files/separator.png"></A> 
  <LI><A href="http://eclipse.org/rt/">RT</A> 
  <LI><A href="http://eclipse.org/eclipse/">Eclipse</A> 
  <LI><A href="http://eclipse.org/pde/">PDE</A> 
  <LI><A href="http://eclipse.org/rap/">RAP</A> 
  <LI><A href="http://eclipse.org/ecf/">ECF</A> 
  <LI><A href="http://eclipse.org/eclipse/development/">Development</A> 
</LI></UL></DIV>
<DIV id=midcolumn>
<H1>Equinox QuickStart Guide</H1>
<P class=bar>Getting and using the Equinox OSGi implementation</P>
<P>The Equinox OSGi framework implementation forms the underpinnings of the 
Eclipse RCP and IDE platforms but it is in fact a fully standalone OSGi 
implementation. To run Equinox OSGi on its own either download the 
org.eclipse.osgi JAR from the <A 
href="http://download.eclipse.org/eclipse/equinox/">download site</A> or look in 
your Eclipse install for a file like &lt;install 
location&gt;/eclipse/plugins/org.eclipse.osgi_3.2.0_xxx.jar. Once you have the 
Equinox framework JAR, use the following command line:</P><PRE>  java -jar org.eclipse.osgi_3.2.0.jar -console</PRE>
<P>Once this is running you will see an osgi&gt; prompt. This is the OSGi 
console waiting for you to type commands. Type '?' at the prompt for command 
help. The most interesting commands for getting started are: 
<UL>
  <LI>install &lt;bundle URL&gt; - Installs the bundle from the given URL 
  <LI>start &lt;bundle # or bundle name&gt; - Starts the bundle with the given 
  numeric or symbolic id 
  <LI>stop &lt;bundle # or bundle name&gt; - Stops the bundle with the given 
  numeric or symbolic id 
  <LI>ss - Reports a summary status of all installed bundles 
  <LI>diag &lt;bundle # or bundle name&gt; - Reports any resolution problems for 
  the bundle with the given numeric or symbolic id 
  <P></P>
  <P>If you don't have Eclipse and just want OSGi, click <A 
  href="http://download.eclipse.org/eclipse/equinox/">here</A> to get the JAR 
  from the Equinox download site. </P>
  <P class=bar>Configurations and all that...</P>
  <P>The Equinox OSGi implementation is extremely configurable. One of the most 
  common configuration scenarios is to have the framework automatically install 
  and run a set of bundles when it is started. You do this every time you run 
  Eclipse the IDE. Here's how it works and how you can use it in your 
  situation.</P>
  <P>Say you have bundles B1.jar and B2.jar that you want to have installed and 
  started when Equinox is run. As with other OSGi implementations, you can run 
  the framework (see above) and install and start B1 and B2 using the console. 
  This is a manual process but you need only do it the first time you run 
  Equinox (OSGi frameworks remember the installed and started bundles from run 
  to run). To do something completely automated, create a <EM>configuration</EM> 
  that lists B1 and B2 as bundles to be installed and started. Set up something 
  like</P><PRE>somedir/
  configuration/
    config.ini
  org.eclipse.osgi_3.2.0.jar
  B1.jar
  B2.jar</PRE>
  <P>Where config.ini is a Java properties file that contains the following 
  line. Note that the osgi.bundles property is quite powerful. See the doc for 
  details. </P><PRE>  osgi.bundles=B1.jar@start, B2.jar@start
  eclipse.ignoreApp=true
</PRE>
  <P>When Equinox is started using the command line above, B1 and B2 are 
  installed and started. If you want to specify a different configuration, just 
  add -configuration &lt;location&gt; to the command line. Notice that since you 
  are just running your bundles, we added a line to tell Equinox to skip trying 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -