How to use my own packages?
How can I import my own packages into .java files from different packages without setting the CLASSPATH variable and only specifying javac -claspath <path>?
i.e. I have a folder Program and in this folder I have bin and src folders. Where should I put my package files? I tried and put them into src/com/mydomainname/mypackage and then I created another file, in the /src directory, Main.java in which I added statement "import com.mydomainname.mypackage.*;"
Then, when compiling from my Program directory, I used "javac Main.java -classpath /src" and it didn't work.
How can I make this work? What's the usual place to put your own packages in?