Compile JMF applet for non JMF JVM

I have been programing java for about 2 years. I haven't used any extras for java e.g. JMF. If i install JMF on my pc and make an applet using JMF is there any way of compiling it to play on a pc without JMF installed.

lib/customizer.jar is your best bet. It can make
relatively small distributables for specific media
types and uses.
(Though I'd recommend dumping applets in favour
of a web start launched application, nowadays..)

Similar Messages

  • Cp278 for non-international JVM

    Hi All,
    I have a java applet that uses cp278, and so it needs the international version of JVM be installed on the client PC, for the app to work. Therefore, this prevents this app running on a US PC, unless I get the user to install the International version first.
    I expect for most users, this will be a chore they'd rather not do.
    Is there any way I can include just those specific classes that support cp278,(ByteToCharCp278 and CharToByteCp278 in charsets.jar) in my .jar I am hosting, to allow my app to run on all versions of the JVM?
    Thanks.
    Tony

    If they are sun.* classes, maybe. If they are java.* classes, the classloader will not allow it (without the users specifying command line options to override the standard bootclasspath). This is a purely technical answer to your question, I don't know about the legal answer to your question which is something else to consider.

  • Compiling an applet that the MS JVM will execute

    I need to have an applet work with the Microsoft JVM that comes with IE. It does not like anything compiled with jdk 1.3 or better.
    Do I need to dig up J++ somewhere or will an earlier version of the jdk work?
    How I can accomplish this?

    But i have somre problems with an application that implements a socket. I haven't been able to run it because it throws a security exception.
    Do you know anything about how to solve it?
    PW

  • JMF Applet without JMF installed

    How can I run the JMF Applet without installing JMF on very client before?
    I already tried to archive the jmf.jar and sound.jar and I found a code:
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="100%" height="100%" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0"></p>
         <param name="java_code" value="javamediaplayer.SimplePlayerApplet">
         <param name="java_codebase" value="browser/applet/">
         <param name="java_archive" value="javamediaplayer.jar,jmf.jar">
         <param name="type" value="application/x-java-applet;version=1.3">
         <param name="FILE" value="myAudioFile.wav">
    but I don't know how to use it!!!
    PLEASE help me!!!!
    THX!

    Hi
    I wrote this code to play my JMF applet:
    <applet
    code=simpleplayerapplet.SimplePlayerApplet
    ARCHIVE="jmf.jar,customizer.jar,mediaplayer.jar,multiplayer.jar,sound.jar"
    width=320 height=300>
    <param name=file value="musica.mp3">
    </applet>
    It works fine, and the applet starts normally. I have another kind of problem: what I want to play is an mp3. So I downloaded the Sun mp3 plg-in and installed it in my test machine, wich have JMF installed. The applet runs ok. But when I try to test in a machine without JMF (but with the Sun mp3 plug-in installed) i get the Unable to handle format: mpeglayer3 exception. I won't print the stack trace because is a common exception related with the plug-in. What am I doing wrong? I thought that the plug-in was necessary and sufficient for a client to play my test applet.

  • JMF Applet without JMF installed on clients ? A solution ?

    Hi all. I have compiled RTPPlayerApplet sample downloaded from Sun's web. After comment some "error" lines, I got it working on my client machine with JMF installed.
    I have searched for this solution on forums, but didnt find how to solve this:
    I want that clients only need to have installed JRE, and not JMF. I have read that it can be possible telling in the HTML of the applet that "loads" jmf.jar file, and some others...
    I have tried it, and the applet loads without any error on my client machine without JMF installed, but it doesnt start to play...
    Any suggestion ?
    Does anyone got RTPPlayerApplet working on client machine without JMF installed ?
    Thanks for your help
    John

    I want that ... HTML code is placed).
    I can understand your reasons for not wanting to bother clients with installing the JMF. However, please understand the negative side effect of this approach. If nine other organisations supply your client a JMF-based applet in the same way, the client would be downloading the same JMF jar ten times. Don't even think about patches and upgrades that would require JMF jar updates. If you rely on framework components, don't be shy with distributing the framework where needed.
    And i think that also could be possible ... decrease the size of the file...
    If you compile only the source code of the JMF classes you use or perhaps create a new jar file in which you copy only the JMF classes you've used, this should work. However, for reasons mentioned earlier, this is not quite as user-friendly as it may seem at first glance.
    Think of the JMF as something like Microsoft DirectX. When you install a game that needs DirectX, it checks and -if necessary- installs a complete, new version of DirectX.

  • 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

  • Running JMF applet without JMF?

    How can I get my JMF applets to run on a users machine without JMF installed on their machine?
    Can I emded a JMF plugin in the HTML code (just enough to let them run the applet!) ?
    thanks

    please dont cry.....
    one thing is u need to send all the class files required for the applet to run on the client side.
    below is the code to detect for the plug in for ie and netscape:
    out.println("<body bgColor=\"#EEEEE0\">");
                        out.println("<h1 align=center>Aspire Chat</h1>");
                        out.println("<table border=1 align=\"center\"><tr><td>");
    //                    out.println("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" width=\"400\" height=\"400\" align=\"centre\" codebase=\"http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0\">");
                        out.println("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" width=\"400\" height=\"400\" align=\"centre\" codebase=\"http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cab\">");
                        out.println("<PARAM NAME=\"code\" VALUE=\"Vapp.class\">");
                        out.println("<PARAM NAME=\"codebase\" VALUE=\"http://"+host+":8080/aspire\">");
    // out.println("<PARAM NAME=\"archive\" VALUE=\"AspireChat.jar\">");//, sound.jar, jmf.jar
    out.println("<PARAM NAME=\"archive\" VALUE=\"Aspire.jar, jmf.jar\">");//, sound.jar, jmf.jar
         out.println("<PARAM NAME=\"type\" VALUE=\"application/x-java-applet;version=1.4\">");
    out.println("<PARAM NAME=\"scriptable\" VALUE=\"true\">");

  • JMF Applets in IE - desperately seeking help

    how do i run JMF applets in internet explorer of a client where JMF is not installed...is there any downloadable plugin for JMf that the client can download...this very important and i've searching the net but in vain...
    any kind of help would b greatly appreciated....
    wishing u a happy new year
    suri

    Your clients have to download JMF in order to use it in applet. I am not sure whether SUN plan to include it with JRE 1.4 or not.
    Hope it helps,
    St�phane

  • Can't run JMF Applet in IE

    OS: win2000 professional
    JRE: Jdk-1.4.0._01
    JMF: 2.1
    Borwser: IE 5.0
    I have completed installing the JMF, but no JMF Applet
    can be shown in IE, the messages always are
    "class Not Found, javax.media.ControllerListener" or
    "class Not Found, javax.media.Player"
    anyone can help me? thanks!

    I think I found where the problem comes from.
    In one machine I installed jmf as admin I found following registy key:
    LocalMachine--software--microsoft--javavm
    there is one value called classpath which contains the jmf directory.
    I suppose this key make java plug-in find our jmf library.
    However in anothre machine I installed jmf without admin privalages. I didn't see that key contain my jmf directory. This is because I don't have the privalages to modify this key. The installation doesn't give me any warning messages. I think this is the problem.
    When Iinclude that tag <APPLET archive="jmf.jar" in the html pages. The java console said that the applet don't have the permission to use capture audio devices. So..... It still don't work
    Any suggestions?

  • New to Java. Want to write a simple applet for a mobile phone.

    Hello,
    I want to write a simple java applet for a mobile phone. currently I am in the stage of thinking about whether this is possible in a timeframe of about a month. I have very little java experience from a while back so I'm pretty much starting from scratch.
    All I want is an applet that lets you send 2 or 3 variables to an online server. The server will then reposition telescopes.
    All i'm concerned with is the mobile phone part, which doesn't have to be secure or impressive. Just a simple interface.
    Ideally it should work on my nokia 6070, which occording to the official specs has the following java technology:
    MIDP 2.0
    CLDC 1.1
    JSR 120 Wireless Messaging API
    JSR 135 Mobile Media API
    Nokia UI API
    (I don't know what any of this means but am a good learner).
    Can anyone offer me any advice? Is this possible in my timeframe? where should I start? I need a editor and compiler also (I'm using windows XP).
    Many thanks and kind regards,
    Jason

    Actually it is working on my phone now.
    I changed the target platform in the wireless toolkit settings to MIDP 1.0
    Now to create the fields coordinate fields etc. I don't have much of a clue really.
    Current I have:
    import java.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class AtmosMIDlet extends MIDlet implements CommandListener
    Form WelcomeForm = new Form("AtmosMIDlet");
    StringItem WelcomeMes = new StringItem(null, "Please enter coordinates:");
    TextField Longitude = new TextField("Longitude", "", 3, TextField.NUMERIC);
    TextField Lattitude = new TextField("Lattitude", "", 3, TextField.NUMERIC);
    public AtmosMIDlet()
    try
    ImageItem logo = new ImageItem(Image.createImage("/logo.png"));
    WelcomeForm.append(logo);
    catch (java.io.IOException x)
    throw new RuntimeException ("Image not found");
    WelcomeForm.append(WelcomeMes);
    WelcomeForm.append(Longitude);
    WelcomeForm.append(Lattitude);
    WelcomeForm.addCommand(new Command("Exit", Command.EXIT, 0));
    WelcomeForm.setCommandListener(this);
    public void startApp()
    Display.getDisplay(this).setCurrent(WelcomeForm);
    public void pauseApp() {}
    public void destroyApp(boolean unconditional) {}
    public void commandAction(Command c, Displayable s)
    notifyDestroyed();
    I'm trying to get the image logo.png to display at the top but I get the error:
    C:\WTK25\apps\AtmosSpec\src\AtmosMIDlet.java:19: cannot find symbol
    symbol : constructor ImageItem(javax.microedition.lcdui.Image)
    location: class javax.microedition.lcdui.ImageItem
    ImageItem logo = new ImageItem(Image.createImage("/logo.png"));
    ^
    1 error
    com.sun.kvem.ktools.ExecutionException
    Build failed
    When I try to build.. Any help would be great.
    Ideally the image would be on a seperate screen for a couple of seconds.

  • EWA for NON-ABAP

    Hi,
    I configured SMD in solman, installed SMD & IA agents in Java systems(portals). But not able to generate report.
    EWA setup was already done, i installed the agents  recently. Even downloaded the service xml from solman SMD and tried to generate report manually, but not able to generate it.
    In SDCCN the session log shows as follows.
             07/07/2008     04:53:59     Transfer of session data completed to destination NONE
             07/07/2008     04:53:59      > transfer completed
             07/07/2008     04:53:59      > transfer for server XXXXX completed
             07/07/2008     04:53:58     > transferring 000005 functions, 0000204676 bytes, RFC block size = 0000320000 for server bs1pa01z
             07/07/2008     04:53:58      > transfer for server XXXX started
             07/07/2008     04:53:58      > transfer data to mapped session ID 0000003416 100 destination NONE
             07/07/2008     04:53:58     Transfer of session data started to destination NONE
             07/07/2008     04:53:58     Data collection completed for session 1000000003416 EWALERT SolMan
             07/07/2008     04:52:45     Collection is for non-ABAP system <SID> 0020224025
             07/07/2008     04:52:45     Data collection started for session 1000000003416 EWALERT SolMan (non-ABAP)
             07/07/2008     04:52:45      > New data collection triggered using reference session TSKR000001012
             07/07/2008     04:52:45     Session download data requested using task 0000001887 by BATCHBASIS
    Please guide..
    On solman 4.0 SPS 15, ST-SER 700_2007_1 PATCH 1
    Edited by: Kobby bryant on Jul 8, 2008 2:59 PM
    Edited by: Kobby bryant on Jul 8, 2008 3:36 PM
    Edited by: Kobby bryant on Jul 8, 2008 10:48 PM
    Edited by: Kobby bryant on Jul 9, 2008 2:26 PM

    Hello.
    First of all, you must ensure that your solution manger has, at least, stack 13 of support package, in java and ABAP side.
    Once you hace installed your agents in solution manager, you must to  do different things in your satellite system.
    - First of all, you must get sure that you have deployed LMSERVICE in your satellite system. And you must deploy -     JmxService7.1.P5NetWeaver.ear file.
    - Secondly, you must install wily folder in  /usr/sap/ccm . Willy folder is obtained in ISAGENT71_11-20002182.SAR file.
    Into Wily folder, you must look for sap_IntroscopeAgent.profile file, and you need to modify it in order to be seen for your solution manager. To do this step, only find in this file the next item:
    introscope.agent.enterprisemanager.transport.tcp.host.DEFAULT=
    It will have value 'localhost' and you must delete 'default' and insert your solution manager host.
    - Then, you must go to the next folder opening cmd:
    \usr\sap\ccms\willy\connectors 
    There, execute the next command in order to create the necessary connector:
    java -jar CreateAutoProbeConnector.jar -jvm C:\j                2sdk1.4.2_06 -output connector.jar
    Get sure tou put your corresponding JDK
    - You must install SMD agent in your satellite host, executing sapinst that is in CDSMDTOOLS21_0-10003537.SAR file.
    - Once your agent is running  go to  \usr\sap\SMD\J98\component_analyzer  and execute the command 'gather setup' . It will open to you a new window with some warnings. Double clicking in each warning and editing node, you can insert a value in order to correct these warnings.
    - Then, you must insert different java parameters in your config tool. Parameters are the next:
    -Xbootclasspath/p:K:/usr/sap/SMD/J98/SMDAgent/applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.7.1.P11-2007-09-27/wily/connectors/AutoProbeConnector.jar;K:/usr/sap/SMD/J98/SMDAgent/applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.7.1.P11-2007-09-27/wily/Agent.jar
    -Dcom.wily.introscope.agent.agentName=<name of the agent : insert what you want>
    -Dcom.wily.introscope.agentProfile=K:/usr/sap/SMD/J98/SMDAgent/applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.7.1.P11-2007-09-27/wily/sap_IntroscopeAgent.profile
    -XX:+PrintClassHistogram
    -XX:+HeapDumpOnCtrlBreak
    - When you have done this, you must configure your system in SMSY following SAP guides and create the solution in solution_manager transaction.
    - The next step is configure the system in SMD web:
    1.- execute SMD upgrade.
    2.- Setup diagnostics system
    3.- Setup managed system
    4.- in 'Trouble shooting' insert jdbc parameters
    5.- In 'Introscope agent' you must load the parameters you configured in configtool.
    6.- At this point will be necessary to restart your satellite system.
    When you finishes all these steps you will be able to obtain EWA for java side.
    Is so difficult to do this. We have done it in several environments and we have had lots of problems, but it's possible.
    Any doubt, please, give me your mail and I'll be so glad to help you.
    Best regards.

  • Validation for Non-AlphaNumeric characters

    Hi All,
    I want to do Validation for Non-Alpha Numeric characters.
    While saving record, Name should only allow alphanumeric(letters and numbers only) characters, No special characters.
    How to do this?
    Plz help
    Thanks,
    Sk

    SK
    In EOImpl file in setter method of Name you can write below logic
    import java.util.regex.*;
      public void setLastName(String value)
        Pattern p = Pattern.compile("[^a-zA-Z0-9]");
        Matcher m  = p.matcher(value);
            if (m.find()){
                System.out.println("last Name"+value);
                throw new OAException("Special Characters Not allowed in Name", OAException.ERROR);
           setAttributeInternal(LASTNAME, value);
      } Hope it helps!!!!
    Thanks
    AJ

  • What is current CommSuite support for non-ASCII passwords?

    Hello all,
    Some of our users managed to change their passwords to non-ASCII strings (via replication from MSAD by ISW) and no longer have access to their communications services.
    While replicating the problem, I have set a (UTF-8 non-ASCII) string as my password in DSEE directly, and *can* log in to Convergence with this password. However, if I change the working password to a non-ASCII string from Convergence itself - it is accepted during the secondary password check, there is no error returned, SOME password is apparently saved into the LDAP directory, but neither of the original non-ASCII plaintext strings can be used for login back into Convergence. Restoration of access is only doable by admin at this point.
    Checking email by IMAP from Thunderbird no longer works with a changed non-ASCII password (including the state when it still works for Convergence).
    Delegated Admin has an explicit check for non-ASCII characters in the password and refuses to set a misbehaving one.
    I see that among the standards supported by CommSuite, there is IMAP4rev1, and RFC 5255 refers to it as the reason that non-ASCII passwords and usernames are for now not supported, though this is expected to be a temporary state of things, and software can prepare for the future by implementing checks for valid UTF-8 strings as well.
    https://wikis.oracle.com/display/CommSuite/Messaging+Server+Supported+Standards
    http://tools.ietf.org/html/rfc5255
    5.1.  Unicode Userids and Passwords
       IMAP4rev1 currently restricts the userid and password fields of the
       LOGIN command to US-ASCII.  The "userid" and "password" fields of the
       IMAP LOGIN command are restricted to US-ASCII only until a future
       standards track RFC states otherwise.  Servers are encouraged to
       validate both fields to make sure they conform to the formal syntax
       of UTF-8 and to reject the LOGIN command if that syntax is violated.
       Servers MAY reject the LOGIN command if either the "userid" or
       "password" field contains an octet with the highest bit set.
       When AUTHENTICATE is used, some servers may support userids and
       passwords in Unicode [RFC3490] since SASL (see [RFC4422]) allows
       that.  However, such userids cannot be used as part of email
       addresses.
    So, the main question at this point is: does or does not all of the CommSuite stack support non-ASCII passwords?
    If no - please confirm, so we can instruct the users to not create problems for themselves (and maybe manage to set up some policy to not accept non-ASCII passwords to MSAD/DSEE in the first place).
    If yes - what should be done to enable support in Convergence/IMAP/SMTP/XMPP/WCAP/WABP/... services - perhaps, setting the LANG/LC_ALL locale environment variables or equivalent JVM flags for UTF-8 in server startup scripts, etc.? (I know that DSEE ldapsearch requires either envvars or a command-line flag for charset encoding of values, so I figure similar quirks may be relevant for some other software)
    Thanks in advance for either response,
    //Jim Klimov

    I can't respond for the suite, but the Messaging Server product should work with UTF-8 usernames and passwords as long as the standard SASL authentication mechanisms that are documented to use UTF-8 are used (e.g. SASL PLAIN). IMAP LOGIN may work fine with UTF-8 as well even though that's non-standard. We do not implement SASLprep, however, so the strings provided by the client to the server must be identical UTF-8 strings for authentication to succeed. If they are provided in a different decomposition, different canonical form or non-standard charset, that's not supported and will fail. We don't test this scenario extensively, so you may encounter bugs (that we'd have to prioritize and fix as with other bugs). Messaging Server recently implemented a restricted option (broken_client_login_charset) for a customer who was stuck with broken clients that sent ISO-8859-1 for the IMAP login command arguments.

  • What non-standard JVM options are common across vendors...

    Hi all,
    As the name explains, non-standard JVM options (java -X) are exactly that, non-standard. So from what I understand these can be different by vendor, by release, by platform, or any combination of the above.
    What I'm trying to figure out is what's common between all the different implementations, if any. For example, are all of Sun's releases (for all platform, for all releases) have the same options? Or do they change by release, i.e. 1.3 to 1.4 to 1.5? Or do they change by platform (Win, Linux, etc).
    Is there knowledge about this out there? So, far I haven't been able to find any info about commonality.
    :-D

    You could simplify the question: what are the standard non-standard options?

  • Macro syntax for non-negativity

    Hi,
    Could some one copy past the syntax for non-negativity like this
    If KF1 < 0, then KF1 = 0 else KF1
    This condition needs to be applied on top of existing macro for KF1 that does some arithmatic whose result could be < 0.
    would appreciate if you copy paste the steps.. that you may already have in any of your macro books.
    I also take this opportunity to request the macro experts to compile a wiki document on macro syntax.. A piecemeal approach would also do without relating to WHERE such a macro could be used. I find this learning the macro syntax by trial and error a rather unproductive and painful experience.
    If some of you could volunteer lets build a fantastic reference document on the macros where everyone can contribute and come with with something really useful.
    The final list can then be classified into artithmatical, conditional, control, abap macros. A brief description alongside each macro and some expert comments on possible application can be later expanded. newer and alternate ways of realzing the same macro creatively and in lesser steps could be regularly appended. I could moderate if such a thing is correct and agreeable
    Regards,
    Loknath

    I cant have more than 10 questions open. so closing this though there arent any responses

Maybe you are looking for

  • Excel import on Oracle Linux - How to create an ODBC Connection

    Hi, We have Oracle BI EE on Oracle Linux. We need to create an ODBC DNS and import tables to Admin tool. How would you create a ODBC connection inside Linux to Microsoft excel file using unixodbc. What drivers we need. Please let us know. Thanks! Nil

  • Can't connect to server message

    I upgraded my MacBook (early 2008) to Lion and it works fine except for two messages that continue to pop up.  One says that it can't connect to the server because URL with "file" extensions are not supported.  The other is that I need to install a j

  • Whats wrong with my php script?

    Hi, I'm (slowly) learning php and am having trouble getting this script to work. It is meant to redirect to paygol once the user clicks a button but for some reason it's not redirecting and just sits on a page telling the user they will be redirected

  • Genius playlists turn into normal playlists when plugged into iTunes

    hi everyone, my problem with my iPod touch is that when i make a new Genius playlist on the iPod, it turns into a normal playlist (i.e. one that you can't refresh and which is listed as a plain playlist underneath the Genius playlists) once i plug it

  • HT201469 Can you use apple pay to pay individuals?

    Can you use apple pay to pay individuals from iPhone to iPhone?