Archiv für die Kategorie ‘Java’

Find a specific class in your maven repository

8. Januar 2009 Keine Kommentare

If you don’t want to use findjar, you can use a groovy script.

You can use the following:

KategorienJava, linux Tags:

created new yubnub command: findjar

31. Dezember 2008 1 Kommentar

I just recently stumbled accross, a usefull tool
to find jar-files [who would have guessed..]

And I created a yubnub command for it: findjar

Hope somebody else finds this usefull too 😉

Blogged with the Flock Browser


Kategoriencmd-lines, Java Tags:

Podcast for Software Engineers

15. April 2008 Keine Kommentare

I recently started to listen to podcast and the variety of podcasts is really big.

I discovered This site produces
podcasts for software engineers. I really enjoy the possibility to learn while traveling 😉

Today, I started listening to the parts of concurrency. Did you know there is a bug classification called Heisenberg-Bugs? A Heisenberg-Bug is Mehr…

KategorienIT, Java Tags:

groovy script beautified

24. März 2008 Keine Kommentare

I rewrote my groovy-script to have better output:


Kategoriencmd-lines, Downloads, Java Tags: ,

Fixed ‚View Javadoc in external Browser‘ in IntelliJ IDEA

15. März 2008 3 Kommentare

An annoyance in IntelliJ IDEA was that the command ‚View Javadoc in external Browser‘ did not work
per default on a mac. On a mac with it’s own java sources the api-doc are located inside a jar and therefore
not able to browse through a normal webbrowser. (If you know a browser which can handle a jar://xxx address let me now in a comment)

IntelliJ does not open or extract those files per default so I did by hand with:

cd /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
jar xf docs.jar // this will extract the contents of the jar
jar xf appledocs.jar // dito

No we need to point IntelliJ to the extracted files. Open your Preferences -> Project Preferences.
Click on the desired JDK and then click on the tab ‚javadocs‘. Remove the old entries for the jar and enter
the extracted path

Not it works. To test it, move the cursor to a class,member whatever and press <Shift>+<F1>. The appropriate javadoc should open in your default browser.

This is not a bug fix, just a bad default configuration. I’d like to see this fixed in the next release…

KategorienJava Tags: , ,

IntelliJ IDEA

15. März 2008 Keine Kommentare

7.0.3 is out now. get it!

KategorienJava Tags: ,

learning groovy…

11. März 2008 Keine Kommentare

… is like Alice climbing through the rabbit hole.

I just connected to a db, did a query from a table and printed out a selection of columns in just
2 lines of code, yes TWO LINES!

KategorienJava Tags:

groovy-script: lookup classes in jar-files

11. März 2008 Keine Kommentare

Recently I had following problem. I had a bunch of jar-files and I had to find out which jar-file was holding a specific class.

This is a common task, because your java-code told you that a class XY was not in you classpath, so you would have to search for it, if you don’t know already where to find it.

Since I had to do it already 2 times and as I am learning groovy I decided to write a short groovy-script
(are there long groovy-scripts?) which allows me to do that.

It is pretty straight-forward so here it is: searchJar.groovy

Kategoriencmd-lines, Java Tags: , ,

Hudson has a groovy console

7. März 2008 Keine Kommentare

I am playing around with hudson as a integration server.

So far it is very nice and intuitiv, you can even trigger builds by email, mobile etc! And just
yesterday it has groovy-console builtin for monitoring maven2-builds!

Isn’t it a good day when you recover that your new tools already know each other? 😉

Although I have to admit that hudson lacks some features I would like to have such as
access-control per project. For now there is an access-control (LDAP, Matrix-like etc) for the whole build-server…

KategorienIT, Java Tags: , , ,

JSR 666

13. Februar 2008 Keine Kommentare

I just read about JSR 666.

First I took it for serious, but when i read about SchrödingerException
I could not help laughing.

My other favorite tough was ‚import *;

KategorienJava Tags: ,