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.

Similar Messages

  • 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());

  • 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?

  • How can I stop Firefox from running a Java applet from a site that I no longer trust?

    I've found plenty of answers to the opposite question (at <https://support.mozilla.org/en-US/questions/963349> and <https://support.mozilla.org/en-US/kb/how-allow-java-trusted-sites>, among other places), but none for my question.
    Firefox apparently builds a list of trusted sites for Java using its "Allow and Remember" dialog, but gives no easy way to edit that list (other than adding more sites to it). What am I supposed to do if I clicked "Allow and Remember" at some time in the past, and now want to revoke that permission?

    You can inspect and manage permissions for the domain in the currently selected tab via these steps:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    *Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab
    You can also clear the Java cache.
    *http://www.java.com/en/download/help/5000020300.xml - How do I clear the Java cache?
    *Control Panel > Java > General tab > "Temporary Internet Files" > Settings > Delete Files
    1

  • 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 ?

  • Java Applet in Flash CS4 (ActionScript 3.0)

    Hi Guys,
    I wonder if anyone can help me as I am a little confused.
    Is it possible to insert a Java Applet into Flash CS4 (ActionScript 3.0)
    Any advice is much appreciated
    Thanks

    I wouldn't swear to it, but I don't think you can "import" and run an applet internally in flash, but you can call it as an external file from flash and display/run it in an html container for example.
    Just as flash (swf) is run through FlashPlayer as the runtime environment, Applets use the Java Console as its runtime environment.

  • 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

  • URGENT: How to run a Java program from a different directory?

    Hi.
    How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
    What would be the command to run the Java file from c:\Java.
    I can't remember it and I need it asap.
    Cheers.

    If the class you are trying to run is MyApp.class, try
    c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
    Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
    The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)".

  • Running a Java Applet on Mac OS browser

    I'm having trouble getting my Java Applet to work properly on the Mac OS version of IE5. Basicaly, the app fails to appear. Are there any do's and don'ts regarding the running of Java Applets on Mac Browsers?
    I read somewhere that you can't send parameters through to the Applet. Is that true? I'm not trying to do this and it's still doesn't work.
    Any help would be appreciated.

    If anyone can help me with this problem I would be greatful.

  • Running a Java application from a Swing GUI

    Hi,
    I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically.
    So, I want a user to click a button on my GUI, and then have another Java application, which is in the same package with the same classpaths and stuff, run.
    Is there a simple way to do this? Do any tutorials exist on this? If someone could give me any advice, or even a simple "yes this is possible, and it is simple" or "this is possible, but difficult" or "no this is not possible" answer, I would appreciate it. If anyone needs more information, I'll be happy to provide it.
    Thanks,
    Dan

    I don't know if it is possible to run the main method from another Java app by simply calling it...
    But you could just copy and paste the stuff from your main method into a new static method called something like runDBQuery and have all the execution run from there.
    How does that sound? Is it possible?
    What I'm suggeting is:
    Original
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void main(String[] args){
    // Your method calls
    //Your initializing
    doQuery();
    }Revised:
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void doMyQuery(){
    // Your method calls
    //Your initializing
    doQuery();
    // No main needed!!
    //public static void main(String[] args){
    // Your method calls
    //doQuery();
    //}

  • How to compile and run a .java file from another java program

    hello,
    can any one tell me how to compile and run a *.java* file from another java program which is not in same directory?

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • Java Applets in Flash CS4 (ActionScript 3.0)

    Hi Guys,
    I wonder if anyone can help me as I am a little confused.
    Is it possible to insert a Java Applet into Flash CS4 (ActionScript 3.0)
    Any advice is much appreciated
    Thanks

    Perhaps one can do it using AIR but not Flash IDE (CS4) or ActionScript.

  • Problems running any Java applets

    I have tried uninstalling, and re-installing the latest version of Java...
    any time I try and run an applet I get this error...
    The publisher cannot be verified by a trusted source. Code will be treated as unsigned.
    Name: loader
    Java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
    at java.security.KeyStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
    at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
    at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I tried looking at the java control pannel, and when I clicked on security, then certificates and I got this error
    General Exception
    java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
    at java.security.KeyStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.panel.CertificatesInfo.reset(Unknown Source)
    at com.sun.deploy.panel.CertificatesInfo.<init>(Unknown Source)
    at com.sun.deploy.panel.CertificatesDialog.<init>(Unknown Source)
    at com.sun.deploy.panel.SecurityPanel.certsBtnActionPerformed(Unknown Source)
    at com.sun.deploy.panel.SecurityPanel.access$000(Unknown Source)
    at com.sun.deploy.panel.SecurityPanel$1.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    The only way I am able to run a java applet is Unsigned...

    I am having this same exact problem and receiving the same error anytime I try to run a java appet within any browser.
    I cannot locate a keystore file or any other security certificate files. Also under Control Panel, If I run the Java Control Panel and then select the Security tab/certificates. I see a similar error and do not see any certificates. Any ideas on how to correct this.

  • How do you run another Java file from a master Java file?

    We're making a game in Java at school, and we need to know how we can run a Java file from another one - like inside the master Java file, we need to have a command to run game.java (something like that). Thanks!

    We're making a game in Java at school, and we need to know how we can run a Java file from another one - like inside the master Java file, we need to have a command to run game.java (something like that). Thanks!One doesn't "run a Java file", and there's no conventional definition of "master Java file". If you want to call the main() method of another class, just make sure the class is in your classpath and call the method. If you want to start up a separate JVM with that class as a process, use Runtime.exec() or similar method.
    ~

  • How to run a java prog from c prog

    hello all
    I wanted to run a java class from a c prog,
    can any body suggest the way in which this can be done, links or tutorials in this regard is highly appreciable,
    thanks in advance
    Message was edited by:
    mahima_vyas

    Let's say that the order of arguments is as below
    1. Jar file name
    2. Classpath
    Your shell script would look like this
    java -cp $CLASSPATH:$2 -jar $1 I am assuming that your jar file has the required main-class entry in its manifest. Note that $1...$9 represent the arguments to this shell script.
    The same goes for a batch file
    java -cp %CLASSPATH%;%2 -jar %1

Maybe you are looking for

  • Crystal report 10 support thai character?it doesn't work in crystal veiwer

    Hi, we have product with which package crystal report runtime libarary. when are trying to open the crystal report from our product. it displays the crystal viewer as report. we are specifically looking for thai support.when run the report from our p

  • Master slide Set to create many smaller subsets ...

    Can I create a 'master' from which I can select the slides I want to show, in the order I want to show them and then save this version as a presentation? Can I then create many more like that from the same basic set? Can I continue to add to the basi

  • Printing to a photo printer connected to Windows?

    Hi everyone, Just got a new digital camera for Christmas and here's the problem. We have a Kodak digital camera and the Kodak EasyShare printer dock 6000 to go with it. It's connected to a Windows XP computer. My new camera is a Casio Exilim S500, so

  • Upgrade CS2 standard from Photoshop CS2

    Hello, I've bought a second-hand imac with CS2 standard, the guy which sold it to me has reinstalled OS so I have to re-install everything... Photoshop CS2 is installed successfully but when I want to install the CS2-standard upgrade it doesn't recog

  • FCP 5.1.1 crahses a lot on Mac Pro

    My spanking new Mac Pro and FCP 5.1.1 seem to have a problem as FCP crashes a lot. Log says for the last couple of crashes: 0x9fe8f000 - 0x9fed1fff ProMediaIO /Applications/Final Cut Pro.app/Contents/Frameworks/ProMediaIO.framework/Versions/A/ProMedi