| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi there, I have a beginners question: I'm trying to compile and run some basic java programs using my command line, rather than using Xcode. Its when I try and package my program that I get compilation errors. Note: I have all my .java files residing within a directory named brainbox, and want to place the relevant class files inside a directory named vzapusers. javac -d ~/brainbox/myclassfiles/vzapusers Program1.java This step works, and moves my class files to the correct directory. Although, now I don't exactly know how to run the program? I have been trying a variation of: java Program1 // This gives me Exception in thread "main" java.lang.NoClassDefFoundError Perhaps its because I have packaged my program like so.. package games.programA; Where have I gone wrong? and I don't really want to override my default classpath. Is there a way that I could just manipulate the JVM to allow me to run this file without changing my environment variables? This is probably such a simple issue? Any help would be much appreciated!! Kind Regards duvandekoker |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.