This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi: I have an application that uses classes contained in a jar file for processing Excel spreadsheets (the Java Excel API). This works fine when I run it as:
with my CLASSPATH set to:
I want to "bundle" all my classes for this application into an executable jar file, then run the application from the executable jar file. So I create the executable jar file containing the "mainClass" as:
But when I execute it as:
Java cannot find classes contained in the jxl.jar file:
This class was found when executing directly from the .class file and this file is indeed in the jxl.jar file:
So I have 2 questions: 1) Why isn't jxl.jar found when I try to execute the executable jar file? 2) Is there a way I can add jxl.jar to the executable jar file, so I just need to deliver 1 file?