Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
Java in Wine isnt very stable, nor reliable. What program are you trying to run that requires Java? –  Thomas W. Mar 29 '12 at 15:05
    
Normally Wine is a Windows emulator, and you have java already installed. It sounds very strange to me that you need the .exe and the java together and running in linux ubuntu –  jmolinaso Mar 29 '12 at 15:15
    
I want to run Minecraft Thailand. Minecraft Thailand is a server. We need to download the EXE file to play on the server. –  user52583 Mar 30 '12 at 9:30

2 Answers 2

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/

*Replace USERNAME with your actual user name

The Solution:

  1. 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/USERNAME/.wine/drive_c/users/USERNAME/
    mkdir -p appdata/LocalLow/Sun
    

    *NOTE: appdata/LocalLow/Sun IS case sensitive, so type it exactly as is shown

  2. 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)

  3. 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

http://www.w7forums.com/java-won-t-install-wrapper-createfile-failed-error-3-a-t15053.html

share|improve this answer

You do not need wine to run the Minecraft launcher on Ubuntu, just do the following

  1. Download and save the jar file from the Minecraft website.
    https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar
  2. Install "OpenJDK Java 7" from the Software center.
  3. Locate the .jar file and go to the permissions tab in the properties.
  4. Click "allow executing file as program".
  5. Go to the "Open With" tab and set "OpenJDK Java 7 Runtime" as default.
  6. Click the jar file, and you can start playing minecraft on Ubuntu  : )
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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