Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6170073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:58:04+00:00 2026-05-23T22:58:04+00:00

I am using deployjava.js to deploy this applet <script src=http://java.com/js/deployJava.js></script><script> var attributes = {codebase:

  • 0

I am using deployjava.js to deploy this applet

<script src="http://java.com/js/deployJava.js"></script><script> 
    var attributes = {codebase: '/devel/app/webroot/jpainter/applet',code: 'Painter.class', archive:'painter.jar', width:640, height:480} ; 
    var parameters = {jnlp_href: 'plugin2.jnlp'} ; 
    deployJava.runApplet(attributes, parameters, '1.6'); 
</script>

The API for the applet says to pass these params (specifically the canvas)

I tried this

<script src="http://java.com/js/deployJava.js"></script>
<script> 
var attributes = {codebase: '/devel/app/webroot/jpainter/applet',code:         'Painter.class', archive:'painter.jar', width:640, height:480} ; 
    var parameters = {jnlp_href: 'plugin2.jnlp', gui:'canvas.gui'} ; 
    deployJava.runApplet(attributes, parameters, '1.6'); 
</script>

And clearly that is not correct. What is the correct way to get this working?

JNLP

<resources> 
    <j2se version="1.4+"/> 
    <jar href="/devel/app/webroot/jpainter/applet/painter.jar"/> 
</resources> 

<applet-desc name="painter" main-class="Painter" width="640" height="480"> 
<param name="plugin2" value="true" />
</applet-desc> 
</jnlp>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:58:05+00:00Added an answer on May 23, 2026 at 10:58 pm

    In case someone stumbles upon this in the future, when you call the attribute and give it the location of your .jar file, it isn’t needed to also reference the jnlp.

    <script type="text/javascript" src="https://www.java.com/js/deployJava.js"></script>
    <script type="text/javascript">
    var attributes = {name: 'painter', codebase: BASE_DIR + '/app/webroot/jpainter/applet',code: 'Painter.class', archive:'painter.jar', width:742, height:262} ; 
    var parameters = {gui:'canvas.gui', image_width:'740', image_height:'260', stroke:'solid3'};
    var version = '1.6' ;
    deployJava.runApplet(attributes, parameters, version);
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using deployJava.js to detect and redirect for java compatibility. Now, however, I've noticed
I noticed that the launching of Java applets using deployJava.js seems to have stopped
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
I would like to know if its possible to deploy java class files without
I'm having trouble getting a Java Applet to communicate with the Javascript code on
I'm trying to display a Java applet in a page on a Grails server.
Using jQuery's UI Tabs. This is my code. <div id=tabs> <ul> <li><a href=#tabs-1>Find a
If I write a python script using only python standard libraries, using Python 2.6
Has anyone got EclipseLink MOXy (I'm using eclipselink 2.1.0) to work with Java 5?
Using Java, how can I extract all the links from a given web page?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.