I work with Eclipse. I have in the file system a project with the following folder structure
AR04.CME
cmeEAR is
cmeShare is a folder with jar
cmeWeb has the structure
How do I have to import this project in the Eclipse?
Related
I have a maven project in eclipse (was originally a dynamic web project, which was converted to a maven project that has the web-app arch type).
Whenever I upload the project to Github, I, of course, upload the source java and web files, pom.xml, but I also need to upload the .project, .settings, and .classpath files which are Eclipse IDE specific (right?), so that later I can import it directly using eclipse from Github. If the latter files are not uploaded, I cannot import the project later on in eclipse. After importing, I use maven with the respective pom.xml file to download the dependencies and build the war file.
Is there a way to export my project in a form independent from eclipse, i.e., something like a pure maven project? So that, later, it can be imported using e.g., say Intellij or Netbeans only using maven? Or just tell Eclipse to import a maven project from Git, rather than an Eclipse project as it is now. Is there such a thing? If so, how to create it and commit it to Github from Eclipse? Which files/directories do I (not) need?
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.
First I create java project in netbeans and i want to import java project in netbean to maven project in eclipse kepler .I have try it once but, i got error when compile in eclipse kepler.But if l import in java project in eclipse kepler and compile then it work.
Create a new maven project in eclipse, notice that you have an src/main/java/ folder
Go to your netbeans java project, right-click on 'Source Pakages', click on properties and copy the location of this folder
Go to your files explorer and paste the location, copy all folders under src/
return to your maven project in eclipse and paste the folders (actually your java packages) under the src/main/java folder
if you used jar libraries just add them to dependencies in the pom.xml
I got a java source code from an opensource project. The source code doesn't have eclipse project specific files such as .project ,.classpath ,.setting(directory). How can I import that java source into eclipse ?
I don't have pom.xml(mvn) file to specify. So I tried manually.
followed the below steps to solve
Create a directory with the projectName and a directory "src" under projectName.
Move the source code ( ie: org/apache/hadoop directory) into src directory under projectName.
Create a sample project in eclipse and go the workspace and modify the .project xml file by changing the project name ,.settings ,.classpath files
Copy the modified ".project" file and ".settings" ,".classpath" from eclipse workspace project directory to the newly created directory "projectName/"
5 .Use eclipse import option under File menu to import the newly created project use Existing project into workspace option
Give the project root directory as projectName directory.
if you are using maven type mvn eclipse:eclipse on project folder
if you are not using maven, go to eclipse, import->import -> general -> filesystem (then select your directory with source files)
If you doesn't have .project .classpath and .settings file, Representing the project isn't eclipse project, so you should create a standard eclipse project
you can following below step:
copy your project or open source project into
workspace.
window ->File ->New -> Java Project ->Project name input
that just be copied project file name ->Finish
Remember config your source code location:
project ->Properties ->Java Build Path ->Source
If this is a maven project then you will not find these .project files. So instead of using import -> Existing project to Workspace use Existing Maven Project.
I just wanted to edit a existing program (or project) where I have the source code folder (which has already java files, not class files... so I don't have to decompile that) of that. But how do I import that in Eclipse?
Screenshot:
You have a maven build file (pom.xml), then it's pretty easy: do a mvn eclipse:eclipse on the pom file. That will create a project at that location (iaw, it will create a .project and a .classpath file).
Then, simply import the project into a workspace.
With Neon: File > Open projects from filesystem.... With older versions or if you prefer it in Neon, File > Import > Maven > Existing Maven Projects.