Tuesday, July 13, 2010

Work in progress on the new style editor

To be honest I thought that creating a style editor would be less work. But Style is style, and once you get into it you would want more and more. So it ends up that only to think about simple points, there are thousands of possibilities...

Well, it is a work in progress, but it is already possible to create quite complex styles and save them in an own library.

Well, to give you an idea...



and graphics based (png, svg)...



Well, still a long way to go after this... categories, labels, lines and polygons...

Thursday, July 1, 2010

java.lang.NoClassDefFoundError: javax/media/jai/iterator/RandomIter

Man, this is the last time you fool me!
At least so I wished... anyways...
You are writing an eclipse RCP application that bases also on JAI?

Well, you might incur into the error:
java.lang.NoClassDefFoundError: javax/media/jai/iterator/RandomIter

or something similar.
Also you would swear that the jars are in your classpath.
Also you will browse the whole internet for solutions.
Also you won't find them. (at least I didn't)
Because the ease of all this is in running the application with the following VM argument:

-Dosgi.parentClassloader=ext



When I don't create new RCP apps in a while it fools me again. Also you should not try to solve this between 11 pm and 1 am. It would fool you... again.




As suggested a small addition: In my case the problem is due to the fact I use to keep the jai jars inside the jre and therefore it is needed to tell the classloader to load also the jre extentions (which is where I keep the jars).