Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8838367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:58:34+00:00 2026-06-14T09:58:34+00:00

When I try to debug simple java code by stepping over each line, I

  • 0

When I try to debug simple java code by stepping over each line, I can debug it successfully. But if I debug it by stepping into each line, I end up getting “Source Not found.”

import java.util.*;
    public class LocalClass {
        public static void main(String[] args) {

            System.out.println("Hello ! ");
            Scanner scan = new Scanner(System.in);
            String original = scan.next();
            } 
    }

While debugging, I get the error in line 5 – Scanner scan = new Scanner(System.in);
The suspended main Thread information shows “FileNotFoundException”

Note: After surfing through the Eclipse debugging related questions, I edited the source lookup path to point to my source code, but still chances of finding the solution ended in vain.

Can someone explain the reason for this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:58:36+00:00Added an answer on June 14, 2026 at 9:58 am

    My initial thoughts were that you may not have installed the source code when you installed the JDK – or whatever JRE Eclipse happens to be using.

    I knew that I hadn’t installed source with my JDK, so I tested the code you included and recreated exactly the same error as you explain.

    I managed to fix this for myself by:

    1. Changing the JDK installation to include source (I used the ‘Change’ option in Add/Remove Programs).

    2. I removed and re-added the JDK in Eclipse (Window > Preferences > Java > Installed JREs) this automatically attached the now included source correctly. I found the easiest way to re-add the JDK was to use search, and navigate to the correct folder (e.g. C:\Program Files\Java\jdk1.7.0_09). Make sure this newly re-added JRE is the selected default for Eclipse to use.

    Step 2 may not actually be necessary. I have multiple JREs and got slightly mixed up at one point.

    This fixed the problem for me. If it doesn’t fix it for you, I would refer you to the (long but not accepted) answer here: Eclipse java debugging: source not found

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a simple Java program to send mail, but am getting errors.
i try to debug a windows gadget. Just-In-Time debugging fires up and i can
In WEKA, when I try to debug the code with an instance that has
Try this code - import java.io.StringReader; public class StringReaderTest { public static void main(String[]
I am trying to debug a simple Java application on my machine using Eclipse
I'm having two errors everytime I try to debug a simple project in Visual
I try to develope a simple Broadcastreceiver. Here's my code: public class MyClass extends
This is shown when I try to debug my code with Eclipse: I then
I'm writing a simple Android application. I changed the Java EE perspective to debug
Possible Duplicate: How can I debug applications under Java Web Start (JNLP)? I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.