Referencing a "locally installed" Java applet from a server-based HTML page

How does one reference a "locally installed" Java applet from a server-based HTML page (i.e. via the applet, object, or embed tags)? I have seen references in documentation that this is possible, but I have not seen any examples. I have tried a few things, but nothing seems to be working.
Some background...
I'm working on a web site that aggregates Internet video. For many users, I would like the site to work "without" requiring Java to be installed (or any prompts, etc.). This version of the site allows users to stream videos directly over the Internet and does not require any sort of access to the local system.
However, in addition, I have a download manager that can be installed on the local system. Currently, it's a Windows-based "service" that is always running in the background, downloading files, etc. (with plans to later support other OSes).
My dilemma is trying to communicate between my web site running in the local browser (executing JavaScript code) and the download manager. I call this component the "gateway". I need the gateway to be able to do the following:
1) Pass user credentials from the web browser UI to the download manager (so it can communicate with my servers).
2) Check the status of downloaded videos
3) Launch a local media player (such as Windows Media, QuickTime, etc.) (or perhaps tell the download manager to launch the media player).
Under Windows XP, I have an ActiveX control that can do these things. It communicates with the download manager via reading/writing to a shared XML configuration file.
Unfortunately, under Vista and IE7 Protected Mode, ActiveX controls have become very restricted and my gateway no longer works. As such, I am looking at using Java for the gateway (also giving me the additional benefits of supporting additional browsers and OSes).
From my understanding, I believe I can created a "face-less" Java applet, whose methods can be called from JavaScript. Ideally, I'm thinking I could install the applet onto the local system at the same time the download manager is installed. This would give the applet the security permissions it needs to communicate with the download manager.
Thanks for any help and suggestions!

Hi,
Put the .jar file and the .class file in the path mentioned in one of the aliases in the plsql.conf file like /images or create
a seperate directory and create an alias like /applets "path" in the plsql.conf file.
<html>
<body>
<applet code=com.chartapplet.chart.BarChartApplet
codebase=/applets/
archive=/applets/chart.jar width=300 height=200>
<param name=background value="white">
</body>
</html>
Hope this helps.
Thanks,
Sharmila

Similar Messages

  • Can't get Safari 5.1.1 to run a java applet from Ubuntu Server with unsigned cert

    Hi there, I am trying to run a Webmin control panel in the latest safari and no matter what I do, I keep getting this error message:
    Works fine in Latest Chrome. I am running latest Lion and would like to use Safari as my main browser, but if I can't fix it to run a java widget, what to do?
    thx!!!

    here's the fix:http://artur.ejsmont.org/blog/content/how-to-import-self-signed-ssl-certificate- to-java-keystore-adding-https-certificate
    Only when I run the command:
    iMac:security FCPX$ sudo $JAVA_HOME/bin/keytool -import -file certfile.txt -keystore /Library/Java/Home/lib/security/cacerts
    I get this:
    Password:
    sudo: /bin/keytool: command not found
    iMac:security FCPX$
    any thoughts?

  • Installing Java 7 from Oracle just made Applets not work, how to fix

    Mac 10.7.4. I tried installing Java 7 from Oracle, but all it did was remove half the prefs from Java and make Applets not work. How do I revert/reinstall Java?

    Here you go!
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Running a java applet from flash

    Hi,
    How do you run a java applet from within a Flash movie?
    Is it necessary for the user to download a java interpreter, or is there an interpreter somehow built into their browser that can run applets?

    I was wondering , I don't know too much about Flash
    I remember seeing some classes in amongst the Flash
    files when it installed , but couldn't tell you whart they
    do (at the moment , but you've got me interested)
    maybe you should rethink your strategy for building your page (and your movie) maybe build the movie around
    your applet , or preload it then replace a an area of your movie area with your applet (the way you handle rollovers).
    the advantage is you can make calls to applet methods
    from Flash as it supports Javascript.
    jus remember to set the scriptable <PARAM> to true
    Users shouldn't have to download the plug-in or JRE
    you should specify it in the OBJECT or EMBED tag so
    if they don't have it , the browser will tell them.
    of course this is going to change as Microsoft are stopping support for JAVA , users will then have to download the plug-in from Sun in order to view or use JAVA on the internet.

  • Rules of installing JAVA applet to card

    Hi !
    I just started studying JAVA card.
    Please let me know JAVA card world.
    I want to know rules of installing JAVA applet to card.
    I read "java_card_kit-2_2_2-rr-doc-protprofile-overview",
    and understand "closed card / open card".
    Could you teach me where more detail specification is.

    Hi !
    I just started studying JAVA card.
    Please let me know JAVA card world.
    I want to know rules of installing JAVA applet to card.
    I read "java_card_kit-2_2_2-rr-doc-protprofile-overview",
    and understand "closed card / open card".
    Could you teach me where more detail specification is.

  • JAVA Applets from Adobe Flash/MS Silverlight?

    SAP has recently announced that it will no longer support
    invocation of JAVA applets directly from its "WebDynproABAP" or
    "WebDynproJava" applications. (Until recently, SAP supported an
    "iframe" UI element that could be used to run JAVA applets from
    within WebDynpro applications - soon this will be only doable in
    frames within SAP's portal via "client-side eventing".)
    However, SAP will be supporting invocation of Adobe Flash and
    MS Silverlight from within its WebDynpro Applications.
    So here's my question.
    From an SAP WebDynpro application, I want to pass parameters
    to the JAVA applet "JMol" and have it run in a separate frame.
    Since I will no longer be able to call this applet directly from
    the SAP WebDynpro application, I'm wondering if I could pass
    parameters to Adobe Flash or MS Silverlight and have Flash or
    Silverlight invoke the applet for me with the correct parameters.
    (I would still only want two frames - the one that the SAP app is
    running in and the one that the JAVA applet winds up running in.)
    Relevant links for this question are:
    https://forums.sdn.sap.com/thread.jspa?threadID=939821&tstart=0
    and its follow-up here:
    https://forums.sdn.sap.com/thread.jspa?threadID=972132&tstart=0
    Thanks for any time anyone can afford to spend considering
    this question, and for any answer(s) anyone can provide.
    David Halitsky

    This link:
    http://www.adobe.com/devnet/flash/articles/external_interface.html
    says that javascript can be called from Flash
    So is it as simple as invoking the Java applet from the
    javascript ?

  • Detailed on how to install java applet ??

    Hi there,
    Can you tell me the detail on how to configure the pdk to use my
    existing applet ? I have followed the instructions in the pdf ..
    but it failed. And the instruction is not very clear.
    What is the proper procedure to do so ?
    Thanx
    -Maggie

    The way you would use a browser-run java applet is to take the
    HTML <APPLET> or <EMBED> tags you would normally use for your
    Java applet and use that HTML in your portlet.
    If you are talking about using an existing Java class, JSP, or
    servlet (all server-side), you can find detailed instructions in
    the getting started section of the PDK
    http://portalstudio.oracle.com

  • May by anyway view Local Network files[e-book] or videos or html pages, from the main PC

    In ipad 3 upgraded to 4 ios, may by anyway view Local Network files[e-book] or videos or html pages, from the main PC if, this main has local host[php/mysql] or, from the local network itself: eg //user/downloads/pdf/ebook1.pdf?

    In ipad 3 upgraded to 4 ios, may by anyway view Local Network files[e-book] or videos or html pages, from the main PC if, this main has local host[php/mysql] or, from the local network itself: eg //user/downloads/pdf/ebook1.pdf?

  • How can I prevent filter from getting applies to .html page?

    Hi,
    I have a MyFaces filter that I don't want applied to pages ending in ".html". However, upon visiting the "/myapp/index.html" page of my application, I get an internal server error, and the stack trace indicates that the filter is being invoked. How can I prevent such a filter from being applied to ".html" pages? The stack trace and the web.xml file are below.
    Thanks, - Dave
    Error I get when visiting index.html page
    ####<Oct 30, 2008 8:46:44 AM MDT> <Error> <HTTP> <rhonti> <nps-supp-gui-ms-1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1225378004500> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@4f2189 - appName: 'nps_history_gui', name: 'nps_history_gui.war', context-path: '/nps_history_gui'] Servlet failed with Exception
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
    at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:389)
    at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:349)
    at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:279)
    at org.apache.myfaces.webapp.filter.TomahawkFacesContextWrapper.<init>(TomahawkFacesContextWrapper.java:115)
    at org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory.getFacesContext(TomahawkFacesContextFactory.java:85)
    at javax.faces.webapp.FacesServlet.prepareFacesContext(FacesServlet.java:307)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:141)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
    at com.myco.nps.im.plugin.NPSIMIntercepter.doFilter(NPSIMIntercepter.java:101)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.myco.nps_history.filters.NoCachingFilter.doFilter(NoCachingFilter.java:30)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3229)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    =================Begin web.xml=======================
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <display-name>
    nps_history_gui</display-name>
    <filter>
    <filter-name>extensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
    <description>Set the size limit for uploaded files.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB</description>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>100m</param-value>
    </init-param>
    <init-param>
    <description>Set the threshold size - files
    below this limit are stored in memory, files above
    this limit are stored on disk.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB</description>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>No Caching Filter</filter-name>
    <filter-class>com.myco.nps_history.filters.NoCachingFilter</filter-class>
    </filter>
    <filter>
    <filter-name>SSOFilter</filter-name>
    <filter-class>com.myco.nps.im.plugin.NPSIMIntercepter</filter-class>
    <init-param>
    <param-name>filter_conf_file</param-name>
    <param-value>/export/third-party/etsbea/application_conf/wls_9.2.2/nps_history_gui_conf/nps_im_plugIn.properties</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>No Caching Filter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>SSOFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <description>Sets properties of History UI app</description>
    <display-name>HistoryInitServlet</display-name>
    <servlet-name>HistoryInitServlet</servlet-name>
    <servlet-class>com.myco.nps_history.servlets.HistoryInitServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HistoryInitServlet</servlet-name>
    <url-pattern>/HistoryInitServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HistoryInitServlet</servlet-name>
    <url-pattern>/refresh</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    ==================End web.xml=======================

    I got that error when using the request URL /myapp/ or /myapp/index.html.
    Regarding,
    At any way, you should map the ExtensionsFilter on the FacesServlet rather than on any url-pattern. Could you elaborate on what you mean? Maybe with an example?
    Thanks, - Dave

  • Why can't I install java applet for Google Drive. I am forced now to use Google Chrome. I did everything acc.to your instructions for add-ons.

    I am trying to upload maps into GoogleDrive. In Firefox I get the info that the java applet cannot be installed. After installing GoogleChrome it works perfectly.
    I did everything acc.to your instructions re. admitting add-ons, etc.

    There are other things that need your attention.
    Note that your System Details List shows multiple Flash plugins.
    # Shockwave Flash 12.0 r0
    # Shockwave Flash 11.9 r900
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    You can check the Flash player installation folder for multiple Flash player plugins and remove all (older) version(s) of the plugin (NPSWF32) and (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\
    See also:
    *What should I do when I see a security prompt from Java?:<br />http://www.java.com/en/download/help/appsecuritydialogs.xml

  • Problem Running a java applet from an HTML page

    I can run my applet at the command prompt with:
    appletviewer coffee.html
    But when I try and open the Coffee.html by opening
    the page in Internet Explorer I get the following message:
    Can't find Database driver class: java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
    Code: createcoffees.java
    import java.applet.*;
    import java.sql.*;
    public class CreateCoffees extends Applet{
         public void init() {
              Statement stmt;
              Connection con;
              try {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch(java.lang.ClassNotFoundException e) {
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {con = DriverManager.getConnection("jdbc:odbc:hq","afm", "afm");
                   stmt = con.createStatement();                                   
                          stmt.executeQuery("SELECT * FROM RM");
                   stmt.close();
                   con.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
    }

    Is your jdbc-odbc driver properly loaded? Its very clear that its a class not found exception which is thrown by this:
    try {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());

  • Calling Java Applet from application express demo

    Hi,
    i found many topics about calling java applets in/from application express,
    but I need a demo to learn how it works.
    Does anybody know a downloadable demo where I can learn to write a java applet, storing in my application an calling from a button?
    thx
    Gerhard

    .

  • Invoking Java Applet from SAP Netweaver Eportal using java webdynpro

    Hi ,
    We are using SAP Netweaver portal version 7.0.WE want to invoke java applet into webdynpro java application on button click.
    The Applet should open in a new window when the particular parameter is selected and the button is clicked
    The code is given below:
    String html = "<HTML> <HEAD></HEAD> <BODY><APPLET code=\"org.faceless.pdf2.viewer2.PDFViewerApplet\" type=\"application/x-java-applet;version=1.4.2_05\" archive=\"bfopdf.jar\" width=800 height=600></APPLET></BODY></HTML>";
    IWDCachedWebResource resource = WDWebResource.getWebResource(html.getBytes("UTF-8"), WDWebResourceType.HTML);
    resource.setResourceName("HTML_inline.html");
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(),"Image");
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.open();
    But after clicking on button new html window is opening and the applet is not showing properly. The java console showing the error:
    java.lang.ClassFormatError: Truncated class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassFormatError: Truncated class file
    Please suggest how to solve this error.
    Regards,
    Dhruba

    Hi,
    I'm not sure, but I believe the 'code' argument should end with '.class'. However, your implementation of displaying a Java applet seems ok, the error is within the applet's Jar file
    Anyway, have a look at http://download.oracle.com/javase/1,5.0/docs/guide/plugin/developer_guide/using_tags.html#applet and http://www.w3.org/TR/html401/struct/objects.html#h-13.4 on how to use the <applet> tag
    As a test, you could try and create a local HTML document on your local desktop, including the applet. I would suspect you will receive the same error in your Java console
    I believe the only option is to recompile your Java applet (if possible at all) against a newer JDK (1.4 and up)

  • Trouble running .java applettes from studio

    I am having trouble running javascript applettes from studio however they do work if run directly in MS explorer 6. The path for explorer exists in tools/options/sever and external tool settings/web browsers. Any suggestions?

    Do you have Java or JavaScript problems?
    Can you provide some code sample/steps to reproduce this?

  • Trouble loading java-applet from within browser

    hello,
              I'm kinda new to Java-applets and to Weblogic and consequently I've run
              into a problem. I'm having difficulties deploying an applet in a
              war-archive. My archive structure looks like this:
              --root of .war
              --index.jsp
              --WEB-INF
              --classes
              --test
              --testapplet.class
              my code to load the applet in my index.jsp file looks like this:
              <applet
              codebase = "http://localhost:7001/WebModule/WEB-INF/classes"
              code = "test.testapplet.class"
              name = "TestApplet"
              width = "400"
              height = "300"
              hspace = "0"
              vspace = "0"
              align = "middle"
              >
              </applet>
              Unfortunately the class is not found by the browser producing a
              ClassNotFoundException. I use Weblogic 8.1SP2 and Mozilla 1.6, both
              using J2SDK(JRE) 1.4.2-03. My IDE is Borland JBuilder X Weblogic edition
              and my host-OS is Gentoo-Linux.
              Can anyone point out what's my mistake?
              Thx in advance
              Nic
              

    Ok, thanks. I didn't know that.
              Nic
              Robert Greig wrote:
              > nkalkhof wrote:
              >
              >> Can anyone point out what's my mistake?
              >
              >
              > Code in WEB-INF/classes is loaded by the container for execution on the
              > server. It is not in the docroot, so is not accessible to the client.
              >
              > Move the classes into the docroot (i.e. the same level you'd put gifs or
              > html pages).
              >
              > See http://java.sun.com/docs/books/tutorial/applet/index.html for some
              > examples.
              >
              > Robert
              

Maybe you are looking for

  • Itunes cannot run because it detected a problem with your audio config.

    I keep coming up with this message. I feel like I have tried everything. Uninstalling---reinstalling---installing earlier versions---even tried apple's help page regarding this error. Nothing seems to work. Anyone have any ideas?

  • Screen sharing greyed out

    My friend and I both have Messages beta and FaceTime on our Macs and we are unable to share screens. The screen sharing option is greyed out. What are we doing wrong?

  • Backups in cron not running

    I'm trying to run rsnapshot through cron to automate my backups but it's not actually running rsnapshot for some reason . Here's my crontab: brian@brian-laptop:/var/log$ sudo crontab -l # DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD. # <mi

  • Can i create a disk image of my Imac 27 triple boot from disk utility: lion 10.8.3, win 7 and snow 10.6.8

    I have created a well working triple boot system on my Imac 27, I7, 16GB, 3.4.Triple boot: Lion 10.8.3, Snow leopard 10.6.8 and windows 7. They all work great. I would like to find the simplest way to make a image or a backup of the entire system. I

  • Webservice call does not return data

    i have created a stateless EJB and generated webservice from it. the method in ejb just gets data from database table with multiple rows. return type of the method is PlantBean[].  when i invoke this webservice from test console or Webdynpro app it r