# How to call a java applet in rails application?

**URL:** <https://www.ruby-forum.com/t/how-to-call-a-java-applet-in-rails-application/134817>\
**Category:** Rails\
**Created:** [April 15, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-call-a-java-applet-in-rails-application/134817 "2008-04-15T12:42:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratnavel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6f9a4e/32.png) [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Post date:** [April 15, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-call-a-java-applet-in-rails-application/134817/1 "2008-04-15T12:42:39Z")

</div>

HI,

I have a applet file named “Scanner.class” which will scan and upload  
image to the web server from Scanners.

I have couple of doubts in accessing that applet file.

1. How to call this applet from rhtml file, and where should i place  
this file.

2. I also use some external jar files which i imported in my applet  
file, where should i place these jars?

Thanks,  
Ratnavel

---

<div class="post-metadata">

**Author:** ![ratnavel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6f9a4e/32.png) [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Post date:** [April 15, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/how-to-call-a-java-applet-in-rails-application/134817/2 "2008-04-15T12:48:58Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Ratnavel S. wrote:  
| HI,  
|  
| I have a applet file named “Scanner.class” which will scan and upload  
| image to the web server from Scanners.  
|  
| I have couple of doubts in accessing that applet file.  
|  
| 1. How to call this applet from rhtml file, and where should i place  
| this file.  
|  
| 2. I also use some external jar files which i imported in my applet  
| file, where should i place these jars?

Does the documentation on Java Web Start help you out?[0] In general,  
Java applets are executed by the client, and you can stick the Java  
stuff where ever you want, as long as the JNPL (sp?) file references the  
correct paths.

[0] [Java Web Start](http://java.sun.com/products/javawebstart/)

* * *

Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)

You stay here, Audrey – this is between me and the vegetable!  
~ – Seymour, from _Little Shop Of Horrors_  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.8 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAkgEh+4ACgkQbtAgaoJTgL/ZaACaAwy9Zed44G3woA1wboWyMrmR  
s98An2dxFLFNpboQI3viRLdVvYSeTRrd  
=PnmY  
-----END PGP SIGNATURE-----
