• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

deprecated api help

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everybody...I am maintain some old code, and I ran into a small problem. In the code, there is this line:
sun.applet.AppletViewer.main(args);
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!
Cardwell
 
Saloon Keeper
Posts: 22127
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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");
 
I think she's lovely. It's this tiny ad that called her crazy:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic