Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden. Du solltest ein Upgrade durchführen oder ein alternativer Browser verwenden.
JavaFXbuild.fxbuild error beim Erstellen einer exe
ich möchte eigentlich nur mein Projekt exportieren, scheint aber unter FX ein schwieriges Unterfangen zu sein, zumin bei mir.
Bei FX Build Configuration habe ich folgende Werte eingetragen.
Build Directory: ${project}/build (vorher schon so eingetragen)
Vendor name: buildsolution.ch (Wobei ich absolut nicht verstehe was ein Vendor ist mit diesem Zusammenhang).
App-Title: MatchMaker
App-Version: 3.0
App-class: einfach die Main ausgewählt.
danach bin ich auf Generate "ant built.xml and run"
Buildfile: Buildfile: C:\Users\Hades-User\Desktop\Projekte\Export\build\build.xml
setup-staging-area:
[delete] Deleting directory C:\Users\Hades-User\Desktop\Projekte\Export\build\externalLibs
[delete] Deleting directory C:\Users\Hades-User\Desktop\Projekte\Export\build\project
[delete] Deleting directory C:\Users\Hades-User\Desktop\Projekte\Export\build\projectRefs
[mkdir] Created dir: C:\Users\Hades-User\Desktop\Projekte\Export\build\externalLibs
[copy] Copying 1 file to C:\Users\Hades-User\Desktop\Projekte\Export\build\externalLibs
[mkdir] Created dir: C:\Users\Hades-User\Desktop\Projekte\Export\build\project
[copy] Copying 28 files to C:\Users\Hades-User\Desktop\Projekte\Export\build\project
[copy] Copying 66 files to C:\Users\Hades-User\Desktop\Projekte\Export\build\project
[mkdir] Created dir: C:\Users\Hades-User\Desktop\Projekte\Export\build\projectRefs
do-compile:
[delete] Deleting directory C:\Users\Hades-User\Desktop\Projekte\Export\build\build
[mkdir] Created dir: C:\Users\Hades-User\Desktop\Projekte\Export\build\build\src
[mkdir] Created dir: C:\Users\Hades-User\Desktop\Projekte\Export\build\build\libs
[mkdir] Created dir: C:\Users\Hades-User\Desktop\Projekte\Export\build\build\classes
[copy] Copying 1 file to C:\Users\Hades-User\Desktop\Projekte\Export\build\build\libs
[copy] Copying 28 files to C:\Users\Hades-User\Desktop\Projekte\Export\build\build\src
[copy] Copying 66 files to C:\Users\Hades-User\Desktop\Projekte\Export\build\build\src
[javac] Compiling 24 source files to C:\Users\Hades-User\Desktop\Projekte\Export\build\build\classes
[javac] Note: C:\Users\Hades-User\Desktop\Projekte\Export\build\build\src\mainController\TreeView_Controller.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 70 files to C:\Users\Hades-User\Desktop\Projekte\Export\build\build\classes
init-fx-tasks:
do-deploy:
[copy] Copying 1 file to C:\Users\Hades-User\Desktop\Projekte\Export\build\dist\libs
[mkdir] Created dir: C:\Users\Hades-User\Desktop\Projekte\Export\build\build\classes\META-INF
EDIT: 2
Sind die Notes von besonderer wichtigkeit um das Projekt zum Laufen zu bringen? Anscheinend habe ich irgendwo ein ArrayList und dessen Generic vergessen.
Jetzt wenn ich die jar exportiere, sagt mir die Windows Kommando box, "unable to access". Jemand eine Idee warum?
Probe halber habe ich mal versucht, eine ganz einfaches FX Projekt zu exportieren, funktioniert einwandfrei.
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$152(
Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$50/1343441044.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 matchMakerMain.MatchMaker_Main.start(Unknown Source)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159
(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$53/424866604.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknown
Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$46/355629945.run(Unkn
own Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown Sourc
e)
at com.sun.javafx.application.PlatformImpl$$Lambda$48/1359629375.run(Unk
nown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown S
ource)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/1915503092.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$145(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$36/1963387170.run(Unknown
Source)
... 1 more
Exception running application matchMakerMain.MatchMaker_Main
Mittlerweile wirft er mir das aus wenn ich das über die CMD starten möchte.
Ich habe seinerzeit mit jfxbuild lediglich das Grundgerüst für das Ant-File gelegt, alle weiteren Änderungen waren dann rein am build.xml weitergearbeitet.
Mittlerweile sieht es in etwa so aus (habe alle Referenzen auf uns mal raus genommen):
Was macht es?
- Git-Hash vom Head lesen und in eine Java-Datei vorm kompilieren schreiben
- Obfuscating mit ProGuard
- Signieren der Anwendung/des Applets mit eigenen (aber gekauften) Zertifikat (bzw. dem daraus erstellten KeyStore) und aller Bibliotheken
- builden für unterschiedliche Systeme (jeweils auf einem solchen, Cross-Plattform builds sind leider nicht mit einem einzigen Aufruf möglich - brauchst also z.B. Win, Mac und Linux für jede Plattform)
- eventuell den Pfad für die cacerts setzen (auf Linux macht https sonst im WebView Probleme, man muss mit dem Pfad spielen)
- alternativ auch für Applet
- Wenn die Tools da sind, werden auch die Installer / Executables für die Plattform erstellt
- externe Scripte für bestimmte Operationen (wir haben ein DL-Manifest, mit dem wir updates zumindest Theretisch steuern könnten), ...
- und sicher noch mehr, was ich jetzt schon wieder vergessen hab