permaculture playing cards
The moose likes JNLP and Web Start and the fly likes Java Webstart and SWT Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Java Webstart and SWT Browser" Watch "Java Webstart and SWT Browser" New topic

Java Webstart and SWT Browser

Chris Rhodes

Joined: Apr 02, 2013
Posts: 5
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.

I don't see any errors, I don't see any logs.

Can anybody help?

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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).
Chris Rhodes

Joined: Apr 02, 2013
Posts: 5
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.
I agree. Here's the link:
subject: Java Webstart and SWT Browser
It's not a secret anymore!