3

If I have Java RE in Ubuntu, and I have a program that runs in Wine (Windows) but need java, do I need to install twice Java? It's doesnt exist a way to connect both.

My question is not how to install Java RE in Wine, my cuestion is 100% theory. Why wine can't use my JRE installation instead of installing in windows JRE.

1
  • My question is not how to install Java RE in Wine, my cuestion is 100% theory. Why wine can't use my JRE installation instead of installing in windows JRE. – titusfx Sep 4 '16 at 12:15
3

Why can't Wine use my JRE installation instead of installing Windows JRE?

Linux executables are generally not compatible with Windows (they do not run in Windows). In particular the Linux versions of JRE are not compatible with Windows programs. Only Windows versions of JRE are compatible with Windows programs, so you need to install the Windows JRE in order for it to be compatible with Windows programs running in Wine.

Installation

The link to download the Java file you want is: Java Downloads for Windows. Download an Offline Java version. The installation instructions are available at the official What is the offline method for downloading and installing Java for a Windows computer? webpage.

-1

You could do wine start /unix to launch a native application. In this case you could do something like "which java" to find the path to java-> let us say that is usr/[somPath]/java

Then do this to launch the native unix Java "wine start /unix usr/[somPath]/java" to run the native java from wine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.