Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » JavaFX Preview
JavaFX Preview [message #1391702] Tue, 01 July 2014 09:20 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 424
Registered: September 2009
Senior Member
I'm having problems with JavaFX Preview.
It seems unable to find a custom Widget I wrote.
How can I correctly set classpath? (I assume that's the problem).

Thanks in Advance

Error is:

javafx.fxml.LoadException:
/C:/Users/mcon/Work/Voith/tmp/com.voith.hyconmde.ui/src/com/voith/hyconmde/ui/detail/station/
at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2617)
at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2864)
....
Caused by: java.lang.ClassNotFoundException: com.voith.javafx.chart.CustomChart
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
....


on top of my .fxml I have:

<?import java.lang.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.shape.*?>
<?import javafx.scene.control.*?>
<?import org.tbee.javafx.scene.layout.fxml.MigPane?>
<?import com.voith.javafx.chart.CustomChart?>

<?scenebuilder-preview-i18n-resource /com/voith/hyconmde/ui/i18n/labels.properties?>
<?scenebuilder-stylesheet /application.css?>
<?scenebuilder-classpath-element ../../../../../../../../com.voith.javafx/target/classes?>
<?scenebuilder-classpath-element C:/Users/mcon/Work/Voith/step2/com.voith.javafx/target/classes?>

Note that CustomChart is in a different project than the .fxml
directory structure is as follows:

Workspace root: C:\Users\mcon\Work\Voith\tmp
├───.metadata
├───com.voith.hyconmde.model
├───com.voith.hyconmde.releng
├───com.voith.hyconmde.ui
│ ├───.settings
│ ├───src
│ │ ├───com
│ │ │ └───voith
│ │ │ └───hyconmde
│ │ │ └───ui
│ │ │ ├───cells
│ │ │ ├───controller
│ │ │ ├───converters
│ │ │ ├───detail
│ │ │ │ ├───archiving
│ │ │ │ ├───scheduling
│ │ │ │ ├───station <-- here is .fxml
│ │ │ │ └───usermgt
│ │ │ ├───help
│ │ │ ├───i18n
│ │ │ └───login
│ │ └───icons
│ └───target
├───com.voith.hyconmde.ui.util
└───com.voith.javafx
├───.settings
├───src
│ └───com
│ └───voith
│ ├───hyconmde
│ └───javafx
│ ├───chart <-- here is CustomChart.java
│ ├───css
│ ├───dialog
│ ├───tmp
│ └───validation
└───target
└───classes
└───com
└───voith
└───javafx
├───chart <-- here is CustomChart.class
├───css
├───dialog
├───tmp
└───validation
Re: JavaFX Preview [message #1392462 is a reply to message #1391702] Wed, 02 July 2014 11:29 Go to previous messageGo to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 424
Registered: September 2009
Senior Member
Hi,
can someone help me, pretty please?
I'm stuck on this one.
..fxml actually works in spite of error, but starting the program each time
I need to see results (and navigating to the correct page!) is tedious at best! ;)
TiA

Il 01/07/2014 11:20, Mauro Condarelli ha scritto:
> I'm having problems with JavaFX Preview.
> It seems unable to find a custom Widget I wrote.
> How can I correctly set classpath? (I assume that's the problem).
>
> Thanks in Advance
>
> Error is:
>
> javafx.fxml.LoadException:
> /C:/Users/mcon/Work/Voith/tmp/com.voith.hyconmde.ui/src/com/voith/hyconmde/ui/detail/station/
> at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2617)
> at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2864)
> ...
> Caused by: java.lang.ClassNotFoundException: com.voith.javafx.chart.CustomChart
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> ...
>
>
> on top of my .fxml I have:
>
> <?import java.lang.*?>
> <?import javafx.scene.layout.*?>
> <?import javafx.scene.shape.*?>
> <?import javafx.scene.control.*?>
> <?import org.tbee.javafx.scene.layout.fxml.MigPane?>
> <?import com.voith.javafx.chart.CustomChart?>
>
> <?scenebuilder-preview-i18n-resource /com/voith/hyconmde/ui/i18n/labels.properties?>
> <?scenebuilder-stylesheet /application.css?>
> <?scenebuilder-classpath-element ../../../../../../../../com.voith.javafx/target/classes?>
> <?scenebuilder-classpath-element C:/Users/mcon/Work/Voith/step2/com.voith.javafx/target/classes?>
>
> Note that CustomChart is in a different project than the .fxml
> directory structure is as follows:
>
> Workspace root: C:\Users\mcon\Work\Voith\tmp
> ├───.metadata
> ├───com.voith.hyconmde.model
> ├───com.voith.hyconmde.releng
> ├───com.voith.hyconmde.ui
> │ ├───.settings
> │ ├───src
> │ │ ├───com
> │ │ │ └───voith
> │ │ │ └───hyconmde
> │ │ │ └───ui
> │ │ │ ├───cells
> │ │ │ ├───controller
> │ │ │ ├───converters
> │ │ │ ├───detail
> │ │ │ │ ├───archiving
> │ │ │ │ ├───scheduling
> │ │ │ │ ├───station <-- here is .fxml
> │ │ │ │ └───usermgt
> │ │ │ ├───help
> │ │ │ ├───i18n
> │ │ │ └───login
> │ │ └───icons
> │ └───target
> ├───com.voith.hyconmde.ui.util
> └───com.voith.javafx
> ├───.settings
> ├───src
> │ └───com
> │ └───voith
> │ ├───hyconmde
> │ └───javafx
> │ ├───chart <-- here is CustomChart.java
> │ ├───css
> │ ├───dialog
> │ ├───tmp
> │ └───validation
> └───target
> └───classes
> └───com
> └───voith
> └───javafx
> ├───chart <-- here is CustomChart.class
> ├───css
> ├───dialog
> ├───tmp
> └───validation
Re: JavaFX Preview [message #1393778 is a reply to message #1392462] Fri, 04 July 2014 08:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5767
Registered: July 2009
Senior Member
we simply rely on the classpath container of Eclipse to resolve the
classpath. There's a chance we are interpreting it wrong in case of m2e?
I'll try to reproduce when I'm back from holiday next week.

Tom

On 02.07.14 13:29, Mauro Condarelli wrote:
> Hi,
> can someone help me, pretty please?
> I'm stuck on this one.
> .fxml actually works in spite of error, but starting the program each time
> I need to see results (and navigating to the correct page!) is tedious
> at best! ;)
> TiA
>
> Il 01/07/2014 11:20, Mauro Condarelli ha scritto:
>> I'm having problems with JavaFX Preview.
>> It seems unable to find a custom Widget I wrote.
>> How can I correctly set classpath? (I assume that's the problem).
>>
>> Thanks in Advance
>>
>> Error is:
>>
>> javafx.fxml.LoadException:
>> /C:/Users/mcon/Work/Voith/tmp/com.voith.hyconmde.ui/src/com/voith/hyconmde/ui/detail/station/
>>
>> at
>> javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2617)
>> at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2864)
>> ...
>> Caused by: java.lang.ClassNotFoundException:
>> com.voith.javafx.chart.CustomChart
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>> ...
>>
>>
>> on top of my .fxml I have:
>>
>> <?import java.lang.*?>
>> <?import javafx.scene.layout.*?>
>> <?import javafx.scene.shape.*?>
>> <?import javafx.scene.control.*?>
>> <?import org.tbee.javafx.scene.layout.fxml.MigPane?>
>> <?import com.voith.javafx.chart.CustomChart?>
>>
>> <?scenebuilder-preview-i18n-resource
>> /com/voith/hyconmde/ui/i18n/labels.properties?>
>> <?scenebuilder-stylesheet /application.css?>
>> <?scenebuilder-classpath-element
>> ../../../../../../../../com.voith.javafx/target/classes?>
>> <?scenebuilder-classpath-element
>> C:/Users/mcon/Work/Voith/step2/com.voith.javafx/target/classes?>
>>
>> Note that CustomChart is in a different project than the .fxml
>> directory structure is as follows:
>>
>> Workspace root: C:\Users\mcon\Work\Voith\tmp
>> ├───.metadata
>> ├───com.voith.hyconmde.model
>> ├───com.voith.hyconmde.releng
>> ├───com.voith.hyconmde.ui
>> │ ├───.settings
>> │ ├───src
>> │ │ ├───com
>> │ │ │ └───voith
>> │ │ │ └───hyconmde
>> │ │ │ └───ui
>> │ │ │ ├───cells
>> │ │ │ ├───controller
>> │ │ │ ├───converters
>> │ │ │ ├───detail
>> │ │ │ │ ├───archiving
>> │ │ │ │ ├───scheduling
>> │ │ │ │ ├───station <-- here is .fxml
>> │ │ │ │ └───usermgt
>> │ │ │ ├───help
>> │ │ │ ├───i18n
>> │ │ │ └───login
>> │ │ └───icons
>> │ └───target
>> ├───com.voith.hyconmde.ui.util
>> └───com.voith.javafx
>> ├───.settings
>> ├───src
>> │ └───com
>> │ └───voith
>> │ ├───hyconmde
>> │ └───javafx
>> │ ├───chart <-- here is CustomChart.java
>> │ ├───css
>> │ ├───dialog
>> │ ├───tmp
>> │ └───validation
>> └───target
>> └───classes
>> └───com
>> └───voith
>> └───javafx
>> ├───chart <-- here is CustomChart.class
>> ├───css
>> ├───dialog
>> ├───tmp
>> └───validation
>
Re: JavaFX Preview [message #1393962 is a reply to message #1393778] Fri, 04 July 2014 14:59 Go to previous message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 424
Registered: September 2009
Senior Member
Il 04/07/2014 10:48, Tom Schindl ha scritto:
> we simply rely on the classpath container of Eclipse to resolve the
> classpath. There's a chance we are interpreting it wrong in case of m2e?
> I'll try to reproduce when I'm back from holiday next week.

Thanks Tom.
I just want to point out classpath seems to be working ok for all libraries (m2e managed).
Problem only comes in for referenced Projects.

I still have the strange problem with *all* "-fx-something" in .css being flagged as "Unknown property".
That's something in SVN because a co-worker picked it up after an SVN Update.

May those things be related?

Thanks again and enjoy Your vacations!
Mauro


>
> Tom
>
> On 02.07.14 13:29, Mauro Condarelli wrote:
>> Hi,
>> can someone help me, pretty please?
>> I'm stuck on this one.
>> .fxml actually works in spite of error, but starting the program each time
>> I need to see results (and navigating to the correct page!) is tedious
>> at best! ;)
>> TiA
>>
>> Il 01/07/2014 11:20, Mauro Condarelli ha scritto:
>>> I'm having problems with JavaFX Preview.
>>> It seems unable to find a custom Widget I wrote.
>>> How can I correctly set classpath? (I assume that's the problem).
>>>
>>> Thanks in Advance
>>>
>>> Error is:
>>>
>>> javafx.fxml.LoadException:
>>> /C:/Users/mcon/Work/Voith/tmp/com.voith.hyconmde.ui/src/com/voith/hyconmde/ui/detail/station/
>>>
>>> at
>>> javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2617)
>>> at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2864)
>>> ...
>>> Caused by: java.lang.ClassNotFoundException:
>>> com.voith.javafx.chart.CustomChart
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>>> ...
>>>
>>>
>>> on top of my .fxml I have:
>>>
>>> <?import java.lang.*?>
>>> <?import javafx.scene.layout.*?>
>>> <?import javafx.scene.shape.*?>
>>> <?import javafx.scene.control.*?>
>>> <?import org.tbee.javafx.scene.layout.fxml.MigPane?>
>>> <?import com.voith.javafx.chart.CustomChart?>
>>>
>>> <?scenebuilder-preview-i18n-resource
>>> /com/voith/hyconmde/ui/i18n/labels.properties?>
>>> <?scenebuilder-stylesheet /application.css?>
>>> <?scenebuilder-classpath-element
>>> ../../../../../../../../com.voith.javafx/target/classes?>
>>> <?scenebuilder-classpath-element
>>> C:/Users/mcon/Work/Voith/step2/com.voith.javafx/target/classes?>
>>>
>>> Note that CustomChart is in a different project than the .fxml
>>> directory structure is as follows:
>>>
>>> Workspace root: C:\Users\mcon\Work\Voith\tmp
>>> ├───.metadata
>>> ├───com.voith.hyconmde.model
>>> ├───com.voith.hyconmde.releng
>>> ├───com.voith.hyconmde.ui
>>> │ ├───.settings
>>> │ ├───src
>>> │ │ ├───com
>>> │ │ │ └───voith
>>> │ │ │ └───hyconmde
>>> │ │ │ └───ui
>>> │ │ │ ├───cells
>>> │ │ │ ├───controller
>>> │ │ │ ├───converters
>>> │ │ │ ├───detail
>>> │ │ │ │ ├───archiving
>>> │ │ │ │ ├───scheduling
>>> │ │ │ │ ├───station <-- here is .fxml
>>> │ │ │ │ └───usermgt
>>> │ │ │ ├───help
>>> │ │ │ ├───i18n
>>> │ │ │ └───login
>>> │ │ └───icons
>>> │ └───target
>>> ├───com.voith.hyconmde.ui.util
>>> └───com.voith.javafx
>>> ├───.settings
>>> ├───src
>>> │ └───com
>>> │ └───voith
>>> │ ├───hyconmde
>>> │ └───javafx
>>> │ ├───chart <-- here is CustomChart.java
>>> │ ├───css
>>> │ ├───dialog
>>> │ ├───tmp
>>> │ └───validation
>>> └───target
>>> └───classes
>>> └───com
>>> └───voith
>>> └───javafx
>>> ├───chart <-- here is CustomChart.class
>>> ├───css
>>> ├───dialog
>>> ├───tmp
>>> └───validation
>>
>
Previous Topic:Customization of the MToolItem rendering
Next Topic:e(fx)clipse 1.0-SNAPSHOT - Sample App Errors
Goto Forum:
  


Current Time: Mon Jul 06 11:32:59 GMT 2015

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

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