We now use org.jabref as a prefix instead of the old net.sf.jabref. Thus, for example BibEntry is located in org.jabref.model.entry. If you still can’t find a class, just type its name in https://github.com/JabRef/jabref/find/master.
Out of interest: what kind of program do you try to write/compile?
Hello, Tobias, thank you so much for help. Unfortunely, I still can’t find these class and visited the link that you sended me. For example, for Importer package the path showed is jabref/src/main/java/org/jabref/logic/importer/Importer.java. I changed “/” for “.” and the problem continuos.
public class ImportarReferencias extends Importer {
public String getName() {
return "Simple CSV Importer";
}
public FileExtensions getExtensions() {
return FileExtensions.TXT;
}
public String getDescription() {
return "Imports CSV files, where every field is separated by a semicolon.";
}
public boolean isRecognizedFormat(BufferedReader reader) {
return true; // this is discouraged except for demonstration purposes
}
public ParserResult importDatabase(BufferedReader input) throws IOException {
List<BibEntry> bibitems = new ArrayList<>();
String line = input.readLine();
while (line != null) {
if (!line.trim().isEmpty()) {
String[] fields = line.split(";");
BibEntry be = new BibEntry();
be.setType(BibtexEntryTypes.TECHREPORT);
be.setField("year", fields[0]);
be.setField("author", fields[1]);
be.setField("title", fields[2]);
bibitems.add(be);
line = input.readLine();
}
}
return new ParserResult(bibitems);
}
If you remove the import statements from your source code and call the auto import function of your IDE, then chances are it will find the classes (assuming they are on your build path).