Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] java.io.FileNotFoundException: org.eclipse.equinox.simpleconfigurator/bundles.info

Hi,

It looks like org.eclipse.jdt.internal.junit.buildpath.P2Utils.findBundle(P2Utils.java:93) is expecting the runtime to be p2-ready and is an API that only works in case of fully p2 provisioned products, which are a subset of valid OSGi applications. Tycho doesn't provision a whole p2-ready product for the test cases (because it's not necessary and would add load and weight for no value), so the simpleconfigurator is often not used.
Please bring this issue to JDT and get it fixed there. Then just updating your test target platform to a version of JDT which works better in those environments which aren't p2-ready would make your test pass.
You can also try to play with https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/test-mojo.html#testRuntime which can help here, but you shouldn't expect too much support for it as it's not widely used and is still experimental after many years. The proper solution is really to fix JDT so it works with non-p2 runtimes.

HTH

Back to the top