Given that it's an ExceptionInInitializerError, my guess is that some
classes have been omitted from the bundle created with launch4j,
especially if the executable jar that you previously created with the
shade plugin was working properly.

I've no experience with Launch4J so can't help you with this. Perhaps
other list members can help, otherwise you might have more luck
searching the launch4j forum pages on sourceforge.

Michael


On 19 February 2012 21:25, ILIJA BOGUNOVIC <ilija-j...@hotmail.com> wrote:
> I built executable jar and now I want to wrap it in .exe file. I am using
> Launch4J for that purpose. I managed to build .exe file and my application
> successfully starts on double click. But after some data is loaded I get the
> following exception.
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
>     at org.geotools.swing.action.NoToolAction.<clinit>(NoToolAction.java:36)
>     at org.geotools.swing.JMapFrame.initComponents(JMapFrame.java:356)
>     at org.geotools.swing.JMapFrame.getToolBar(JMapFrame.java:477)
>     at
> org.geotools.cp_map.SelectionLab.displayShapefile(SelectionLab.java:248)
>     at org.geotools.cp_map.SelectionLab.main(SelectionLab.java:207)
>
> where line 248 is simply:
>
> JToolBar toolBar = mapFrame.getToolBar();
>
> Now I don't get this at all. Like I said my project works fine from both
> Eclipse and when it is started from executable jar and here this kind of
> exception is raised. Does anybody know how to fix this?
>
>
> Ilija
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to