1

I want to be able to deploy my Java application so that it will run on any target (even if the target doesn't have Java installed)

I'm told I must distribute the JRE with my application. Do I literally take a copy of the JRE folder for Windows and one for Linux and have a shell to execute both?

Or are there further steps?

1

1 Answer 1

1

I think the best way to do this is to use an installer.

BitRock, Install4j, etc...

The installer will take care to install the JRE if it doesn't exist on the machine. Moreover the installers above are multi-platform.

Sign up to request clarification or add additional context in comments.

4 Comments

I dont want to install anything...just run a script
"I dont want to install anything" That sounds like nonsense here. To get the app. working, the user machine will need a JRE and the app., both of which need to be installed. Does the app. have a GUI (it it a desktop app.)?
@AndrewThompson its a server app. I want them to be able to unzip an archive and run my app with no root privileges
OK. I'd say go with the advice in the answer, but I think the fact your clients have no root privileges will put a stop to that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.