Configuring Eclipse SVN (Subclipse) to use JavaHL(JNI)

 

Configuring JavaHL for Eclipse is not as straightforward as it could be so posting a quick HOWTO. Following applies mostly to Linux users.

With Ubuntu the fool-proof steps are:

  1. Make sure libsvn-java, subversion and libsvn1 packages are installed
  2. Add following to the end of your eclipse.ini file: -Djava.library.path=/usr/lib/jni
  3. Restart eclipse and make sure JavaHL is selected under Window->Preferences->Team->SVN

By using JavaHL it gets more likely that your svn repo doesn’t get screwed up when using both command-line/shell and subclipse for svn.



Configuring Eclipse to use native SVN client - JavaHL

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
Comments (1) Thursday, January 10, 4:04 pm

Summer of Code: writing PHP plugins

Toomas finished the official part of the google summer of code program. It was an honor to be the mentor and I had/still have a lot of fun with him.

Grab The PHP writing plugin for Eclipse from the update site and check it out if it works for you!

Sorry, but java6 and eclipse 3.3 only! (jsr-223 scripting engine starts from java 6)

Quercus GPL-licensed PHP Fragment is not mandatory - the plugin supports also javascript (and possibly all JSR223 scripting engines).

Have fun and let him know if you find some cool usage for it. Commenting at his blog is a good start.
I had to disable comments at my blog :(

A cool feature would be to write a small snippet that sends selected text to some rafb/etc pastebin and prints the url to the eclipse console view.

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
Comments (0) Thursday, August 23, 1:36 pm

Maven 2, Java 5, JUnit 4 and Eclipse with 3 steps!

 

STEP 1 - Create project
mvn archetype:create -DgroupId=com.timegt.core -DartifactId=timegt-core

STEP 2 - Fix pom.xml
1. replace name and url
2. replace 3.8.1 with 4.1 for junit-4.1 support
3. add this for JDK 5.0 support:

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>

STEP 3 - Generate eclipse project settings and download/link sources
mvn eclipse:eclipse -DdownloadSource
Voila! Ready to go :)

Open Eclipse and Import existing project into workspace.

Project structure, sample class and sample junit test is now created and eclipse is ready to rock!

After that you can do
mvn compile
mvn test
mvn package
mvn install
mvn clean
or whatever makes you happy.

Repeat “mvn eclipse:eclipse” whenever you change maven dependencies.

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
Comments (0) Thursday, October 19, 5:12 pm

Build a generic typesafe DAO with Hibernate and Spring AOP

Don’t repeat the DAO!: “With the adoption of Java™ 5 generics, the idea of a generic typesafe Data Access Object (DAO) implementation has become feasible. In this article, system architect Per Mellqvist presents a generic DAO implementation class based on Hibernate. He then shows you how to use Spring AOP introductions to add a typesafe interface to the class for query execution.”

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
Comments (0) Monday, May 29, 11:59 pm

LiveValidator for ajaxified springframework

LiveValidator allows developers to turn their existing Validators into web2.0 ajax validators.

Simply implement LiveValidator interface for any Validator implementation you want to ajaxify. That’s it! Now your web-application is automatically validating user input using ajax and displaying any error message in a traditional spring:bind tags.

(more…)

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
Comments (0) Sunday, May 28, 3:01 pm