[
Date Prev][
Date Next][
Thread Prev][Thread Next][
Date Index][
Thread Index]
[
List Home]
SV: [equinox-dev] ini file with absolute file URLs
|
Hi,
after some more investigation with the help of Simon J Archer, I find that
file:/peter/pax/runner/target/lib/org/eclipse/osgi_3.2.0.200606061318.jar@5:start,\ ..... works. maybe something to mention in some documentation?
/peter
________________________________
Från: Peter Neubauer [mailto:pnb@xxxxxxxxxxx]
Skickat: må 2006-06-12 15:19
Till: equinox-dev@xxxxxxxxxxx
Ämne: [equinox-dev] ini file with absolute file URLs
Hi there,
I have some problems starting equinox with absolute file URLs on Windows. in the config.ini, the outcome of bundleFile.toURL().toString() gives
osgi.bundles=\
file:/C:/peter/pax/runner/target/lib/org/eclipse/osgi_3.2.0.200606061318.jar@5:start,\ ....
gives me
!SESSION 2006-06-12 15:13:35.537 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
Framework arguments: -install C:\peter\pax\runner\target
Command-line arguments: -console -configuration C:\peter\pax\runner\target/configuration -install C:\peter\pax\runner\target
!ENTRY org.eclipse.osgi 4 0 2006-06-12 15:13:35.947
!MESSAGE Error installing bundle: file:osgi_3.2.0.200606061318.jar
!STACK 0
java.io.FileNotFoundException: osgi_3.2.0.200606061318.jar (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:1066)
at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:649)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:305)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:173)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:150)
changing that to
osgi.bundles=\
file://C:/peter/pax/runner/target/lib/org/eclipse/osgi_3.2.0.200606061318.jar@5:start,\ <file:///C:/peter/pax/runner/target/lib/org/eclipse/osgi_3.2.0.200606061318.jar@5:start,/>
gives
!SESSION 2006-06-12 15:17:01.413 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
Framework arguments: -install C:\peter\pax\runner\target
Command-line arguments: -console -configuration C:\peter\pax\runner\target/configuration -install C:\peter\pax\runner\target
!ENTRY org.eclipse.osgi 4 0 2006-06-12 15:17:10.917
!MESSAGE Bundle file://C:/peter/pax/runner/target/lib/org/eclipse/osgi_3.2.0.200606061318.jar@5:start <file:///C:/peter/pax/runner/target/lib/org/eclipse/osgi_3.2.0.200606061318.jar@5:start> not found.
it seems only relative paths are owrking, but they are counted from where the osgi framework jar is.
Any hints on how to referr to these bundles?
/peter
<<attachment: winmail.dat>>