Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > Running Java Applications

Running Java Applications
Thread Tools
Fresh-Faced Recruit
Join Date: May 1999
Location: Oak Park, IL USA
Status: Offline
Reply With Quote
Aug 18, 1999, 03:33 PM
Does anyone know how to run a Java application -- not an applet -- on the Mac? We have Java programmers here at work and we need to test how well the applications work. I've been sent a .jar file, and I have no idea how to even get it running. Also, does anyone know where I can find some sample Java applications to try? Thanks very much for any help.
Fresh-Faced Recruit
Join Date: Jul 1999
Location: Chicago, IL
Status: Offline
Reply With Quote
Aug 20, 1999, 10:18 AM
Go to apple.com/java. Lots of basic information on using Java on the Mac.

Download and install MRJ 2.1.4.

Read the READ ME files. In particular, pay attention to JBINDERY.

Think about subscribing to Apple's Mac Runtime for Java maillist.
Reply With Quote
Aug 20, 1999, 12:17 PM
Actually, JBindery is part of the MRJ SDK, not MRJ itself. You can find the SDK at <http://developer.apple.com/java/>. It's an app that allows you to build a double-clickable Java app from a .jar file or inidividual Java class files -- just drop the .jar on the app, type the class name in the right field, and save the settings in the folder that you want to run the app from (don't click the Run button from within JBindery unless your .jar file doesn't depend on its directory being set properly). That'll give you a standard Mac application that you can double-click to run.

More JBindery documentation is available with the SDK and in pages online that you can find at the Java developers' page mentioned above.

Oh, and if you're doing Java development on the Mac, join the MRJ-Dev mailing list. It's a really terrific list that'll answer most any problem you run into while trying to get things to work correctly cross-platform. Information about that is (surprise, surprise) also on the Java developers' page.

Hope this helps,
Intern, Apple MRJ team
Reply With Quote
Aug 20, 1999, 12:19 PM
Argh...that doesn't display the link that I put in the last message. The page that you want is <a href="http://developer.apple.com/java/">http://developer.app le.com/java/</a>. Click on the "MRJ 2.1.4" link at the top of the page to go to a page where you can download the SDK.

Reply With Quote
Aug 20, 1999, 12:24 PM
You will also have to download the MRJ SDK. This is where the application JBindery is.

Once you download both the MRJ and the SDK, the easiest way to do it is to run JBindery and point to the JAR file and indicate the class you want to run. If you need to pass additional parameters, you can. And you should save the settings so you can just double click on the settings file (or if you save it as an app, just run the app).

Good luck,
Reply With Quote
Aug 20, 1999, 12:39 PM
While Apples JBindery is the ulimate solution, and anyone developing for MRJ should use it to package their software, there are a couple of other solutions just to get a jar running.

My own :
- RunThatJava

or also :
- JarRunner
(You will also need the jar2jax program, included on the same web page,
to set the main class and classpath information.)

Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Privacy Policy
All times are GMT -4. The time now is 06:52 AM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2