I try to import stdlib.jar in my project by terminal. The procedure is like this:
- Move stdlib.jar to the folder "bin";
- Add
import bin.stdlib.*
in the main class which residences in folder "src" and saved; - In terminal try
src> javac -cp '../bin/:stdlib.jar' MyClass.java
but failed to compile with the reason "package bin.stdlib does not exist". There are indeed many answers related to this issue online but I still cannot figure it out. Any advice is welcomed.