Eclipse and m2eclipse maven integration plugin.
I've been doing a maven course recently, and have been having heck of a job getting the m2eclipse plugin to work in eclipse (indigo java Enterprise Edition package) on Ubuntu (10.04). Every time I started the eclipse IDE I got complaints about the javahl library not being on the class path. I spent an age trying to fix this. It seems that with the install I have eclipse is not picking up the -vmargs settings from the eclipse.ini config file.
I have the java ee package of eclipse installed, and I installed it by using the package manager, and then copying the new version over the old eclipse install. I'm fairly sure this is where some of my problems are arising, because I have already found a few places in the eclipse start up scripts that reference a package directory. My Enterprise Edition (EE) package has a different path to the standard java eclipse package. At some point I will go back and clear this mess up, and fix my paths so that everything works as it should, but this quick 'hack' got me going and I can now start eclipse without a hailstorm of exception and the no javahl dialog.
In order to fix this I have installed the native svn client.
This installs the required javahl library into the
All being well, when you start eclipse up again, it should pick up the libsvnjavahl libraries and run like a charm.
I have the java ee package of eclipse installed, and I installed it by using the package manager, and then copying the new version over the old eclipse install. I'm fairly sure this is where some of my problems are arising, because I have already found a few places in the eclipse start up scripts that reference a package directory. My Enterprise Edition (EE) package has a different path to the standard java eclipse package. At some point I will go back and clear this mess up, and fix my paths so that everything works as it should, but this quick 'hack' got me going and I can now start eclipse without a hailstorm of exception and the no javahl dialog.
In order to fix this I have installed the native svn client.
apt-get install libsvn-java
This installs the required javahl library into the
/usr/lib/jni
directory. However, this is not where eclipse is looking. In order to help eclipse find these libraries it is necessary to create links to the libraries in the /usr/lib
directory.sudo ln -s /usr/lib/jni/libsvnjavahl-1.so /usr/lib/libsvnjavahl-1.so
sudo ln -s /usr/lib/jni/libsvnjavahl-1.so.0 /usr/lib/libsvnjavahl-1.so.0
sudo ln -s /usr/lib/jni/libsvnjavahl-1.so.0.0 /usr/lib/libsvnjavahl-1.so.0.0
sudo ln -s /usr/lib/jni/libsvnjavahl-1.so.0.0.0 /usr/lib/libsvnjavahl-1.so.0.0.0
All being well, when you start eclipse up again, it should pick up the libsvnjavahl libraries and run like a charm.
Comments
Post a Comment