Importing projects from "Java Webservices: Up and Running" - java

I'm currently reading Java Webservices: Up and Running. The author provides the project files from this location, which is nice. But he doesn't give any details on how to import the projects into Eclipse (or which version is required).
I like that the author presents the material in this way for learning purposes, but I would really like to import these projects into eclipse so I can play around with them much easier than notepad++.
I downloaded Eclipse Luna which has many options for importing projects, but none of them seem to work with the given projects from the link I mentioned. Has anyone used Eclipse with these projects, how did you import them?

The sources provided with the book are ant projects so this whole question is basically about importing ant projects into Eclipse.
Download and unzip the projects to a desired location. Then open up Eclipse and go to File > New > Project > Java Project From Existing Ant Buildfile.
This will allow you to import the project into Eclipse, view its source code, search, refactor, etc.

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.

Having trouble converting Java Project to Eclipse Plug-in Development Project

I am going through The Eclipse Debug Framework tutorial which was presented at Eclipse con 2005 (https://www.eclipsecon.org/2005/tutorials.html). The Zip file (which can be downloaded from the link) contains 7 exercises. For each exercise an initial code base consisting of two plug-ins is provided - example.debug.core and example.debug.ui.
I tried to import these projects as Plugin and fragments but it doesn't work. (These Projects are not shown as Plugin Projects in the Dialog)
So then I decided to import these projects as Java Projects by "File > Import > Existing Project into Workspace" but then I can't seem to convert them to PDE Projects. I tried it by following these instructions here.
I am trying to convert these Projects to Plugin Projects because otherwise I can't seem import plugins to the Java classes in these projects
even though I have already added these plugins as Dependencies..
So any Ideas? I am using Eclipse Modeling Tools (Luna). In tutorial they recommend using Eclipse SDK, version 3.1M5.
'Import > Existing Projects into Workspace' works for me.
For the 'root directory' choose the 'exercise1.1' directory. The two projects should then be listed in the projects list.
But these projects are 10 years old and are using the old style plugin.xml format which is not supported by default by current Eclipse builds. This results in lots of import errors.
Thanks, now it works. This is what I did.
Open plugin.xml file in the editor and Navigate to Overview Tab. There under the section Plugin Content you would find an option to Create an OSGi Bundle Manifest OR if there is no such option then a Message asking you to either write a Manifest.MF file manually or to first install Eclipse 2.0 style plugin support. (Help> Install New Software, use this update site http://download.eclipse.org/eclipse/updates/4.4). You will find 'Eclipse 2.0 Style Plugin Support' in the 'Eclipse Tests, Examples and Extras' section.
checkout this link for more info (Tools for Eclipse 2.0 plugins upgrade)
Once installed old plugins can run and also a Create OSGi Bundle Manifest option will appear under Plugin Content section if it wasn't there earlier...

Start a java project which uses Jargon Libraries

We are trying to develop a java application for iRods(a middleware for Heterogeneous databases). To use the jargon API we need to use the Java Jargon API which is in this link . We are using Java for the first time and not aware of how to import the library in our project.
In the presentation the following steps are mentioned at the beginning
git clone https://github.com/DICE-UNC/jargon.git
mvn clean install -Dmaven.test.skip=true
But I want to expose those libraries in my new eclipse project. Any pointers regarding setting up those libraries for an exlipse project would be helpful.
You are asking for a quote of the Eclipse JDT docs. But I try to give you a hint on the matter.
When you have managed to install maven and got the build running, you will find a jargon-xxx.jar in your target folder.
Take that jar file and place it in your eclipse project and select "configure build path" - "add Jar". Select the jargon.jar file in your project folder, it is now on your classpath in the project.
Hint: If this is a professional project, you need to have someone on your team to setup a proper build environment for you, possibly using maven or some other tool that manages dependencies for you and is supported in your IDE. Otherwise you can only perform manual builds of your software, which will hinder your progress really soon. You should hire someone to guide you through the first steps and get you rolling.

No source files when attempting "Import Plug-ins and Fragments" in Eclipse

Following this answer's suggestion, I attempted to use the "Import Plug-ins and Fragments" feature to import into my project other plugin's source code:
But the fact is, it doesn't seem to show up any source folders, as I'd expect:
Am I doing something wrong?
I suspect that your active target platform does not contain the sources. If you use your running Eclipse installation as target platform, you might want to install an Eclipse package containing sources, for example Eclipse Classic or Eclipse for RCP and RAP developers.

Open eclipse svn project in netbeans

OK my problem is quite simple
Im about to start working with a team of programmers, and we are using a svn repository to store our code, thy files are set up as Eclipse Project as the rest of my team all like eclipse.
However I am die hard netbeans man, I have tried eclipse Iv given it some time but we do not gel as they say.
So my question is there a combination of plugins /hacks that i can use to access a Eclipse Project from an SVN repository inside Netbeans , without corrupting the eclipse project or causing problems for the rest of my team (I would rather suffer eclipse than do this to them)
Many thanks ^_^
In NetBeans 6.8 under File > Import Project there is both Eclipse Project and Resynchronize Eclipse Projects. I'm guessing this can be used to work together with people using Eclipse.
UPDATE: How the eclipse import function works.
As NA pointed out, there is a way to import your Eclipse projects into Netbeans. However, arguably, you shouldn't be checking in IDE-specific files into your repository unless you can guarantee everybody is using the same IDE. Otherwise, I would recommend only checking in the source code, resources, and additional libraries and keep the specific files on ignore and have each individual setup their own environment.
Another alternative, is to check in the IDE-specific files in a different folder in the repository so that an individual can grab them if they need them.

Categories