I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem?
PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all.
I had the same issue and fixed it with the old "Invalidate Caches and Restart"
Open the source code, right-click and hit run using the option run "filename.java".
IntelliJ will make the configuration for you and then you can click the run button after the configuration is made by the IDE.
Same thing for debug configuration.
This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited completely. Check your running processes for java applications and see if it exists.
Try to start the program again via Run in the menu bar.
Alt+Shift+F10 solved my problem.
I guess for me disabling windows instant replay fixed the issue.
Restarting IntelliJ and re-opening the project resolved the issue for me.
I think it the maven/gradle plugin that failed to load.
For me I closed the project, open another previous project and the run button appeared.Then I closed it and open my new project,I got a prompt bottom right that says "load maven script" I clicked it and it was resolved.
Change the jdk version to 11 or any lts ..
Steps :
file> Project Structure
Edit SDK [enter image description here][1]
Click on the below link to see the image for editing SDK :
[1]: https://i.stack.imgur.com/3IyXA.jpg
I had the exact same thing using IDEA 2021.3.3 ultimate edition. My "Run Hello (Shift+F10)" button was greyed out, so I right clicked the source code (any whitespace in the editor worked fine), and there was an option in the menu called "Run Hello.main() (Ctrl+Shift+F10)", which WAS clickable. I clicked it, then it ran, after which the first button was no longer greyed out.
When I install the android SDK from here http://developer.android.com/sdk/index.html
my file at the time was like adt-bundle-windows-x86_64-20140624.zip. When I ran it, the eclipse looked very different. The loading screen showed Juno instead of the android loading screen. The icon on the bottom task toolbar (windows 7) was a unknown program icon and not the eclipse icon. When it opened, it looks like this image below.
If I try to create a new android activity file, after I click finish, I expect the file to be created, but nothing happens. Also if I go to the xml layout file and go to the gui explorer, I get a bunch of errors saying some widgets didn't load. And then it doesn't show the preview.
Some things work like intellisense and being able to run app on phone.
Im not sure if this has to do with corrupted preferences, so I deleted the files in here
Eclipse Workspace\.metadata\.plugins\org.eclipse.core.runtime, but it didn't help.
Does anyone know whats wrong and how to fix it?
Thanks.
I also installed the same version adt-bundle-windows-x86_64-20140624.zip last week. It worked fine for the most part. The different icon and splash screen for Eclipse is to be expected. There were some oddities, like the link to SDK manager still pointed to my previous ADT installation.
in eclipse ,i accidentally minimized the console . so tried to open the "window" option which is next to the run option in the tool bar. "window" option is not getting opened.none of those options are working !not able to figure out the problem !
I think I had the same problem on Ubuntu 13.10. None of the menus of eclipse were working, even after restart (of both OS and eclipse).
To resolve this, I ended up installing the gnome-fallback-session package as described in the link below:
How To Install Gnome Classic
I have installed the CodePro AnalytiX 3.7 plugin in my Eclipse Juno.
From then in any of the Java TestCase classes the keyboard shortcuts of the cut/copy/paste are not working.
Also the delete is not happening when I press the "delete" button on the keyboard.
The same works fine if I right click and select the operation from the menu.
In normal Java classes it works fine.
Please help.
I have faced the same problem, as #Pragnani said the reason behind this is because of notepad. my notepad becomes not responding that's why copy paste not worked for me....when I restart my system. every thing goes well..
I have exported a SWT project from eclipse under Linux and tried to import it under Windows. So far everything works fine except that I seem to have lost the "SWT nature" of the project. Running the project with the SWT gui works fine but when I try to edit the GUI source, I don't have the Source/Design/Bindings tabs below my source window and cannot do any graphical editing. Does anyone know how to fix this?
I guess you are using WindowBuilder. If this is the case, use the following:
Right click class file → Open With → WindowBuilder Editor