Gcenx / macOS_Wine_builds

Official Winehq macOS Packages
461 stars 23 forks source link

Running an application in a java environment #11

Closed mquisuisje closed 3 years ago

mquisuisje commented 3 years ago

Hello, Thank you for the effort you make to run Windows applications on Mac. I tried to install using your Wineskin Winery application with WS11WineCX64Bit19.0.1-1 as engine, a scientific program on Big Sur. The installation was done correctly but in order to function it needs Java JRE 1.6 which is included with the program in a sub-folder "jre1.6.0_05". The problem is that it cannot run javaw.exe which is in this subfolder. I have a message telling me that it cannot locate the virtual java machine. Any idea to solve this problem? Thank you

Gcenx commented 3 years ago

This isn’t something I’ve encountered before but as it’s unable to find the Java executable there’s two solutions I can think of.

Here’s an example from the mingw package

If you want your MinGW-generated windows binaries to work under wine out-of-the-box
        (and they are not statically linked), you can instruct wine
        to automatically search for dll-s by running:
            wine regedit
        Nagivate to:
            \[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\Environment\]
        or
            \[HKEY_CURRENT_USER\\Environment\]
        and add
            Z:[string map {/ \\} ${prefix}]\\${mingw_target}\\bin
        to the 'PATH' variable.

I’d assume doing something similar but using a Windows PATH like what’s already provided at that registry location would work

Avoid using Z: as that’s your mounted macOS file system aka “/“ meaning your wrapper won’t be movable anymore due to this hardcoded macOS PATH

Gcenx commented 3 years ago

Assuming this resolved your issue, reopen if needed