Skip to Main Content

Java APIs


For appeals, questions and feedback, please email

Cannot find symbol error

User_5CQEAJul 8 2022

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 {
String username;
String password;
public boolean login(String user,String pass) throws RemoteException{
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);
if (user.equals(username) && pass.equals(password))
return true;

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";

Post Details
Added on Jul 8 2022
1 comment