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...
Related
A week ago I upgraded my Java IDE to Netbeans 12 (and JDK 14), and only yesterday I noticed the window Project Properties (MYPROG) lacks of essential functionality i.e. there are not lines for compiling in *.jar, and mostly there is not any line for adding *.jar libraries, there is instead an empty line for JavaScript libraries, and it is impossible to add them in any other point.
The real oddity of NetBeans 12 is that it works perfectly even with old projects made with NetBeans 8 and JDK6! but reinstalling previous NetBeans 10 still remaisn a trouble.
I'm stuck making new projects that need libraries.
Minor problems are: System.err.println doesn't write in red colour, the path src/mycode has become src/main/java/mycode, why? and perhaps many others.
My attempts are over.
I've installed
OS: Window 10
jdk-14_window-x64_bin.exe
Apache NetBeans 12 LTS
Binaries: netbeans-12.0-bin.zip (SHA-512, PGP ASC) 1st try
Installers: Apache-NetBeans-12.0-bin-windows-x64.exe (SHA-512, PGP ASC) 2nd try.
It's a Java project using Maven
I don't know Gradle and Ant (what are they for?)
Project Properties (MYPROG)-->Build has only Compile without Compiling, Packaging, Deployment, Documenting
Project Properties (MYPROG)--> Libraries does not exist
instead: JavaScript libraries (empty)
When you are using Maven, the Project properties do not have a Libraries section, because the libraries are managed through Maven (and not NetBeans).
You manage the needed libraries through the "Dependencies" node of the project or by editing pom.xml directly:
But this has been the case since NetBeans started supporting Maven (so probably 8.0 or something along those lines). If you had a "Libraries" section in the project properties before, you were using an Ant based project.
path src/mycode has become src/main/java/mycode, why?
Because src/main/java is the default directory layout Maven uses.
If you recreate the project as Ant project, you will have the option to import library in the project properties.
Netbeans Java project with Ant
I'm working on a set of plugins for a commercial Eclipse RCP Application "FOO_APPLICATION",
which comes with html javadocs for api plugins and without sources.
I'm using Eclipse 4.5.2 and the target "FOO_APPLICATION" is based on an older version of Eclipse, 3.6
Everything seems fine but I'm experiencing this annoying issue:
If I attach javadocs or sources to plugin dependecies (for eclipse standard plugins I can also attach sources, because I have also the original 3.6 sdk sources jar)
Eclipse does not remember this setup and I have to do this again at every startup. :(
What I'm missing here?
But consider also this point: I'd really like to solve this problem from a wider point of view: since I have many projects (in the same workspace) that share the same dependencies of "FOO_APPLICATION",
is there a way to setup sources or javadocs once and made them available throughout the whole workspace?
If the sources are present in the target platform as individual Source Bundles, the source is automatically displayed.
As far as I know, there's nothing comparable for Javadoc.
Is it possible to work on a Java project inside Flash Builder 4.7? If so I do not know how to import the project.
Also, I might be missing the JDT? I found some instructions here, https://forums.adobe.com/thread/773965?tstart=0 that say to add it via an update site but the instructions were written for Flash Builder 4 not 4.7. It gives a link for using the Galileo update site and I don't want to try it because I don't know if it will mess up my install.
FYI: Flash Builder is based on Eclipse and I don't know how to determine what version of Eclipse Flash Builder 4.7 is based on.
UPDATE:
I attempted to go to the next step taking a risk in thinking that it might warn me before installing and it did give me a warning:
"Cannot complete the request. See the error log for details.
"Eclipse Java Development Tools" will be ignored because a newer version is already installed.
So it looks like JDT are already installed but still do not see any way to import the Java project.
FB 4.7 is based on eclipse indigo version, it's possible to import a java project on FB.
I'm using Maven to build my project but you can import a general java project.
i'v tried all these solution and all works fine :
Solution 1: change your Java project to Maven project nature with your eclipse, and import it on FB:
import>Maven>Existing Maven Project.
Solution 2: like any Java project import>General>Existing Projects into Workkspace.
Solution 3: check your .project file and verify that it's correct.
Solution 4: move your project folder into your workspace and create new Java project with FB with a
similar name as your project folder, this will create a new Java project with FB with
your old Java project files.
Solution 5: do it in inverse: install FB 4.7 plugin in your eclipse and import your flex project to
to eclipse.
for jdt plugin error, FB 4.7 use eclipse JDT plugin 3.7.1.r371 and it work fine with this version
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.
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.