[josm-dev] Building JOSM with NetBeans

Frederik Ramm frederik at remote.org
Wed Mar 19 11:12:42 GMT 2008


Hi,

> Well, when I started with JOSM, I actually created a project from  
> scratch
> and moved the sources (except the build.xml) in.
> My setup includes two source roots (./src and . to cover also other  
> resources)
> with a short include filter (images/**,org/**,presets/**,styles/**).
>
> Then everything works perfectly (build, run, debug, even profile).
> I can send you a patch that would turn svn sources into full-featured
> NB project, if you wish.
>
> In fact, I believe it would be completely possible to have the project
> data in place for both the IDEs (with Eclipse using NB's generated  
> build.xml)
> but I don't have Eclipse installed to test it.

While we're at the IDE topic... I normally use Eclipse, and recently  
wanted to do some profiling on JOSM. Turns out the "TPTP" stuff in  
Eclipse is an absolutely grande pain in the behind, for me at least,  
constantly complaining about some "agent" not being availalbe, which  
the docs say should be built-in but obviously isn't, and if you want  
to start the agent manually, you find it is linked against a specific  
libstdc++ library version number that you don't have, and all that.

So I thought well let's use Netbeans, everybody says their profiling  
is good. Downloaded and installed it, but it was absolutely unusable  
on my setup. (My setup involves a headless server and the display  
machine is a thin client only running an X server from where I get my  
session with X -query, so it is not the fastest in terms of graphics  
but usually sufficient for all development tasks.) I don't know what  
the matter was, but I had this "click button, wait five seconds, and  
then perhaps a dialog opens" effect - maybe some graphics/UI handling  
in Netbeans that becomes visible in a slow graphics environment.

After this I downloaded an evaluation copy of JProfiler and promptly  
found out that the reason why JOSM was so slow in mappaint mode (on  
my machine) was the polygon filling ;-)

Questions arising from this:

1. anyone got Eclipse TPTP working on Linux and happy with it?
2. anyone got Netbeans running in a slow graphics environment and  
happy with their profiling tools?
3. anyone got suggestions for other free Java profiling tools?

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"







More information about the josm-dev mailing list