|
|
Re: How to correctly deploy an e4 application that uses e(fx)clipse? [message #1385512 is a reply to message #1385265] |
Sun, 08 June 2014 07:27 |
Fernando Paz Messages: 22 Registered: May 2014 |
Junior Member |
|
|
By "javafx setup generation toolchain" you mean the javafxpackager tool?
I get this error when I try to run the ant task:
Buildfile: E:\dev\eclipse-workspaces\test.efxclipse\test.efxclipse.app.releng\build.xml
init-fx-tasks:
[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
do-deploy:
[fxosgilauncher] E:\dev\eclipse-workspaces\test.efxclipse\test.efxclipse.app.product\target\products\test.efxclipse.app.product\noenv\noenv\noenv does not exist.
[fxosgilauncher] at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:483)
[fxosgilauncher] at org.apache.tools.ant.types.FileSet.iterator(FileSet.java:69)
[fxosgilauncher] at org.eclipse.fx.ide.ant.FXOsgiLaunchTask.execute(FXOsgiLaunchTask.java:66)
[fxosgilauncher] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[fxosgilauncher] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[fxosgilauncher] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[fxosgilauncher] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fxosgilauncher] at java.lang.reflect.Method.invoke(Unknown Source)
[fxosgilauncher] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fxosgilauncher] at org.apache.tools.ant.Task.perform(Task.java:348)
[fxosgilauncher] at org.apache.tools.ant.Target.execute(Target.java:392)
[fxosgilauncher] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[fxosgilauncher] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[fxosgilauncher] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[fxosgilauncher] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[fxosgilauncher] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[fxosgilauncher] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[fxosgilauncher] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[fxosgilauncher] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
BUILD FAILED
E:\dev\eclipse-workspaces\test.efxclipse\test.efxclipse.app.releng\build.xml:23: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:resources
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
Total time: 381 milliseconds
In Run > External Tools > External Tools configuration > JRE tab, I changed my Execution environment to a JDK8, as suggested here [1]. However, the ant script is still not being able to create the folder "E:\dev\eclipse-workspaces\test.efxclipse\test.efxclipse.app.product\target\products\test.efxclipse.app.product\noenv\noenv\noenv". I created the folder manually and now I'm getting this error:
Buildfile: E:\dev\eclipse-workspaces\test.efxclipse\test.efxclipse.app.releng\build.xml
init-fx-tasks:
do-deploy:
[fxosgilauncher] java.util.NoSuchElementException
[fxosgilauncher] at org.apache.tools.ant.types.resources.FileResourceIterator.nextResource(FileResourceIterator.java:141)
[fxosgilauncher] at org.apache.tools.ant.types.resources.FileResourceIterator.next(FileResourceIterator.java:125)
[fxosgilauncher] at org.eclipse.fx.ide.ant.FXOsgiLaunchTask.execute(FXOsgiLaunchTask.java:66)
[fxosgilauncher] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[fxosgilauncher] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[fxosgilauncher] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[fxosgilauncher] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[fxosgilauncher] at java.lang.reflect.Method.invoke(Method.java:483)
[fxosgilauncher] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fxosgilauncher] at org.apache.tools.ant.Task.perform(Task.java:348)
[fxosgilauncher] at org.apache.tools.ant.Target.execute(Target.java:392)
[fxosgilauncher] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[fxosgilauncher] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[fxosgilauncher] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[fxosgilauncher] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[fxosgilauncher] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[fxosgilauncher] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[fxosgilauncher] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[fxosgilauncher] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Using base JDK at: C:\Program Files\Java\jdk1.8.0\jre
Skip [Windows Application Bundler] due to [Main application jar is missing.]
Skip [MSI Bundler (WiX based)] due to [Main application jar is missing.]
Skip [Exe Bundler (based on Inno Setup)] due to [Main application jar is missing.]
BUILD SUCCESSFUL
Total time: 587 milliseconds
The exception points to the following line in build.xml:
<fxosgilauncher classpathref="fxant" equinoxlauncherjarref="equinox-launcher"/>
It seems that the script is not finding the equinox-launcher. And why is it asking for the "Main application jar"?
I tried to run with Maven too (mvn clean verify) but then I get this error:
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'efxclipse-addons' from location http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site/: No repository found at http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'efxclipse-addons' from location http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site/
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Failed to load p2 repository with ID 'efxclipse-addons' from location http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site/
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:300)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.gatherExternalInstallableUnits(TargetPlatformFactoryImpl.java:268)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:166)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:119)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.computeTargetPlatform(P2TargetPlatformResolver.java:215)
at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:100)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
... 11 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site.
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:395)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:692)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:59)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:52)
at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:296)
... 20 more
It's the first time I'm using this so I am a bit lost. Any help is appreciated.
[1]: https://groups.google.com/forum/#!topic/efxclipse/x3vHUfgTka0
[Updated on: Sun, 08 June 2014 10:31] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04490 seconds