Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Launching DOJO based Static Web Page from RCP App
Launching DOJO based Static Web Page from RCP App [message #834885] Mon, 02 April 2012 10:19 Go to next message
Arvind Sharma is currently offline Arvind Sharma
Messages: 17
Registered: December 2011
Junior Member
Hello,

I have an RCP application that deals with creating visualization. I want to provide a functionality to launch the created visualization in browser. For this I have created a HTML and corrosponding java script files. The static page need DOJO libraries to run. I have put DOJO library inside a folder of UI plugin project and included that folder as part of binary build.

When i run application directly this approach works fine as the path for that static HTML file is resolved as a folder in side UI polugin project.

But the problem is that this approach does not work when i export my RCP application and run the exe. When it tries to launch the browser with that static page it could not find the DOJO libraries.

Any ideas?

Thanks
Arvind
Re: Launching DOJO based Static Web Page from RCP App [message #841326 is a reply to message #834885] Wed, 11 April 2012 02:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5020
Registered: July 2009
Senior Member
When you export everything is packaged into a jar and that's why it is
not working.

You can put the "Eclipse-BundleShape: dir" into your MANIFEST.MF - this
way the bundle is exported as directory. Drawback - you can't sign it
anymore.

Tom

Am 02.04.12 16:19, schrieb Arvind Sharma:
> Hello,
>
> I have an RCP application that deals with creating visualization. I want
> to provide a functionality to launch the created visualization in
> browser. For this I have created a HTML and corrosponding java script
> files. The static page need DOJO libraries to run. I have put DOJO
> library inside a folder of UI plugin project and included that folder as
> part of binary build.
> When i run application directly this approach works fine as the path for
> that static HTML file is resolved as a folder in side UI polugin project.
>
> But the problem is that this approach does not work when i export my RCP
> application and run the exe. When it tries to launch the browser with
> that static page it could not find the DOJO libraries.
>
> Any ideas?
>
> Thanks
> Arvind
Re: Launching DOJO based Static Web Page from RCP App [message #1053328 is a reply to message #841326] Fri, 03 May 2013 20:17 Go to previous message
Marek Jagielski is currently offline Marek Jagielski
Messages: 43
Registered: April 2012
Member
Hi,
Is it possible to you use an internal Browser that is used for help to display static pages from plugin jars? Or is it possible somehow to feed SWT Browser with stream?
Thanks in advance,

Marek
Previous Topic:How do you define a command group via extension points?
Next Topic:Shortcut to external tools?
Goto Forum:
  


Current Time: Thu Apr 24 01:30:19 EDT 2014

Powered by FUDForum. Page generated in 0.04066 seconds