Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6088501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:59:32+00:00 2026-05-23T11:59:32+00:00

In Eclipse once I put a library on the class path, I can use

  • 0

In Eclipse once I put a library on the class path, I can use its classes and then right click on the Class name and Eclipse gives suggestions of various classes with matching names that can be imported.

I wish to do a similar thing in NetBeans, so I mouseover or select the classname and click alt+enter as is suggested. But the only options are for creating the class within the application. The library is opencsv – which I have used without trouble in Eclipse (but I want to try NetBeans).

This is my code (I want to import the classes for CSVReader and FileReader) … but it just gives me the option to create my own):

CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
    String [] nextLine;
    while ((nextLine = reader.readNext()) != null) {
        // nextLine[] is an array of values from the line
        System.out.println(nextLine[0] + nextLine[1] + "etc...");
}

I don’t want to have to manually write import statements … I this what NetBeans expects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:59:32+00:00Added an answer on May 23, 2026 at 11:59 am

    You have to use the menu option “Source -> Fix imports” it will generate all missing imports for your

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I once wrote this line in a Java class. This compiled fine in Eclipse
I mostly use SlickEdit and eclipse while working on embedded systems. Once in a
Eclipse as a option to create a class automatically once a undefined Object is
is there some way to terminate all (Java) applications launched with Eclipse at once?
Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not
Eclipse was working fine just a day ago. But today, when I click the
Here's a use case: I have a desktop application (built using Eclipse RCP) which
I have an Eclipse project with many unit tests written in Groovy. I can
Once you have a bunch (20+) source windows open in Eclipse is there way
super easy question that i can't find the answer to on eclipse's website.... i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.