eclipse import cannot be resolved [closed] - java

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 have an existing Java project and I open it in eclipse.
Now I add a new package in it, and I create java files and write code in the new package.
However, when I try to import class from other existing packages, I failed.
Why?

Almost no info but I think that I know what happens:
Must be that the previous project's code is not in a source folder, instead I think that it's on a normal folder...
Look at Project -> Properties -> Java Build Path -> Source
A parent folder(s) of yoursource code folder(s) must be there.
If whit so little info I've help you to fix your problem you owe me a pizza.

Related

jadx doesn't show classes when decompiling apk file [closed]

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 days ago.
Improve this question
When I decompile a apk file via jadx-gui (command: jadx-gui --show-bad-code "apk file name.apk") it opens the GUI and I can see lots of classes, but when I open the path for the code (like com.JustLutz.App) I only see a R and a BuildConfig Class. But in the tutorial there are plenty other class and he select all classes besides of these two classes.
I googled and found no solution. I also tried to perform the command without the --show-bad-code parameter

How to generate files in source folder using Bazel? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm trying to use VS Code to write Java programs which are built Bazel. Most of vs code extensions don't know about Bazel. Therefore code complete works only for the .java files understand the same folder.
I came up.with this idea of generating Eclipse's .project and .classpath out of Bazel java_* targets. I manually created these files and code completion worked perfectly.
So now the question boils down to: how can I automatically generate .project and .classpath files in the same diretore of BUILD file?
Sounds like they already decided not support it: https://github.com/bazelbuild/bazel/issues/3376

Eclipse i can not open folder structure [closed]

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 7 years ago.
Improve this question
In window Package Explorer I haven't any project(In workspace folder a have a few), I'm trying refresh view, but it's doesn't work, I dont know also how to open a whole project structure from this folder.
Create a new project called exactly the same name as a project you already have. Maybe there is an easier way to do it, but this works just fine if you don't have 625520 projects.

The file does not exist [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I was working on my project last night, I saved it as usual and closed down eclipse. I woke up today to continue with it as it's in for next week and this happens :
I have no idea what to do. Is there any possibility I can get my classes back?
thanks =/
Make sure the project is inside the eclipse workspace folder
Delete the project from eclipse (DON'T SELECT "DELETE PROJECT CONTENTS ON DISK")
Restart eclipse
Import the project
Restarted Eclipse ? Seems like it crashed. Maybe you copy the folder of the project and import it as a new project.

Create file and add to a eclipse java project programmatically [closed]

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 9 years ago.
Improve this question
What I have searched and trying to do is create and add files to a target project automatically from my program, any idea on how to do it? Because so far I can create files and change whatever is necessary but can't see a way to add those to my other project.
You should just be able to write it to the java project directory. If it looks like it didn't work, try pressing Right Click > Refresh on your java project in eclipse.

Categories