Archiv

Artikel Tagged ‘Java’

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
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/docs/api
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/appledocs/api

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: ,

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: ,

another maven post

6. Februar 2008 Keine Kommentare

It seems to me, maven makes quite a buzz nowadays. I just read another RSS-Feed
which praises the maven site-generation:

[LINK: src: javalobby]

KategorienIT, Java Tags: ,

New development tool discovered

6. Februar 2008 Keine Kommentare

Well, it is not new, but new to me.

It’s name is COBERTURA. I saw it on the plugins-list of maven.

It can be run as an Ant target or as a standalone. It integrates nicely into maven-reports and here is what it does:
Mehr…

KategorienIT, Java Tags: , , , ,