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 8994209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:22:31+00:00 2026-06-15T23:22:31+00:00

I need to run an applet into a Plone application. I’ve developed the applet

  • 0

I need to run an applet into a Plone application.
I’ve developed the applet that runs fine in a test html page on my localhost, but since I’m a Plone/python/zope noob (java developer here) I can’t find the solution. Can anybody help?

Here is the code I’m using.

I created a folder named “java” under the folder “browser”, at the same level as “resource”; I registered this new folder in the /browser/configure.zcml file as following:

<browser:resourceDirectory
    name="java"
    directory="java"/>

I put all of my applet files in that folder (the jar itself, the jnlp, the required libraries). If I enter this in the Firefox address bar

http://localhost:8091/Scia/++resource++java/GestioneOneri.jar

I can successfully download the jar file, so it’s been registered correctly and I can access it.

The applet needs a parameter (the user currently logged in) so I pass the value into the variable “user”.

My page.pt file:

<script tal:define="utenteplone request/AUTHENTICATED_USER" tal:content="string:var user='${utenteplone/getId}'"></script>
<script>
  var attributes = {code:'geotel.gui.Login.class', archive:'portal_url/++resource++java/GestioneOneri.jar, portal_url/++resource++java/mysql-connector-java-5.1.20-bin.jar, portal_url/++resource++java/poi-3.8-20120326.jar, portal_url/++resource++java/forms-1.3.0.jar', width:1024, height:700};
  var parameters = {jnlp_href:'portal_url/++resource++java/gestioneoneri.jnlp', nomeUtente:user};
  var version = '1.6';
  deployJava.runApplet(attributes, parameters, version);
</script>
<noscript>
  No java plugin!
</noscript>

My jnlp:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp href="gestioneoneri.jnlp">
 <information>
   <title>Gestione Oneri Urbanistici</title>
   <vendor>Geotel soc. coop.</vendor>
   <offline-allowed />
 </information>
 <resources>
   <j2se version ="1.6+" initial-heap-size="1000m" max-heap-size="1500m"
  href="http://java.sun.com/products/autodl/j2se" />
   <jar href="portal_url/++resource++java/GestioneOneri.jar" main="true" />
   <jar href="portal_url/++resource++java/mysql-connector-java-5.1.20-bin.jar"/>
   <jar href="portal_url/++resource++java/poi-3.8-20120326.jar"/>
   <jar href="portal_url/++resource++java/forms-1.3.0.jar"/>  
 </resources>
 <applet-desc
     name="Gestione Oneri Urbanistici"
     main-class="geotel.gui.Login"
     width="1024"
     height="700"/>
 </jnlp>

The error Firefox gives me is the following:

ExitException[ 3]com.sun.deploy.net.FailedDownloadException: Impossibile caricare la risorsa: http://localhost:8091/Scia/sportello-unico-edilizia/archivio-pratiche-edilizie/permesso_di_costruire.2012-10-24.5148962026/portal_url/++resource++java/portal_url/++resource++java/GestioneOneri.jar
at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

The path is all wrong: it should be

http://localhost:8091/Scia/++resource++java/GestioneOneri.jar

but I don’t know where to put any kind of correction (and WHAT correction to use).

Thanks in advance!

  • 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-06-15T23:22:32+00:00Added an answer on June 15, 2026 at 11:22 pm
    jnlp_href:'portal_url/++resource++java/gestioneoneri.jnlp'
    

    Together with:

    <jnlp href="gestioneoneri.jnlp">
    

    (A JNLP element with no code base) ..will ensure the code base defaults to:

    portal_url/++resource++java/
    

    So:

    <jar href="portal_url/++resource++java/GestioneOneri.jar" main="true" />
    

    Should be:

    <jar href="GestioneOneri.jar" main="true" />
    

    (etc.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to run the application that I have made in Xcode on my
i need run code that will create a database and populate tables. i am
I need to run application in every X seconds, so, as far as cron
I need to run a script that will generate the projects.list file when a
I need to run an external application from within my Java code. I can
I have a whole series of commands that I need to run on login,
I need to create and App that will run in the background and will
I have a Java applet which doesn't need any special privileges to run (i.e,
I have an applet that I need to be able to launch a .pkg
I need run ts:reindex when smth add in model or destroy from model. How

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.