I am trying to import existing iLog rules jar file into Eclipse as a project. I tried different options but I am not getting an option where in I can import the jar into eclipse. It would be great if any one can help me here.
First create a new empty project, right-click on the src folder and select Import...
Expand General in the Import dialog and select Archive file. Click Next.
Browse for the .jar file that you want to import and click open.
Another Import dialog box opens and shows you what’s in your JAR file.
Ideally, you should see one or more files with .java extensions. If you don’t, then the archive was not built correctly.
See here for more details.
here are the screenshots using the wizards
Related
What's the correct way to create a project in Eclipse from a github project which uses the parent/child pom construct, for example https://github.com/vladmihalcea/vladmihalcea.wordpress.com ?
I can clone/download it ok, but then do I need to manually create an eclipse project for each sub-project within or is there a better way?
(Googled the hell of out this question without finding an answer, but please feel free to post a link if you know of such.)
Use the Import feature of Eclipse.
Select File / Import ... from the Eclipse menu.
From the Import dialog window, Select the Maven / Existing Maven Projects wizard option.
Click Next.
From the Import Maven Projects dialog, choose the root directory using the Browse directory chooser.
With the directory choosen, the dialog will be populated with all available Maven projects. Check all the projects to be imported.
Click Finish.
Why every project that I download as a zip file from Github i can't import in Eclipse?
This is how I try it...
Of course, firtst I download it as a ZIP. (download it to desctop, for example)
Then, import existing project...
But then even if there is a project for sure, and special this project, it shows me warning "No projects are found for import" like this:
This is problem for every project that I try to import like this. Is there any other way to import projects or...?
(I repet this project work 100% on my friends laptop, but I can't even import it)
Make sure you have uncompress the zip archived first.
Then check the content of the folder where you uncompressed the zip file.
If there is no .project file, do create a new project in Eclipse, and point the sources to that folder, instead of trying to import it.
See "How to import a java project missing .project .settings .classpath files into eclipse".
maybe you can see the following:
you have to select the folder where the project is created.
you are sure that is a project, maybe are only the files
Pls attach the link of git to check this.
Regards.
I was trying to do the same for GitHub download project. I figured out that 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 imported zip file in my STS , first of all i click on import project then click on General import some menu showed up enter image description here , then click on Projects from Folder or Archive , then choose from Archive file click finish enter image description here
I'm trying to open files and run applications from folders that are not in the Package Explorer tab. I'm trying by using the File/Import/General/File System... I then select the folder, but the Finish button is still disabled!?
Is this not the correct way or is there a better way to open projects from other placeses than Package Explorer Tab?
Go to File>import>General - Select Existing project into workspace
Select project folder, uncheck copy project into workspace click finish. Note: Project must be a valid project.
You can only import a folder which contains Eclipse project specific files like .project etc. This way Eclipse knows it is a project.
I have been using the text editor gedit and the terminal for my latest project but I find that I have so many classes it would be more useful to be working with a separate directory for my .class and .java files so I can see what is going on more easily.
Unfortunately I have not been able to figure out how to get eclipse to work with a project that has already been made (or even one that was already made on eclipse with another computer!). This was not such a problem with two or three classes but I am getting to have so many that it is really tedious- It seems to want me to build a completely new project or nothing.
EDIT (additional info):
I don't think it will be possible to show the code of the project as I current have 12 classes for it but by the end I may have one or two more...
I know how to make a project in eclipse. What I am not sure how to do it open a directory full of .java files in eclipse that were created using a text editor rather than in an eclipse project and get eclipse to accept it as a project.
Does anybody know how to achieve this task?
You can import your project into eclipse doing the following steps:
Create a new Java Project in Eclipse (By going to File -> New -> Java Project) select a name for the project and you can select finish
You have to import your existing code to eclipse, go to:
File -> Import -> General -> FileSystem
Then browse to the directory where your code is currently, and say you want to import into the project you created in step 1
Afterwards remember to go to the project properties (right click in the project folder while in the navigator view, for example) and make sure the java build path has the right source folders configured.
Fortunately, you can use eclipse for any project previously created. Do you possibly have the code to show us how you are applying to the project in eclipse?
For example, you can create a project and class, then copy over starting from public static void main(String[] args) {
down to the bottom, then import the important stuff above the main class name.
I started with the default workspace C:\workspace but I mange to corrupt that by removing files so now I've created a new workspace to import the files to but I don't know how to do that. Could you tell me how I import projects from another workspace? I'm using the IBM RAD which is based on eclipse.
Thank you
Here are the steps for the original eclipse :
After switching eclipse to use the new workspace , go to File--> Import , and then choose General ---> Existing Projects into Workspace , and browse to the folder of the project that you want to import.
In Eclipse, the steps will be:
Select "File" tab
Select "Import" option in the drop down list.
Select "General" in the source listed.
Select "Archive File" if You have .zip/.rar file of the Project or "Existing Projects into Workspace" if You have Project in some other workspace.
Browse the Archive File or root directory location.
Select "Finish".
Now your project has been imported.
I am not very familiar with RAD but if its anything like Eclipse, the projects are stored by plugins. For ex: All my java related projects are stored under
workspace/.metadata/.plugins/org.eclipse.core.resources/.projects
while my other projects related to another project (Seamframework related) are stored under
workspace/.metadata/.plugins/org.jboss.tools.seam.core/projects
The best thing would be to search your
workspace/.metadata/.plugins
folder and see if you can identify all your projects. When you do, you can import them all into your new workspace as is.
To import the projects, once you locate them, follow the instructions posted by others here.
Good Luck!