This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
lib is a directory with 3 jars in it (mysql-db, jfig and log4j) these jars are added to "my common libraries" with 'Java Build Path'->Libraries->Add Jars
in "the project" 'Java Build Path'->Projects->'Required Projects on the build path' I've added "my common libraries", with no access rules
The project works when run from the IDE, but if I try to export a jar :
simone@newbrand:~> java -jar hcc2mag06.jar Exception in thread "main" java.lang.NoClassDefFoundError: org/igfay/jfig/JFigException at it.retireti.hcc.linee.FacadeLinee.<init>(FacadeLinee.java:35) at it.retireti.hcc.gui.HPanelTerminazioni.<init>(HPanelTerminazioni.java:45) at it.retireti.hcc.gui.HControlCenterFrame.init(HControlCenterFrame.java:40) at it.retireti.hcc.gui.HControlCenterFrame.<init>(HControlCenterFrame.java:29) at it.retireti.hcc.gui.HControlCenterGUI.<init>(HControlCenterGUI.java:13) at it.retireti.hcc.gui.HControlCenterGUI.main(HControlCenterGUI.java:34)
SDENG ! quite frustrating ... what I'm missing ? what's the correct way to add libraries / export jars ?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus