Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Requirements for Swing app on Windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requirements for Swing app on Windows?



For satisfactory results, download the Sub Java VM www.java.sun.com
(If not, your may or may not find's MS jrun stuff, which only runs Java up until 1.1.x versions, and sometimes not even that.

From the commandline, after installing the Sun Java kit, you run it through typing:

java -jar yourjar.jar

It *is* double clickable in the Windows Gui.
This provided your main-class specification in the jar is correct. When it is not, you can run on the commandline with

java -cp yourjar.jar;your;other;classpath;elements hlq.your.package.yourMainclass

This is all documented in the tools section of the Java docs, it is in Sun's. While you're at it, download that also in case your own goes missing ;-)


On Mar 28, 2004, at 9:32 AM, David Linker wrote:

I have a java swing application that is packaged as a jar file and runs fine on the Mac, either from the command line, or bundled with jar bundler.

Someone asked me if it would run on Windows. I know that it is possible to run on Windows, but I have the following questions:

- Can run it from the command line without installing additional software? If so, which versions of Windows?

- What do I need to do something similar to bundling on the Mac, so that it becomes a double-clickable application?

- If it will not run without installing additional software, what is required?

My apologies if this is a FAQ, in which case a pointer to the answer would be appreciated.

David Linker
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Requirements for Swing app on Windows? (From: David Linker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.