Im working ina proyect with Eclipse IDE and, when I want to use a class imported froma already maked JAR, the ide put the import and all relacionated with the red underline and say “the type com.proyect.entity.Alumno is not accessible”
The code is this:
package com.front.dao;
import com.proyect.entity.Alumno;
public interface AlumnoDao extends Generic1 <Alumno, String>{
int funAgregarAlumno(Alumno instancia) throws Exception;
}
the jar code:
package com.proyect.entity;
import java.io.Serializable;
import java.util.Date;
public class Alumno implements Serializable{
private static final long serialVersionUID = 6517861304485434633L;
private Integer matricula;
private String nombres;
private String apellidoPaterno;
private String apellidoMaterno;
private String activo;
private String creadoPor;
private String modificadoPor;
private Date fechaHoraCreacion;
private Date fechaHoraModificacion;
public Integer getMatricula() {
return matricula;
}
public void setMatricula(Integer matricula) {
this.matricula = matricula;
}
public String getNombres() {
return nombres;
}
public void setNombres(String nombres) {
this.nombres = nombres;
}
public String getApellidoPaterno() {
return apellidoPaterno;
}
public void setApellidoPaterno(String apellidoPaterno) {
this.apellidoPaterno = apellidoPaterno;
}
public String getApellidoMaterno() {
return apellidoMaterno;
}
public void setApellidoMaterno(String apellidoMaterno) {
this.apellidoMaterno = apellidoMaterno;
}
public String getActivo() {
return activo;
}
public void setActivo(String activo) {
this.activo = activo;
}
public String getCreadoPor() {
return creadoPor;
}
public void setCreadoPor(String creadoPor) {
this.creadoPor = creadoPor;
}
public String getModificadoPor() {
return modificadoPor;
}
public void setModificadoPor(String modificadoPor) {
this.modificadoPor = modificadoPor;
}
public Date getFechaHoraCreacion() {
return fechaHoraCreacion;
}
public void setFechaHoraCreacion(Date fechaHoraCreacion) {
this.fechaHoraCreacion = fechaHoraCreacion;
}
public Date getFechaHoraModificacion() {
return fechaHoraModificacion;
}
public void setFechaHoraModificacion(Date fechaHoraModificacion) {
this.fechaHoraModificacion = fechaHoraModificacion;
}
}
Some help?
I try to ajust the module-info.java, and also I already check that the jar is active in the Built Path/Libreries/Modulepath. The Jar is in a lib folder
JPedro_01 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.