Run midi file with IE 5.0 or 6.0

I write an applet that play "sound.midi" and bundle it in a jar file.The jar file contains
SoundApplet.class
SimpleThread.class
test.mid
I can listen to the midi by appletviewer but it doesn't work with IE 5.0 or 6.0.
What should I do?(I think the last version of java 2 doesn't support midi files so I want to include jre with my jar file but I don't know how)
Thank you.

I used htmlconverter as you say to automatically install plug in 1.3... but my program doesn't paly midi file.
I looked at a sample(from sun's sound tutorial ) and it play midi file both in appletviewer and IE.I think there is some problem with my code!
import java.util.*;
import java.applet.*;
import java.net.*;
import javax.swing.*;
public class SoundApplet extends Applet{
SimpleThread st;
public void init(){
st=new SimpleThread("Thread 1",this);
public void start(){
st.start();
import java.util.*;
import java.applet.*;
import java.net.*;
import javax.swing.*;
public class SimpleThread extends Thread{
AudioClip audioClip;
URL url;
public SimpleThread(String str,Applet applet){
super(str);
try{
url = new URL(applet.getCodeBase(),"romance.mid");
}catch(Exception e){
System.out.println("Error 1");
try{
audioClip = applet.getAudioClip(url);
}catch(Exception e){
System.out.println("Error 2");
public void run(){
audioClip.loop();
javac SoundApplet.java
jar -cvf SoundApplet.class SimpleThread.class romance.mid
appletviewer webpage.html (it correctly worked)
but it doesn't work with IE ( webpage.html )
Really thank you for your help.

Similar Messages

  • I need to create a MIDI file with control cues only. Is that possible?

    I need to create a stand alone MIDI file with control cues to control a non-musical device which does understand these files.
    Must I create a virtual device in MIDI Setup for Logic to talk to?
    Must I create notes in order to create regions that will export?
    Is it possible to do this in MIDI channel 0?
    Is LogicPro the tool to use to do this?
    The maker of the device uses ProTools to create his MIDI files.
    I use a MacBook Pro with OSX 10.10.2 running LogicPro 10.1.1.
    Thanks!
    Doug

    No you cannot trigger a paragraph style with a character or character style.
    But you can have a Apply Next Character Style
    Accountable for: <paragraph style name "Heading 1">
    >> Bullet1 <paragraph style name "Bullet">
    In the Heading 1 style go to "Next Style" under "General"
    and choose "Bullet"
    The select from "Accountable for:" to the last bullet in the list
    Right Click on the Heading 1 style and go to Apply Heading 1 and Next Style.
    http://creativebits.org/indesign/taking_advantage_of_indesign_s_next_style
    http://indesignsecrets.com/where-is-apply-__-then-next-style.php

  • Problem playing .mid file with QT Player on an external MIDI instrument

    Hello,
    I am trying to play a .mid file with QT Player (so I can play it from various softwares as Keynote) and send it out on an attached MIDI device (thru M-audio or Tascam interface). Unfortunatelly, I can only choose "QuickTime Instruments" from the pop-up menu in QT Advanced Preferences. I tried with several configs (G4, G5), several MIDI interfaces, and last flavor of both Panther and Tiger with QT 7.0.4. I configured MIDI setups normally and I can play on exernal instruments from Logic or other sequencers.
    Any idea why I cannot see my devices from QT directly ? Thanks,
    M

    Hello,
    I have tried with a Tascam US-428 with 10.3.9 and QT 6 (latest) and 7.0.4 hooked to a Akai S3000. I also tried on a G5 with a MOTU interface (all last software versions). At home, I have tried with my Ti550 running 10.3.9, QT 6 (latest) 7.0.1 and 7.0.4 and also with my Sawtooth (10.4.5, QT 7.0.4), both with a M-audio Uno interface hooked to a E-mu Proteus expander.
    All configurations behave the same. They are working fine with various sequencers (Logic, PT, some freewares) but interfaces never show up in the advanced preferences of QT.

  • How to run two files with same url-  urgent

    hi,
    i created two servlet page and both are working very fine.but at same time i only able to run one file with same url. Is possible to run two or more file at same time with same url name..
    if you r not understanding what i want to ask then, i have two file names under helloWeb directory
    1) helloWorld.java(servletname s1, url /man)
    2) helloWeb.java (servletname s2,url /man)
    to run - http://localhost:7001/helloWeb/man - it runs very first file which is added to deployment module.
    so i want to know how i can run both file with same url, for this what i have to pass on my address bar.
    plz help me i m wating
    <b></b>

    Hi,
    We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
    When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
    I think there is no possibility to access both servlets with same url.
    Regards
    Anilkumar kari

  • Can't run .jar file with JavaSE

    Hello.
    I'm trying to run a .jar file with JavaSE Binary, just like I did with Windows. I Ctrl+Rclick and pick "Open with..." and there is no such option. I've been searching the whole day for a solution, I kept getting "Open Java Preferences... put on top of the list" and things like that. There is no "Java Preferences" in the Utilities folder, and nothing related to my problem in "Java Control Panel" in System Preferences. Yes, I have Java 7. I just need to run this file with Java. How?
    Thanks in advance.

    Max. allowed size of .jar file is 1MB.

  • How to recognize midi files with iTunes 10.6 ?

    iTunes 9.0 recognizes midi files and can it be easily converted into mp3 files.
    For the interfacing with iPad2 I must use iTunes 10.6 and it seems this version is not recognizing midi files.
    How should I do to manage midi files with iTunes 10.6 ?
    Is there in App Store any application with this feature ?
    Really it's a pity that a new iTunes version loses fatures instead of gaining !!

    The MIDI files in my library still work perfectly. It may be that you simply need to install QuickTime which is no longer installed as part of iTunes.
    tt2

  • How to run .exe files with Virtual PC for Mac

    Hey Guys, I'm new around here and with mac technology as well. Anyway, I have an iMac OS X 10.5.1 Leopard and I've recently purchased the Virtual PC for Mac 7.0.2 software. So I'd like to know how to use this program properly, because I need to run some executable files in my computer. It is confusing for me because I don't know how to get started, and I only get to the part when it says "OS not found, Install an OS on this hard drive".
    Honestly I've no idea of what an OS is or where do I get that. So I'd really appreciate if one of you guys could tell me, step by step, what to do to use Virtual PC properly, and finally learn how to run .exe files on mac.
    Thanks in advance!
    Have a nice day!

    Always nice to see new faces
    Honestly I've no idea of what an OS is or where do I get that.
    This brings up the second part of your problem. The first part is setting up either a proper Virtual Machine program like Parallels or VMfusion, or setting up a Boot Camp partition on your drive.
    http://www.parallels.com/
    http://www.vmware.com/products/fusion/
    OS stands for Operating System. You are running Leopard 10.5.7 as an operating system on your Mac (MacOS X).
    The second part of your problem - You will need a copy of Windows XP or Vista if you want to run Windows on your Mac.
    There is at least one other solution for running Windows programs on a Mac. It's called "CrossOver" by a company named 'Codeweavers'. It's based on a project for "Wine" to be able to run PC programs on a Mac or Linux, without having to buy or install Windows. It works with a narrow subset of Windows programs so you would want to make sure the program you want to run is compatible with CrossOver before you buy it.
    http://www.codeweavers.com/products/cxmac/
    In addition to all the above information, you need to upgrade your Mac to the latest 10.5.7 from 10.5.1. "Software Update" is located under the black Apple icon in the Menu Bar at the top left corner of your monitor. After you are updated you will want to update your Profile here so that it shows the proper OS version.
    With your level of experience with MacOS X and the Windows OS's you should probably get some help from a local Apple store. They have an appointment system and do offer many types of help and training, and they can offer assistance with choosing the proper programs for you to purchase for your machine.
    You are also welcome to continue to ask questions here, of course. You will want to ask your questions with different issues that come up in different threads so that the answers stay focused on the title of the thread.
    Message was edited by: dechamp to try to be more accurate with a fairly complicated issue...

  • Can't use .mid file with Logic Pro 9

    I've been given a .mid file from someone I know but I'm not having any success trying to access the file in Logic.
    The file should just contain a piano piece he had written.
    When I first downloaded the file it automatically opened with QuickTime Player. I closed this then tried various ways of getting it into Logic. Firstly I went to File > Open, and chose the .mid file. This was the result:
    "Damaged project or not a Logic Pro project!
    "Search for fragments?
    "Damaged projects might create problems and crashes!"
    'Search' or 'Cancel'
    When I click 'Search' I'm told:
    "Read error!
    "This is not a Logic Pro project!
    "No tracks found"
    'Continue'
    So, is the file empty (no tracks found)?
    Or, because it was not created in Logic, it can't be opened in Logic. (I think he is using a PC, not confirmed yet - I also don't know what DAW he's using, yet)
    That's ridiculous though, I thought MIDI was a universal language?
    I also tried dragging the file straight into a Logic project, which tells me:
    "No tracks found"
    Can someone please give me a little hand!? Thank you
    Message was edited by: JofishSamuel

    JofishSamuel wrote:
    Okay? Sorry, I have no experience with .mid files as I've never exported or imported them or moved them before... or even highlighted one before!
    Two ideas, have your friend check and make sure the mid file plays on his/her system.
    and/or
    If the mid file checks out good on his/her system have them compress (ZIP) the file and resend as it could have become corrupted during transfer. It can happen.
    Your description of the file (zero length) sounds like it missed the last few bytes.
    pancenter-

  • Problems running jsp files with tags on tomcat 4.0

    hi,
    i had some jsp1.1 stuff running on tomcat3.3.
    last week i moved to tomcat 4.0 , changed the tags to fit jsp1.2 and... everything is wrong now. while trying to run jsp with tags i get an error message (same for all files):
    ---->
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: (class: org/apache/jsp/djsp$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse; )V) Incompatible object argument for function call
    <-------
    the jsp files with no tags and servlets are running ok.
    I NEED YOUR HELP!!!

    cyclid,
    i have the same environment setup and the same troubles. after searching the forums, it seems that there are others with the same, if not similar issues, yet no solutions. if you find the solution to this one, could you please post it. i would really appreciate it since i have been on this one for several days with no success. i even tried the helloworld jsp/custom tag examples from a jsp profession book that i have and that won't work.
    Anyone out there,
    if you have any idea why this problem exists, any solutions, ideas would be appreciated.
    thank you,
    navesink

  • How to run .exe files with DAQ on a target PC?

    Hi,
    I want to run LabVIEW executable files on a target PC, where there is no LabVIEW installed. These files are used to do measurement using DAQ devices.
    In order to run these .exe file, I guess that I should install both LabVIEW Runtime Engine and NI-DAQmx on the target PC. Is it right?
    I'm wondering if it is mantatory to install NI-DAQmx on the target PC. I tried running .exe files without NI-DAQmx installed, but there was an error: nilvaiu.dll couldn't be found. Shouldn't this file be included automatically when building the executable files?
    Thanks,
    Qifu

    No, none of the hardware drivers are included in the LabVIEW exe that you build. You have to install DAQmx. With LabVIEW 8.x, you can include the DAQmx driver with the installer that you create. You also have the option to install different versions of DAQmx. These different versions are smaller than the full DAQmx install (i.e. you may choose to install documentation, MAX. etc.). When you create the installer, you also inclue the LabVIEW run-time and you should also choose to install the hardware configureation that is in MAX.

  • How to run jar files with arguments?

    Hi everybody,
    Is it possible to run a jar file with arguments passed to its MAIN class?
    If yes can you help me on how to do it?
    Thanx

    I am in complete agreement with FahleE. I'll refine it a bit.
    On my machine (running RedHatLinux8.0) you can run the demos like this.
    1. open a console window
    2. go to the directory where the demo you wish to run, say, demo.jar, is located
    for instance for the SwingSet2-demo
    cd /usr/lib/java/demo/jfc/SwingSet2
    3. run the jar file
    java -jar demo.jar
    In order to run it windows style, ie, launching by double clicking, save these lines in a file called
    LaunchJar.sh
    cd /usr/lib/java/demo/jfc/SwingSet2
    java -jar demo.jar
    where demo.jar is the jar file you want to run.
    Right click on the LaunchJar.sh and go to the 'Properties' tab. Check the 'Execute' permissions for Owner/groups/others. You can also do the same thing by chmod command.
    Now double-click on the LaunchJar.sh file: your application should be launched.
    Palash.
    Please Note: It is important to set the path variable to your JAVA_HOME directory....
    Otherwise, instead of
    java -jar demo.jar, you will need to use the full path to your JAVA_HOME/bin directory like:
    JAVA_HOME/bin /java -jar demo.jar.
    Where JAVA_HOME is the directory where you have installed java. Typically it is usr/java or usr/local/java

  • Run fmx files with Netscape Navigator

    Hi
    I have oracle 8i, Developer 6 and OAS 4 installed with winNT on my pc. I can run my form when I press run form on web button. But can I use run that form with Navigator without installing web server. If not can I installed web server without web connection on my pc. if yes can anyone say me how.
    thanks in advance
    hamid

    mseberg wrote:
    We are a Linux shop but this might help :
    Oracle Application Server 10g Release 3 (10.1.3) Installation Requirements for Microsoft Windows (Doc ID Note 444112.1)
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=444112.1
    There appears to be a Work Around for 2008 here :
    http://download.oracle.com/docs/cd/E22984_01/doc.462/e18826/app_server_tms.htm
    To work around this issue, you must start Oracle Universal Installer by running the setup.exe file for Patch Set 3 (10.1.2.3.0) for Oracle Application Server 10g Release 2. Once the Installer starts, you must change the source directory to the location of the Oracle Application Server 10g Release 2 installation files. The steps that follow provide detailed instructions.
    Best Regards
    mseberg
    Thanks dear for your fast replay.
    I read this article:
    http://download.oracle.com/docs/cd/E22984_01/doc.462/e18826/app_server_tms.htm
    and i think it's useful. but I don't have metalink user to download the patches.
    can you kindly provide me these patches.
    Regards.

  • Run .bat file with arguments?

    Hi,
       I need to run the .bat file with parameters/arguments in Adode Indesign JavaScript. "File.execute()" executes the file using the appropriate application.It executes the .bat file suceessfully.But I am unable to pass the arguments.I need to execute the command like
    Eg : test.bat parameter1 parameter2
    var myFile=new File("c:\\test.bat");
    myFile.execute();
    The above statements works fine. Is it possible to execute the with parameters. Please suggest the solution to above problem.

    Hi,
    let VB start the *.bat. this works for me:
    #target InDesign
    doTheBat('START "" "C:\\Program Files\\Adobe\\Adobe Photoshop CS5.1 (64 Bit)\\Photoshop.exe"')//Start Photoshop, just a example
    function doTheBat ( _data ) {  
            try 
                var _file = new File('~/myTmpBat.bat'); 
            _file.open( 'w' );  
            _file.encoding = 'UTF-8';  
        _file.writeln ( _data );  
        _file.close();  
        //_file.execute(); 
        myVBScript = "Set WshShell = CreateObject(\"WScript.Shell\")\r"; 
    myVBScript += "WshShell.Run chr(34) & \"C:\\Users\\%USERNAME%\\myTmpBat.bat\" & Chr(34), 0\r"; 
    myVBScript += "Set WshShell = Nothing\r";
    myVBScript += "\r"; 
    app.doScript(myVBScript, ScriptLanguage.VISUAL_BASIC);
        }catch (e){  alert(e);
    Good luck
    Hans-Gerd Claßen

  • I can't run .avi files with OS 10.8

    Why I don't see .avi files with OS 10.8? Usually I could run .avi files in my iMAC o Mac Book Pro but after I turned to OS 10.7 or 10.8 it was not possible anymore. Some older avi files use to run in Power Point presentations but not the new ones. Anytime that I try appear a sign that refer to there is no valid codec to run the clip.
    Thank you.

    can anyone help? am running osx 10.9 on macbook
    QT X v10.3 only plays JPEG/PCM AVI files natively. Either use QT 7 player (with system configured for appropriate codecs), use a third-party player like VLC (with its own built-in codec support), or convert the files to compression formats like H.264/AAC, MPEG4/AAC, or ProRes/LPCM which are natively supported by the QT X v10.3 player.

  • MIDlet unable to play midi file with mmAPI

    hi , i am currently developing a J2ME game application for my school project .
    I learn stuffs about MIDlet about 2 months and i trying to use this mmAPI to play some *.mid file on my midlet, i use SunJava Wireless Toolkit build and run my midlet but the sound just wont appear ,although no error appear.
    Did i place the file in wrong or i use the code wrongly.
    below is my code
    try {
       Player p = Manager.createPlayer
         ("firstlove.mid");
       p.setLoopCount(5);
       p.start();
    catch(IOException ioe) {
    catch(MediaException e) {
    }the firstlove.mid is place in the folder "src" and folder "res" but it just wont play .
    src contain my midlet java file and res contains most of my images , i not sure really how do i make it play song on this folder , i dont really want to put the url as C:/blahblah/firstlove.mid cause it not really flexible.
    prefer using url like firstlove.mid and placing the media file at the correct folder.
    anyone can tell me whats went wrong?
    I run this midlet at Default Color Phone of SunJava Wireless Toolkit 2.5.2 for CLDC

    You will probably have more succes on a suited answer at one of the forums targeted on Java ME : http://forum.java.sun.com/category.jspa?categoryID=23
    Although I know nothing about Java ME API, but it makes sense to me that this file should be available in the classpath of running environment.

Maybe you are looking for

  • Where would a file I downloaded from my email be found?

    I had a file in my email (gmail account) that I downloaded and cannot figure out where the heck to find it!!?

  • Slow browsing after upgrading to OS 6

    I'm running 6.0.0.448 on a 9780 with corporate BES and noticed that browsing is extremely slow. Specifically, when one first navigates to a site or enters a URL, there is a 10 second delay before the site loads. Once the site starts loading, it loads

  • Ni-can filter ID with led indicator

    Hello, I am currently using ni-can usb 8473s and combine two examples vi to one. Can_receive.vi and Can_data filter.vi. I can filter the ID with no problem but would like to add more than one filter IDs, also have a led indicator to verify that it fi

  • Help. Can someone tell me the taxes on their triple bundle package in NYC

    Can someone with a bundle package fios tv, interenet and phone, the ~$94.99 plan tell me what the taxes are?  Basically what is the total cost of the bill per month is in NYC and if it is the same amount every month and if not how much it fluctuates.

  • SQL server management studio importing

    Hi All I am trying to import data from excel into my database tables in SQL Server management studio and the import facility just doesn't appear to be available. Could this be a permissions or setup issue? Apologies if I am posting in wrong area as I