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 two files
j.java: contains a test class with Main
DotNetAppConfigFileMgr.java: contains a prototype Xml DOM wrapper for a project.
I compile using:
javac *.java -classpath C:\_Tmp\Java\Xerces-J-bin.2.9.1.zip
I run using:
java -classpath .;C:\_Tmp\Java\Xerces-J-bin.2.9.1.zip j
In DotNetAppConfigFileMgr.java, if I add the following first line: "package MyPackage", and in j.java I add "import MyPackage.*", it still compiles but does not run, and gives a class not found error. Am I missing an option when I start "java" ?