Running a Java Based Windows EXE

Hey all,

I've managed to get my boss to let me start using my Mac at work as the Windows machine I have is stupidly slow. Anyway, We use a Java Based Windows Executable which runs quite happily under JRE 6u18. Now I know on Ubuntu I can just install Wine, then Install Java into Wine and it works fine. My question is, how would I go about installing Wine onto Mac OS X.

Thanks for everybodys time.

CPressland

Black MacBook 2.16GHz, Mac OS X (10.6.2)

Posted on Mar 12, 2010 4:23 AM

Reply
9 replies

Mar 12, 2010 5:18 AM in response to Asphyxia8489

If it's a Windows EXE file, it's not Java.

If it's a Java executable, then it's not Windows and doesn't require WINE or anything else, it'll just run.

The only place that I can see some sort of confusion is if the Java program is shipped with an EXE to act as a launcher for it (i.e., the EXE runs something ling like this 'java -jar application.jar'). Some Java installers do something like that, but they typically also provide a shell script that does the same thing for you. Otherwise, you merely need to find which jar contains the application and, possibly, specify the class path for any of the other Jar files (e.g., just like any Java program).

For what it's worth, it's also pretty trivial to package up Java applications as OS X application bundles. I've done that several times, actually, for third-party applications.

Mar 12, 2010 8:22 AM in response to J D McIninch

Well, as you guys probably know Windows can't handle Java Applications properly because it was built by... well, idiots. So most Java Applications (Azureus, jDownloader) have to be executed with an EXE file that calls the Java Framework to load to the Java file and execute the code contained within. Problem being that when something is packaged this way it's a royal pain to get working on a Mac or Linux box, at least from my personal experiance.

Anyway, thanks for the guide on getting Wine running, I'll give it a spin tonight and post back the results.

Thanks guys

CPressland

Mar 15, 2010 4:51 AM in response to Asphyxia8489

You need to pull out the .jar file. That should be all that is needed.
[This article may provide some help|http://stackoverflow.com/questions/316701/how-can-i-extract-java-exe-to-ja r]. Or, [maybe this one|http://forums.sun.com/thread.jspa?threadID=5347967].

Is this a custom-made in-house app? If so, can you just ask whoever packaged it to just give you the .jar file?

If it was created and compiled for your company for fee, it might not be possible to separate the .jar from the package. [This article discusses .jar to .exe|http://www.excelsior-usa.com/articles/java-to-exe.html], but may be useful in understanding what you have and if it is even possible to convert.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Running a Java Based Windows EXE

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.