QuickTime installation breaks all Java programs.

There is a bug in the QuickTime installation program for Windows that causes all Java programs to fail whenever QuickTime is installed or updated. As part of the installation, QuickTime updates the system environment variable CLASSPATH to reference a Java .jar file needed by QuickTine in order to run properly. This reference is C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip.
The problem is that in Windows, any file path that contains whitespace characters must be enclosed in quotation marks. This is because on the command line, Windows interprets any whitespace character to be a parameter seperator. So when Windows tries to resolve the file path, it resolves to two seperate paths, "C:\Program" and "Files\Java\jre1.6.0_01\lib\ext\QTJava.zip". This causes all Java applications to generate the following error: java.lang.NoClassDefFoundError: Files\Java\jre1/6/0_01\lib\ext\QTJava/zip.
The solution to this problem has been well known for years, is widely published, and is very simple to implement. Enclose the file path in quotation marks, so that the CLASSPATH entry is exactly as follows (including quotation marks) "C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip". This tells Windows that everything inside the quotation marks is a single parameter, which then lets all Java applications run properly. Everytime there is a new version of QuickTime I have to field numerous complaints from co-workers that they can no longer run our Java applications. This bug has existed for at least two major release versions, 6.x and 7.x.
Please fix this bug.
  Windows XP Pro  
  Windows XP Pro  

A jar file does not have to be an installation program. The jar file can be your entire program neatly encased into one file. If you mess around with the manifest file, the jar file can be executed by double clicking on it.
Example: You have a program that you execute from the command line using: java Program
First, write a text file that has:
Main-Class: Tagssave it as manifest.txt. Make sure to put a blank line at the end of the file. Then, on the command line, type:
jar cvfm Prog.jar manifest.txt *.class
Done! Double click on Prog.jar and let me know if that is what you were looking for.
Brad

Similar Messages

  • Swing uimanager affecting all java programs?

    I set a ton of UIManager properties like:
    UIManager.put("ScrollBar.thumb", java.awt.SystemColor.activeCaption);
    However, when I do this, these become the defaults for all java programs until the virtual machine is reset. This is kind of screwy!!! I set these values in one applet and change the look and feel of the java console and other applets that will be run. How is this possible? I don't know if this is a "bug" or just a poor design.
    Any thoughts?

    Maybe you should try just a few questions at a time?

  • Installer for a Java Program

    Hello, folks.
    I've written an application that I feel is ready to show to others, and would like to provide it with an installer.
    I need to check that JRE 1.4 is installed, install it if it isn't, install the application to a directory, set install/uninstall options in the control panel, and add a start menu item. (This will be a Windows-platform installer.)
    Could any of you suggest a free (not demo) installer system that I could use? I've heard that there are some good ones out there, but I don't have their names and associated URL's.
    thanks,
    Andrew

    Hello All,
    This is may be bit of a tangent, but hopefully it can be helpful regardless...
         I'm looking into installer programs that are java friendly with the ability to generate a gui-based install program for multiple platforms. I went out and tried to find as many programs that match these specs (list below). Before I dive headlong into demo-sampling-mode - I was hoping folks would share any positive or negative experiences they've had with any of the apps listed below.
    http://www.denova.com/ - DeNova
    http://www.fawcette.com/Archives/premier/mgznarch/javapro/2000/06jun00/rv0006/rv30006.asp - InstallShield Java Edition 3.0
    http://www.alphaworks.ibm.com/tech/beanbag - BeanBag
    http://www.alphaworks.ibm.com/tech/installtoolkit - Install Toolkit for Java
    http://www.jadcentral.com/codecentral/code_profile.jsp?category_ID=4&code_ID=112 - ITW Installer For Java Applications
    http://www.zerog.com/ - InstallAnywhere (some free, some not)
    http://www.gjt.org/info/design/autorad.shtml - AutoRad [GPL]
    http://www.xenonsoft.demon.co.uk/products/freeinstaller/index.html - freeinstaller [Open Source]
    http://www.izforge.com/izpack/ - IzPack [Open Source]
    http://www.toolshed.com/download/installer/install.html - Java Self Installer [GPL]
    http://liftoff.sourceforge.net/ - Lift-Off [GPL]
    http://packlet.sourceforge.net/ - Packlet installer tool [Open Source, LGPL]
    http://vainstall.sourceforge.net/ - VAInstall [GPL]
    Comparisons:
    http://www.zerog.com/products_pu_05.html
    Cheers,
    Enrique
    cc comp.lang.java.softwaretools
    cc forum.java.sun.com > Java Programming > Installer for a Java Program

  • Can't Compile All Java Programs

    I've installed java and have put the bin folder in the beginning of the environmental variables path value and separated the other path variables after it with a semicolon and no spaces. I then tried to run a hello world program (javac HelloApp.java) under the correct folder, but instead received a message ('javac' is not recognized as an internal or external command, operable program or batch file). Can anyone help me?

    Install jdk
    point your path to jdk's --> bin folder
    create additional variable name--> classpath
    point it to jdk's lib folder
    .ok.
    Restart
    Now --> start -->run-->cmd--> javac [ enter ] if you get +ve output then 99% you have done it
    now start -->run-->cmd--> java [ enter ] if you get this also then your done!!!!!!!!

  • Break a java source file

    Hi all,
    I'm working in a project which require me to break a .java program into several tokens, such as classes, interface, instant variable or instand method.
    Thx

    Hi,
    Thats nice to know.
    Do you have a question or were you just letting us know what you are up to?

  • Launch many java programs at runtime

    Hi i got one question.
    i have a list of java program ina file.
    i read this file and get each program names.
    i would like to launch all java programs at Runtime from my main Java application.
    here is my code so far:
    String fileName = expansion + ".txt";
              try
                   File file = new File(fileName);
                   FileReader     fileReader= new FileReader(file);
                   BufferedReader bufferReader = new BufferedReader(fileReader);
                   while((program=bufferReader.readLine())!= null)
                        Runtime launch=Runtime.getRuntime();
                        System.out.println("I launch "+ program);
                        launch.exec("cmd.exe /c start /c cd /bin");
                        launch.exec("java "+program);
    this does not work. How can i handle this?
    thank you
    seb

    while((program==bufferReader.readLine())
    != null) {Sorry, I meant
    while((program==bufferReader.readLine())!= null) {{=^)                                                                                                                                                                                                                                                                                                                                                                   

  • How to run java programs on machines without JDK

    I want to make an installer for my java program that would work on machines even without JDK or Java runtime. How should I go?

    Here's another point.
    There is no particular need to "install" anything to run java. You can simply copy the jre to a directory of your choice, and from that directory invioke the JVM as you need it.

  • HT1926 can't install quicktime or itunes on windows 7 get the error message There is a problem with the windows installer package. A program required for this install to complete could not be run

    please help. Can't install quictime player or itunes on windows 7. Get the error message There is a problem with the windows installer package. A program required for this install to complete could not be run. Have followed all the steps suggested and still no luck.

    thank you for trying to help. I do not have apple software update on my computer. I have tried to install several programs so i could install it but every installation will not finish and rolls back and says no changes were made to my computer so i can't install the update. I even tried to force install as administrator but nothing works. Any help would be greatly appreciated. I have windows 7 64 bit.

  • HT1349 Hi all,I have just purchased new iphone but have difficulty in completing the itunes download with message : problem with Windows installer package. A program run as part of the setup did not finish as expected.

    Hi all,I have just purchased new iphone but have difficulty in completing the itunes download with message : problem with Windows installer package. A program run as part of the setup did not finish as expected.
    Would appreciate help...its driving me up the wall!!

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Installation of java programs on different OS's

    Im trying to find the best way of deploying a java program on many different operating systems from my web site. I've looked at InstallAnywhere. That's a very nice program and it has a price to match. Does anyone have any experience with Java WebStart? Are you satisfied with it? What does it lack, if anything?
    requirements:
    create shortcuts on the users desktop
    able to start app in users startup
    and other operating system dependant features ...
    What's the best installation program out there?
    What's your favorite?

    Yes, I see that I posted this in the wrong section. Sorry
    Josh

  • Need help with Java programming installation question

    Sorry for my lack of knowledge about Java programming, but:....
    A while back I thought I had updated my Java Runtime Environment programming. But I now apparently have two programs installed, perhaps through my not handling the installation properly. Those are:
    J2SE Runtime Environment 5.0 update 5.0 (a 118MB file)
    and:
    Java 2 Runtime Environment, SE v 1.4.2_05 (a 108MB file)
    Do I need both of these installed? If not, which should I uninstall?
    Or, should I just leave it alone, and not worry about it?
    Yeah, I don't have much in the way of technical knowledge...
    Any help or advice would be appreciated. Thank you.
    Bob VanHorst

    Thanks for the feedback. I think I'll do just that. Once in a while I have a problem with Java not bringing up a webcam shot, but when that happens, it seems to be more website based than a general condition.

  • My room mate was trying to be funny and deleted all my programs that related to my Camera working...Movie maker...quicktime ect...How do I repair this problem.

    My room mate was trying to be funny and deleted all my programs that related to my Camera working...Movie maker...quicktime ect...How do I repair this problem.

    Custom install QT right from the system DVD (#1) that originally came w/your computer. 
    Your cam files can be redownload/reinstalled from where ever you originally got them from, CD/DVD or the manufacturer's website.
    You did not provide your OS information nor the rest of the files that were deleted.  Therefore, all I can tell you is that your "Apple" files can be redownloaded from the above mentioned DVD.  Your 3rd party files can be reinstalled from their CD/DVD or from the vendor websites.

  • How to list all OS processes from a java program

    I want to list/kill all OS processes from a java program, or a part from all processes according to a filter on a name of process.
    a similar functionality is ps in Unix or taskkill in Windows XP.
    Thanks!

    Hi,
    I was looking for such lib, but finally I decided to accomplish the job with my fingers end ;-). It maigh be helful for u guys:
    // is written for x based OSs
    private static void killProcess(Process process) {
    if (process == null)
    return;
    process.destroy();
    private static void closeProcessStreams(Process process) {
    try {
    process.getErrorStream().close();
    } catch (IOException eyeOhEx) {
    private static void listPHPs() {
    Process proc = null;
    Runtime rt = Runtime.getRuntime();
    int exitVal = 0;
    try {     
    proc = rt.exec(" ps -C php"); // here use ur filter. issue "man ps" in linux for more info
    catch (Exception ex) {
    System.out.println(ex.getMessage());
    killProcess(proc);
    return;
    try {
    // process the return list of ur command
    InputStream stdReturnStr = proc.getInputStream();
    InputStreamReader isr = new InputStreamReader(stdReturnStr);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    String returnMsg = "";
    boolean firstLine = true;
    int[] allPIDs = new int[100]; // finally we have an array of PIDs
    int PIDCount = 0;
    while ( (line = br.readLine()) != null) {
    if (!firstLine){ // the first line is title, ignore it
    returnMsg += line + "\n";
    String PID = line.trim().split(" ")[0];
    System.out.println(PID);
    try{
    allPIDs[PIDCount] = Integer.parseInt(PID);
    PIDCount++;
    }catch(Exception ex){           
    else
    firstLine = false;
    System.out.println(returnMsg);
    catch (Exception t) {
    System.out.println(t.getMessage());
    killProcess(proc);
    return;
    try {
    exitVal = proc.waitFor();
    catch (Exception t) {
    System.out.println(t.getMessage());
    killProcess(proc);
    return;
    closeProcessStreams(proc);
    Thats it!

  • I have recently bought quicktime pro and the installation instructions tell me to go to utilities then to quicktime pro icon. But I don't have a quicktime icon at all in my utilities. Help?

    I have recently bought quicktime pro and the installation instructions tell me to go to utilities then to quicktime pro icon. But I don't have a quicktime icon at all in my utilities. Help?

    QuickTime Player 7 for Mac OS X v10.6.3 or later
    You need to install version 7 to add the registration info.

  • Using a UNIX shell script to run a Java program (packaged in a JAR)

    Hi,
    I have an application (very small) that connects to our database. It needs to run in our UNIX environment so I've been working on a shell script to set the class path and call the JAR file. I'm not making a lot of progress on my own. I've attached the KSH (korn shell script) file code.
    Thanks in advance to anyone who knows how to set the class path and / or call the JAR file.
    loggedinuser="$(whoami)"
    CFG_DIR="`dirname $0`"
    EXIT_STATUS=${SUCCESS}
    export PATH=/opt/java1.3/bin:$PATH
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIR
    java -classpath $
    EXIT_STATUS=$?
    cd $OLDDIR
    echo $EXIT_STATUS
    exit $EXIT_STATUS

    Hi,
    I have an application (very small) that connects to
    our database. It needs to run in our UNIX environment
    so I've been working on a shell script to set the
    class path and call the JAR file.
    #!/bin/sh
    exec /your/path/to/java -cp your:class:paths:here -MoreJvmOptionsHere your.package.and.YourClass "$@"Store this is a file of any name, e.g. yuckiduck, and then change the persmissions to executechmod a+x yuckiduckThe exec makes sure the shell used to run the script does not hang around until that java program finishes. While this is only a minor thing, it is nevertheless infinite waste, because it does use some resources but the return on that investment is 0.
    CFG_DIR="`dirname $0`"You would like to fetch the directory of the installation out of $0. This breaks as soon as someone makes a (soft) link in some other directory to this script and calls it by its soft linked name. Your best bet if you don't know a lot of script programming is to hardcode CFG_DIR.
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIRVery bad technique in UNIX. UNIX supports the notion of a "current directory". If your user calls this program in a certain directory, you should assume that (s)he does this on purpose. Making your application dependent on a start in a certain directory ignores the very helpful concept of 'current directory' and is therefore a bug.
    cd $OLDDIRThis has no effect at all because it only affects the next two lines of code and nothing else. These two lines, however, don't depend on the current directory. In particular this (as the cd above) does not change the current directory for the interactive shell your user is working in.
    echo $EXIT_STATUS
    exit $EXIT_STATUSEchoing the exit status is an interesting idea, but if you don't do this for a very specific purpose, I recommend not to do this for the simple reason that no other UNIX program does it.
    Harald.

Maybe you are looking for

  • Connection between O and BP is missing

    Hi,   When i check inconsistency for a user, i am getting " Connection between "O" and "BP" is missing. When i check the Org.unit in PPOSA_BBP, i could see no BP exists for that Org.unit where user is assigned. I have replicated the org.unit from HR

  • How do I get apps on my iPod touch using iOS 4.2

    How do I download apps from app store using iOS 4.2

  • Keynote fails to play quick time movies

    HI, I am trying to play a quicktime movie which I added to one of the slides. It starts out fine then the screen goes white but the control at the bottom of the screen shows that the movie is still playing. Some times you get the same white slide whe

  • Best way to export imovie slideshow to idvd?

    I've built an 8 min. slide show in imovie with transitions between stills and music too. What is the best way to get it into idvd to watch on regular tv. I want a good quality. It looks great on my computer in imovie, how do i finish the final step?

  • Ip 5 do not connect to 4G LTE

    My ip5 can't connect to 4G LTE network Not show 4G Sim 4G CELCOM