This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have incorporated some stuff for the Apache FO processor in my application. To build my application I include the jar files necessary for the apache stuff, and it builds fine. But during execution when I get to the point that calls the Apache stuff my application just hangs, I assume because it can't find it. I don't get any errors or exceptions. I know the jar files are in my classpath, and just to be sure I have explicity added each one to the classpath on the command line. What could be going on here? One other note. I am using NetBeans as my IDE, and I can build and execute my application with no problem from netbeans. But outside of the IDE is where I run into these difficulties. Any help would be appreciated.
The java virtual machine searches a bunch of directories and archive files called the classpath to find all the classes it needs. If it does not find a class it needs, it throws the java.lang.NoClassDefFoundError. The JavaRanch FAQ has a good section on How To Set The Classpath. If your program is not throwing the above error your classpath should be good.