定义和使用EL函数

Eclim 安装

marz posted @ Aug 11, 2010 06:25:15 AM in java with tags eclim,eclim install , 3314 readers

 

Installing / Upgrading

Requirements

Before beginning the installation, first confirm that you have met the following requirements.

  • Vim 7.1.x
    Minimum Vim Settings: In order for eclim to function properly, there is a minimum set of vim options that must be enabled in your vimrc file (:h vimrc).
    • set nocompatible
      Execute :h ‘compatible’ for more info. You can confirm that compatibliity is turned off by executing the following:
      :echo &compatible

      Which should output ‘0’.
    • filetype plugin on
      Execute :h filetype-plugin-on for more info. You can confirm that file type plugins are enabled by executing the following:
      :filetype

      Which should output ‘filetype detection:ON plugin:ON indent:ON’, showing at least ‘ON’ for ‘detection’ and ‘plugin’.

Eclim Graphical Installer

Step 1: Download and run the installer.

Note

If you have eclipse running, please close it prior to starting the installation procedure.

  • First download the installer: eclim_<version>.jar
  • Next run the installer:
    $ java -jar eclim_<version>.jar

    Windows and OSX users should be able to simply double click on the jar file to start the installer.
    Note
    If you are behind a proxy, you may need to run the installer like so (be sure to take a look at the related
    faq as well):
    $ java -jar eclim_<version>.jar -Dhttp.proxyHost=my.proxy -Dhttp.proxyPort=8080

    If your proxy requires authentication, you’ll need to supply the -Dhttp.proxyUser and -Dhttp.proxyPassword properties as well.
    You can also try the following which may be able to use your system proxy settings:
    $ java -jar eclim_<version>.jar -Djava.net.useSystemProxies=true

After the installer starts up, simply follow the steps in the wizard to install the application.

Note

In some rare cases you might encounter one of the following errors:

  1. Any exception which denotes usage of gcj.
    java.lang.NullPointerException
      at org.pietschy.wizard.HTMLPane.updateEditorColor(Unknown Source)
      at org.pietschy.wizard.HTMLPane.setEditorKit(Unknown Source)
      at javax.swing.JEditorPane.getEditorKit(libgcj.so.90)
      ...
    Gcj (GNU Compile for Java), is not currently supported. If you receive any error which references libgcj, then gcj is your current default jvm. So, you’ll need to install a sun jvm to resolve the installation error.
  2. java.lang.IncompatibleClassChangeError
      at org.formic.ant.logger.Log4jLogger.printMessage(Log4jLogger.java:51)
      ...
    This is most likely caused by an incompatible version of log4j installed in your jave ext.dirs. To combat this you can run the installer like so:
    $ java -jar eclim_<version>.jar -Djava.ext.dirs

Step 2: Testing the installation

To test eclim you first need to start the eclim daemon. How you start the daemon will depend on how you intend to use eclim.

Note

More info on running the eclim daemon can be found in the eclimd docs.

If you plan on using eclim along with the eclipse gui, then:

  • start eclipse with the -clean option
    $ eclipse -clean
    Note
    You should only need to start eclipse with the -clean option the first time after installing or upgrading eclim.
  • open the eclimd view
    Window -> Show View -> Other -> Eclim -> eclimd

If you plan on using eclim without the eclipse gui, then:

  • start the eclimd server.
    • Linux / Mac / BSD (and other unix based systems): To start eclimd from linux, simply execute the eclimd script found in your eclipse root directory:
      $ $ECLIPSE_HOME/eclimd
    • Windows: The easiest way to start eclimd in windows is to double click on the eclimd.bat file found in your eclipse root directory: %ECLIPSE_HOME%/eclimd.bat

Once you have the eclim daemon (headed or headless) running, you can then test eclim:

  • open a vim window and issue the command, :PingEclim. The result of executing this command should be the eclim and eclipse version echoed to the bottom of your Vim window. If however, you receive unable to connect to eclimd - connect: Connection refused, or something similar, then your eclimd server is not running or something is preventing eclim from connecting to it. If you receive this or any other errors you can start by first examining the eclimd output to see if it gives any info as to what went wrong. If at this point you are unsure how to proceed you can view the troubleshooting guide or feel free to post your issue on the eclim user mailing list.
    Example of a successful ping:
    Example of a failed ping:
  • Regardless of the ping result, you can also verify your vim settings using the command :EclimValidate. This will check various settings and options and report any problems. If all is ok you will receive the following message:
    Result: OK, required settings are valid.

What’s Next

Now that you have eclim installed, the next step is to familiarize yourself with at least the core set of commands that eclim provides, all of which are found at the index of the eclim documentation.

After doing that you can then proceed to getting started guide.

Upgrading

The upgrading procedure is the same as the installation procedure but please be aware that the installer will remove the previous version of eclim prior to installing the new one. The installer will delete all the files in the eclim eclipse plugins and the files eclim adds to your .vim or vimfiles directory. So if you made any alterations to any of these files, be sure to back them up prior to upgrading.

Building from source

If you would like to use the bleeding edge development version of eclim or you would like to contribute code, then you can checkout and build eclim from source. Instructions on doing so can be found in the developers guide.

Unattended (automated) install

As of eclim 1.5.6 the eclim installer supports the ability to run an automated install without launching the installer gui.

Warning

When using this method no validation is performed to ensure that you have the required third party eclipse plugin dependencies necessary for the eclim features you’ve chosen to install. It is the responsibility of the user, or the script which launches the installer, to validate the dependencies prior to installation. This installation method is primarily provided for those wishing to package eclim for inclusion in a package management system.

Here is an example of installing eclim with only java and ant support using this method:

$ java -jar eclim_<version>.jar install \

  -Declipse.home=/opt/eclipse \

  -Dvim.files=$HOME/.vim \

  -DfeatureList.ant=true \

  -DfeatureList.jdt=true

As you can see by the example, the values normally obtained from the user by the graphical installer are supplied using java system properties. This method of installation has only two required properties that must be set and various optional properties to enable features, etc.

Required:

  • eclipse.home - The absolute path to the eclipse installation.
  • vim.files - The absolute path to the vim files directory.

Optional:

  • eclipse.local - When installing for a single user, some eclipse installations have a user local location where eclipse plugins are installed. This property can be set to that location.
  • eclim.gvim - The location of the gvim executable to be set as the default for embedding gvim inside of eclipse.

Optional Feature Properties: All of the following properties must have the value ‘true’ to enable the feature. All other values, or no value at all will result in the exclusion of that feature. Also, some features require that other features be enabled, as noted below:

  • featureList.ant (requires jdt)
  • featureList.cdt
  • featureList.dltk
  • featureList.dltkruby (requires dltk)
  • featureList.jdt
  • featureList.maven
  • featureList.pdt (requires wst and dltk)
  • featureList.python
  • featureList.wst

 

源文档 <http://eclim.org/guides/install.html>

  • No match
  • No match
Felix said:
Apr 16, 2021 10:16:38 PM

Thanks for contributing this article on Java Development. check this out I'm a CS student and Java has a very good role in our academics. I was searching for pieces of information regarding it to learn. I'm glad I found this segment.

Kanes said:
Jul 23, 2021 04:52:45 PM

Over the years Akshaya hospital has Best Myomectomy Doctors in Kochi blossomed into a comprehensive care centre for women of all ages providing expert care in the fields of pregnancy, infertility and laparoscopic surgeries.

juvanta said:
Sep 09, 2021 01:31:00 PM

Thanks a lot for the detailed description you have provided here about the installing requirement which was definitely helpful for us and it is really informative for us at everything was clearly explained in this post Learn More Here

meidir said:
Jan 14, 2023 01:02:48 AM

Only a smiling visitant here to share the love btw great design and style . 카지노사이트

meidir said:
Feb 12, 2023 01:17:21 AM

I would not pretend to realize precisely why, however I personally could not hope to truly uncover what I was ready after. I had been perplexed and this very article cut through the common solutions that only demonstrate deficiency of content. Thank you a lot. 여우알바

 

 

 

======================

 

 


Thanks for expressing your ideas. I would also like to state that video games have been ever before evolving. Technology advances and enhancements have assisted create authentic and interactive games. These kinds of entertainment video games were not actually sensible when the concept was first of all being used. Just like other kinds of technological innovation, video games too have had to evolve by many many years. This itself is testimony to the fast continuing development of video games. Apple翻新

meidir said:
Feb 19, 2023 09:03:20 PM

The the next occasion I just read a weblog, I really hope it doesnt disappoint me as much as this one. Come on, man, I know it was my method to read, but When i thought youd have something interesting to state. All I hear can be a handful of whining about something you could fix when you werent too busy looking for attention. 슈어맨

meidir said:
Feb 22, 2023 05:13:26 PM

being a blogger myself ” i can see someone with great potential.     여우알바

meidir said:
Feb 23, 2023 05:51:19 PM

Nice post. I discover something very complicated on distinct blogs everyday. Most commonly it is stimulating to read content off their writers and use a specific thing from their store. I’d would rather apply certain with all the content on my own blog no matter whether you do not mind. Natually I’ll supply you with a link for your internet weblog. Many thanks sharing. Digital Fashion

meidir said:
Mar 24, 2023 11:42:10 PM

Wonderful items from you, man. I have understand your stuff previous to and you’re simply too excellent. I really like what you’ve got right here, really like what you’re stating and the way in which by which you are saying it. You make it entertaining and you still care for to keep it smart. I cant wait to read far more from you. This is really a great web site. Personalized T-shirts

meidir said:
Apr 06, 2023 08:26:18 PM

I am not sure where you are getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for great information I was looking for this info for my mission. slot online

 

=================

 

An impressive share, I just with all this onto a colleague who was conducting a little analysis with this. And he in fact bought me breakfast because I uncovered it for him.. smile. So let me reword that: Thnx with the treat! But yeah Thnkx for spending time to go over this, I am strongly over it and really like reading more about this topic. When possible, as you grow expertise, does one mind updating your site with an increase of details? It is highly helpful for me. Big thumb up for this short article! spinix888

 

=================

 

The last I checked on this topic was very some time back. I am much more into SEO Company. Nonetheless, fascinating post and I’d check back again soon and get myself much more updated. betflix สล็อตเว็บตรง

 

=================

 

we will be buying more christmas ornaments these christmas because we like to decorate more.. คลินิกทันตกรรม

meidir said:
Apr 17, 2023 11:41:05 PM

I made the mistake of reading this while getting ready for bed. I became so involved in this that I was up longer than usual. 2x2 led panel

meidir said:
Jun 20, 2023 01:43:28 AM

Nice post. I learn some thing more difficult on diverse blogs everyday. It will always be stimulating to see content using their company writers and rehearse a little there. I’d opt to use some with the content in my blog regardless of whether you don’t mind. Natually I’ll offer you a link on your own internet weblog. Many thanks sharing. Software contracts

meidir said:
Aug 22, 2023 10:30:45 PM i am addicted to computer games that is why i bought a gamecube for me and my brother,. 插花班
JSCRT 4th Class Que said:
Sep 14, 2023 02:48:18 PM

Students of Secondary in the State of Jharkhand Here is the Good news, People those who are looking for the JAC Model Question Paper 2024 are here at the Right place to know more information JSCRT 4th Class Question Paper 2024 about it, You can also go Through the below Article to have a clear knowledge about the JAC Model 4th Test Paper 2024 for each and every Subject.Jharkhand Board Board Important Question Paper 2024 for Final Examinations with a Good Score, Students Study Throughout the year, Students our Website Refer Study Important Questions in Examination Preparations is to go Through Jharkhand Last year Exam Question Paper 2024 Pdf Format.


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter