you should go to the following location:
C:\Documents and Settings\pthornton\My Documents\NetBeansProjects\JavaClassLibra
and then type the following command:
java JavaLibraries.FileDemo c:\RC_address.txt
when you execute a class call all the hierarchy of packages until you reach the desired class and make sure to be in the src folder.
I have not been able to compile the java files outside of the Netbeans IDE. Everything works that can be executed inside of the IDE. I may need to check and set the classpath manually, for these command line executions.
Okay, I am getting IDE lazy. I when back to the directory "C:\Documents and Settings\pthornton\My Documents\NetBeansProjects\JavaClassLibraries\src\JavaLibraries" and ran the "C:\Program Files\Java\jdk1.6.0_11\bin\javac.exe" *.java and compiled all of the classes where I see the new files.
I then reran the following:
>java FileDemo c:\RC_address.txt
Then I encountered a new error set:
C:\Documents and Settings\pthornton\My Documents\NetBeansProjects\JavaClassLibraries\src\JavaLibraries>
Preston Thornton wrote:Okay, thank you. So, I need to specify the right JVM version, because I have 4 version of Java on my system. What is the command line option to point to the correct one?
Well, if you are going to use a particular one, then the best option is to set the PATH environment variable. If you want to do it from the command line, then you'll have to specify the complete path for the compiler and jvm... like...