2021年3月26日星期五

I can't import custom jar files to NetBeans project

I'm a learner in Coursera learning Java. They provide us with some libraries to help in learning, and they work on BlueJ, but I love NetBeans, so I tried to add these jar files to it. I did the following.

  1. Create new project
  2. Go to tools>libraries
  3. Add a new section called "Coursera"
  4. Add a jar files in it
  5. Go to the main class
  6. Import some classes & add methods to test, but as you can see in the screenshot below, it gives me the error "package does not exist". What is wrong?

This is the screenshot from NetBeans:

NetBeans screenshot

https://i.ibb.co/4Kv6Kd1/Screenshot-20210323-163156.png

These are the jar files:

https://www.dukelearntoprogram.com/downloads/archives/courserajava.jar

https://www.dukelearntoprogram.com/downloads/archives/apache-csv.jar

I'm using NetBeans 12.3 on Archlinux.

https://stackoverflow.com/questions/66767625/i-cant-import-custom-jar-files-to-netbeans-project March 24, 2021 at 12:49AM

没有评论:

发表评论