.JAR

Questions about Wine on macOS.
Locked
nkitchen
Newbie
Newbie
Posts: 2
Joined: Fri Mar 15, 2013 10:25 am

.JAR

Post by nkitchen »

Hello,

I installed Wine, XQuartz and some others that a tutorial had me install. I have a program that I used on my windows machine. However, since I got this MacBook Pro, this is the only program that I am having trouble installing and being able to get working.

The installation file is a .exe file, however the file that the shortcut points to in /Program Files/ (on the Windows PC) is a .jar file. So when I install this on the Mac, it creates the directory, and when I try to open the .jar file, through terminal, I get an error.

What are some other steps that I have to take to get this .jar file to open on my new Mac?

Thank you in advance!


ERROR:

Nicholass-MacBook-Pro:Flygprestanda NKitchen$ wine guru-core.jar
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
wine: Bad EXE format for C:\Program Files\Flygprestanda\guru-core.jar.
Nicholass-MacBook-Pro:Flygprestanda NKitchen$
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: .JAR

Post by doh123 »

.jar is a Java file... just double click the .jar in Finder and see if it runs... no Wine needed as a .jar is not supposed to be tied to Windows or Mac or anything, its *supposed* to be platform independent. Many people program in Java though and stupidly tie it down to one system because of stupid design choices, careless programming, or plain ignorance though, so it may still not work.

Getting Windows version of Java to work and run java programs through Wine is also very problematic.... but you can NOT run a jar like that... even in Windows.

You'll need to install the Windows Java JRE in your wineprefix, then launch the java executable pointing to the jar file, which wouldbe something like...

cd "$wineprefix/Program Files/Java/j2re/bin/"
wine javaw.exe -jar "$wineprefix/Program Files/SomeProgram/whatever.jar"

probably still won't work right.
nkitchen
Newbie
Newbie
Posts: 2
Joined: Fri Mar 15, 2013 10:25 am

Re: .JAR

Post by nkitchen »

Well there is an install file, which I used wine to install. THen during the install, it installed Java runtime 32bit (I think), and basically has a folder with a few .jar files, .ini files, .exe files and .pkg files. I'm assuming that by opening the .jar file, it loads the exe file, which is why I need wine to open the .jar file. I tried to just open the .jar file on my Mac without using wine and I get this error:

"An exception occurred when attempting load guru.ini - is property 'guru.path' set?"
with a "Close" button.

Thank you for your help and time.
Locked