Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I've been using the Eclipse references (Ctrl+shift+G) for sometime now. I notice that Eclipse misses finding some references sometimes. Is there something I must configure to get this working correctly?
Your problem may be related to issues concerning Eclipse's CODAN indexer. Try to rebuild the index by clicking [Project Explorer] > Index > Rebuild. Goto Eclipse > Preferences > C/C++ > Indexer and check if your indexer is setup correctly...
I just sorted out a similar-sounding problem.
In my case I was mistakenly ending up with a project->JAR dependency rather than a project->project dependency.
This involved a specialized import of a set of Java-based projects, with logic to
set up a project->project dependency if possible and a project->JAR dependency if
the source was unavailable.
(This wasn't using Maven but from what I know of Maven<->Eclipse integration I could
imagine this happening in a similar case).
So typically I get a project->project dependency but I had messed something up in my filesystem so I ended up with a project->JAR dependency without realizing it...and Ctrl+Shift+G stopped working.
This happened to me working with a Java/Maven project just recently as well. The version of Eclipse was Neon.3 Release (4.6.3).
Rebuilding the projects using Project -> Clean... did not help. The solution was to close and then reopen the projects. After that, the call hierarchy was correctly calculated again.
There's a long standing open bug for this issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=108749
In my case I have imported two maven projects to eclipse. One was depending on another and references in dependent project were not found. I have right clicked on dependent project choose preferences->java build path then removed dependency from Libraries tab and added same dependency to projects path. Of course I had to have both projects in workspace.
Ensure that your project is of the type expected. My similar symptom turned out to be because the eclipse project had been recently re-imported as a general project. Once I realized that and converted it to a C/C++ project, find references again worked as expected.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
While creating a Maven Project in Eclipse version 2020-06, I'm facing three problems:-
Not getting the Maven Project option under File->New, but it is present under Project Section. No Maven Project Option Present in File->New
Not getting any .java file under src/main/java.
No .java file under src/main/java
Not getting any custom Archetype.
No custom Archetype present
NOTE:- I am using JDK 1.8 and JRE 1.8 in Windows 7.
How to add all this for the Maven Project? Please suggest.
It just works like this. What is wrong with it?
Just add your .java file. Right click -> new -> class/interface/whatever
I think you have to wait. In the bottom-right corner we can see "Retrieving archetypes". It can take a few minutes to download everything
You can use 'Window > Perspective > Customize Perspective' to customize the current perspective. Choose 'Shortcuts' and then 'Maven > Maven Project' to add that to 'File > New'.
It is up to you to create new Java files.
So, I believe I am missing something with Intellij.
Sometimes I am able to debug my code, other times I am not.
I am not sure why? I know I am using Gradle to pull my dependencies and to run through some tasks in my build.gradle file. Is that building my project in a different directory than what intellij is looking for when debugging locally?
My Question is How can I consistently use the Run, Debugg tools in intellij and gradle at the same time?
Btw: I followed these links to set my project to auto-compile:
https://www.jetbrains.com/help/idea/compiler.html
and
https://www.jetbrains.com/help/idea/problems-tool-window.html
But I find IntelliJ's site to be really confusing and outdated in lots of places.
So I closed out of the project and reimported the project, making sure to overwrite the .iml file.
That seemed to work. Hope this helped somebody. I am still confused why I had to do this though feel free to answer if you have any clues.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I had to configure a 'JavaMysqlConnectorApp' project to JPA project on Eclipse.
But when I revert changes manually to back earlier project on Eclipse, it shows error icon on project explorer.
Please find two image links where shows detail about problem.
Here is error icon on project
Eclipse bottom 'problem' tab shows why error icon showing on Project
How to convert jpa project to normal java project(without JPA) on Eclipse?
Thanks in advance to all.
Ok I find the way...
Followed the following steps to back java project from JPA project :
click to the project properties
find the 'Project Facets' bellow 'Maven' on left side of the properties window.
unchecked the 'JPA' on project facet ( I don't need JPA in mine project anymore )
save all changes
Then cleaning project and find no more error icon on mine project.
This link shows you the lucid view !
Cheers. Thanks to all for your valuable suggestion.
One click away.
On the top right corner you can easily choose perspectives, just choose any other than JPA.
I'm not in front of Eclipse now, but if i recall correctly there should also be a context menu on project right click, named "JavaEE Tools" where you can permanently turn off JPA on this project.
This question already has answers here:
Eclipse error: "The import XXX cannot be resolved"
(47 answers)
Closed 6 years ago.
Though I have all my source in proper packages.It couldn't find at the time of Building Project.Normally it shows links everything.But at the time of Build Project or Autobuild while directly running project.
The import ecnet.rd.config cannot be resolved
like it shows for all the internal imports.But external imports like imports from JAR files are working.
P.S :
My Eclipse latestly crashed but it was working well after that, Once again this kind of things are happening.
Please help to find the way to solve this.
In my experience, it is usual with Eclipse to have the build messed up. Make sure Build automatically is checked and Clean. If it doesn't work, restart Eclipse and do again.
Also as Tech Junkie comments below, try also Clean all projects.
I've seen this happen and another approach to take which is similar to m0skit0 solution (if you are using Eclipse) is to right click on the project, select maven, select update project, make sure clean projects and refresh workspace are checked, and hit ok.
After hours of struggle, creating a new Eclipse workspace, reimporting the projects and resetting up the same tomcat instance worked.
Probably the eclipse settings got messed up, and the deploy wasn't being done correctly anymore.
I have setup a dynamic web project in eclipse with JSF in which I trust on code from another project (framework). Therefore, I added the framework project to the build path of the website project.
So far so good, Eclipse recognises every class and the project builds without errors.
Problem is though that when I do "run on server" to test it on tomcat 6.0.24, the application fails. I get ClassNotFoundException on every class from the framework project.
Is this a bug or is some specific configuration necessary for this?
I was googling and ended up here for a similar problem. I wanted to make a note for others about the current situation on Eclipse Indigo, as the terminology has changed a bit by the looks of things.
On your project properties, do a filter/search for "deployment assembly".
It is then straightforward to add a project dependency. Job Done.
Thanks to Alexander's edited answer which led me to this.
Did you check Warnings in Problems view?
Do you see Classpath entry /your/framework.jar will not be exported or published. Runtime ClassNotFoundExceptions may result warning?
If you do.
Right-Click the warning and choose Quick Fix.
Choose "Mark the associated entry as publish/export dependency." from Select a Fix box.
Click Finish.
EDIT
Now, I think I understand where disconnect is. I think now I remember the joy of figuring this out for the first time.
In your website project ( I will speculate here , but I guess you've created it as a Dynamic Web Project ):
Open project properties
Select Java EE Module Dependencies panel
Check your framework project in JAR/Module column. Beware, that for reasons not known to me, the list is not sorted ( and is not sortable ) in any particular order, so you may need to search for your project reference there.
The results of this operation will be written to /website-project/.settings/org.eclipse.wst.common.component file. Put this file into your source control.