confused My first plugin :)

This topic has been viewed 5000 times and has 3 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
javivf
Posts: 6
Joined: Sun Mar 21, 2010 5:15 pm
Contact:

My first plugin :)

Post by javivf »

I'm trying to develop a plugin and need to use iText but I always get the following error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com / Lowagie / text / DocumentException

How can i use iText ?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: My first plugin :)

Post by Puybaret »

Welcome to Sweet Home 3D development world! [:)]

Under which system do you try your plug-in?
You should know that iText isn't included in classpath under Mac OS X, because it's useless for Sweet Home 3D under that system (all Mac OS X applications provide a print to PDF feature in their print dialog).
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
javivf
Posts: 6
Joined: Sun Mar 21, 2010 5:15 pm
Contact:

Re: My first plugin :)

Post by javivf »

I'm trying to run on Ubuntu linux with this command line :
java -jar SweeHome3D.jar

I'm java newbie too but in this .jar exists iText-2.1.7.jar and I thought it was SweetHome3DBootstrap work load this jars when i start the application.
User avatar
javivf
Posts: 6
Joined: Sun Mar 21, 2010 5:15 pm
Contact:

Re: My first plugin :)

Post by javivf »

My fault, i can access to iText with that:

java -Djava.ext.dirs=/usr/local/src/SweetHome3D/lib:/usr/local/src/SweetHome3D/libtest/:/usr/local/src/SweetHome3D/lib/linux/ -jar SweetHome3D-2.3.jar

Sorry for any inconvenience!
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest