I have installed Eclipse 2020-12 (4.18.0). And also imported 2 Gradle Java projects.
When I try to debug it, so for that I need to provide Debug configuration as we do in Eclipse.
I clicked on Debug Configuration-> Remote Java Application -> New Configuration->Connect.
But while doing that, there are no projects shown when I click on Browse Button.
How to solve this problem?
Also , when I open any java file , it shows 'J' symbol as shown below. J's outlining is double.
Actually, the project was not able to build itself. And Build Path was not shown under Project Properties. So just go to Project > Properties > Project Facets and tick Java from there.
That's all.
Have you tried to open Package explorer(the thing that shows all the files)?
If not go to
window--> show view --> Package explorer
After change env JAVA_HOME from Java11 to Java8, IntelliJ started to highlight almost every line of code in my project as warning.
In pom.xml I have java 1.8
In module settings I have also java 8
https://i.stack.imgur.com/D7WfA.png
When you encounter strange issues with the IDE there are a couple of things you can do to resolve the issue without removing and reimporting the project.
Using a Build System such as Gradle or Maven you can try to refresh the configuration by opening the "Gradle" or "Maven" view on the right hand side of IntelliJ and clicking Reload
In the top menu, select Build -> Rebuild Project
If all prior attempts fail, navigate to File -> Invalidate Caches and click Invalidate and Restart. It will force IntelliJ to re-index everything.
Those methods usually work.
Every-time I restart my eclipse and I loose all my run configuration, can somebody help me retain them. Please let me know which file needs to be changed to retain them ?
I am using eclipse Juno
You can export them to files. Just use Export -> Run/Debug -> Launch Configurations. You should export them to some directory in your workspace. Eclipse will list those launch configurations automatically under the Run As or Debug As dropdown lists.
Window -> Preferences -> General -> Workspace [-> Startup and Shutdown]
This is how my Eclipse Kepler config looks like, maybe it helps.
Try also playing around General -> Workspace and General -> Startup and Shutdown (including sub categories)
Though this problem is strange but I got a work around to resolve it the configuration files reside in
[eclipse-workspace].metadata.plugins\org.eclipse.debug.core.launches
so to retain them just copy them somewhere and after that just paste at this location and in this way we can share them between workspaces as well
Helpful link for this
Some days ago I had this problem.
https://code.google.com/p/android/issues/detail?id=36174
I still have the problem. Before I Run, i'm doing Project -> Clean.
Now, today, I have another problem. Frustrating.
I downloaded this:
http://code.google.com/p/openjleuleu-android-flashlight/
(Not only this project, I have this problem by two other Projects)
Now in eclipse I'm doing File -> Import -> Android -> Existing Android Code Into Workspace. The "Browse" and then "Copy projects into workspace".
And now I get this error:
openjleuleu Project has no target set. Edit the project properties to set one.
openjleuleu Parser exception for /openjleuleu/AndroidManifest.xml: Premature end of file.
The AndroidManifest.xml is empty.
I have downloaded everything new. (android-sdk, Java, eclipse).
instead of
Now in eclipse I'm doing File -> Import -> Android -> Existing Android Code Into Workspace
try this:
File -> Import -> General -> Existing projects Into Workspace...
I am trying to run my project, but Eclipse is saying I have errors. But there are no errors, just a red cross where the project name is. I have tried deleting the R.java and generating a new one, but that didn't work.
Take a look at
Window → Show View → Problems
or
Window → Show View → Error Log
Based on the error you showed ('footballforum' is missing required Java project: 'ApiDemos'), I would check your build path. Right-click the footballforum project and choose Build Path > Configure Build Path. Make sure ApiDemos is on the projects tab of the build path options.
This happens from time to time in Eclipse. In the "Project" menu there's a "Clean" option, that usually takes care of the problem.
Go to project>clean and select the project which display error from check box and click ok , it will clear the error for you.
Click the tab which display build automatically in the project menu
And if this also does not work than restart the eclipse and try again it will work.
For me, this happens with Maven and Eclipse/STS whenever I update my IDE or import an existing Maven project. Go to the "Problems tab" (Window -> Show View -> Problems) and see what it says. Recently, the problems tab showed Project configuration is not up-to-date ... and suggested that I use Maven to update my project configuration, and this solved the "red X" problem. To do this, in the "Project Explorer" view, trigger the context menu and select Maven -> Update Project, as seen in this screenshot:
If you see the error in problem panel it will say : Description Resource Path Location Type
Project configuration is not up-to-date with pom.xml. Select: Maven->Update Project... from the project context menu or use Quick Fix.
Solution : Right click on project > select : Maven->Update Project
Error gone.
Right Click on Project -> Build Path -> Configure Build Path. Check if Maven Dependencies is there in list, if not then update maven project by
Right Click on Project -> Maven -> Update Project
I had a red X on a folder, but not on any of the files inside it. The only thing that fixed it was clicking and dragging some of the files from the problem folder into another folder, and then performing Maven -> Update Project. I could then drag the files back without the red X returning.
Ensure you have Project | Build Automatically flagged. I ran into this issue too and turning that on fixed the problem.
I just removed all the private libraries in JavaBuildPath and added the jars again.. It worked
I came across the same issue while working on a selenium project(maven). The Project folder and pom.xml were showing red cross symbol. This was coming as i had the test datasheet open. I could remove the error by just closing the datasheet and the never faced the issue again
In my Spring Boot application, I right-clicked on my Application class -> run as -> Java Application -> Proceed(All errors will be cleared)