Top community members
All Questions Ask Question

Welcome to Dirask IT community! ❤ 💻
We are community of people that helps each other.

If you think you have some skills to help others

help someone and become a part of our community - List Q & A

Error:(9, 39) java: cannot find symbol symbol: class, location: package

1 answers
1 points

This morning I made git pull on my java project and I run into this error:

Error:(9, 39) java: cannot find symbol
  symbol:   class UserDto
  location: package com.tests.dto

It seems that one of my colleague made some changes in the project and now it doesn't work.
But when I asked everyone else, they said it works. What am I doing wrong?

1 answers
2 points

Quick solution:
Just delete target directory and compile the entire project

It works 95% of the times when I see this error.

Steps:

  1. Delete entire target directory
  2. Compile entire project
  3. Run the project

Screenshot from Intellij Idea and maven module:

0 comments Add comment

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey 👋
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more