|
|
Re: Building a native executable with Eclipse 4.4 and e(fx)clispe [message #1447130 is a reply to message #1446916] |
Fri, 17 October 2014 21:07 |
Matthew Meehan Messages: 10 Registered: October 2014 |
Junior Member |
|
|
the log has this when I hit generate
Quote:!SESSION 2014-10-18 18:46:48.482 -----------------------------------------------
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_20
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_NZ
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.fx.ide.java6 4 0 2014-10-18 18:46:49.497
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.fx.ide.java6 [221]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version>=1.3)(!(version>=1.8 )))"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.e4.ui.workbench 1 0 2014-10-18 18:46:54.133
!MESSAGE Nothing to merge for "platform:/plugin/org.eclipse.e4.tools.emf.ui/fragment.e4xmi"
!ENTRY org.eclipse.e4.ui.workbench 1 0 2014-10-18 18:46:54.137
!MESSAGE Nothing to merge for "platform:/plugin/org.eclipse.e4.tools.emf.ui/fragment.e4xmi"
im on java 8_20 is that the problem here?
[Updated on: Sat, 18 October 2014 09:44] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Building a native executable with Eclipse 4.4 and e(fx)clispe [message #1458933 is a reply to message #1458929] |
Sun, 02 November 2014 00:06 |
Matthew Meehan Messages: 10 Registered: October 2014 |
Junior Member |
|
|
when I run it manually it says
Quote:
E:\workspace\RealStandardStudios\RpgApp\build\deploy>java -jar RpgApp.jar
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unk
nown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Sou
rce)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown So
urce)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$147(
Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$48/1268447657.run(Unk
nown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Location is not set.
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at window.Interface.initRootLayout(Unknown Source)
at window.Interface.initialize(Unknown Source)
at rpg.MainApp.start(Unknown Source)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$153
(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$51/838810226.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$166(Unknown
Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$45/128893786.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$164(Unknown Sourc
e)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/950203329.run(Unkn
own Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(Unknown S
ource)
at com.sun.javafx.application.PlatformImpl$$Lambda$46/1108411398.run(Unk
nown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/1147985808.run(Unknown
Source)
... 1 more
Exception running application rpg.MainApp
this says to me that its not seeing any of the fxml files properly right?
EDIT:
I fixed it... so when I am getting all of my FXML files through this.getClass().getResource() that works fine BUT if you go this.getClass().getResource("").getPath() + "/data" it goes haywire outside of the development env.
Also if a class extends one in another project it seems to want to look at the superclasses dir rather than the extended one but it didn't happen every time so slightly confused there.
Anyway stopped using getResource.getPath()+"other string" and when applicable used System.getProperty("user.dir") and things are now back on the road.
[Updated on: Sun, 02 November 2014 01:31] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05222 seconds