Menu

Trivial Question about an error (I am a beginner)

JOHN
2013-09-19
2013-09-19
  • JOHN

    JOHN - 2013-09-19

    I have a jar created with java 1.6 which works with no issues whatsoever.'HMR52' is my main class. My jar is just an application with just one package. I have tried to create a wrapper with Launch4j by just filling 'outpufile' & 'jar' in the basic tab. I get the below error. What am I missing here? HMR52 is my jar. Why can't launch find it? Any help is appreciated.

    Thanks in advance


    Executing: C:\Documents and Settings\JOHN\Desktop\h.exe
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/vividsolutions/jts/geom/CoordinateSequence
    at HMR52.<init>(HMR52.java:63)
    at HMR52$21.run(HMR52.java:1116)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(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)
    Caused by: java.lang.ClassNotFoundException: com.vividsolutions.jts.geom.CoordinateSequence
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 16 more

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2013-09-19

    Hello John,

    Please attach the config file and the output of h.exe --l4j-debug. Your application was launched but it seems there is a classpath issue. How do you normally start your application ? Perhaps you're running it from a different folder so for example some library cannot be accessed ?

    Grzegorz

     

Log in to post a comment.