New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to set fx:platform basedir #127

Closed
hinerm opened this Issue Jun 12, 2015 · 7 comments

Comments

Projects
None yet
4 participants
@hinerm
Copy link

hinerm commented Jun 12, 2015

JavaFX has a fx:platform element, where you can set basedir="" to allow self-contained apps to launch with system java.

Exposing this in the javafx-maven-plugin configuration would be very useful.

@hinerm hinerm referenced this issue Jun 12, 2015

Open

Switch to JavaFX native launcher #33

3 of 7 tasks complete
@maxd

This comment has been minimized.

Copy link
Contributor

maxd commented Jun 12, 2015

Just pass it through bundleArguments parameter:

<bundleArguments>
  ...
  <runtime/>
</bundleArguments>

@FibreFoX FibreFoX added the invalid label Jun 15, 2015

@hinerm

This comment has been minimized.

Copy link
Author

hinerm commented Jun 15, 2015

Thanks, this worked for me. I don't see bundleArguments in the archived plugin documentation.. hope it gets sorted out when your site comes back up!

@hinerm hinerm closed this Jun 15, 2015

ctrueden added a commit to scijava/pom-scijava that referenced this issue Jun 16, 2015

@AugustKarlstedt

This comment has been minimized.

Copy link

AugustKarlstedt commented Sep 30, 2015

@hinerm: Could you post the exact markup that you used? This doesn't seem to be working for me.

@hinerm

This comment has been minimized.

Copy link
Author

hinerm commented Sep 30, 2015

@AugustKarlstedt sure; you can see how we were using the configuration in this pom. Haven't tried it recently though.

@AugustKarlstedt

This comment has been minimized.

Copy link

AugustKarlstedt commented Sep 30, 2015

@hinerm: Thanks! It doesn't seem like you're setting the fx:platform basedir, but instead just setting runtime="" (which doesn't include JRE in the bundle).

The issue I'm having is that running the built EXE still looks for the runtime to be included and throws an error.

@hinerm

This comment has been minimized.

Copy link
Author

hinerm commented Sep 30, 2015

@AugustKarlstedt Our use case was that we wanted the ability to build a self-contained version of our application without bundling a JRE - allowing a user's system JRE installation to be picked up instead.

You may want to verify that your JRE installation - e.g. if you open a command prompt can you use Java? If not, then a JavaFX app built with runtime="" will not be able to start up.

Note that if you're running 32-bit windows, it sounds like you also need to add JAVA_HOME to your PATH.

If you are able to verify your Java installation and are still having problems starting your app, I recommend opening a new issue and providing more information about your particular setup/pom configuration, and what you're trying to accomplish, as you may be coming up against a bug or other limitation.

@AugustKarlstedt

This comment has been minimized.

Copy link

AugustKarlstedt commented Sep 30, 2015

@hinerm: That's what I was attempting to do. I have verified that my JRE installation is correct and working.

Thanks for your help, it seems like I should open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment