简体   繁体   中英

How to add libraries to Netbeans

I'm a beginner trying to figure out libraries. I've read through many previous questions on how to do this, but the answers are not helping me. Here is my current situation:

import src.main.java.org.reflections.Reflections;

public class HelpMe {

    Reflections reflections = new Reflections("my.project.prefix");
}

Here are my project run-time libraries:

在此处输入图片说明

And here is the reflections package:

在此处输入图片说明

I am getting these errors:

error: package src.main.java.org.reflections does not exist

error: cannot find symbol Reflections reflections = new Reflections("my.project.prefix");
symbol: class Reflections

You need to include the library in your project properties.

  • Right Click on you project and choose "Properties"
  • Navigate to Libraries and add it.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM