This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Does anybody know why SWT Browser might not work well with Java Web Start?
My problem is that I have an application that has a ckeditor that ties in as a comment editor to a mylyn based application. It works fine when running from Eclipse, or normal build, but when running through Java Web Start, the main text editing window shows like a web browser that has connected to a bad web page and says it cannot open page. I still see the text editor control buttons like, bold, italics, etc. , but instead of being able to edit text in the main window, I see a browser-like display instead. I clicked on the link within this error page that said to click here to find solutions for opening, and it looked like it was looking for a jar file, but would not tell me which jar.
I delved more into the code and see that it instantiates a SWT Browser, and have read that there are issues with Java Web Start and instantiating SWT Browser based apps. It seems like it might point to XULRunner, but I have not found any good solutions on how to fix. This is happening in Windows too, so I don't know if this changes anything.
I even tried just setting the website to a static address in the browser instantiation code, instead of what it was normally connecting to and re-deployed to Web Start, but once again, I could get it to run from Eclipse, but not from Web Start.
Have you found that other SWT features work with JNLP? I ask that because I think it would be a good idea to determine whether "SWT" or "Browser" is the problematic item, if possible.
Background: I'm speculating that it's the need for native code which is causing the problem. Yes, that's speculation but we don't have anything much to go on (no logs, no error messages).
Joined: Apr 02, 2013
Yes, other SWT features work.
By the way, I probably need to mention just in case it affects anything, this is an RCP app, and I am creating the Web Start through the method of creating a wrapper feature and adding everything in the product to this wrapper feature and exporting it. This is done through Eclipse PDE.
I do agree with you on missing a native library. I don't really know what libraries, or how to add them though.