Hi all, hope your well.
I'll give a little groundwork first:
I have a file called GreetingsUniverse.java in TEST\com\scjaexam\tutorial
Now, if my current directory is the tutorial directory I can run the .java file by typing javac -d . GreetingsUniverse.java and it compiles fine.
My question is: If my current directory is the TEST directory. What command do I type to run the GreetingsUniverse.java file?
javac -d com\scjaexam\tutorial\GreetingsUniverse.java gives the error javac: "not a directory" - (this I do not understand)
javac -cp com\scjaexam\tutorial\ gives the error javac: "no source files" - (I understand the sentence, but I do not understand why it's saying it)
Is anyone able to answer the question above and elaborate on anything they think I should know. Or any places online that I can seek tutorials on the matter - doesn't matter how in depth or how long, time is not important knowledge is important.
Thank you in advance to any helpers, much appreciated.
SuperMagicLunchBox.