Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » eFX Tutorial 2 gives error results(Errors in all generated sources, MANIFEST.MF, plugin.xml)
eFX Tutorial 2 gives error results [message #1271993] Sun, 16 March 2014 20:46 Go to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
When running the eFX Tutorial 1 with Kepler SR2, I encountered no difficulties. All worked as expected.

When trying Tutorial 2, I noticed in the screenshot for step 4 that the image displayed a drop down list for Target Eclipse Version that reads "3.7". When I executed this step, the choice is "3.5 or Greater".

In the screenshot for step 5, my default Execution Environment was JavaSE-1.7 instead of the image's JavaSE1.6. I ran the tutorial steps with both environment settings - identical erroneous results in each case.

In the screenshot for step 7, the sample screenshot includes a selected checkbox labelled "With repackaged JavaFX". The checkbox and label were not visible when I ran the tutorial. My suspicion is that this may have caused the resulting generated project to contain errors.

At step 8, I stopped because the resulting artifacts were all in error:
in Activator.java, unresolved import statements such as:
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;

in MyViewPart.java, unresolved import:
import org.eclipse.fx.ui.workbench3.FXViewPart;

I noted that step 8 indicates that a new OSGI bundle should be the result of steps 1-7. In step 4, should the Target Platform be set to an OSGI Framework ?
Re: eFX Tutorial 2 gives error results [message #1272350 is a reply to message #1271993] Mon, 17 March 2014 18:14 Go to previous messageGo to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
By manually adding the JavaFX Container to the project classpath I eliminated the errors in Activator.java but the import statements in MyViewPart still throw an error.

I downloaded the latest nightly build of the preconfigured bundle of eclipse(Luna) plus eFX and tried the tutorial with that. After step 7, the new project is in the same state - Activator.java is error free but MyViewPart.java still has error "import org.eclipse.fx.ui" cannot be resolved.

I also noted that MANIFEST.MF also gives error "Bundle 'org.eclipse.fx.ui.workbench3' cannot be resolved"

In case it is relevant, I am using java 7 build 1.7.0_51-b13
Re: eFX Tutorial 2 gives error results [message #1272388 is a reply to message #1272350] Mon, 17 March 2014 20:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Ok - I think the tutorial is wrong and needs to be fixed! I'll do that
later on and come back once it is done.

Tom

On 17.03.14 11:14, Gerry Matte wrote:
> By manually adding the JavaFX Container to the project classpath I
> eliminated the errors in Activator.java but the import statements in
> MyViewPart still throw an error.
>
> I downloaded the latest nightly build of the preconfigured bundle of
> eclipse(Luna) plus eFX and tried the tutorial with that. After step 7,
> the new project is in the same state - Activator.java is error free but
> MyViewPart.java still has error "import org.eclipse.fx.ui" cannot be
> resolved.
>
> I also noted that MANIFEST.MF also gives error "Bundle
> 'org.eclipse.fx.ui.workbench3' cannot be resolved"
>
> In case it is relevant, I am using java 7 build 1.7.0_51-b13
Re: eFX Tutorial 2 gives error results [message #1272502 is a reply to message #1272388] Tue, 18 March 2014 03:44 Go to previous messageGo to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
Thanks Tom.
In case it matters, I followed the instructions at http://www.eclipse.org/efxclipse/install.html#for-the-ambitious

to install eFX version 0.9.0
Re: eFX Tutorial 2 gives error results [message #1278733 is a reply to message #1272502] Thu, 27 March 2014 19:33 Go to previous messageGo to next message
Danny Ju is currently offline Danny JuFriend
Messages: 4
Registered: March 2014
Junior Member
Hi Tom,
Any update on this? I am using Kepler + e(fx)clipse 0.9
There seems not such bundle named org.eclipse.fx.ui.workbench3
in the installation and the update site:
http://download.eclipse.org/efxclipse/updates-released/0.9.0/site_assembly.zip

(I did see the plugin in 1.0 update site. So is the tutorial for 1.0 only?)

-Danny
Re: eFX Tutorial 2 gives error results [message #1278811 is a reply to message #1278733] Thu, 27 March 2014 22:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I've fixed the tutorial. If you are on Kepler you need to use the 0.9.0
release it won't work with the nightly site because there've been
changes to the equinox framework.

Tom

On 27.03.14 20:52, Danny Ju wrote:
> Hi Tom, Any update on this? I am using Kepler + e(fx)clipse 0.9 There
> seems not such bundle named org.eclipse.fx.ui.workbench3
> in the installation and the update site:
> http://download.eclipse.org/efxclipse/updates-released/0.9.0/site_assembly.zip
>
>
> (I did see the plugin in 1.0 update site. So is the tutorial for 1.0 only?)
>
> -Danny
Re: eFX Tutorial 2 gives error results [message #1279448 is a reply to message #1278811] Fri, 28 March 2014 19:26 Go to previous messageGo to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
Hi Tom.
I tested the revised tutorial 2. I've now used the release 0.9 update site when defining the target environment in step 1.8

The screen image I see in step 6 says "JavaFX Eclipse 3.x Project" instead of "JavaFX Eclipse 3.x ViewPart".

At step 8, I again see lots of errors. I will attach a screen image (efx-tutorial2-errorsAtEnd.png) and the generated project artifacts (MyFXViewPart.zip) at the start of step 8

At the end of step 7 I saw an unexpected popup window asking if I wanted to open the Associated Perspective. I chose to not open it.

I captured screen images as I went along. Those are also attached as zip file $screen.zip

Let me know if I can assist in any way with resolving this problem.

If anyone else using Kepler SR2 was able to successfully arrive at step 8 without any errors, please let us know. That would indicate there is something unusual about my environment....



[Updated on: Fri, 28 March 2014 19:28]

Report message to a moderator

Re: eFX Tutorial 2 gives error results [message #1279484 is a reply to message #1279448] Fri, 28 March 2014 20:42 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Can you show me your target platform settings.

Please note that Step 5 has changed to "Select "Default: Default target
for the running platform". Click the "Next" button.".

Tom


On 28.03.14 20:26, Gerry Matte wrote:
> Hi Tom.
> I tested the revised tutorial 2. I've now used the release 0.9 update site when defining the target environment in step 1.8
>
> The screen image I see in step 6 says "JavaFX Eclipse 3.x Project" instead of "JavaFX Eclipse 3.x ViewPart".
>
> At step 8, I again see lots of errors. I will attach a screen image (efx-tutorial2-errorsAtEnd.png) and the generated project artifacts (MyFXViewPart.zip) at the start of step 8
>
> At the end of step 7 I saw an unexpected popup window asking if I wanted to open the Associated Perspective. I chose to not open it.
>
> I captured screen images as I went along. Those are also attached as zip file $screen.zip
>
> Let me know if I can assist in any way with resolving this problem.
>
> If anyone else using Kepler SR2 was able to successfully arrive at step 8 without any errors, please let us know. That would indicate there is something unusual about my environment....
>
> [It looks like I'm not allowed to attach ZIP files - the upload button quietly ignores them. Let me know what files I can send you or suggest another way for me to get the zip files to you]
>
>
>
Re: eFX Tutorial 2 gives error results [message #1279505 is a reply to message #1279484] Fri, 28 March 2014 21:15 Go to previous messageGo to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
Were you referring to step 1.5 when you mentioned "select default target" ?
Attached are my target platform settings using the new target platform as was previously specified in step 1.

I tried (see target-07.png) to instead add the target to the default target platform and saw the attached errors in target-08.png.

[Updated on: Fri, 28 March 2014 21:26]

Report message to a moderator

Re: eFX Tutorial 2 gives error results [message #1279518 is a reply to message #1279505] Fri, 28 March 2014 21:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Right your screenshot looks like you used "Nothing: Start with empty
target" which wrong.

You need to use "Default: Default target for the running platform" which
will give you as the initial entry "${eclipse_home}" and then you add
the p2 site.

Tom

On 28.03.14 22:15, Gerry Matte wrote:
> Were you referring to step 1.5 when you mentioned "select default target" ?
> Attached are my target platform settings.
>
Re: eFX Tutorial 2 gives error results [message #1279519 is a reply to message #1279518] Fri, 28 March 2014 21:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
this is how it should look like



On 28.03.14 22:47, Tom Schindl wrote:
> Right your screenshot looks like you used "Nothing: Start with empty
> target" which wrong.
>
> You need to use "Default: Default target for the running platform" which
> will give you as the initial entry "${eclipse_home}" and then you add
> the p2 site.
>
> Tom
>
> On 28.03.14 22:15, Gerry Matte wrote:
>> Were you referring to step 1.5 when you mentioned "select default target" ?
>> Attached are my target platform settings.
>>
>
Re: eFX Tutorial 2 gives error results [message #1279548 is a reply to message #1279519] Fri, 28 March 2014 22:57 Go to previous messageGo to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
I'm sure I used "Default: Default target for the running platform"

When I finished, I was left with two target platforms named "Running Platform". Is that correct ? I now wonder which one I actually activated.

Did you intend that I should be instead editing my default running platform ?

If I do that, the generated project has no errors.

Attached is the html to describe the changes to step1 of the tutorial if you intended to edit the default target platform.

[Updated on: Fri, 28 March 2014 22:59]

Report message to a moderator

Re: eFX Tutorial 2 gives error results [message #1279796 is a reply to message #1279548] Sat, 29 March 2014 08:37 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

No i don't not really meant that you modify the current one but add a
new one. You could haven given it a different name.


On 28.03.14 23:57, Gerry Matte wrote:
> I'm sure I used "Default: Default target for the running platform"
>
> When I finished, I was left with two target platforms named "Running Platform". Is that correct ?

Yes and the you should enable the newly added one.

>
> Did you intend that I should be instead editing my default running platform ?
>

No but the result is the same, it now harder for you to get back into
the default state but probably that's ok.

I reworded the wiki to make my intend clearer.

Tom
Re: eFX Tutorial 2 gives error results [message #1281372 is a reply to message #1279796] Mon, 31 March 2014 19:59 Go to previous messageGo to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
Thanks Tom.
I was able to complete the tutorial2 using a fresh eclipse and exactly following your revised instructions.

Is there a way to run the generated project outside of eclipse ?
(I realise this question is a new topic - however I was unable to discerne the use case for the tutorial)
Re: eFX Tutorial 2 gives error results [message #1281375 is a reply to message #1279796] Mon, 31 March 2014 20:04 Go to previous messageGo to next message
Gerry Matte is currently offline Gerry MatteFriend
Messages: 11
Registered: March 2014
Location: Nanaimo, BC, Canada
Junior Member
Also, do you need to implement the same changes for step1 in the next two tutorials ?
Or create a link to a different page for setting up the target platform .....
Re: eFX Tutorial 2 gives error results [message #1281435 is a reply to message #1281375] Mon, 31 March 2014 22:16 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 31.03.14 22:04, Gerry Matte wrote:
> Also, do you need to implement the same changes for step1 in the next
> two tutorials ?

No - the descriptions there are for pure e4 applications and there you
use the complete target platform provided by us. So the description
there is fine.

> Or create a link to a different page for setting up the target platform
> .....
>

I can't follow you? All other tutorials use the target platform provided
in this one repo so the description is perfectly ok.

Tom
Re: eFX Tutorial 2 gives error results [message #1281436 is a reply to message #1281372] Mon, 31 March 2014 22:19 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
What do you mean with "run outside Eclipse"? You've developed an
Eclipse-RCP-Plugin which can only run inside a full blown Eclipse RCP/IDE.

What do you want to develop? A plugin which integrates itself into an
Eclipse-SWT-RCP/IDE-Application or a pure e4+JavaFX application. If it
is the latter then Tutorial 3 & 4 are what you are looking for.

Tom

On 31.03.14 21:59, Gerry Matte wrote:
> Thanks Tom.
> I was able to complete the tutorial2 using a fresh eclipse and exactly
> following your revised instructions.
>
> Is there a way to run the generated project outside of eclipse ?
> (I realise this question is a new topic - however I was unable to
> discerne the use case for the tutorial)
Previous Topic:Cannot create JavaFX project
Next Topic:Jar file with all it's dependencies
Goto Forum:
  


Current Time: Wed Apr 24 20:13:28 GMT 2024

Powered by FUDForum. Page generated in 0.03590 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top