I'm trying to package a JavaFX/DukeScript application into native bundles. For Windows that's achieved with Inno Setup, that's what the javafxpackager uses. I can't find much documentation about it, so I'll create a question and provide the answers I find below.
How to debug problems with the javafx native bundle for Windows?
1k Views Asked by ZiglioUK At
1
There are 1 best solutions below
Related Questions in JAVAFX
- Function for making the code wait in javafx
- JavaFX build generating a blank gui with primary view and secondary view buttons
- JavaFX SwingNode instantiation fails with exception
- I want to understand modularity in java. When compiling my app I have a ResolutionException
- Importing Jython into a JavaFX application
- gluon attach audio doesn't play any sound on android
- Using javaFx, how to distinguish between return-key and enter-key on the numpad?
- Displaying a Hashmap in a TableView in JavaFX
- HBox doesn't fill parent GridPane when rotated by 90 degrees
- Run java program
- Setting up MongoDB with JavaFX in Intellij, MongoDB external Jar files throwing errors
- JavaFX not support GPU hardware decoding?
- JavaFX resize ImageView in center of BorderPane
- In Javafx how to access object of a component which is under an overridden method? Problem related with TableView
- How to style rounded corners of a TextArea in JavaFX
Related Questions in JAVAFX-WEBENGINE
- java.lang.reflect.InvocationTargetException in Application start method
- Why am i getting an error when I run javafx webview?
- Clicking on menu item "open in new tab" on webview does not open webpage sometimes, other time it does open
- Trying to act on a page redirect with JavaFX and WebView
- jar image from jlink does not show org.kordamp.materialdesign2 icons but they load when program is run in intellij
- Certificate selection popup doesn't comeup when server asks for client certificate using Javafx webview
- Get user input from textfield to load website of their choice
- Refresh WebView contents from a JS bridge in JavaFX
- JavaFX WebEngine crashes after loading a web page with a video tag
- javafx.WebView not open local site with socket.io
- Javafx.webView not opening local page in NodeJS server
- Connection refused by server and Unknown error javafx.web after loading page with port 3000
- Why does JavaFX's WebEngine not display images when providing a path without scheme?
- JavaFX Webview on Mobile does not receive any TouchEvent
- How to set an action to occur whenever JFXPanel is closed?
Related Questions in DUKESCRIPT
- How can I define writable computed observables in Dukescript?
- How can I embed a Dukescript App into a JavaFX Scene?
- packaging dukescript as native windows app
- How do I deploy a Dukescript Jersey Based Server to a production enviroment?
- How can I navigate through views in controls.js
- DukeScript: Android start an intent
- Chocolate chip UI Navigation not working on Dukescript
- What does browser.bootstrap stand for in dukescript projects?
- Trying to insert data non related to model produces null
- Knockout Bindings are not being applied when using angular templates
- java.lang.Throwable: ReferenceError: event is not defined
- Sending constant parameters to change a model field in dukescript
- How to bind events on dinamically created html?
- How to integrate admob to Dukescript generated apk?
- How to find variable in a String list in DukeScript
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
So I've created a build.xml Ant script using e(fx)clipse (see example here). I've been following this excellent blog post. Now, the bundle task worked and produced an installer and executable app. I've been having trouble running the app and couldn't see a stack trace. So here's how to display a window with the stack trace when running the executable from the command line:
That brings up a popup, with the stack trace. In my case, a jar dependency was missing. So just for testing, I manually added that jar under
deploy\bundles\goGPS_FX\app\libs.For the JavaFX launcher to include this new jar, I need to modify the file
app\package.cfg. As far as I understand, that's JavaFX specific, it's not needed by Inno Setup. Also, I couldn't find much information about this file. Anyway, there's a property calledapp.classpathwe can update. The other relevant property isapp.mainclass. Here the mainclass is not specified with the standard dotted notation, but rather as a path:Finally, other properties might be available. One I've found was:
So that's a way to pass arguments to the jvm, should you need to.