How do we install Java in Wine?
I have a Windows file.exe
and I need Wine and Java to open it. I don't know how to install Java in Wine. When I try to open Java setup it says
Wrapper.CreateFile failed with error 32: Sharing Violation.
And it also say
Wrapper.CreateFile failed with error 123: Invalid name. Please Help.
I've discovered the problem and have found the solution (See Below).
The Problem
A Windows directory needs to exist:
C:\Users\USERNAME\appdata\LocalLow\Sun
On your box, you have the following directory structure, most likely:
/home/USERNAME/.wine/drive_c/users/USERNAME/
*Where USERNAME is your actual user name
The Solution:
-
Make the subdirectories
(Point and Click Method)
Open Home Folder
Open .wine
Open drive_c
Open users
Create Folder appdata
Open appdata
Create Folder LocalLow
Open LocalLow
Create Folder Sun(Console/Terminal)
cd /home/`whoami`/.wine/drive_c/users/`whoami`/ mkdir -p appdata/LocalLow/Sun
*NOTE: appdata/LocalLow/Sun IS case sensitive, so type it exactly as is shown
Double click on the JRE executable (I used 32 bit, but I believe 64 bit works too. Be sure to check winehq's website and your version of Ubuntu to be sure)
Install away :)
Importance/Relevance
As there are some programs that are Windows specific, and only partially use Java, I found that I still needed a solution to this problem. Therefore, I have provided the aforementioned procedure to solve the problem.
Reference
- JAVA won't install - Wrapper.CreateFile failed with error 3 | Windows 7 Forums
You do not need wine to run the Minecraft launcher on Ubuntu, just do the following
- Download and save the jar file from the Minecraft website.
https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar - Install "OpenJDK Java 7" from the Software center.
- Locate the .jar file and go to the permissions tab in the properties.
- Click "allow executing file as program".
- Go to the "Open With" tab and set "OpenJDK Java 7 Runtime" as default.
- Click the jar file, and you can start playing minecraft on Ubuntu : )