Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Why is Eclipse's Run button not working?(Clicking the run/debug buttons does nothing)
Why is Eclipse's Run button not working? [message #1411299] Fri, 22 August 2014 23:25 Go to next message
Eclipse GuestFriend
Messages: 93
Registered: February 2013
Location: Vienna
Member
I use Eclipse Luna and everything was working fine until today when I saw this error message while trying to run my Java code:

http://i.stack.imgur.com/l0U4M.png

When I dismissed the message, clicking the run and debug buttons did nothing at all. I restarted Eclipse, but that did nothing.

After trying to find the source of the error, it seems that restarting the whole computer seems to "reset" everything. The first time I open Eclipse after a restart, the run button works fine for one run, but after that first run if I hover the cursor over the run button, I get the above error message and the run button stops working. Strangely, clicking the down arrow next to the run button and selecting my project works all the time, regardless of the error message.

Reinstalling did not fix anything. In fact, the error only occurs when one certain source file is open in the Editor... I tried removing class members one by one and the error only occurs if one specific method is present. This method is pretty long (176 LOC), and everything works fine if I remove at least 70 LOC. Breaking the method up into several helper methods does not help. Has anybody else been having this problem? What could be causing this?

The workspace .log file entry starts with:

!ENTRY org.eclipse.core.jobs 4 2 2014-08-21 10:34:50.212
!MESSAGE An internal error occurred during: "Compute launch button tooltip".
!STACK 0
java.lang.NullPointerException
    at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:124)
    at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2343)
    at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2406)


and continues on with a huge stack trace which ends with:

    at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:240)
    at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager$1$1.run(LaunchingResourceManager.java:142)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Re: Why is Eclipse's Run button not working? [message #1412022 is a reply to message #1411299] Mon, 25 August 2014 05:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29538
Registered: July 2009
Senior Member
Rich,

That sounds odd. Note that when you run something a launcher is created
and Eclipse will also try to compile any necessary code. You might want
to inspect what this launcher looks like and change various settings
(via Run Configurations...). There's also the option in
Window->Preferences->Run/Debug->Launchers... where you could turn of the
"Build (if required)..." option. The description of the symptom makes
it sound like it's having a problem creating an error message for
something its trying to compile. This does sound like JDT bug, if
that's the case, so reporting a bugzilla with a sample that reproduces
the problem (which it sounds like you've kind of isolated) would be very
helpful...

On 23/08/2014 1:25 AM, Rich Williams wrote:
> I use Eclipse Luna and everything was working fine until today when I
> saw this error message while trying to run my Java code:
>
> http://i.stack.imgur.com/l0U4M.png
>
> When I dismissed the message, clicking the run and debug buttons did
> nothing at all. I restarted Eclipse, but that did nothing.
>
> After trying to find the source of the error, it seems that restarting
> the whole computer seems to "reset" everything. The first time I open
> Eclipse after a restart, the run button works fine for one run, but
> after that first run if I hover the cursor over the run button, I get
> the above error message and the run button stops working. Strangely,
> clicking the down arrow next to the run button and selecting my
> project works all the time, regardless of the error message.
>
> Reinstalling did not fix anything. In fact, the error only occurs when
> one certain source file is open in the Editor... I tried removing
> class members one by one and the error only occurs if one specific
> method is present. This method is pretty long (176 LOC), and
> everything works fine if I remove at least 70 LOC. Breaking the method
> up into several helper methods does not help. Has anybody else been
> having this problem? What could be causing this?
>
> The workspace .log file entry starts with:
>
>
> !ENTRY org.eclipse.core.jobs 4 2 2014-08-21 10:34:50.212
> !MESSAGE An internal error occurred during: "Compute launch button
> tooltip".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:124)
> at
> org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2343)
> at
> org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2406)
>
>
> and continues on with a huge stack trace which ends with:
>
>
> at
> org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:240)
> at
> org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager$1$1.run(LaunchingResourceManager.java:142)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
Re: Why is Eclipse's Run button not working? [message #1412295 is a reply to message #1411299] Mon, 25 August 2014 20:00 Go to previous messageGo to next message
Rich Williams is currently offline Rich WilliamsFriend
Messages: 1
Registered: August 2014
Junior Member
Thanks,
Unfortunately, changing the setting didn't fix anything...
I will report it to bugzilla.
Re: Why is Eclipse's Run button not working? [message #1794666 is a reply to message #1411299] Tue, 04 September 2018 16:51 Go to previous messageGo to next message
Ethan Rips is currently offline Ethan RipsFriend
Messages: 2
Registered: September 2018
Junior Member
I'm experiencing exactly the same problem running Eclipse 4.3, except that everything is frozen when I right-click on a TestNG class--I cannot run anything, access the build path, etc.

The error message I get in a popup window is "An internal error occurred during: "Compute launch button tooltip".
java.lang.IllegalArgumentException"

Please see attached error log.
Re: Why is Eclipse's Run button not working? [message #1794669 is a reply to message #1794666] Tue, 04 September 2018 17:27 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3250
Registered: July 2009
Senior Member

The current release is Eclipse 4.8. Please try it on that version instead.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Why is Eclipse's Run button not working? [message #1794745 is a reply to message #1411299] Wed, 05 September 2018 23:42 Go to previous messageGo to next message
Kevin  Gomes is currently offline Kevin GomesFriend
Messages: 1
Registered: September 2018
Junior Member
I am also facing the same issue
Re: Why is Eclipse's Run button not working? [message #1794746 is a reply to message #1794669] Thu, 06 September 2018 00:40 Go to previous message
Ethan Rips is currently offline Ethan RipsFriend
Messages: 2
Registered: September 2018
Junior Member
Nitin--

As per your suggestion, I installed Eclipse 4.8 & migrated my files to it. It's working fine.

Thank you very much!

Ethan
Previous Topic:Coupling Echo DOT to ECLIPSE smarthome KNX binding
Next Topic:How to resolve The superclass "javax.servlet.http.HttpServlet" was not found on the Java B
Goto Forum:
  


Current Time: Wed Sep 19 19:32:01 GMT 2018

Powered by FUDForum. Page generated in 0.03075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top