Java how to import package project into my project with IntelliJ - java

I have in the same folder two others folders :
aaa-ui
bbb-features
I'm using IntelliJ how can I add the package (by import) into my ui project ?

Related

Eclipse imports Maven project with wrong Facets after deletion/ignore of . ide files

In a couple of our new projects, we were committing .settings, .classpath, .project into git. I recently removed all of these from the app and added them to the ignore file.
Now we have a problem, when we import the Maven project it now uses the wrong facets. It also doesn't create one of the .settings files we need.
It imports the facets including me.hibernate 4.1 instead of jpt.jpa
2.1
It also isn't creating this settings file on import any longer either: org.eclipse.jpt.core.prefs.
UPDATE
Interesting scenario:
With a fresh workspace..
If I clone Project A and do a maven import, it imports with the wrong settings. If I delete those settings files and remove the project from the workspace, import it again, it now imports with the correct settings.
If I now clone Project B into that workspace and maven import it, it has the correct settings files.
Now with ANOTHER new workspace I import Project B first and it has the WRONG settings files, just like Project A did. I delete those files and import project B again to the same workspace and now it has the correct settings. Now if I clone project A into that workspace and import it, it has the correct settings files.
So now the question is, what makes Eclipse import the project ONLY the first time?

Intellij Importing Local Project as Library: package does not exist

In Intellij, I have a java project that I would like to use (add it as a dependency) in multiple other java projects.
I've tried "Project Structure >> Libraries" and adding the project. This gives no errors, and even allows auto complete of classes and auto import of the packages from this library.
However, when I run the code it complains "package [...] does not exist." Is there any way to import an existing project?

Trying to import existing Perforce Project in Eclipse

I have imported Perforce Project to my local Drive and then i create workspace in Eclipse Luna, but when i try to import project using File->Import->General->Existing Projects into Workspace then i select root directory of my project. Import wizard scans whole project and then gives me the warning
No projects are found to import. I know the project that i am importing does not have any .classpath and project file. Is there any straight forward way to import the project from Local directory ?
Any help is greatly appreciated.
Import Existing Projects will only import Eclipse projects - which always have a .project file.
To import something else you will first have to create an appropriate project in Eclipse with 'File > New > Project....'. Once you have the project you can use 'File > Import > File System' to import the project files in to your new project.
If it doesn't have .classpath and project files it's not an eclipse project. Import from filesystem.

Importing existing java dynamic web project into Eclipse

How can I import a java web project into Eclipse IDE. in the import dialog there is only a war file upload can be selected. But I couldn't find something like import a project.
So how can I import an existing java web project. Thank You!
You can always import your project that you have made it, previously with Eclipse using the "Existing Project into Workspace" option.
It will directly load all the packages of your Dynamic web Project, related to Eclipse Folder Structure.
And if you want to import a Web Project which is may be made with using other IDE than Eclipse and if it is pure web project than use WAR import, because it is a complete way to import any web project. For this prerequisite is that when Exporting the project you have it in WAR file.
Note:- I have not worked with other IDE than Eclipse that much. So I can say that there may be others who knows how to import project created from other IDE than Eclipse.
Use New -> Java Project -> A window will open -> Uncheck Use Default Location -> Browse to the root of the project -> Finish
You can import existing projects(any type) from below location in Eclipse
File > Import > Existing Project into Workspace
Using that 'existing projects into workspace' you have already highlighted? Assuming you're talking about an existing Eclipse project, and not about a project which has only code. Otherwise you just create a new web project and you copy the source to it.

Issue when import java project

I got a problem when i try to import an java project to Eclipse.
The Eclipse don' build my packages, he construct a directory structure like
com
Test
Test2
Test3
-- and then my .java files
How can I do to import this project with my package ?
I think you need to add a source folder to your project.

Categories