> A program I've written, which works perfectly inside NetBeans 5.0beta2, > when exported into a jar file for distribution, fails with the following > error: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/jmol/api/JmolAdapter > at jmakemol.cdnt.cdnt2(cdnt.java:473) > at jmakemol.cdnt.<init>(cdnt.java:58) > at jmakemol.Main.main(Main.java:27) > > Is there anyone conversant with JmolAdapter etc., who can help me > include it in the automatically generated jar file from NetBeans.
I am conversant with the JmolAdapter ... but don't know anything about NetBeans. You clearly have a build/make problem. > If it compiles in NetBeans, I can't see why it should be > left out of the jar file. My guess is that the JmolAdapter class and other Jmol classes being pulled from a .jar file (Jmol.jar?) ... like a library. Therefore, the classes will not be 'extracted' from the library in order to be included in your application .jar file. Add Jmol.jar to your classpath (either as an environment variable or on the command line) and it will work OK for you. Miguel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

