In Ubuntu 14.04, Eclipse 3.7.2 cannot be started.

Source: Internet
Author: User

In Ubuntu 14.04, Eclipse 3.7.2 cannot be started.

Solve problems such as cocould not detect registered XULRunner to use or org. Eclipse. swt. SWTError: XPCOM when eclipse 3.7.2 cannot be started in Ubuntu 14.04.

If eclipse 3.7.2 cannot be started in ubuntu 14.04

Add org. eclipse. swt. browser. DefaultType = mozilla to the config. ini file in the eclipse/configuration directory.


# This configuration file was written by: org. eclipse. equinox. internal. frameworkadmin. equinox. EquinoxFwConfigFileParser
# Thu Jan 15 11:18:24 CST 2015
Org. eclipse. update. reconcile = false
Eclipse. p2.profile = epp. package. jee
Osgi. instance. area. default = @ user. home/workspace
Osgi. framework = file \: plugins/org. eclipse. osgi_3.7.2.v20120110-1415.jar
Equinox. use. ds = true
Eclipse. buildId = M20120208-0800
Org. eclipse. swt. browser. DefaultType = mozilla
Osgi. bundles = reference \: file \: org. eclipse. equinox. simpleconfigurator_1.0.200.v20110815-1438.jar @ 1 \: start
Org. eclipse. equinox. simpleconfigurator. configUrl = file \: org. eclipse. equinox. simpleconfigurator/bundles.info
Eclipse. product = org. eclipse. platform. ide
Osgi. splashPath = platform \:/base/plugins/org. eclipse. platform
Osgi. framework. extensions = reference \: file \: javax. transaction_1.1.1.v201105210645.jar
Osgi. bundles. defaultStartLevel = 4
Eclipse. p2.data. area = @ config. dir/../p2/
Eclipse. application = org. eclipse. ui. ide. workbench

In this way, no error will be reported during startup. This is what I did google and I cannot explain the cause.

When you click the embedded browser or webservie browser after it is enabled, the external browser is started outside the current form.

In addition, the error "cocould not detect registered XULRunner to use" is reported when jsp is edited.

These are because the embedded browser of eclipse does not take effect.

We should do this

For version 3.7.2 of eclipse

Go to http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/2012/03/2012-03-02-03-32-11-mozilla-1.9.2/xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.bz2

Download xulrunner-1.9.2.28pre.en-us.linux-x86_64.tar.bz2

Decompress the package to an appropriate issue. For example, if I decompress the package to/opt/commonTools/, there is an xulrunner directory under/opt/commonTools.

Tone @ ubuntu:/opt/commonTools $ ls-l
Total usage 43176
Drwxrwxr-x 13 tone 4096 December 20 12:35 Android-sdk-linux
Drwxr-xr-x 6 root 4096 November 17 11:08 apache-ant-1.9.3
Drwxr-xr-x 7 root 4096 November 17 10:30 apache-maven-3.2.2
Drwxr-xr-x 9 root 4096 jdk1.5.0 _ 22, 2009
-Rwxr-xr-x 1 root 44191305 January 13 16:16 jdk-1_5_0_22-linux-amd64.bin
Drwxr-xr-x 11 root 4096 March 2 2012 xulrunner

Next, configure the eclipse configuration file. Eclipse. ini adds a line-Dorg. eclipse. swt. browser. XULRunnerPath =/opt/commonTools/xulrunner

-Startup
Plugins/org. eclipse. equinox. launcher_1.2.0.v20110502.jar
-- Launcher. library
Plugins/org. eclipse. equinox. launcher. gtk. linux. x86_64_1.1.100.v20110505
-Product
Org. eclipse. epp. package. jee. product
-- Launcher. defaultAction
OpenFile
-Showsplash
Org. eclipse. platform
-- Launcher. XXMaxPermSize
256 m
-- Launcher. defaultAction
OpenFile
-Vmargs
-Djava. library. path =/usr/lib/x86_64-linux-gnu/jni
-Dorg. eclipse. swt. browser. XULRunnerPath =/opt/commonTools/xulrunner
-Dosgi. requiredJavaVersion = 1.5
-XX: MaxPermSize = 256 m
-Xms40m
-Xmx512m

After the above errors, your eclipse is harmonious and the effect is as follows:

The solution for cocould not detect registered XULRunner to use or org. eclipse. swt. SWTError: XPCOM (install XULRunner) is still effective for the latest myeclipse 2014

-------------------------------------- Split line --------------------------------------

Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS

Hadoop Eclipse plug-in compilation and installation 1.2.0

Compile Hadoop plug-in Eclipse

Hadoop 1.2.1 compile Eclipse plug-in

Install JDK and Eclipse for C/C ++ in Ubuntu 13.10 (solving global menu problems)

How to install the latest Eclipse version in Ubuntu 14.04

-------------------------------------- Split line --------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.