Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] ini file with absolute file URLs

maybe u can try this:
osgi.bundles=reference\:file\:bundles/ConfigFileValidatorBundle_1.0.0.jar@start

2006/6/12, Peter Neubauer <pnb@xxxxxxxxxxx>:

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,\



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
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
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev





--
=============================
|     www.blogjava.net/bluedavy             |
=============================


Back to the top