An error opening a new project in Eclipse - java

I've downloaded the JDK and Eclipse and started learning how to code in Java.
All of a sudden when I try to open a new project, I get this screen saying "select a wizard" with nothing to select. It won't let me continue.
I uninstalled and re-installed the software (although it worked fine before) but the problem remained.
What can I do?

I may be wrong but ... I'd say it is just a problem of the window size. Try resizing the "New Project" dialog to show its actual content :-)

Use another perspective, for example Java, JAVA EE
go to in menu Window -> Show View -> Other and select the perspective you like
Or access menu File New Project and select one time of the project

You have downloaded a wrong version of Eclipse. You can find the right one here
https://www.eclipse.org/downloads/

Related

Java Windowsbuilder is not showing anything in the design tab and no class name in the main tab

I created a composite visual class and received the "The type org.eclipse.swt.widgets.Composite is not accessible" error. I went into fix project set up and had to manually update the class path. The error has not gone away and the tab doesn't show the class name. The tab is invisible until I hover over it and then an "x" appears to close it.
Additionally half the time when I open the class it doesn't show the option to switch between source and design. If that happens I have to close the workspace and reopen it to get Eclipse to show the source and design tab.
I haven't added any code to the class. It's the skeleton code Eclipse provides when you click "Create New Visual Class -> SWT -> Composite". It's my first time messing with a windows builder. I was really hoping I wouldn't have to manually code all the dimensions in Swing.
Code and error messages
Go to Help -> Eclipse Marketplace -> filter by popular and click install on WindowBuilder. I had a similar error some time ago because I've installed WindowBuiler by installing the separate dependencies instead of click the install button in the marketplace
1.Open Eclipse.
2.Click on Help.
3.Then go in Eclipse Marketplace.
4.Search for Windowbuilder.
5.Click on Installed button in Windowbuilder 1.9.4.
6.Then click on Update.
7.and Proceed further steps.
Reference Link: https://youtu.be/LgOMN3US6Bk

Run button is greyed out - intellij

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.

Netbeans stuck at startup

I was working with a big project on Netbeans.
I attached some source code on third party library and all went smooth.
Today I have the following popup message (I already had seen before obviously):
The file [...] cannot be safely opened with encoding windows-1252. Do you want to continue opening it?
The two buttons, yes and no, are not responsive. If I close the popup with the red cross it does nothing after a 1 sec loading.
Is there a way to "clean" the open file in the netbeans workspace to avoid this error?
SO Windows 8.1, Netbeans 8.0.2
Thanks.
One general solution to this kind of problem can be to clear the netbeans cache.
Quit NetBeans and find the cache folder - mine is at C:\Users\OldCurmudgeon\AppData\Local\NetBeans\Cache. Delete the whole folder - this can take a while as there can be a lot of files in there.
Netbeans will create a new one on next start.
Note that this will slow down netbeans for a while but it won't be long before it is back up to speed again.
Quit NetBeans.
go to the last Project folder then remove the project from the folder.
Open NetBeans.
I had a similar situation which started happening after I added a new project yesterday. I deleted the cache as someone recommended, but was still having the same issue. The solution was to rename the new project so it wouldn't be found. Everything worked splendidly after that.

Project Explorer and workspace issue in Eclipse

i'm running Eclipse luna and my eclipse suddenly showing like this. This happens whenever i see xml in Graphical layout. I don't know what made it to be. Any help would be much better.
1.Open Windows -> Perspective -> Other -> Select Java (default) and open Windows again and select reset perspective
Or
2. Windows -> ResetPersspective
hope you help

What happened to the package explorer in Eclipse?

I have recently been setting up SVN in Eclipse using the Subversive plugin (I am still a bit lost, but that's another issue).
I have been using this guide (http://soledadpenades.com/2008/12/10/add-svn-support-to-your-eclipse-installation/) and finally got it working!
The only problem now is, I can't seem to find the Package Explorer, which is the only explorer I could ever seem to get working how I wanted it to (grouping projects into working sets).
Normally, you get it from going to Window → Show View → Other, and then select it from the list. The only thing is, it's not IN the list of views... leaving me rather confused.
Just to be clear, I was using the package explorer before with no problems. I am running the latest version of everything as I did the auto update.
Any suggestions as to what is wrong here?
I'm guessing you've made it a fast view or minimised it to it. You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something.
If you select it and still can't see it, try Window → Reset Perspective... to restore all views to their defaults.
Alt+Shift+Q worked for me when I was in debug mode.
Weirdly enough, although reset perspective didn't work, menu Window → New window worked! It opened a new window with the perspectives reset.
For me I needed to do two things:
Reinstall the "Eclipse Java development tools" via Help → Install Software → Programming Languages
Delete and recreate the .metadata Eclipse Workspace settings.
Honestly, deleting the .metadata directory is probably sufficient - try that first.
At the top right corner, there is a button called Open Perspective. Click on it, and then Java Default. Everything will come back to normal.
Are you sure you are in the Java perspective?
As views are related to perspectives this could be the problem. The current perspective can be found in the upper right corner.
You may be missing the JDT plugin containing the Package Explorer.
I think you were actually still in the Debug perspective, since that was what did it for me. As someone mentioned above, I had to go to the top right and hit "Java perspective" to get back to my normal views.
Three answerers were helpful, however the only cure was to reinstall Eclipse and install the plugins again. Weird problem, and the exact cause not found. I may have deleted some files somehow, but a reinstall solved it.
On the right top you can select Java or JRE or whatever. That button might got changed. So click the neighbor buttons such as Java or something.
Go to Window -> perspective -> Open Perspective -> Java. Now all the packages in Java will be displayed in the package explorer.

Categories