Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Problem with debugging and running (Eclipse)

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem with debugging and running (Eclipse)

    Hi everyone! I'm new to the forum and i'm just starting to get into java for real. I recently reinstalled my IDE (Eclipse) and all SDK, JRE, JDK etc. cuz of a problem with running/debugging android apps in my environment. Now i got a fresh copy of Eclipse (Luna) and all the tools are freshly installed (and the running/debugging problem with android is better).

    But, i still have one problem that i believe is an easy fix if you got the answer.

    Every time i wanna debug or run something, i have to right-click my project -> run/debug as -> then specify what project i want to debug or run. Earlier i could just press run/debug in the toolbar and it would automatically choose the project or class i was working with.

    I'v been searching some for a way to fix this but dont got any "right on" answers.

    If some kindhearted soul would help me fix this it would me much appreciated!

    Thanks in advance!

    Wgw// ArnOLF

    Edit: I solved this problem. It was a problem with linkin main method of my projects with the debugger. Thanks for your time!
    Last edited by ArnOLF; August 5th, 2014 at 04:41 AM. Reason: SOLVED


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Problem with debugging and running (Eclipse)

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

  3. #3
    Junior Member
    Join Date
    Aug 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Problem with debugging and running (Eclipse)

    Thanks. I'll have that in mind
    Do you have any good tips on my problem with eclipse?

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Problem with debugging and running (Eclipse)

    Every time i wanna debug or run something . . .
    Every time, or just the first time for each?

  5. #5
    Junior Member
    Join Date
    Aug 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Problem with debugging and running (Eclipse)

    Its every time. Then if i have debugged the projekt in that way i can debugg it via the toolbar. But if i switch project to run another project the run and debug in the toolbar is still set on the project i last debugged. Then i have to go into -> debug as -> create new -> select project -> select main file (witch sometimes is missing though i have a
    public static void main(String[] arg) {}
    in that file) then i can run the application. And as i explained in the () the project sometimes doesnt run cuz "main method missing, please insert public static void main(String arg) {}". But thats probably a whole different story

    Edit: Dont mind the second part. I fixed that and it was an embarrassing mistake
    Last edited by ArnOLF; August 4th, 2014 at 01:12 PM.

Similar Threads

  1. Running eclipse with command line?????
    By bluescreenofdeath in forum Java IDEs
    Replies: 1
    Last Post: July 26th, 2014, 04:08 PM
  2. Replies: 7
    Last Post: February 18th, 2014, 06:33 AM
  3. Problem with running, testing code in Eclipse
    By Micheal212 in forum Java IDEs
    Replies: 7
    Last Post: February 1st, 2014, 02:31 PM
  4. Replies: 21
    Last Post: June 12th, 2013, 11:33 AM
  5. New to Java having problem debugging my code.
    By OHJava in forum What's Wrong With My Code?
    Replies: 8
    Last Post: January 9th, 2013, 01:05 PM

Tags for this Thread