0

I read that DukeScript, a technology meant to bring Java to every client without the need of a plug-in.

Can this technology used as an applet replacement?

Vijeta Rana
  • 15
  • 1
  • 4

1 Answers1

1

In geneneral I'd say yes. Is there a particular reason why you would choose to use java applets in the past, meaning: did they need to do things like accessing the hardware and/or file system?

If your applet would do nothing more than what JavaScript would be able to do, then yes, you can definitely look at Java to to JavaScript solutions like GWT or DukeScript. They're quite different: one translates Java source code to JavaScript, the other one uses Java VMs written in JavaScript in order to run bytecode. Regardless, they're subject to the same limitations, when deployed to standard browsers. DukeScript though can be packaged up as a standalone app, running inside the JavaFX browser or as a native app on mobiles, therefore it can do more than standard JavaScript can do.

ZiglioUK
  • 2,573
  • 4
  • 27
  • 32
  • Actually we are using Applets to access file system and applets also talk to server , do you think in that case DukeScript or GWT would help us to access file system on client machine? – Vijeta Rana Jun 10 '15 at 03:52
  • File system is difficult and sandboxed with pure javascript, so in that case neither GWT or DukeScript would help when running inside a browser. If you want to keep using web technologies rather than native, you've got some options, and both involve deploying your app as standalone: 1. a packaged Chrome app would let you use Chrome specific APIs; 2. DukeScript, running inside the JavaFX browser. The latter option is the one I've been working on for building our own app https://github.com/goGPS-Project/goGPS_FX. – ZiglioUK Jun 10 '15 at 04:28
  • See this blog post for a good roundup: http://news.kynosarges.org/2013/12/29/webview-the-other-javafx-ui/ – ZiglioUK Jun 10 '15 at 04:33