This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Applets and the fly likes deprecated api help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "deprecated api help" Watch "deprecated api help" New topic

deprecated api help

cardwell cupp
Ranch Hand

Joined: Aug 16, 2001
Posts: 66
Hey everybody...I am maintain some old code, and I ran into a small problem. In the code, there is this line:
I beleive this starts the applet viewer, but I am not sure. The problem is that it is deprecated, and I am trying to update everything. I have searched and searched through api's/documenation, but can't find a replacement for it. Does anybody have any suggestions?
Thanks All!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16892

It looks like the app is attempting to spawn a copy of the AppletViewer in order to run an applet. On my JDK, "appletviewer" is now a shell script, so I'd probably replace the statement to a call to the runtime.exec method with the appletviewer command line in it ("appletviewer MyApplet");

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: deprecated api help
jQuery in Action, 3rd edition