# Java applet from RAILS application

**URL:** <https://www.ruby-forum.com/t/java-applet-from-rails-application/135031>\
**Category:** Rails\
**Created:** [April 17, 2008, 10:41am UTC](https://www.ruby-forum.com/t/java-applet-from-rails-application/135031 "2008-04-17T10:41:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [April 17, 2008, 10:41am UTC](https://www.ruby-forum.com/t/java-applet-from-rails-application/135031/1 "2008-04-17T10:41:26Z")

</div>

We put the MyApplet.class in the lib folder and called the applet  
using html object tab. We set the codebase = “MyApplet.class”.  
The application is throwing the class not found exception.

Any one tried out calling the applet from rails application?

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [April 17, 2008, 11:29am UTC](https://www.ruby-forum.com/t/java-applet-from-rails-application/135031/2 "2008-04-17T11:29:59Z")

</div>

On 17 Apr 2008, at 09:41, Ayyanar Aswathaman wrote:

> We put the MyApplet.class in the lib folder and called the applet  
> using html object tab. We set the codebase = “MyApplet.class”.  
> The application is throwing the class not found exception.

Wouldn’t the applet need to be somewhere in /public in order for the  
browser to be able to download it?

Fred

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [April 17, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/java-applet-from-rails-application/135031/3 "2008-04-17T12:27:24Z")

</div>

Hi i have the same issue,

This is the code i used,

I have a java applet proj called “TwainConnect” converted tat into a jar  
TwainConnect.jar(which includes all its dependencies like external jars  
etc.)

I placed this jar in app\public folder.

TwainConnectApplet.class is the file i need to access…

I used the above code but not working…

Where am goin wrong.
