How to bundle Webkit into Eclipse? - eclipse

Eclipse 3.7 (Indigo) now allows using Webkit as an underlying renderer for the SWT browser component. Nevertheless, runtime requirements say that Safari must be installed on the target machine. Is there a way to avoid this requirement by bundling Webkit/Safari into Eclipse similarly to how XULRunner is bundled?
Thanks!

I think Genuitec did something that could help you.
from Genuite:
WebKit for SWT is an open-source embeddable Java(tm) WebKit browser
component developed by Genuitec and contributed to the Eclipse Blinki
Mobile DevKit project. WebKit for SWT can be used in the development
of a wide range of Java SWT standalone and RCP applications that
require integration of rich internet content, and services.

Related

Is JavaFX available for every Java VM?

I followed the "JavaFX is going to replace Swing" advice mentioned in several places (SO, Wikipedia, Oracle) but that seems to be a white lie. When I run a JavaFX app with IBMs V9 (build 2.8, JRE 1.8.0), I get:
java.lang.ClassNotFoundException: javafx.application.Application
I couldn't find any resource which explains whether JavaFX is a cross-VM technology or whether this is just another vendor-lock-in "feature".
Where is JavaFX available? If it's not available in some VM, can I install it or bundle it with my application?
JavaFX is not available for every Java VM. For instance, Oracle Solaris Java distributions do not include JavaFX support.
JavaFX is available for many Java VMs. There are JavaFX runtimes available for (at least) the following platforms:
OS X, Windows, Linux, iOS, Android and various embedded architectures.
JavaFX download and source locations:
Binaries for some JavaFX runtimes (such as OS X, Windows and Linux) are provided by Oracle based upon Oracle JDK sources.
Binaries for some other runtimes (Android, iOS and embedded architectures) are provided by Gluon based upon Open JDK sources.
Binaries for Debian based Linux systems are in the Debian Package Tracker, based upon OpenJDK sources.
Open source code is available to build JavaFX for use with other platforms and Java VMs as part of the OpenJDK project.
For further information, see related questions and resources:
OpenJFX wiki site for open source JavaFX information.
What's the location of the JavaFX runtime JAR file, jfxrt.jar, on Linux?
JavaFXPorts: JavaFX to mobile and embedded hardware, including iPhone, iPad, Android devices, and the Raspberry Pi.
Java FX 2 on IBM jdk?
Certified configurations for JavaFX when running with Oracle Java 8 (Windows, OS X, Linux).
JavaFXPorts enables execution of JavaFX on the Android runtime natively and, currently via RoboVM, on the iOS runtime, for more info see: JavaFXPorts, how it works.
can I install it or bundle it with my application?
Yes.
Oracle JavaFX and OpenJFX distributions ship with tools for bundling JavaFX (and an appropriate Java runtime) with your application.
Gluon provides tools for packaging JavaFX applications for iOS and Android.
The JavaFX maven plugin supports bundling via a Maven based toolchain.
The JavaFX gradle plugin supports bundling via a Gradle based toolchain.
In terms of licensing for such distributions, I encourage you to do your own research.
Oracle Binary Code License (if you are bundling Oracle JRE).
OpenJDK Legal Documents (if you are basing the bundled components off of OpenJDK).
It became integrated partially in Java 7 and more tightly in Java 8 so it should be standard in newer VM's and is slowly opening up. However, I wouldn't consider migrating from Swing to FX as a move up as much as a lateral move as explained here.
IBM provides their own version of Java, and as far as I have ever seen, they do not seem to provide JavaFX in their runtimes for whatever reason. I have only seen JavaFX provided by the canonical Oracle releases.

GUI Design with HTML5 & CSS3 in eclipse Kepler

I am using eclipse kepler version for developing Android native applications with Phonegap. I have also added JSDT jQuery plugin which is helping me for jQuery intellisense and code highlighting. But I want the same for my HTML5 and Css3 files, So that I can work on its GUI in that platform.
See this link.
All you need is Web Tools Platform plugin installed in your Eclipse Kepler.

ActionScript 3.0 for Eclipse?

I'm currently developing an application in ActionScript 3.0, and GVim isn't really working well with it. Are there are any plugins for Eclipse that allow ActionScript functionality?
Adobe Flash Builder is built on Eclipse.
Or, you can install the Flex SDK plugin for Eclipse.
At this time (2015) there are no usable free Eclipse plugins for AS3 development as far as I know. Adobe's Eclipse plugin is dead, FDT free version is all but worthless and as3ide isn't working with the current Eclipse.
But there is FlashDevelop, it isn't based on Eclipse but is quite usable as an AS3 IDE. It is completely free and open source.

Using Firefox in Eclipse instead of IE

In Eclipse, is it possible to use Firefox as Eclipse's internal Web browser instead of Internet Explorer.
I am a Web developer using Eclipse in Windows.
Thanks!
The SWT Browser widget that is uesd by the internal web browser chooses the platform default for its web rendering technology. So for Windows that is the MSHTML COM component (IE renderer). For Linux that is Mozilla (Webkit for 3.7 is available) and on Mac, WebKit(Safari). However, there are third party plugins like MyEclipse that do embed a mozilla runtime (XULRunner) that do use the Mozilla (Gecko) renderer for a browser.
So to answer your question there is no way to use Firefox as internal web browser on windows, however, you can install 3rd-party plugins for Eclipse (MyEclipse, JBoss tools, etc) that embed Xulrunner binaries that will allow for embedding mozilla renderer as the technology used by an internal Eclipse browser. Note, this may require that use the 3rd-party web browser widget instead of the standard eclipse platform one, but those 3rd party tools usually provide a toolbar action, etc.
Install Ajax Tools Framework plugin. It will automatically come with a recent version of XULRunner (Mozilla/Firefox engine) and will set your default internal web browser to it.

SWT Browser in eclipse

Is SWT Browser included to standard eclipse installation or I've to install it additionally ?
And if where can I find pack for SWT.
This really does have a lot of good info:
http://www.eclipse.org/swt/faq.php
You will need to choose between Webkit and Gecko depending on your requirements. If it's Gecko, you will need to have XULRunner, which is the independent runtime for Gecko that provides the Java XPCOM interfaces.
SWT can be downloaded standalone, but it will not include XULRunner. You'll have to package XULRunner up separately and make that a part of the install.
SWT Browser comes with standard Eclipse SDK
While Eclipse plugin development, there is option for adding Browser in Eclipse plugin code