GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » [SOLVED] subclipse in eclipse (ubuntu 12.04 64 bit)
[SOLVED] subclipse in eclipse (ubuntu 12.04 64 bit) [message #14056] Thu, 04 October 2012 16:04 Go to next message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *physik.uni-giessen.de
Hello everybody,

this problem is not directly related to PandaRoot. It is about an installation problem for subclipse (svn plugin for eclipse). Maybe someone already had the same problem and solved it (and could help me as well), if not it would not be too tragic...

I am using ubuntu 12.04 64 bit and wanted to add svn support to eclipse according to http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversi on/ which was recommended on http://panda-wiki.gsi.de/cgi-bin/view/Computing/PandaRootEclipse. I have followed along all steps (and adapted them to my newer version eclipse 3.7.2) and have installed the correct version of subclipse 1.8 (with help of http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA).

Unfortunately, I have found a problem with JavaHL. I followed the instructions on http://subclipse.tigris.org/wiki/JavaHL#head-3a1d2d3c54791d2d751794e5d66 45f1d77d95b32 . However, when I do the final step of adding

-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni 


to

/etc/eclipse.ini 


eclipse crashes immediately when it starts with the following message:
Toggle Spoiler


I am sure that /usr/lib/x86_64-linux-gnu/jni is the correct path. I installed JavaHL with the command
sudo apt-get install libsvn-java

according to http://subclipse.tigris.org/wiki/JavaHL#head-3a1d2d3c54791d2d751794e5d66 45f1d77d95b32.

If I leave out this line
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

in eclipse.ini, eclipse starts, but when I try to use subclipse, it complains:
Quote:

Incompatible JavaHL library loaded. 1.7.x or later required.


I assume that is because eclipse tries to load the JavaHL from /usr/lib/jni (which is not the one it should use).

Could someone help?

[Updated on: Tue, 06 November 2012 13:21]

Report message to a moderator

[SOLVED] Re: subclipse in eclipse (ubuntu 12.04 64 bit) [message #14193 is a reply to message #14056] Tue, 06 November 2012 13:12 Go to previous message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *physik.uni-giessen.de
I have just found the answer on the website

http://stackoverflow.com/questions/10165693/eclipse-cannot-load-swt-libr aries

and would like to post it here in case other people experience the same problem:

After adding

-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni 


to

/etc/eclipse.ini 


you have to do the following:

Quote:


On Ubuntu 12.04 32 bit enter the command:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/

And on Ubuntu 12.04 64 bit type:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/



This fixes the loading issue.

However, Ubuntu 12.04 install JavaHL 1.6.x by default, but subclipse requires >=1.7.x

Therefore, I followed the instructions on
https://plus.google.com/u/0/110836571215849032642/posts/5gecVzxXUpz
and entered:

sudo apt-add-repository ppa:dominik-stadler/subversion-1.7

sudo apt-get update
sudo apt-get upgrade 
sudo apt-get install subversion


subclipse finally seems to work now.

[Updated on: Tue, 06 November 2012 13:38]

Report message to a moderator

Previous Topic: Simulation For a particular branch
Next Topic: simulation of specific event number
Goto Forum:
  


Current Time: Mon Feb 17 07:47:24 CET 2025

Total time taken to generate the page: 0.00895 seconds