Import java project into eclipse - java

I just downloaded a Google App Engine sample Java project. I am trying to import it into eclipse. If I chose file/import/existing projects into workspace, and navigate to the appropriate directory, it doesn't find any projects. I'm speculating this means that dotmatrix is not an Eclipse project. How can I import it?
Thanks.

Project you are trying to import doesn't seem like Eclipse Project.
You can still use this project in Eclipse as Java project by following these steps:
Open Java Perspective in Eclipse.
Right Click in Package explorer pane and select New >> Java Project.
Give appropriate name to your Project and click the option that says "Create project from existing sources."
Select root dir of project downloaded and click finish.
Note: You may need to configure source folders, library and other build paths to complete setup.

Related

Import source project in eclipse

I need to import a source Project in eclipse. The project is made by many folder like Classes (that contain .class files), src(that contain .java files) and many others. The source project and the instructions on how to set up eclipse are reported at this link. I tried to follow them but I haven't got anything. I think this is a simple thing but I'm new to eclipse.
My eclipse actual version is eclipse java neon 2.
My OS is ubuntu.
You could choose to create a new Project from the File Options and then select Project from existing sources which choosing the source directory.
Second approach could be to just use File > import Project wizard.

How do I import an AIDE project into IntelliJ?

"AIDE" is an IDE for Android. It handles Java, Native Development, HTML dev, etc.
More specifically, I am trying to understand how I import a template LibGDX project started in AIDE, and open the project for running in the normal IntelliJ IDE, not the specific JetBrains Android Emulator version.
I imported the project, but cannot understand how to compile and execute the project, and I suspect I have imported the project incorrectly.
Can anyone help me to understand the process for this?
For IntelliJ 15, you must click "Import Project" on the into screen:
You then locate the ".project" file under "gdx-game" (or "gdx-game-android", but eventually you need to add both), and select it.
You will then configure the project settings, such as directory. You select
"$project_name$" if it is not already checked. You will also click
"Open Project Structure After Import":
Enter the name for the main project, and select the main SDK for the project:
You now navigate to the "Modules" section, and then rename the module ("project") from "$project_name$" to "gdx-game" (if you are in fact currently importing the "gdx-game" project).
You must also select the proper Module SDK to use in compilation of the project.
For "gdx-game", this would be a normal Java SDK such as Java SDK 1.7.
For "gdx-game-android", this would be "Project SDK (Android API 21 Platform)" by default, but if it does not appear you can select "Android 21 Platform(java version "1.7.0_79")":
You will now click the addition symbol, also pictured above (circled in red in image 4), in order to import the next module of the project ("gdx-game" or "gdx-game-android").
Again, you will navigate to the appropriate folder and locate the second ".project" file.
Upon import of the module, rename it in the same manner as you did with the first module. Alter it's SDK as well.
This should be all you need for a basic import of a project, but you may need to add libraries and such, depending on your projects needs obviously.

Which directory do I use to import this Java project?

I have attached a screenshot and I'm trying to import this project into Eclipse but I do not know what directory to select. Here is a screen shot:
In the image what directory do I select during import?
UPDATE:
I've selected the "app" folder and I get the message, "No projects are found to import",
After installing Android Studio (based on IntelliJ) and creating a new project it looks like it's a IntelliJ / Android project not an Eclipse project (there was no .project file). It has the same structure as an IntelliJ project.

Deploying a working Java project to Eclipse

I have a Java web project done by another team, that is hosted on a Tomcat. I am asked to do some modification in the project.
Modifying JSP- and HTML-files is fine, but when it comes to modifying an existing Java-file, I need to import the full project to some IDE like Eclipse. How can I import the full project?
Please follow the steps below to import an existing JAVA project:
Copy the java project to your workspace (ex. C:/workspace)
Go to Eclipse IDE
Navigate to File->New->Java Project
A dialog box will display. Enter the exact name (case-sensitive) to the Project Name field.
The Location field value should be where the project is currently located (ex. C:/workspace/MyProject)
Click Finish.
The project should now be displayed in the Package Explorer panel (or Project Explorer).
Note: If the project is Web, you should choose File->New->Dynamic Web Project.
Check with the other team what IDE they use. Usually the project might also contain IDE files (.project & .classpath) for Eclipse given you have access to the source code.
If not, create a new Project (using the Java EE edition) and look at the directory structure for some sample projects. You should then be able to create the structure in your new project accordingly.

How to import existing files into IntelliJ 10 IDE?

I have used Eclipse before. I changed to IntelliJ. Now I am wondering how to import existing files into IntelliJ 10 IDE. In Eclipse I was used to just drag the directory into the src folder, but I cannot do it here.
IDEA doesn't have such feature, you either set up a project on top of the existing sources or you copy files to the existing project externally, using Finder or your favorite file manager.
Actually you can tell IDEA to open a project and when you get prompted with the file explorer you select the eclipse project file. IDEA will then create it's own specific project files and setup the classpath for you. It's pretty nifty.

Categories