How to run JMF Applet on a machine without JMF installed

Hi
I have found many question about that but I don't undertand reply.
I want display a JMF Applet on a machine without JMF installed. This PCs browser is the Netscape navigator 4.78
I have restrictions, I can't install anything on a client machine. What can I make ?
Is there solutions ?
Is it possible to install few components to run the JMF Applet and desinstall it properly ?
Thanks.
Sorry I don't speak well english.

private void detectDevices(Label la) {
// Check if VFWAuto or SunVideoAuto is available
Class directAudio = null;
Class autoAudio = null;
Class autoVideo = null;
Class autoVideoPlus = null;
Object instanceAudio;
Object instanceVideo;
Object instanceVideoPlus;
try {
directAudio = Class.forName("DirectSoundAuto");
} catch (Exception e) {
try {
autoAudio = Class.forName("JavaSoundAuto");
} catch (Exception e) {
try {
autoVideo = Class.forName("VFWAuto");
} catch (Exception e) {
if (autoVideo == null) {
try {
autoVideo = Class.forName("SunVideoAuto");
} catch (Exception ee) {
try {
autoVideoPlus = Class.forName("SunVideoPlusAuto");
} catch (Exception ee) {
if (autoVideo == null) {
try {
autoVideo = Class.forName("V4LAuto");
} catch (Exception eee) {
if (directAudio == null && autoAudio == null &&
autoVideo == null && autoVideoPlus == null) {
return;
try {
if (directAudio != null) {
instanceAudio = directAudio.newInstance();
la.setText("loading....dirver:"+directAudio.getName());
if (autoAudio != null) {
instanceAudio = autoAudio.newInstance();
la.setText("loading....dirver:"+autoAudio.getName());
if (autoVideo != null) {
instanceVideo = autoVideo.newInstance();
la.setText("loading....dirver:"+autoVideo.getName());
if (autoVideoPlus != null) {
instanceVideoPlus = autoVideoPlus.newInstance();
la.setText("loading....dirver:"+autoVideoPlus.getName());
} catch (ThreadDeath td) {
throw td;
} catch (Throwable t) {
call this function for init

Similar Messages

  • How can I run a application on a machine without JDK installed?

    Hi all,
    I'm new to java,I want to know if there's a way to run a application on a machine without JDK installed, I noticed that some server application such as Domino have CORBA applications running in background,how can I set up such environment without JDK installed?
    Thanks.

    I believe there are two basic ways you could go about this.
    1) Install the JRE (Java Runtime Environment) on the machine in question.
    2) Use JSP to make a server side app that interacts via browser on the local machine.

  • How to run an Applet using the JDK1.3.1 platform?

    I'm a beginner of Java Applet.
    I've type in the sample program provided in the text book, and compiled it using the jdk1.3.1 platform.
    Usually we run a java program using java [filename], right?
    How about running an applet file?
    What is appletviewer function?
    Thanks!

    I try to put it in a HTML page but it required me to download a Java Virtual Machine.
    I've been searching sources for that but stil cannot get.
    This is always what I get:
    [We're sorry, you cannot view this page because it requires the Microsoft Java Virtual Machine (MSJVM). Your machine does not have the MSJVM installed. For more information please visit www.microsoft.com/java.]
    I visit java.sun.com. On the right side of the page listed with the HOT DOWNLOADS.
    I click on the Java VM but still cannot get anything...
    Can u help me on that?
    I've been trying for 2 days already.
    Thanks!

  • HOw to run the Applet in dos mode

    how to run the applet in Command Prompt(DOS).
    I have save this in directory D/vijay/javap/A.java and my JDK is in C drive.
    Plz send me reply as soon as possible.
    My code is :-
    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
         w = 45;
         h = 50;
    public void paint(Graphics g)
         g.drawRect(w, h, 20, 80);
    }

    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
    w = 45;
    h = 50;
    public void paint(Graphics g)
    g.drawRect(w, h, 20, 80);
    <applet class="A" height="200" width="200" code="A.class">
    </applet>
    */And in command prompt
    javac A.java
    appletviewer A.java
    Message was edited by:
    passion_for_java

  • Run an applet in a computer without the virtual

    My name is Henry Smith and I'm doing a chat but I have a problem in the computers without the virtual machine. Then my question is:
    How can I do to run an applet in a computer without the virtual machine.?
    Do you other opcion?

    Applets run on browers and hence it merely depends upon the browser capability. If your browser has inbuild JVM then only you can see the applet. And now a days all browsers eg. IE and Netscape and VM enabled.
    Thanks.

  • How do I move booksmark to another machine without replacing the bookmarks on the new machine, i.e combine a number of bookmark files

    I'm setting up a laptop and want to have all the bookmarks from my desk machine to be moved there from different accounts, but in end up in one file so that I don't have to have loads of separate accounts.

    You need to combine all the links to one HTML file.
    You only need a file with Anchor links like this:
    <pre><nowiki>
    <a href="https://support.mozilla.com/en-US/questions/754997">How do I move booksmark to another machine without replacing the bookmarks on the new machine, i.e combine a number of bookmark files | Firefox Support Forum | Firefox Support</a></nowiki></pre>
    If you export bookmarks to an HTML file then you create a copy of your bookmarks and you edit that copy and you do not affect the original bookmarks.
    See also [/questions/737050]

  • OSD: How to run script(it's In package) without download

    I has a hta script need to run before "Partition Disk", but this script is in a package, if I want to run it, it need to download to harddisk. so it will fail, because no partition.
    So how to run directly this script in network, without download to C drive.
    PS: I think I can put this script into boot image, but it is not easy to maintain. So I want to run directly in network
    06/30:
    Thank you for everyone support!
    My Hta will warn users that the following operations will format data.So "Create a temporary partition on the disk"--It is not for my requirement.
    As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map this folder with automatically recognize
    DP?
    just like \\%DP%\hta

    Thank you for everyone support!
    As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map
    this folder with automatically recognize DP?
    just like \\%DP%\hta
    Is there this variable?

  • How to run an applet(in a html file) in the server?

    I am using the jpedal Viewer inmy code, I embedded the applet code
    in a html file , it is running fine, but when I try to run the same Viewer applet in the Server it is throwing an error
    "java.lang.NoClassDefFoundError: org/jpedal/objects/acroforms/DefaultAcroRenderer
         at org.jpedal.PdfDecoder.startup(Unknown Source)
         at org.jpedal.PdfDecoder.<init>(Unknown Source)
         at pdfViewer.PdfApplet.init(PdfApplet.java:199)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)"
    What is the problem ?
    Please suggest solution for it?
    Its urgent

    I am trying to run the Applet in Tomcat server,
    Could you post the code where you invoke the Applet? It sounds like you're saying you're trying to run the Applet as part of your server-side code. The other interpretation is that you are simply accessing the Applet through the browser that happens to be on the machine being used as the server.
    Like I say, post the code that shows how you're trying to use the Applet "on the server".

  • Make IE ready to run the applet in ubuntu machine

    Dear friends,
    I want to check JMF installation using diagnostic code in IE6/IE7 on ubuntu.
    I have downloded these browsers. When I was checking the JMF installation, using this below URL,
    http://ku-prism.org/virtualprism/explorations/JavaTest/javatestpage.html
    Applet wasn't run, and it hasn't display the any messages ( success/Failure) inside the applet window.
    Can any one tel me that, How can I run the applet in IE6/IE7 on ubuntu ?
    Note:
    When I was checking this to windows xp ( IE) , it says below nmessages,
    For JRE => jre Version... 1.5.0_10
    For JMF => JMF Version... 2.1.1e
    All Java Build
    Native Libraries found success.
    Thank you,

    As an Applet does not have a method main, then obviously you need to convert it to an application, which does.

  • How to run Eclipse in a Linux machine?

    hi guys,
    I have worked with Eclipse3.0 under windows platform.
    but then can i know how to run Eclipse in a Red-Hat Linux machine,
    if yes, then please do elaborate the same.
    thank u.
    Cheers,
    vishal j

    Get it from this page http://download.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/index.php

  • How to run "ClickMe" applet?

    public class Spot {
    public int size;
    public int x, y;
    public Spot(int intSize) {
    size = intSize;
    x = -1;
    y = -1;
    ===================================================================
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class ClickMe extends Applet implements MouseListener {
    private Spot spot = null;
    private static final int RADIUS = 7;
    public void init() {
         addMouseListener(this);
    public void paint(Graphics g) {
         //draw a black border and a white background
    g.setColor(Color.white);
         g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
    g.setColor(Color.black);
         g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
         //draw the spot
    g.setColor(Color.red);
         if (spot != null) {
         g.fillOval(spot.x - RADIUS, spot.y - RADIUS, RADIUS * 2, RADIUS * 2);
    public void mousePressed(MouseEvent event) {     
    if (spot == null) {
    spot = new Spot(RADIUS);
         spot.x = event.getX();
         spot.y = event.getY();
         repaint();
    public void mouseClicked(MouseEvent event) {}
    public void mouseReleased(MouseEvent event) {}
    public void mouseEntered(MouseEvent event) {}
    public void mouseExited(MouseEvent event) {}
    ==============================================
    how to run it ?
    Thank you advance~

    1.I have compiled it like this D:/>javac ClickMe.java
    2.I also have wirtten "HTML":<applet code=ClickMe.class width=100 height=50>
    </applet>
    3.My problem is the compiling,there have many errors.The compiler say :It is CLASSPATH error.
    I want to know when I run a applet how to set CLASSPATH in different conditons, such as the applet have
    package or not have package .
    Especially, I want to know how the "ClickMe" run.
    thank you all the same .

  • How to run an applet with .java files in 2 dirrerent directories ?

    I have an applet with :
    5 .java class files and its .html file in one directory and
    2 .java class files ( with identical names) and its .html file in another directory .
    How do I go about executing this applet ? In the past all the applets
    I have run had all the classes in one directory.
    Thank you in advance

    If you want them both in the same page, put both applet tags in 1 page,
    I could do that but both directories have a SpaceDunes.class
    and both directories have a Shot class (diffferent immplementations
    but the same name)
    so the applet tag
    <APPLET CODE="SpaceDunes.class"
    CODE="SpaceDunes.class"
    This can't be the right approach ? ?
    Thank you for your advice
    <HTML>
    <HEAD>
      <TITLE>SpaceDunes Applet
      </TITLE>
    </HEAD>
        <BODY>
         <H1>SpaceDunes Applet
        </H1>
          <HR>
            <APPLET CODE="SpaceDunes.class"
                              CODE="SpaceDunes.class"
                         WIDTH=500
                         HEIGHT=500
                           CODEBASE=".">
                ALT="Your browser understands the <APPLET>
                         tag but isn't running the applet, for some reason."
                          Your browser is ignoring the <APPLET> tag!
          </APPLET>
         <HR>
        </BODY>
    </HTML>

  • Sorry if i sound foolish how to run an applet through a java application

    I am into java from last one month ank keep on exploring it in the want to
    recently i created a application cum applet in the same class like
    applet is doing its own task and there is a main method in the code
    that does entirly different task lets assume displaying *'s on the dos prompt the program is getting complied and belive it its running as desired
    but the only problem that i m facing if i use appletviewer Myclass.java
    only the appletprog is displayed
    and if i run java Myclass than only dos task is done
    may be it is sounding foolish for most of you but if i can get a way
    which will help me in excecuting only one of it and both of them run succesfully
    it tryied different ways to do it but was not succesful
    please do not get irreated if its bizzered but if you really have a solution for it .i will appreciate it
    thanking you

    Yes you can run an Applet from an application. The magic bit is providing an AppletContext and AppletStub!
    Here's how you start it:
            wpa = new WayPointsApplet(this);
            new AppletWrapper(wpa, 380, 320);Here's the class definition: (includes code for my application that can be ignored.
    // Define a wrapper class for the applet
    class AppletWrapper extends Frame implements AppletStub, AppletContext {
        Applet applet;
        // Constructor
        AppletWrapper(Applet a, int x, int y) { 
              applet = a; 
              setTitle(a.getClass().getName());
              setSize(x, y);
              Dimension ss = Toolkit.getDefaultToolkit().getScreenSize();
              setLocation((ss.width-x)/2, (ss.height-y)/2);
              add(a, "Center");
              a.setStub(this);
              // Trap window closing
              addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent we) {
                    // Test if Write left undone before exiting???
                    if(WayPoints.wpa != null) {
                      if(!WayPoints.wpa.okToExit())
                         return;           // Ignore
                    applet.stop();
                    applet.destroy();
                    if(WayPoints.debug || WayPointDefs.plot_debug) {
                      SaveStdOutput.stop();
                    System.exit(0);         // EXIT Program
              });  // end WindowListener
              a.init();
              show();
              a.start();
       } // end constructor
        // AppletStub methods
        public boolean   isActive() { return true; }
        public URL       getDocumentBase() { return null; }
        public URL       getCodeBase() {
            return WayPoints.currDir;
        public String    getParameter(String name) {
            if (name.equalsIgnoreCase("DEBUG")) {
                if (WayPoints.debug)
                    return "YES";
                else
                    return "NO";
            if(name.equals("PLOTDEBUG"))
                return (WayPointDefs.plot_debug ? "YES" : "NO");
            if (name.equalsIgnoreCase("SERVER"))
                return "NO";
            return "";
        public AppletContext getAppletContext() { return this; }
        public void      appletResize(int width, int height) {}
        // AppletContext methods
        public AudioClip getAudioClip(URL url) { return null; }
        public Image     getImage(URL url) { return null; }
        public Applet    getApplet(String name) { return null; }
        public Enumeration getApplets() { return null; }
        public void      showDocument(URL url) {}
        public void      showDocument(URL url, String target) {}
        public void      showStatus(String status) {}
    } // end class AppletWrapper

  • How to run the applet in JSP

    hi,
    im trying to run an applet from JSP i am not able to see the output of the applet on the JSP page?
    <APPLET CODE="com.metro.supex.admin.SampleApplet.class" HEIGHT="25" WIDTH="125" ALIGN="bottom"></APPLET>
    this line of code is included in JSP to run the applet, it is giving error
    java.lang.ClassNotFoundException:com.metro.supex.admin SampleApplet
    please can you help me in this matter.

    And don't use the applet tag, use object embed.
    use the htmlconverter in the jdk bin dir to convert an applet tag.

  • How to sync iTunes libraries on multiple machines without copying music

    Background:
    I have 4 machines running iTunes 9, all authorized with the same account. All music is on a networked storage device (NSA). Each iTunes points to the NSA for music files. Each user on each machine has their own local iTunes library for individualized playlists, etc. When music is purchased, regardless of machine, it is automatically downloaded onto the NSA. We have deselected the Advanced preference "Copy files to iTunes Media folder when adding to library". Our goal is to have one live copy of our music rather than multiple copies sprinkled about all 4 machines. We do periodic backups of the NSA.
    Question:
    How do I get all the iTunes user libraries on all 4 machines to automatically reflect new music purchases? The library of the purchaser is updated just fine, but no one else's is. The Home Sharing Settings option updates the library, but it also copies over the music, defeating the purpose of one copy.
    Thanks in advance!

    When I first moved to OS X I decided that all of my/our music should be in one library, with one Apple ID for purchasing/playback and iPod syncing, located someplace other than each user's home folder. Using an alias of the destination folder worked as long as we were all on one machine.
    Later when we acquired a second machine the setup was similar, except that the library was on an external HD attached to the newer/faster machine and accessed over our home network. The drawback of this method is that the machine with the library on it has to be up and running (of course).
    We've finally moved further into the digital world by purchasing a network drive (NAS to be precise - a My Book World II for those who wish to know), upgraded our router and network switch to GB, and have a third iMac on its way (thank you eBay).
    All of our music (the library we started years ago), all of our pictures, and other miscellaneous things reside on the NAS, which is also used for TimeMachine backups (on the non public volume). The idea being that any of us can access any of the media or documents as we need or want to.
    Apparently (or I've missed something simple) Apple, in their wisdom, doesn't believe that a setup like ours (and apparently others as well) should exist. That each user and/or each machine, should have their/its very own music library that no one else can have FULL access to.
    Home Sharing doesn't allow what I/we've been setting up from the first day we added music to our library. Sure it lets everyone with their own library to listen to other's library's that are up and running (i.e. the machine is on, and iTunes is running).
    What we want to do is have all of our machines (the two, soon to be three, iMac's and one PC running XP) access the *same library* with full read/write/burn access AT THE SAME TIME! Hence the logic in purchasing a NAS. What we can't do is have iTunes running on more than ONE machine at a time since the other network users/machines receive this message:
    The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file.
    Which is certainly not the case since each user/machine can access, read, write, and burn from the above library at will as long as they are the only person doing so.
    Changing the permissions on the library file doesn't stick (probably because its on the NAS), otherwise I would have done that and you wouldn't be reading this.
    Thanks for any help anyone can give.

Maybe you are looking for