jar compatibility

J

JediKnight2

My question is this. I know java programs are good for cross platform
applications...I am no Java Programmer, but I do have a question...say
I have a java app that uses one of the new features in Java 6...I
minimize the app to the system tray or set a registry entry to allow
the program to launch on startup...will that cause the program to fail
when being used on a Mac OS? or will it still run? Dont have access
to a Mac so I cant test it...just curious.
 
J

Juan Singh

JediKnight2 said:
My question is this. I know java programs are good for cross platform
applications...I am no Java Programmer, but I do have a question...say
I have a java app that uses one of the new features in Java 6...I
minimize the app to the system tray or set a registry entry to allow
the program to launch on startup...will that cause the program to fail
when being used on a Mac OS? or will it still run? Dont have access
to a Mac so I cant test it...just curious.

In Java you do not access Windows Registry the way you would do it in a
native app. Java comes with a Preferences API that can be used to store
settings. This Preferences API hide the actual location of the
parameters. Therefore, from within your program you won't know if the
actual values are being stored in Registry or a file somewhere.

As far as starting programs at startup is concerned, you do that at the
time of installation. If you use a well known installer like
InstallAnywhere, it should take care of this problem.

If you do not want to use an installer, you will have to manually write
scripts to launch your program at startup - batch files on Windows and
shell scripts for MacOS, Linux/Unix that will install your program in
the correct location.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top