I'm doing a college project, and every class I put to inherit from the Modelo
class, I get those errors.
/home/tavz-correia/NetBeansProjects/exercicio01/AccessoriesForVehicles/nbproject/build-impl.xml:930: The following error occurred while executing this line:
/home/tavz-correia/NetBeansProjects/exercicio01/AccessoriesForVehicles/nbproject/build-impl.xml:270: Compile failed; see the compiler error output for details.
Class Modelo.java
:
package acessoriosveiculos;
import java.io.FileReader;
import java.util.List;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
/**
*
* @author tavz-correia
*/
public class Modelo {
private List<String> modelos;
public Modelo() throws Exception{
List<String> lista = ler("/home/tavz-correia/NetBeansProjects/exercicio01/AcessoriosVeiculos/src/acessoriosveiculos/ObjetosSerializados/Modelos.ser");
this.setModelos(lista);
}
public List<String> getModelos() {
return modelos;
}
public void setModelos(List<String> modelo) {
this.modelos = modelo;
}
@SuppressWarnings("unchecked")
public List<String> ler(String caminho) throws Exception {
JSONParser parser = new JSONParser();
FileReader arquivo = new FileReader("/home/tavz-correia/NetBeansProjects/exercicio01/AcessoriosVeiculos/src/acessoriosveiculos/ObjetosSerializados/Modelos.json");
JSONObject jsonObject = (JSONObject) parser.parse(arquivo);
List<String> lista = (List<String>) jsonObject.get("modelos");
return lista;
}
}
Could anyone help me?