CD Autorun program for PC and MAC

 I need to make a program for the PC
and MAC that will be used as an autorun for a CD.  It has to start and
Open a file using the computers default program for the file type.  Example:  A text document would open up notepad on a PC, or a html document will open up the default browser on a PC or MAC.  I am fairly new to JAVA, but thought it was probably the best solution for both platforms.  I only have MS J++ 1.1, what java compiler should I use and any help on the programming would be appreciated.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan LouwerensSoftware EngineerCommented:
I don't know about Mac, but for PC, autorun is determined by a file called "autorun.inf", not a executable file. You can specify in the autorun.inf that you want to run a particular executable if you wish. I can't remember off the top of my head the exact syntax of the autorun.inf file, but I do know that it is contained within the MSVC++ documentation
chimpAuthor Commented:
 Yes, I know about the autorun.inf on PC and I think on the MAC you can do something similar if it has QuickTime installed.  I am hoping for an easy solution to the actual program (exe) to use on both platforms.
Jan LouwerensSoftware EngineerCommented:
OH! I see... sorry for the misunderstanding...
Java will only be the best solution, if you are shure to have a Java runtime environment on any machine, you take the CD to.

The same appears to be true to the Java capabilities of possibly installed browsers.

However, if you really want to go that way, I would prefer the browser's way, because there seems a big propability for today's PCs or MACs to hav a Java capable browser.

1. design and implement a Java Applet that does the work.
2. embed that applet into a HTML page
3. tell the autorun configuration to show the HTML created above.
4. given a pc or mac with correct installed java capable browser you'll see the applet running within the HTML page within the browser.

There is a further advantage, you can integrate the stuff from above into your web-presentation without any changes and serve it from the web-Server (for demonstration purposes e.g.).

hope my answer fitsyour needs ...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.