Either nobody in the world from the myriad of forums and discussion boards I have been to knows how to do this, (which seems unlikely, as this does not seem a complicated procedure) or none of those people know how to answer a question concisely and in a straightforward way.
I want any answer to be in very simple step-by-step instruction format. I am asking you to treat me like I am stupid, please.
1. I have a file called 'Encryptor.java' that I made.
2. I put 'Encryptor.java' into a directory/folder called 'tools'
3. I have another file called 'encryptorTest.java'
4. 'encryptorTest.java' has a line of code 'import tools.Encryptor;'
5. Later in the file it says, ' Encryptor e1 = new Encryptor()'. This line also gives me an error.
The preceding line gives an error upon compilation. How do I modify this program so that it runs as intended, allowing the programmer to declare a variable of type 'Encryptor' in the file 'encryptorTest' with the name 'e1'?
Along with your answer, please include:
- The directory structure of the files (including sibling files, symbolic links, aliases, invisible file(s), parent directory, 5\five or six ancestor directories, all children directories.
- What the classpath should be, where/when to change it, (in a file with a certain name and/or in a certain location OR as a terminal command such as 'set CLASSPATH'
*ALSO*
Please make sure the method is reproducible, and not something that will only work once, and in one place for reasons including but not limited to: the parent directory being on the default class path, planetary alignment, names that happen to mimic/be similar to names that are set up by default, etc...
Thank You