Intellij still can't use classes from a dependent library

Answered

Hello there I'm having a problem with getting intellij to use the classes from a library that I linked to it. I am trying to use the function StdOut.println() but the program says that it cannot resolve the symbol StdOut. I have gone into Project Structure and added a library that includes the class, stdlib.jar, and I have also added it to the module dependcy of the whole project but intellij still doesn't know where to find the class. I have tried a bunch of different methods and even reattempted this on two different computers now so I really dunno how to link the library for use.

0
5 comments

Please share a sample project where the issue could be reproduced. 

0
Avatar
Permanently deleted user

I have a git hub repo setup with some code inside the the folder named Chapter 1, with the project named 1.5 IO. The library is in the folder named Training Libraries and is called stdlib.jar. Pick any java class in the project to run as they all this same issue.

https://github.com/rubdul/Java-Training.git

0
Avatar
Permanently deleted user

Thanks for the help but I'm afraid that it still can not resolve the symbol when I compile it. I'm on windows and using SDK "open JDK 15" so I'm not really sure why it can't access the classpath. I've even rebuilt the project just to be safe. I compiled it using the command 

javac StdTest.java

I'll see if I can upload a video soon enough detailing everything I'm doing.

0

Please share a similar screencast 

0

Please sign in to leave a comment.