"I'm not back." - Bill Harding, Twister
More specifically, why are you attempting to use the Java platform to do something for another platform? It's analogous to executing dir.exe on AIX for example.
Won't it be better if you stored the layout of your menu in a configuration file
Originally posted by Ulf Dittmer:
Not quite. There are some areas where you need to deal with platform differences in order to provide good behavior on all platforms. E.g., on OS X there are a few menus you'd put in the Application menu, not in the File menu.
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Tony Morris:
Why would you use a OS X convention on the Java platform? What has the Java platform got to do with the OS X platform? Why not use the Java platform convention? Sounds contrived to me (albeit common).
Tony Morris
Java Q&A (FAQ, Trivia)
behaves like the Java platform (or at least should)
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Tom Hill:
Hi guys, does anyone know if there is an easy/quick way of determining if the operating system is windows/unix/mac based? I know you can use System.getProperty("os.name") to get the name of the operating system, but a lot of the unix based OSs are given names that dont contain: "unix" or "linux".
It seems daft to ahve to cater for every possible Operating System, when some are very similar but with different names.
Cheers!
Tom
Originally posted by Tony Morris:
So you give your user an application that runs on the Java platform, pre-requisites the Java platform, and behaves like the Java platform (or at least should), except the user is not expected to know about the Java platform? The Java platform has absolutely nothing to do with the other platforms that you mention.
I only ask the question because I've seen the mistake enough times. It is most certainly contrived.
Originally posted by Ulf Dittmer:
It's not as simple as that. You actually need to use platform-specific classes to accomplish some of the things that make a Java app feel like a native app, but the results are worth it. On no other platform can Java apps be made to look more native than on OS X.
Originally posted by Tom Hill:
wow, i didnt expect so many responses. Basically im just trying to kick off another application, as part of an automated testing suite im working on. The application can be installed on windows and unix but obviously they have to be executed in different ways depending on the OS.
I really just want to know whether i should be executing a sh or a cmd to attempt to start the application.
Thanks for all the input so far
Tom
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
|