Community
Participate
Working Groups
I'm trying generating the Nebula examples as a webstart application. (see bug 268733) This works work windows and macos, but on linux, the linux.gtk fragment is not selected. I've added the osgi.ws property with no result : <property name="osgi.ws" value="gtk" /> the application starts with the right system : 'Bootloader constants : OS=linux, ARCH=x86, WS=gtk, NL=fr_FR' but I get a class not found exception on SWTError. See attached log. Using Ubuntu and JRE 1.6 u13 from Sun website, Eclipse 3.5M6
Created attachment 130212 [details] Nebula Example log on Linux Showing Boot arguments and exception.
Pascal, do you think p2 has anything to do with this bug? Or did you mean to move it to framework?
This is does not appear to be a framework problem. When I run on sun VMs, JNLP is not downloading the platform specific fragments, and the application fails to run because they aren't there. When I run on an IBM vm, Webstart fails early because http://nricheton.homeip.net/public/nebula/plugins/org.eclipse.swt.motif.linux.x86_3.5.0.v3536b.jar does not exist. It could be that sun is just more forgiving about missing resources on the server. Note that webstart does not filter on ws, try either removing the motif bundles from the jnlp files, or put them up on the server. On my linux machine, I can see what webstart downloaded : ~/.java/deployment/cache/javaws/http/Dnricheton.homeip.net/P80/DMpublic/DMnebula/*
You're right about the missing fragment. This will be another bug this Eclipse is giving me errors when I try to generate it. BUT : I removed this fragment from the jnlp and I still get the error. The attached it the one given by equinox, so the problem doesn't seem caused by javaws. It start with ws=gtk so the lack of motif should not be a problem with sun WMs. I suspect something like starting with ws=gtk and still looking for motif. (With Sun Java 6 I can't find the path you mentionned to see what is downloaded, every jar seems stored renamed as a hash).
Ok, found the issue : Eclipse generate a jnlp with <resources os="Linux" arch="x86"> But on sun VM + Debian, the arch is i386 So the bundle is not resolved. I updated the jnlp and it works -> Eclipse must include the i386 arch when generating the jnlp for RCP. I guess this bug must be moved to the PDE inbox.
reassigning to equinox.p2-inbox@eclipse.org. Sorry, wrong click.
*** Bug 270949 has been marked as a duplicate of this bug. ***
What do other vms (IBM, harmony?) do with i386, do we need to add both i386 and x86?
I guess it's both since you had early errors with IBM VM : it was really using x86. I did not get early errors with sun VM since it uses i386.
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. Please reopen, if you plan to provide a fix.