We use a combination of Ubuntu + Eclipse + PHPEclipse + Subclipse in the office as a stock standard developer machine setup. Developers are free to make changes, but when in doubt this is what they get.

Over the pass couple of months though, as we have added more code into the repository we noticed that the Eclipse had really been slowing down and crashing frequently, primarily due to large memory consumption. However , developers who had dropped the Subclipse plugin and resorted to the command line client (which is the way I like it ;-) ) did not seem to be having any issues.

We had until then also been using the  packaged version of eclipse that was provided by Ubuntu. Seeing that there was a new version of Eclipse 3.4 and Subclipse 1.4 out we decided to see if there was a way to solve this issue and upgrade our default install.

Long story short, it turns out that the Subclipse can either be made to use SVNKit which is a pure Java implementation  or JavaHL which is a wrapper for the native C library. Turns out we had been using SVNKit all this while. No prize for guessing which one is faster and handles large repositories better ;-) .

The problem though (as identified in the FAQ entry) that since the JavaHL requires local library support you need to make sure that the version of Subclipse you are using supports the version you have installed in your machine. With Ubuntu 8.04, the  packaged version is libsvn-javahl_1.4.6 , which means that you are stuck with Subclipse 1.2, as Subclipse 1.4 requires the  libsvn from Subversion 1.5. Looking through Google I stumbled upon Basilisk’s blog entry that details the problem out and enumerates possible solutions. I choose the option of running Subclipse 1.2.

So a quick recipe to getting Eclipse 3.4 (directly from the download site) + Subclipse 1.2 with the JavaHL binding running on Ubuntu 8.04 is as follows:

1. In a terminal window, do the following. This line of command is used for installing java6-jre. You need to use the Sun provided java for things to work properly.

sudo apt-get install sun-java6-jre

2. Then type this to install the libsvn-javahl library that will be used by Subclipse.

sudo apt-get install libsvn-javahl

3.Type the following to set the Sun-Java as your default JVM. This will make sure that whenever an application looks for the java command it will be using the Sun provided version.

sudo update-java-alternatives -s java-6-sun

4. Then go to the eclipse site http://www.eclipse.org – got to the download section and (http://www.eclipse.org/downloads/) and download the Eclipse package relevant for your use case. For my case I downloaded Eclipse Classic from http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.4-200806172000/eclipse-SDK-3.4-linux-gtk.tar.gz

5. Save it into your destination folder. For my case I saved it into my home dir. (And that is what the instructions will assume from this point onwards).

6. The in a terminal do the following. Please note that the path to cd into (in the example’s case it is ~) should be replaced with the path that you actually saved the download into during Step 5.

cd ~
tar -xvzf eclipse-SDK-3.4-linux-gtk.tar.gz

7. If you type ‘ls’ now there should be an additional folder called ‘eclipse’.

8. Now we need to edit the eclipse.ini file which is in the newly created eclipse folder and add a single line at the end of the file as follows “-Djava.library.path=/usr/lib/jni” I found out that this is so that the JavaHL libraries are picked up by Eclipse.

gedit ~/eclipse/eclipse.ini

Original text:
-startup
plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.100.v20080606
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m

After editing:
-startup
plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.100.v20080606
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m
-Djava.library.path=/usr/lib/jni

9. Now you can start Eclipse by clicking on the Eclipse icon with the eclipse folder.

10. Startup Eclipse.

11. Click on Help->Software Updates->Available Software from file menu in Eclipse.

12. Click on the “Add Site” button.

13. Enter a name i.e subclipse, and the URL: http://subclipse.tigris.org/update_1.2.x (Thanks Basilisk!) (Note the link to ver 1.2 not 1.4)

14. Click on “Finish”.

15. A list of features will be presented, open the list and check the one labeled “subclipse”. There will be optional packages available as well. I was only interested in the core subclipse components.

16. Click on “Next”

17. Keep clicking through till your done.

18. The install will ask you to restart your eclipse, choose yes and continue.

19. Upon Eclipse restarting go to Menu item Window>Preferences. Once the pane Pops up select the item Team > SVN. The preference should come up and there should not be any errors. If errors come up it is probably caused because for some reason your default java is still not pointing to the sun java. For more info on this you can refer to this ubuntu forum discussion.

Anyway – I hope somebody finds this useful. Feel free to add amendments and corrections in the comments.

31 Responses to “Ubuntu Subclipse woes – use JavaHL bindings”
  1. oka says:

    > No prize for guessing which one is faster and handles large repositories better
    Hello! I can’t say I like the above statement :) , but do you have any exact issues to report when SVNKit Adapter was used? Please also note, that using Subclipse 1.2 will not allow one to use Subversion 1.5 features.

    Alexander, SVNKit developer :)

  2. admin says:

    Hello Alexander,

    Thanks for dropping by. I was being flippant with that statement my statement and I apologise for not backing it up with more concrete data. I did not keep enough data to pin point to an exact issue, but what we did experience is that when using the SVNKit adapter the memory consumption was noticeably higher (in comparison with the JavaHL adapter ) So much higher that it Eclipse kept crashing. Yes I do understand that using Subclipse 1.2 limits us to Subversion 1.4 features. We will probably move to Subclipse 1.4 when Ubuntu Intrepid Ibex is out (which I believe will ship with subversion 1.5). I will also probably give SVNKit another run and see if I can come up with more useful data for you.

    Thanks again for dropping by.

    Mohan

  3. SVN + Eclipse 3.4 + Ubuntu 8.04 « Victor V. Serta’s Tech Blog says:

    [...] http://mohangk.org/blog/2008/09/ubuntu-subclipse-woes-use-javahl-bindings/ [...]

  4. sillyxone says:

    Updated 5/20/2009:

    Eclipse PDT 2.0 using SVNKit 1.2.2 with Subclipse 1.4.x is still slow. While the CLI svn client takes less than 5 seconds for an update with very little network bandwidth and just a few blinks of HDD, Subclipse takes about 15 seconds with saturated network bandwidth (DSL 768Kb/s) during the whole time with the HDD crunching like crazy (click..click…click…)

    Anyway, changed to Subclipse 1.2.x with JavaHL, as fast as CLI.

  5. Kir says:

    nude tatyana ali
    free celebrities upskirt
    girls in panties
    naked hunks
    nelly tip drill video
    amateur housewife tgp
    real sex stories
    preteens panties
    gay prison
    lingerie models free
    romantic spanking stories
    black pussy pics
    13 year old girls nude
    teens in skimpy bikinis
    topless bikini babes
    sexy maid
    pooping in public
    badass teens
    bondage collars
    pink pornstars

  6. Kir says:

    mugen roster download
    gaia online naruto layouts
    megankelly foxnews
    mr wiggles bubble style letters
    zeb atlas muscle worship
    coitien vuonmongmo xem phim
    brooklyn fade hair cut
    spnt terengganu
    doodhwali story
    kollywood trisha bathroom clips
    philippine board of nursingdecember exam result
    kuda 4d result malaysia
    lisa raye wedding ring
    leccion de primarios escuela sabatica
    forphim com
    www radiomk com mk
    pansat 2500 clone bin files
    labtec v uat34 driwers
    ricerca numeri telefonici cellulari
    ultimate mugen characters

  7. Diesel says:

    heavy doody sled
    fecal impaction milk of magnesia
    www rialtounifiedschooldistrict ca k12
    reviews for ovo cirgue solei
    queen anne pistol kit
    bangla romantic choti sex boi
    monchein in avon lake
    benny hanas restaurant locations florida
    delicious from flava flav
    hiphopvideochicks com hoopz
    mujeres puertorriquenas solteras en atlanta
    was thomas hewitt captured
    td7 international dozer for sale
    online biology book miller levine chapter 20
    big kmart applications online
    fogo de chao coupon dallas
    12 second ratios for nitto 1320 legends
    sabrina sabrök playboy
    cerita ibu kerudung
    videos musicales gratis oreja de bango

  8. Bill says:

    rock n roll hall of fame
    laura picture sigler
    how to do cool hairstyles
    pre marital sex
    smoking cigars how to
    somewhere over the rainbow wonderful
    toy soldier lyrics emenem
    what is taffeta
    fire myspace layouts
    church immanuel lutheran
    neon genisis evagelion
    bride mother dresses
    scorpion wind of change
    britney spears magazine cover
    distortion myspace com site social
    download flight simulators free
    estate greenfield massachusetts real
    bowman the games
    roadrunner webmail tampa bay
    sandia national laboratories

  9. Arnie says:

    cheep car rental uk
    cuyahoga auditors office
    alabama batre bayou la
    univeristy of phoenix student login
    auld lang syne by
    blue berry muffin recipes
    dungeons and dragons miniatures
    common denominator least
    the lobster tail
    causes of blood in stools
    graffiti game yahoo
    lime wire pro
    i wnat you
    belfast international airport
    how to repair outboard motors
    instrument musical ry421 sechristbrothers com
    lyrics for immigrant song
    danity kane lyric
    saved by the bell cast
    tony hawk underground codes and cheats

  10. Dominic says:

    jacks car wash fresno coupon
    joseluissincensura videos
    señoras de 50 años cojiendo
    mls to oz converter
    kenosha wi coleges gateway
    jiffy parts list ice
    stylist misa hylton brim biography
    comedian monique web page
    shucks auto supply woodburn
    vergas grandes
    conjugate peinarse verbix
    fmj firearms derringer
    longfingernails big tit
    peterbilts for sale 379
    babesand bitches
    coleman evcon des 80
    bthuber yahoo com
    monologue contemporary realistic play
    lourdes mungia desnuda
    death announcement template

  11. Aron says:

    harley davidson for sale used
    one com year
    buena garden yerba
    home made vanilla ice cream recipes
    san bernardino county superior courts
    zeus greek god of
    cowboy dallas forum
    abc anatomy greys
    sports cars wallpapers
    brown widow spider
    template for fax cover sheet
    tuxedo rentals in las vegas
    gothic wedding gowns
    farenheit and celsius conversion
    buy link online blogspot com phentermine
    robots cheap flights airfare
    auto japan lamp
    super mario rpg walkthroughs
    noah s arc
    the canarie islands

  12. Hero says:

    gatlinburg tn real estate
    goverment housing grants
    bath detox foot
    funeral pre arrangement
    housing kingston ont retirement
    real estate on kauai
    popular mechanics magazine
    muncie real estate in
    disney chanle com
    layers of a rainforests
    dishwasher consumer report
    cheap tanning bed
    taj mahal location
    childs giant helmet ny
    card game online uno
    online dirt bike game
    hybrid mini vans
    feed my frankenstein
    atlanta salvage yards
    mazda lexington kentucky

  13. Heel says:

    first moon landings
    real estate steamboat springs
    patrick dempsey pics
    indoor water parks michigan
    cream ice strawberry
    raining you lyrics
    canada highway trans
    used car bluebook value
    cricket video coverage
    fire pit propane
    lifting routine weight
    ak com treat
    cute backgrounds for myspace
    plant tissue cultures
    custom self inking stamps
    seven army nation lyrics
    kissing babes clips
    oscoda scavenger hunt
    lyrics to every heart boa
    what is a segmented worm

  14. Diesel says:

    the daily diapers
    atkins message boards
    gambar pramugari mas
    mazda charleston west virginia
    beach broadway myrtle
    a tropical rainforest biome
    lottery results in power ball
    protest the hero
    shag hair style pictures
    abortion pro cons
    cedar rapid iowa real estate
    munoz pam ryan
    sofia vergara fotos
    daddy gangster lyric yankee zone
    www americanexpress com
    briggs stratton engines
    kane county illinois
    romeo and juilet
    macular degeneration and avastin
    bewitched the movie

  15. Aron says:

    html code for piczo
    bone thug and harmony lyric
    what is contemptible
    with you by jessica simpson lyrics
    wedding invitations printable free
    temecula wine tours
    house of burgesses
    universal studio tickets orlando
    catholic school uniform
    unlocked phones gsm
    deskjet 3820 driver download
    pkp rozklad jazdy
    devil egg recipe
    dallas photographer quarry rock
    medevil times dinner theatre
    street racing syndicate
    single pokemon cards
    lemon cake receipes
    ratchet and clank up your arsenal
    florida certification teacher

  16. Jane says:

    what is an lvn
    funny valentine cartoon
    mary poppins lyric
    legend scary true urban
    spy cam nude
    myrtle beach sc apartments
    langston hughes dreams
    sandcastle resort condominiums
    aggressive internet marketing
    cd chili hot new pepper red
    water softener reviews
    the today show nbc katie couric
    adventure black tiny
    longitude and latitude finders
    picture of ashanti
    bloomsburg pa real estate
    ecco shoes for men
    stop crying your heart out oasis
    fast access dsl bellsouth
    national aquarium of baltimore

  17. Halo says:

    classic car bluebook
    frankie j lyrics obsessions
    the element cobalt
    golden screen cinema
    download nextel ringtone
    cabins on the lake of ozarks
    under counter refrigerator
    sprint cars parts
    john patrick amedori
    happy birthday greeting card
    miracle by cascada lyrics
    kelly ripa nudes
    ross simon jewelery
    fuck wife com
    daniel radcliffe and girlfriend
    black eyed official pea site web
    potable water tank
    denon dvd players
    russian revolutions in 1917
    aikido clip video

  18. Arnie says:

    marginal tax rate
    catering service nassau
    feel good gorillaz
    exercise lifting weight
    jcpenney free shipping coupon code
    a7v8x asus down second shuts x
    nokia 7210 ringtones
    amtrak promotional code
    nikki schieler ziering
    breast cancer statistics
    moderato y belinda
    deck gi oh structure yu
    what is ductal carcinoma
    the steel guitar forum
    trendy women s clothing
    numerology how to
    bak canadian ong
    play free lingo game
    robins air force base
    ibm thinkpad laptops

  19. Dominic says:

    badly drawn boys about a boy
    courier in kent
    bravado nursing bras
    golf hawaii vacation
    framing picture seattle
    example persuasive speeches
    meaning of lastnames
    power rangers theme songs
    softwear photo slide shows
    soap opera digest
    toy soldier by eminem lyrics
    railways online reservations
    device ignition interlock mexico new
    it s your love tim mcgraw
    ebay motor ca
    henry ford hospital wyandotte
    zack site myspace com
    free bollywood ringtones
    master card commerical
    lyrics justin timberlake sexyback

  20. Diesel says:

    benni hannas restaurant locations
    andrea rincon playboy
    karrine stepphans porn
    keshia knight pullman nude photos
    ludacris hair cut hood pictures
    naked carrie underwood
    free fta files downloads bin
    raymart and claudine barretto nuptial
    myspace blood gang layouts
    mac dre myspace layouts
    chuyen nguyen ngoc ngan
    knifty knitter instructions for kids
    smackdown vs raw 2007 caw list
    www detrick hadden com
    pregnancy amniotic fluid leakage
    jeff durham ventriloquist
    imipram pam capsules
    pic jeff wiggles
    watchtowerfarm pphcoool info
    tuyet dinh than tham

  21. Neo says:

    district kyrene school
    hotel bangkok discount
    gay prison pen pal
    fundacion gran mariscal de ayacucho
    allis city west
    lyrics to nada surf
    attorney injury michigan personal
    the diamonds lyrics
    bargain finder and calgary
    banquet county orange room
    chicken easy quick recipe
    belly button infection
    bird flu masks
    scotty doesn 39 t know
    es mega migliaiadiorge orgia
    evergreen solar in
    kaylyn myspace com site
    harriet tubman and the underground railroad
    bum ki kim
    ounce to pound conversion

  22. Aron says:

    yeh meri life hai
    wildwood travel trailers
    link software4parents com
    cabin gatlinburg in tn
    coastside fishing club
    pechanga resort casino
    art clip dinosaur
    channing tatum gay
    anorexia nervosa picture
    loew s miami beach hotel
    men sheer underwear
    card easter greeting
    fighter fire supply
    amelia earhart biographies
    wisconsin badgers hockey
    orpheum theater in minneapolis
    wwi political cartoons
    porn kim possible
    mouse pointer downloads
    what is oat bran

  23. Arnie says:

    consew 255rb 2 manuals
    african american girls hairstyles braids
    haunted abandoned asylums
    free rube goldberg project ideas
    find ulrike herzner clothes
    myspace layouts java monster energy drinks
    lacy peterson autopsy photos
    los bideos mas calientes de noelia
    flava flav delicious
    rasheeda my bubblegum lyrics
    frigidaire gallery ltf2940f
    traditional hannya mask tattoos
    dcut jeans model
    i rember keisha cole lyrics
    rob dyrdek sun glasses
    stephen yearick 12906
    calendario de linette chico
    ashley leggat in thong
    gruesome car crashes
    kristin kreuk nude fake

  24. Aron says:

    blog myspace com naked site
    butternut squash soup recipies
    lyrics bad religion you
    dodge dealer cincinnati
    on the floor lyrics
    arkansas florist online
    tattoo and armband
    miniature horses for sale
    belanova por ti
    pipe dream game
    cabin crew vacancy
    city of pearland
    real world cara
    beach motel virginia
    caffeine symptom withdrawal
    last week at jenni s place
    midtown madness 3
    hot female celeb
    dc

  25. Heel says:

    mutiara kata cinta
    real nude pics of jessi combs
    ss5 goku games
    westfield mall arcadia
    pokemon emerald shiny codebreaker
    pizzabolis woodlawn menu
    fidelitys netbenefits www 401 com
    free printable lesson plan template
    cheats for wpn fire
    lee enfield mk iii for sale
    nobo clothing line
    mjr theater waterford mi
    flat twist cornrows pictures
    att worldnet login isp
    africian american braid styles
    listen to nephew tommy prank calls
    gerald levert and his daughter camryn
    william sonoma outlet and memphis address
    oratorical declamation speeches
    sucrose chemical formula

  26. Bill says:

    mary kate olson
    county dekalb ga
    milo and alexis bledel
    gay football player
    smash bros melee cheats
    diamond loose wholesale
    clit site myspace com
    aptitude scholastic test
    car florida melbourne used
    cute love quotes and poems
    honda new london connecticut
    real estate neenah
    compare thee to a summer day
    bank flushing savings
    online waldo wheres
    looking for landscaping ideas
    something startin wanna
    thurgood marshall timeline
    cbeebies home page
    new brooke burke pic

  27. Halo says:

    albany italian new restaurant york
    alfa romeo sale
    grower s direct
    restaurants in boca raton
    the jokers wild
    hot tub bacteria
    www brazilian transsexuals
    fashion show mall lasvegas
    what is sadism
    about the franco prussian war
    jaclyn myspace com site
    conservationist entertain should
    obey the giant
    auditor state of ohio
    vincent van gough
    knee replacement surgery total
    lyrics by the scene aesthetic
    estate lafayette real
    easy meatloaf recipie
    alive dead myspace com site

  28. Neo says:

    day indianapolis spa
    change of adress form
    here lyric night
    apartment oregon portland rent
    thong picture on blonde
    lil rob summer night lyrics
    fahrenheit conversion to celsius
    used pt cruiser
    ke toan tu van
    ringling brothers barnum and baileys circus
    fine jewelry chicago
    the underworld soundtrack
    what is douchebag
    high liver enzymes
    foot music sheet switch
    start an mlm business
    natasha st pier
    ashlee simpson lyric
    doo ski snowmobile
    from kim lil prison release

  29. Kayla A. says:

    the new bruno movie was really good, thanks

  30. Romeo Abadi says:

    Tired of obtaining low amounts of useless visitors for your site? Well i want to let you know about a brand new underground tactic that makes myself $900 per day on 100% AUTOPILOT. I could truthfully be here all day and going into detail but why dont you simply check their website out? There is really a great video that explains everything. So if your seriously interested in making hassle-free hard cash this is the site for you. Auto Traffic Avalanche

  31. Karima Schnebly says:

    Sick of obtaining low amounts of useless visitors for your website? Well i want to inform you of a brand new underground tactic which makes myself $900 each day on 100% AUTOPILOT. I possibly could be here all day and going into detail but why dont you simply check their site out? There is really a excellent video that explains everything. So if your serious about making hassle-free cash this is the website for you. Auto Traffic Avalanche

Leave a Reply

  • Viagra online
  • Order cheap cialis
  • Buy viagra no prescription
  • Cialis online
  • Buy generic cialis
  • Order propecia no prescription
  • Cheap propecia online
  • Propecia online pharmacy
  • Order levitra online
  • Cheap price cialis
  • Online pharmacy levitra
  • Buy viagra online
  • Buy discount levitra
  • Cheap cialis online
  • Propecia hair loss