I suggest adding try/catch blocks to critical points e.g. where JumpPrinter/iText are used the first time to inform the user what is missing. This should be done with all libs that are used but not part of the oj standard distribution or the extensions distribution itself. Makes life a lot easier for the users.
..ede On 15.02.2011 13:41, Giuseppe Aruta wrote: > Hi Jukka, > embedded Openjump batik libraries should be enough to use vertesymbolplugin. > There is no need of all other batik, neither to modify Oj scipts. > Vertex Symbol plugin requires the presence of two other jar files: > a) JumpPrinter.jar, located into OJ/LIB/EXT folder (this is Cadplan print > plugIn) > c) iText-2.1.5.jar, located into OJ/LIB folder > > I tested with no problem either with Win7 and Ubuntu 10.04 > > Peppe > > > --- Mar 15/2/11, Rahkonen Jukka <jukka.rahko...@mmmtike.fi> ha scritto: > >> Da: Rahkonen Jukka <jukka.rahko...@mmmtike.fi> >> Oggetto: Re: [JPP-Devel] VertexSymbols plugin >> A: "OpenJump develop and use" <jump-pilot-devel@lists.sourceforge.net> >> Data: Martedì 15 febbraio 2011, 13:21 >> Hi, >> >> I have had some installation problems. This is what I have >> done this far: >> >> - Downloaded VertexSymbols.jar and placed into lib\ext (you >> see I am on Windows, Java 1.6) >> - Downloaded Batik and placed 19 jar files from the >> lib-folder into new OJ lib\Batik directory >> - Edited oj_windows.bat this way to add jar files from >> \lib\Batik into classpath >> >> for %%i in ("%LIB%\*.jar" "%LIB%\*.zip" >> "%LIB%\Batik\*.jar") do ( >> set jarfile=%%i >> >> I inserted an additional "set CLASSPATH" and pause into >> oj_windows.bat and I can see that new Batic jars are >> included because the CLASSPATH begins now with >> >> CLASSPATH=lib\Batik\js.jar;lib\Batik\batik-xml.jar;lib\Batik\batik-util.jar; >> >> - If I open OJ and create a new layer with some features >> and start Vertex symboliser all I ger is NPE: >> >> java.lang.NullPointerException >> at >> com.cadplan.jump.VertexSymbols.<init>(VertexSymbols.java:148) >> at >> com.cadplan.jump.VertexSymbolsPlugIn.execute(VertexSymbolsPlugIn.java:82) >> at >> com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:130) >> at >> javax.swing.AbstractButton.fireActionPerformed(Unknown >> Source) >> at >> javax.swing.AbstractButton$Handler.actionPerformed(Unknown >> Source) >> at >> javax.swing.DefaultButtonModel.fireActionPerformed(Unknown >> Source) >> at >> javax.swing.DefaultButtonModel.setPressed(Unknown Source) >> at >> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown >> Source) >> at >> java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) >> at >> java.awt.Component.processMouseEvent(Unknown Source) >> at >> javax.swing.JComponent.processMouseEvent(Unknown Source) >> at >> java.awt.Component.processEvent(Unknown Source) >> at >> java.awt.Container.processEvent(Unknown Source) >> at >> java.awt.Component.dispatchEventImpl(Unknown Source) >> at >> java.awt.Container.dispatchEventImpl(Unknown Source) >> at >> java.awt.Component.dispatchEvent(Unknown Source) >> at >> java.awt.LightweightDispatcher.retargetMouseEvent(Unknown >> Source) >> at >> java.awt.LightweightDispatcher.processMouseEvent(Unknown >> Source) >> at >> java.awt.LightweightDispatcher.dispatchEvent(Unknown >> Source) >> at >> java.awt.Container.dispatchEventImpl(Unknown Source) >> at >> java.awt.Window.dispatchEventImpl(Unknown Source) >> at >> java.awt.Component.dispatchEvent(Unknown Source) >> at >> java.awt.EventQueue.dispatchEvent(Unknown Source) >> at >> java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown >> Source) >> at >> java.awt.EventDispatchThread.pumpEventsForFilter(Unknown >> Source) >> at >> java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown >> Source) >> at >> java.awt.EventDispatchThread.pumpEvents(Unknown Source) >> at >> java.awt.EventDispatchThread.pumpEvents(Unknown Source) >> at >> java.awt.EventDispatchThread.run(Unknown Source) >> >> What is going wrong? I tried to add also all the >> other Batik jars from the 1.7 delivery into OJ lib\Batik but >> the NPE remained the same. >> >> -Jukka Rahkonen- >> >> >> >>> -----Alkuperäinen viesti----- >>> Lähettäjä: Geoffrey Roy [mailto:ge...@cadplan.com.au] >> >>> Lähetetty: 15. helmikuuta 2011 9:48 >>> Vastaanottaja: List for discussion of JPP development >> and use. >>> Aihe: [JPP-Devel] VertexSymbols plugin >>> >>> To OJ Users/Developers >>> >>> I have just posted an updated version of my >> VertexSymbols >>> plugin which >>> has been developed with support from Peppe. The >> major change is the >>> option to now scale the size of symbols as the zoom >> level changes. >>> Also, some minor bug fixes. >>> >>> Geoff >>> >>> -- >>> Dr Geoffrey G Roy >>> Cadplan >>> 129 Gloster Street, Subiaco WA 6008 >>> Tel: (08) 9381 4870 Fax: (08) 9382 4459 >>> Email: ge...@cadplan.com.au >>> http://www.cadplan.com.au >>> >>> >>> >> -------------------------------------------------------------- >>> ---------------- >>> The ultimate all-in-one performance toolkit: Intel(R) >> >>> Parallel Studio XE: >>> Pinpoint memory and threading errors before they >> happen. >>> Find and fix more than 250 security defects in the >> development cycle. >>> Locate bottlenecks in serial and parallel code that >> limit performance. >>> http://p.sf.net/sfu/intel-dev2devfeb >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) >> Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the >> development cycle. >> Locate bottlenecks in serial and parallel code that limit >> performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel