This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Hello I wrote a porgram at the beginning of a class I have package mypackage: Bit it gives me an error incorrect path. Why is that?
posted 14 years ago
Hi Mike, When you place a package statement inside a *.java file the file must be placed into a subdirectory of that same name when you want to run it. Then when you run it you should type: java mypackage.className Regards, Manfred.