Before casting you should always check that the instance is indeed what you
think, like this:
if( needToCast instanceof IRendererFactoryTool )
IRendererFactoryTool casted = (IRendererFactoryTool) needToCast
and this saves you from nulls too, because the instanceof will be false if
ne
Thanks for this excellent suggestion Paolo. I will add it to my code.
The Sunburned Surveyor
On 5/17/07, P.Rizzi Ag.Mobilità Ambiente <[EMAIL PROTECTED]> wrote:
>
> Before casting you should always check that the instance is indeed what you
> think, like this:
>if( needToCast instanceof IRen
Hi everybody
I am a new Openjump user. I tried the dwg library for Vivid Jump in
Openjump but ii doen't work (message of error:
net/jmorell/jdwglib/dwg/dwgfile :No Class Def Found Error).
Does somebody face (and sove) the same problem?
I use last Openjump ver. 1.2 with Jre/Jai with Windows XP
Giuseppe,
I wasn't aware that Vivid Solutions or SIGLE has created plug-ins to
read DWG files. Perhaps they will be able to comment on the error you
are receiving.
Typically the "No Class Def Found Error" occurs when OpenJUMP can't
find the files it needs for load the plug-in when the program fir
I'm not sure who the author was, but there appear to be several things
wrong with the package. First, it didn't specify adding jdwglib.jar
to the CLASSPATH. For example:
set LIB=../lib
set
CLASSPATH=%LIB%/bsh-2.0b1.jar;%LIB%/Jama-1.0.1.jar;%LIB%/jdom.jar;%LIB%/jts-1.7.2.jar;%LIB%/jump-workbench
The SourceForge page is: http://sourceforge.net/projects/jdwglib/ but
it looks to have been inactive for years.
Here is a link to the first mention of it on the jump archives:
http://www.jump-project.org/pipermail/jump-users/2005-October/003036.html
Larry
On 5/17/07, Larry Becker <[EMAIL PROT