Errors running Java app on Mac OSX
843807Oct 15 2002 — edited Oct 27 2002Hello,
I've written a Java application and packaged it as a JAR file that runs fine on Windows. When I try to run it on
Mac OSX, though, I get the following error:
% java -jar Clavis.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
java/awt/KeyEventDispatcher
at Clavis.main(Clavis.java:7)
I'm assuming this means that the program needs and is somehow not getting access to the java.awt.* classes it requires. How can I tell it where they are? Is it possible to do this within the JAR file so that users don't have to configure this manually?
Five dukes for the first good answer!
Thanks much--
David