i have this code and when i compile it using javac it show cannot fin symbol error on the interface name below is the code and attached is the error. please i need the solution for these error.
java error.jpg (13.93 KB)package JobPackage;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.*;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author pc
*/
public class JobImplement extends UnicastRemoteObject implements JobInterface {
public JobImplement() throws Exception {
super();
}
String username;
String password;
public boolean login(String user,String pass) throws RemoteException{
try{
Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/recruitment_db","root","");
Statement stmt = (Statement) conn.createStatement();
String query = "select users from vacancy where id = 1";
ResultSet rs = stmt.executeQuery(query);
while(rs.next()){
rs.getString("usernmae");
rs.getString("password");
if (user.equals(username) && pass.equals(password))
return true;
else
return false;
}
}
catch(Exception e){}
return false;
}
public boolean register(String firstname,String lastname, String sex, String fieldofstudy, float gpa,int age) throws RemoteException{
return true;
}
public boolean recrregister(String companyname,String comapanylocation, String username, String password) throws RemoteException{
return true;
}
public String search(String searchtext) throws RemoteException{
return "Done";
}
public void apply(String jobid, String applyfullname) throws RemoteException{
}
public void post(String jobtitle, String description) throws RemoteException{
}
public String showapplied(String jobtitle, String applyfullname) throws RemoteException
{
return "Done";
}
}