I just installed Eclipse Juno on Ubuntu 12.04 (32-bit) and downloaded the Eclipse Web Developer Tools. I created a new Static Web Project but cannot create/use HTTP Preview for the Target runtime to test/run my project. Does anybody know whether this is possible? If so, how would I do this?
You can create the patch and make it work for the Eclipse Juno version you have in the following four phases. Its a bit lengthy but it works
Phase 1 : Create a plug-in project for the plug-in you need to patch.
File
-> Import
Plug-in Development
, select Plug-ins and Fragments
, then click Next
Import As
section, select Projects with source folders
and then click Next
. org.eclipse.wst.server.preview.adapter
into ID
field at the top and click Add All
. This should move this one plug-in to the right pane. Finish
to import the "org.eclipse.wst.server.preview.adapter" plug-in source into a project. Phase 2 : Apply the changes needed to update the plug-in. Since there is a bug with a patch attached that can be used to apply the changes, the following steps will take advantage of that
Phase 2 : Apply the changes needed to update the plug-in. Since there is a bug with a patch attached that can be used to apply the changes, the following steps will take advantage of that
.
Patch v1.0 for 3.4.2p
attachment link to open the patch. ---
, select this line through the end of the text and copy it to the clipboard. This contains the changes to the PreviewLaunchConfigurationDelegate.java file which is where the fix is needed. You don't want the upper portion of the patch as that would change the version of the plug-in, and that would complicate things. Team
and click on Apply Patch
. Next
. Next
. Ignore leading path name segments
to 3. The "Patch Contents" window should change to have a blue left pointing arrow instead of red x indicators. Finish
to apply the changes. Phase 3: Create the replacement jar. Due to the approach in Phase 1, the name of this jar will be identical to your current jar, which simplifies updating the Eclipse installation.
org.eclipse.wst.server.preview.adapter
project in the Project Explorer or other navigator view and select Export
Plug-in Development
, select Deployable plug-ins and fragments
, then click Next
Browse
button next to the Directory selection in the Destination tab followed by OK. This will set the output directory to be the same as your workspace. Finish
to build the replacement plug-in jar. It will appear in a "plugins" folder under the root of your workspace. Phase 4: Replace the installed plug-in jar with the fixed version.
You should be able to run Eclipse now with the fixed plug-in. Because the patched jar had the same version number, no additional changes are needed.
I'm not familiar with the tooling you're using, but I had big problems with eclipse's internal browser on 12.04 as it was trying to use mozilla's XULRunner. The packaging of XULRunner has changed in 12.04 due to mozilla's release cycle, and isn't included in the repo independently. I forced my eclipse to use WebKit, by setting the following property in the vmargs section of my config.ini
-Dorg.eclipse.swt.browser.DefaultType=webkit
This sorted my issues out - hope this helps with yours.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.