Using Eclipse 3.7 for developing Plugin based on Eclipse RCP 3.5 - eclipse

is it possible to use Eclipse 3.7 IDE for developing for the 3.5 platform? Or must I use Eclipse 3.5 IDE?
When I try to switch from Eclipse 3.5 IDE to 3.7 I get errors on projects, which were ok before:
Archive for required library: 'C:/.../.metadata/.plugins/org.eclipse.pde.core/.external_libraries/xyz/os/win32/x86' in project 'projectname' cannot be read or is not a valid ZIP file projectname
What do I have to do to exchange the 3.5 IDE with a current one, but still develop for the 3.5 platform?
I hope my explanation did make sense and was understandable :)
Additional Info:
- I never used the RCP before, now I must use it
- It's no option to upgrade the target platform (3.5)
- I searched the net and stackoverflow, but found no answers for using 3.7 and develop for target platform 3.5 (maybe nobody else has these problems or I used the wrong queries)
Cheers
Kai

Use the menu
Window > Preferences:
Plug-in development > target platform
Here you can add your eclipse 3.5 as a target platform, and then set it active.
But I don't think this will solve the errors you mentioned. I think those errors are because you are using the old workspace folder, and there is something not compatible with eclipse3.7. So maybe you can try to switch to a new workspace, and import your projects there.

I just resolved my problem :-)
In my case, there was a plugin jar, that contained the java sources:
jar
com
META-INF
src
plugin.xml
It seems like eclipse is putting jars inside of plugin jars in the following directory:
[WORKSPACE]\.metadata\.plugins\org.eclipse.pde.core\.external_libraries\...
For my plugin, it tried to put the src folder in this directory - which somehow failed.
After deleting the src folder inside the jar, the errors were gone.
RCP == bag of pain :-)

Related

Netbeans 8.0 - import older projects

Newly installed Netbeans 8.0 does not recognize my projects previously build in Netbeans v6.9.1. How do you import these?
Do you have old projects in some folder?
Copy this projects to C:\Users\User\Documents\NetBeansProjects
In Netbeans File/Open Project
Select your project
It looks like you've installed the NetBeans for Java SE without NetBeans for Java EE. You need the NetBeans for Java EE bundle (second column from the left) for all the web projects.
In my case I was using Java EE in one project, PHP and Zend in another. These projects needed plugins to work. I went to
NetBeans -> File -> Open Project
and my projects were listed even though they didn't show up in the Projects file browser. Each project's name was
<unrecognized project; missing plug-in?>
so I went to
NetBeans -> Tools -> Plugins
there I installed PHP, Zend and Java EE. I restarted NetBeans and everything worked fine.
This thread was useful to me:
http://forums.netbeans.org/ntopic17656.html
Once, I tried to install the Java SE Download bundles for Netbeans ( Was like mistake in clicking the Download option) but I was suppose to go for Java EE. SO, I was facing problem to import my previous Java EE Netbeans Project since I was in JavaSE Environment. Maybe Importing plugins for Java EE /Web or few more configuration would work for
that case but I was seriously stuck for a long time.
The Error was like :
<unrecognized project; missing plug-in?>
So, What I did was simply uninstalling Java SE Netbeans and installing Java EE one and my older project was easily imported. So, seriously you might need to care about the download bundles or the installed plugins but Netbeans is mostly good for importing / Exporting.

Parsing smv files in eclipse

I download nusmv-tools(https://code.google.com/a/eclipselabs.org/p/nusmv-tools/) which is a model checker.
I installed it and its dependencies(such as xtext)on eclipse successfully and restart eclipse.
Now, I expect eclipse recognize the nusmv files (which extensions are '.smv'), however it cannot.
My question is, what should I do in order to make parse nusmv files in eclipse, so that eclipse will recognize and highlight the nusmv file(.smv).
(Should I create an xtext project or java project or general project?
Which libraries or external jars should I add to the project?)
Any help?
Thanks
Actually, for nusmv, the problem was: I was using eclipse 64 bit, but it seems the nusmv-tools require to use 32 bits eclipse and xtext 2.5 version...
After downgrading the eclipse and xtext it worked for me...

AbstractUIPlugin error and Missing tabs in plugin.xml from eclipse

I checked in eclipse/java plugin project from svn repository.
Eclipse automatically builds the code to show hundreds of errors.
It seems like that eclipse doesn't properly link to the plugin libraries. Googling to find this site that I need dependencies and other tabs in plugin.xml.
What might be wrong? I use Indogo(3.7) on Mac OS X 10.7.4
I used Indigo (3.7) for my Mac, but it happened so that the plugin was built on Helios (3.6). When I run the plugin using Helios, I got the project compiled without errors.
It seems like that some of the plugins are (heavily) version dependent.
Looks like you got the base XML editor instead of the plugin.xml editor.
This is probably caused by your not having the eclipse plugin development environment (PDE) enabled in a new workspace.
Try creating a new plugin project (this will enable the necessary plugin tools), or go to the preferences and enable the "correct" capability. Since the capabilities seem to change from release to release, I always use the first method and then delete the new project.

How to use JavaFX 2 SDK in Eclipse?

I have installed JavaFX 2.0 SDK and now I would like to do an JavaFX application with Eclipse. But how can I use the javafx.* classes in Eclipse?
The official JavaFX Eclipse plugin seem to be for JavaFx 1.2 and outdated.
When I try to install e(fx)clipse plugin, I get this error:
Cannot complete the install because one or more required items could not be found.
Software being installed: efxclipse 0.0.8.201111131640 (at.bestsolution.efxclipse.feature.feature.group 0.0.8.201111131640)
Missing requirement: Eclipse DI integration for JavaFX 0.0.8.201111131640 (at.bestsolution.efxclipse.runtime.di 0.0.8.201111131640) requires 'bundle org.eclipse.e4.core.contexts 0.9.0' but it could not be found
Cannot satisfy dependency:
From: efxclipse 0.0.8.201111131640 (at.bestsolution.efxclipse.feature.feature.group 0.0.8.201111131640)
To: at.bestsolution.efxclipse.runtime.feature.feature.group [0.0.8.201111131640]
Cannot satisfy dependency:
From: FX Runtime 0.0.8.201111131640 (at.bestsolution.efxclipse.runtime.feature.feature.group 0.0.8.201111131640)
To: at.bestsolution.efxclipse.runtime.di [0.0.8.201111131640]
There are two options:
1) EDIT: Since 7u35 (or smth near it) JavaFX was included into base JDK classpath so you can use JavaFX classes right away.
Just set up your projects to use fx libs:
JavaFX 2.0 API is pure Java. So you can create a new Java project and add sdk-path/rt/lib/jfxrt.jar to libraries to use JavaFX in that project.
For cobundled builds in JDK7 path would be next jdk-path/jre/lib/jfxrt.jar
2) Use e(fx)clipse plugin: http://www.eclipse.org/efxclipse/index.html
You can use e(fx)clipse! You can find it here: http://www.eclipse.org/efxclipse/index.html
After download you must to configure the IDE with your JavaFX SDK(must be installed).
All you need to do is to open Window > Preferences > JavaFX and configure the location of your JavaFX-SDK.
You ussualy have it in Program Files > Oracle.
Hope this will help you!
Based on Sergey Grinev solution, I noticed that we can define this once for all java projects.
Go to Preferences -> Java build path
Select the jvm which is supposed to support javaFx (but whose feature is not yet recognized in Eclipse) and Edit it
Add the sdk-path/rt/lib/jfxrt.jar to it
This way, all your java projects based on this JVM version can support JavaFx and even your older projects (Select each project build path and eventually replace the old jvm with the jvm that you've just edited)
To access JavaFx in Java8 with Eclipse Luna (4.4):
Go to Build Path/ JRE/ Access rules/ Edit/ Add/ Accessible: javafx/**
This seems better than editing the classpath file manually or adding the JAR (again) to the build path.
As an aside, it says it won't install the FX plugin because you are missing org.eclipse.e4.core.contexts bundle. Were you trying to install it into Eclipse Indigo, or 3.8? Or did you follow the instructions on the website and download eclipse 4.2 before you started?
If you don't mind working with java 8, you won't have to jump through any hoola hoops. Just set that as your default jre and javafx imports work out of the box.
To install the e(fx)clipse tooling into your already existing Eclipse you have to add an Update site.
There's no released yet available so you need to add the nightly update-site http://download.eclipse.org/efxclipse/updates-nightly/site
I installed Eclipse Neon.1 (4.6.1)
Then Help => Eclipse Marketplace
On find specify "javaFX" and install "e(fx)clise 2.4.0"

Eclipse & JSF: Library linking

Using Eclipse Helios, I'd like to develop a JSF based application. I tried to work through a tutorial. Even though I thought to have installed all the required stuff from the repo, in the Webeditor I have no Palette called JSF or kinda.
Furthermore, I cannot even add the library stated in the tutorial (in the first screenshot), because I don't have a subitem "Libraries" in the JSF-Part at left.
See the screenshot:
Already tried to download the newest version of Eclipse, recreating a workspace... Nothing works, unfortunately.
Any idea?
My system:
Ubuntu 10.04 64bit, Eclipse Helios with Eclipse Webtools Platform. Java 1.6.0_22.
Apache Tomcat 6.0.14.0
Well I figured it out.
Following steps were needed:
New workspace
Rightclick Project => Properties => Project Facets => Check JavaServer Faces AND JavaScript