wine and java

Questions about Wine on Linux
Locked
giordano
Newbie
Newbie
Posts: 3
Joined: Mon Dec 21, 2015 12:24 pm

wine and java

Post by giordano »

i hope my post is in the right place.
i'm an ubuntu 14.04 (32 bit machine) newbie user, i downloaded wine 1.6.2 because i need tu launch an .exe file.
when i launch it (from terminal, in the same directory of the .exe file: "wine programname.exe"), terminal output is:
fixme:process:SetProcessDEPPolicy (1): stub
fixme:process:SetProcessDEPPolicy (1): stub
fixme:win:DisableProcessWindowsGhosting : stub
fixme:rstrtmgr:RmStartSession 0x49c3f0, 0, 0x49c3f4 stub!
and a new, little grey windows says (in italian): "impossible to find java runtime 1.5.0...".
i have java on ubuntu, and on windows too, but i don't know what to do to tell wine i have those...
can someone help me? i would uninstall windows, but without using wine it is impossible.
thanks!
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine and java

Post by dimesio »

First, 1.8 is out now, so you need to upgrade Wine. Use the WineHQ packages. viewtopic.php?f=8&t=25767

As for Java, you can't use either the Linux version or the one on your Windows partition. You have to install Windows Java in Wine.
giordano
Newbie
Newbie
Posts: 3
Joined: Mon Dec 21, 2015 12:24 pm

Re: wine and java

Post by giordano »

thank you dimedio!
i'll try to upgrade wine using winehq packages. after i'll do that, i'll try to install windows java in wine, but can you help me? can you tell me a simply method to install windows java in wine?
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine and java

Post by dimesio »

Download and run the installer the same way you would any other app.
giordano
Newbie
Newbie
Posts: 3
Joined: Mon Dec 21, 2015 12:24 pm

Re: wine and java

Post by giordano »

so, i downloaded "jre-8u66-windows-i586.exe".
and, in an ubuntu terminal, i wrote "sudo wine jre-8u66-windows-i586.exe"?
nothing happened: after a few seconds, the prompt returned.
then i wrote "wine myprogram.exe", and this is the output in the terminal:

fixme:process:SetProcessDEPPolicy (1): stub
fixme:process:SetProcessDEPPolicy (1): stub
fixme:win:DisableProcessWindowsGhosting : stub
fixme:rstrtmgr:RmStartSession 0x49c3f0, 0, 0x49c3f4 stub!

at the same time, appears a little, gray window, whose title is (in italian, because i use an italian system):"installation", and the text:"impossible to find java runtime 1.5.0 or superior....".
help me, please!
thanks
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine and java

Post by dimesio »

giordano wrote: and, in an ubuntu terminal, i wrote "sudo wine jre-8u66-windows-i586.exe"?
Never run Wine as root. http://wiki.winehq.org/FAQ#run_as_root

The version of Java that you tried to install is not the version of Java that your app wants, and that particular version currently doesn't install in Wine. https://bugs.winehq.org/show_bug.cgi?id=38811.

You need to install the version of Java that your app is asking for (1.5.0). Downloads of older versions are no longer available from Oracle, so you will have to find one somewhere else. But first you need to fix the permissions errors you created by running Wine with sudo.
Locked