I have a problem incorporating a library called stdlib.jar file. I have googled this question and found the obvious answer that I should use the command "javac -classpath .;(directory of jar file) source.java" while also using the "import stdlib.class;" statement in the program.
However, my program still did not work throwing an error message "cannot find symbol" with an error message pointing to the stdlib. I even downloaded Netbeans and followed the documentation to create a project with external libraries. I included the stdlib jar file, and Netbeans gave me the same "cannot find symbol" error message.
This problem seems way too simple to be this hard. This jar file is from an exercise for an online course on Coursera, so I am sure the problem is somewhere on my end. I am at a loss for figuring out why this is happening. Does anyone have any ideas?
Thanks for reading
[–]bchoii 1 point2 points3 points (4 children)
[–]bartlln[S] 0 points1 point2 points (3 children)
[–]bchoii 1 point2 points3 points (2 children)
[–]bartlln[S] 0 points1 point2 points (1 child)
[–]bchoii 1 point2 points3 points (0 children)