Search code examples
javawindowsnetbeansopencsv

Package 'au.com.bytecode' does not exist (OpenCSV)


Like the title says. What am I doing wrong? I am using Netbeans, and I created a folder for my 3rd party libraries, right-clicked the Package, navigated:

Properties > Libraries > Add JAR/Folder > OpenCSV-2.3.jar

and then used

import au.com.bytecode.OpenCSV;

class OpenCSV extends au.com.bytecode.OpenCSV {

}

But netbeans throws the above error (or removes the import completely) every time I attempt to fix the imports or compile.

So what am I doing wrong here?

Thanks in advance.


Solution

  • I figured it out. After exploring the JAR with 7Zip, I discovered that 'opencsv' was a folder, not a class; after adding a '.*' to the end of the import line it started working!