Thread (won't run on multiple CPUs)

I have read articles that claim java's threads will only run on one CPU no matter how many CPUs your system has. But most of those articles were of old versions of java, but I have mostly dual and some quad CPU machines running Linux and I tested out the latest version of the jdk (1.5) and have soem disappointing results. When I look at the CPU usage while I run multithreaded apps it seems there is always one that is over worked, and I think the other CPUs are just doing OS stuff not java stuff. I then did some tests looking at run times which should be almost linear as I increase my thread count (as long as I keep it under the number of CPUs), so on my quad CPU machines I should 2 threads better than one and 3 threads better than 2 and 4 threads should be my peek performance. The machines I tested were completly idle, and I had the exact same run times for all the runs even a little worse as the numbe of threads was increased. So it looks at though the threads aren't utilizing the multiple CPUs. I then made my program run in seperate threads and there was a linear increase, so there is definatly something wrong with the jdk and threading (on SMP machines) as far as I can tell... Anyone else have input?

I ran your code on a linux box running debian 3.0 with FOUR 750MHz processors:
Runtime 771 ms, rate=2594033 rand()/sec
Runtime 1445 ms, rate=2768166 rand()/sec
Runtime 1546 ms, rate=5174644 rand()/sec
$ uname -a
Linux shell 2.4.27-undaero #3 SMP Fri Sep 3 17:35:56 CDT 2004 i686 unknown
$ java -version
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
$
I ran your code on a Sun sparc with FOUR 450MHz processors:
Solaris 9 12/02 s9s_u2wos_10 SPARC
Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 05 November 2002
Runtime 1252 ms, rate=1597444 rand()/sec
Runtime 2545 ms, rate=1571709 rand()/sec
Runtime 1843 ms, rate=4340748 rand()/sec
agassiz% uname -a
SunOS agassiz 5.9 Generic_117171-11 sun4u sparc SUNW,Ultra-4
agassiz% java -version
java version "1.4.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)
Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode)
agassiz%
I ran your code on a Red Hat Linux release 8.0 (Psyche) wit DUAL Pentium Xeon 2.4 GHz
Runtime 476 ms, rate=4201680 rand()/sec
Runtime 742 ms, rate=5390835 rand()/sec
Runtime 758 ms, rate=10554089 rand()/sec
podollb@Node5 ~>uname -a
Linux Node5 2.4.18-14smp #1 SMP Wed Sep 4 12:34:47 EDT 2002 i686 i686 i386 GNU/Linux
podollb@Node5 ~>java -version
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode)
I ran your code on a SINGLE cpu Linux box running Slackware 9.1.0 with 333MHz Pentium II
Runtime 1018 ms, rate=1964636 rand()/sec
Runtime 2009 ms, rate=1991040 rand()/sec
Runtime 4010 ms, rate=1995012 rand()/sec
podollb@vectra ~>uname -a
Linux vectra 2.4.22 #6 Tue Sep 2 17:43:01 PDT 2003 i686 unknown unknown GNU/Linux
podollb@vectra ~>java -version
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode)
I ran your code on a SINGLE CPU machine running Red Hat Linux release 9 (Shrike) 1.69GHz
Runtime 714 ms, rate=2801120 rand()/sec
Runtime 1416 ms, rate=2824858 rand()/sec
Runtime 2823 ms, rate=2833864 rand()/sec
podollb@equus ~>uname -a
Linux equus 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
podollb@equus ~>java -version
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
I ran your code on a Fedora Core release 1 (Yarrow) with DUAL 1.66 AMD Athlon
Runtime 298 ms, rate=6711409 rand()/sec
Runtime 837 ms, rate=4778972 rand()/sec
Runtime 815 ms, rate=9815950 rand()/sec
podollb@zeus_master ~>uname -a
Linux zeus_master 2.4.22-1.2199.nptlsmp #1 SMP Wed Aug 4 11:49:01 EDT 2004 i686 athlon i386 GNU/Linux
podollb@zeus_master ~>java -version
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
I ran your code on a DUAL 2.8GHz Pentium Xeon running Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
Runtime 485 ms, rate=4123711 rand()/sec
Runtime 451 ms, rate=8869179 rand()/sec
Runtime 484 ms, rate=16528925 rand()/sec
podollb@crayowulf ~>uname -a
Linux crayowulf 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004 i686 i686 i386 GNU/Linux
podollb@crayowulf ~>java -version
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Server VM (build 1.5.0-rc-b63, mixed mode)
I ran your code on a DUAL pentium xeon 1.69GHz
Runtime 678 ms, rate=2949852 rand()/sec
Runtime 1197 ms, rate=3341687 rand()/sec
Runtime 1773 ms, rate=4512126 rand()/sec
podollb@tycho ~>uname -a
Linux tycho.rwic.und.edu 2.4.18-24.7.xsmp #1 SMP Fri Jan 31 06:10:55 EST 2003 i686 unknown
podollb@tycho ~>java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-beta)
Java HotSpot(TM) Client VM (build Blackdown-1.4.1-beta, mixed mode)

Similar Messages

  • MOVED: Won't run with 2 CPUs

    This topic has been moved to Server/workstation.
    Won't run with 2 CPUs

    Okay. Power supply info. Had to break my system down because the side that had the info on it was covered by the top of the tower.
    Enhance Electronics
    Model: ATX-1140F with Outlet
    400 Watt Power Supply
    +3.3v(28A), +5V(38A), +12V(18A), -12V(.8A), -5V(.5A), +5VSB(2A)
    The 4 pin connector is plugged in. =) I did not overlook that.
    As for trying it with fewer memory sticks, no I have not tried that but keep in mind that earlier today the previous mobo was in this machine and running with both CPUs and all 3 memory sticks (512, 512, 1024). All in the same memory slots as the original mobo. I pulled each one and inserted it in the new mobo before taking out the next one to be sure I put them back in the same slot.
    I checked and double checked all the bios settings and they match. The only thing that has changed since this morning is the replacement mobo and that is the exact same model as the one I replaced. System works fine with 1 CPU but not with 2. What might cause that on this motherboard but not the original one?

  • Won't run with 2 CPUs

    I just replaced my 6501 motherboard with one that MSI sent me. When I install both processors the computer most times hangs at startup screen. Lights 2 and 3 are red which indicates it stops at the Bios sign-on.
    It hangs where it says AMD MP 2800 Processor but before memory test and it does not display the , (2 cpu's) to the far right of the processor (80% of the time this happens on boot-up). Occasionally when I reboot it will detect both CPUs and will initialize the bios and then start loading windows at which point it immediately reboots.
     If I remove the second CPU and reboot the machine boots fine and I can load up windows.
    I have swapped both CPUs and put both of them in the Primary CPU slot and they both boot up and run fine no issues. Only when I try to have both in do I have problems. The reason I replaced the MB was because of some dried out capacitors. I got the 1.91 bios update already. Not sure what might be causing this but I want both CPUs working like before. Any help would be appreciated.
    This is the first time this board has been used. I pulled it out of the box this morning. It is a refurbished board from MSI. The other board with the dried out capacitors ran both CPUs fine without issue but I had data transfer issues so had to replace it. The newest bios available for this motherboard appears to be award bios v1.91 which is the one I have.
    If any further info is needed let me know what else you need. (I am on the computer having troubles right now but with only 1 CPU running - works fine albeit a bit slower)

    Okay. Power supply info. Had to break my system down because the side that had the info on it was covered by the top of the tower.
    Enhance Electronics
    Model: ATX-1140F with Outlet
    400 Watt Power Supply
    +3.3v(28A), +5V(38A), +12V(18A), -12V(.8A), -5V(.5A), +5VSB(2A)
    The 4 pin connector is plugged in. =) I did not overlook that.
    As for trying it with fewer memory sticks, no I have not tried that but keep in mind that earlier today the previous mobo was in this machine and running with both CPUs and all 3 memory sticks (512, 512, 1024). All in the same memory slots as the original mobo. I pulled each one and inserted it in the new mobo before taking out the next one to be sure I put them back in the same slot.
    I checked and double checked all the bios settings and they match. The only thing that has changed since this morning is the replacement mobo and that is the exact same model as the one I replaced. System works fine with 1 CPU but not with 2. What might cause that on this motherboard but not the original one?

  • Thread won't run

    in my program i want a thread name getdata to start, but it does not. if it did a statement in system would say so. Any help in getting the thread to run would be great thanks. Here is the code:
    public void listenSocket() {
         if ( connected==("2") ) {
    //Create socket connection
         try{
           socket = new Socket(ipaddress, 4444);
           out = new PrintWriter(socket.getOutputStream(), true);
           in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
         } catch (UnknownHostException e) {
           System.out.println("Unknown host: host your connecting to");
           System.exit(1);
         } catch  (IOException e) {
           System.out.println("No I/O");
           System.exit(1);
                   connected = "1";
                   Thread getdata = new Thread();
                   getdata.start();
         else {
              try{
                    socket = new Socket(ipaddress, 4444);
           out = new PrintWriter(socket.getOutputStream(), true);
           in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
         } catch (UnknownHostException e) {
           System.out.println("Unknown host: host your connecting to");
           System.exit(1);
         } catch  (IOException e) {
           System.out.println("No I/O");
           System.exit(1);
         senddata();
    public void run()
              if( getdata == Thread.currentThread() )
                   System.out.println("running getdata thread");
                   friendtypingLabel.setText("running get data");
                   getdatamethod();
    }

    I believe you really have to read the API about Thread this is not the way at all how you can create a new Thread.
    Thread getdata = new Thread();
    getdata.start();Create a new Thread object with itself as its underlying Runnable. Therefore when you start it, it process the run() method of Thread class which is empty. You must create a class which extends Thread and overload its run method instead or create a class that implements Runnable and create the new Thread with:
    Thread t = new Thread(myRunnable);
    t.start();

  • Thread won't run in release mode

    My application runs fine in Debug mode. I have several threads. A couple just blink some LEDS. In release mode they don't blink and my main function that is triggered by a button which runs a callback function that launches another thread doesn't work. 

    Hello,
    it's difficult to try guessing what's happening with no informations available. Apparently ther's something that's causing a program crash in release mode and you suppose it relates to some problem in memory allocation. Additionally, it seems your program is consuming system resources until it fills up all available memory.
    Are you freeing the dynamic memory when no longer needed? Are you sure you don't have any memory leak that can cause this increment in memory occupation? You must double check that every dynamic array allocated is freed when no longer used; you may want to swap part of the dynamic memory to disk if you are not using it constantly.
    Additionally, have you a consistent and robust error checking method that logs all errors found to the user interface or to disk?
    Another hint if you have CVI2009+ can be to activate extended debugging level in Build Options, next run the program some time in debug mode and close it: if some resources are not properly freed the Resource tracking window should appear with all allocated resources listed that are not correctly freed by the code.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Thread won't run a second time

    Using JDK 1.4.1 on a Windows 2000 box
    After a thread is created, started and completes, it is not possible to start the same thread object a second time.
    I'm not sure what's going on here. It seems that a thread pool implementation could never work if what I've found is true. This seems unlikely, but my test program is very simple. If you run it you will notice that run() is called after the first start(), but not after the second. The isAlive() state returns false as expected after the join(), so it appears the thread has finished executing. I've tried sleeping in various ways waiting for the thread to start the second time, but it never starts.
    public class ThreadTest
        private static class MyThread extends Thread
            final public void run()
                System.out.println( "run() called" );
        private static void testThreadRestart()
            for ( int i = 0; i < 10; i++ )
                System.out.println( i );
                try
                    MyThread thread = new MyThread();
                    System.out.println( "start() called 1" );
                    thread.start();
                    thread.join();
                    System.out.println( "thread.isAlive() = " + thread.isAlive());
                    //Thread.sleep( 60000 );
                    System.out.println( "start() called 2" );
                    thread.start();
                    thread.join();
                    System.out.println( "thread.isAlive() = " + thread.isAlive());
                    // Try a sleep loop to wait for the thread to start.
                    for ( int j = 0; j < 1000; j++ )
                        Thread.sleep( 1 );
                    //Thread.sleep( 60000 );
                catch ( InterruptedException e )
                    // do nothing
        public static void main( String[] args )
            testThreadRestart();
    }

    I found the following information in "Concurrent Programming in Java" 2nd Edition, by Doug Lea.
    "Threads are not restartable, even after they terminate. Invoking start more than once results in an InvalidThreadStateException."
    The first part seems to be true, but the second part is only true if the thread is still alive. Once the thread completes, calling start() a second time results in no exception and no action.
    I did not find any such information in Sun's documentation.
    Apparently a thread pool implementation relies on threads that never "finish". That is the thread object never exits the run() method, but employs a mechanism by which it accepts new tasks, executes them. When the task completes, the thread's run() method loops and waits for a new task. run() is never exited.

  • Safari won't run on multiple 2013 Macbook Airs

    Hi, I purchased a 2013 MBA on Saturday.  When I got home and fired it up I discovered Safari would crash in seconds.  Couple of hours talking to Applecare but nothing worked.  I went back to the store on Sunday (an hour away) and exchanged it.  That new MBA also couldn't run Safari.  The tech opened a third computer with a different number sequence and it too could not run Safari.  They put google on so I'd have a browser.  I'm debating whether to return the computer though concerned that I'm stuck with tech that is going to have a long running problem as I've been completely unable to find any mention of others having this issue and fixing it.  The fact that 3 brand new computers in a row had the same issue makes me wonder if anyone else has found this and discovered a fix for it yet? Suggestions? Thanks!

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • How do you disable "Run with Multiple Threads" in a standalone EXE

    I have a program written in Labview 6.1.  After moving to a different hardware platform, my program has started crashing at the same point every time it is run.  I eventually found out that the cause of the crash is the fact that the new hardware has a dual core processor.  I confirmed this by disabling "Run with multiple threads" and now the program works fine.  What I need to know now is how to disable the same setting in a built EXE file, since as far as I know the "Run with multple threads" setting only affects execution in the Labview Dev environment.
    Thanks for any help,
    Dave

    Greg McKaskle once posted that using a non-reentrant (VI is NOT re-entrant) wrapper VI to make the calls to the dll will prevent simultaneous execution of the dll.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • One Java-Process over multiple CPUs on Solaris 8

    Hello,
    sorry if this question is trivial. I have a java server software (BEA Weblogic) and use it on a multiple CPU machine (e.g. 4 CPUs) with Solaris 8. This Server runs as one system process and creates some threads. Are these threads spread over multiple CPUs or do they stick on the same CPU as their parent process.
    So the question is: Am I using the full power of my machine with the 4 CPUs when I'm only starting one of these software servers or do I have to start multiple instances for to use all the CPU power.
    I'm using JDK 1.3.1_07 an can make use of the alternate threading library "/usr/lib/lwp" on the solaris 8. This will activate the one-to-one threading for the JVM.
    Thanks and kind regards
    Falko

    Sound like you figured it out ;-)
    Keep in mind that you'll probably get better performance, depending on your application, by tuning the heap and the garbage collector. We run on four processor machines, but I could make good use of all four processors until I adjusted the heap size, old/new heap rations, turn on the concurrent gc, and increased the RMI GC interval.
    Good luck,
    Michael

  • TitanTV listings page NOW affects my Firefox. I'd commonly run it -multiple tabs- with no problem at all. Now-- Hanging!; flash crash,etc.. What jusT changed??

    (Using WiFi and all-- library computers, etc.. I got in the habit of keeping multiple tabs open. I came to Firefox because it handled that usage much, much better than any version of IE. Running the multiple tabs of the future television listings made sense and Was very convenient.. Was. Now it seems -after eliminating other possibilities* that the TitanTV page is the cause of my Firefox Hanging.. (when open at all It slows even Other pages' scrolling..?! ) So yeah-- 'Hanging,' unresponsive page, flash/shockwave -type crashes etc. ,etc. Obviously..I don't Have to use the page.. or run it on this browser but What ALL Of A Sudden is causing this to occur?? Is it the ad content on there somehow? I'd love to find out at this point... and I do prefer this to the other browsers. [*And did follow the posted usual troubleshoots as well as uninstall/re-install on both the Firefox and antivirus (Avast), clearing the cache memory...] I'd love it if I could solve this new mystery here.... Thanks! )

    Tom, <br />
    I am glad it is working again after following Moses's advice.
    You say give us volunteers better ammunition, would help with troubleshooting. Well one thing you could have done along those lines was to follow the prompts to include full troubleshooting information in your question.
    You have marked the thread solved and so it appears running in safe mode with plugins disabled solved the issue for you. That is commonly seen in searches as a troubleshooting step because it is useful. Firefox is highly customisable something people like, but the downside is all the various addons do not always work well in every situation and combination.
    The action was only intended as a troubleshooting step, but you may well have more than one single issue here and may need further help sorting that out. I appreciate you are frustrated & not swearing '''at''' ''Moses'' but you are probably more likely to find help if you tone down the language.
    I can not be sure yet but probably most of you problems are not directly related to the upgrade of Firefox from Fx28 to Fx29.

  • Lightroom 5.5 and Photoshop CC 14 won't run after installing

    I tried installing the Lightroom and PS upgrades through the Creative Cloud installers - they install but won't run.  Lightroom won't start at all now and PS starts, gets to the main window and immediately shuts down.   I've restored, reinstalled, uninstalled all old versions, run CC cleaner multiple times sucessfully - nothing has worked.
    Help is appreciated.
    Thanks

    http://helpx.adobe.com/photoshop/kb/cc-applications-crash-immediately-launch.html

  • Class Not Found Exception - applet won't run anywhere outside of IDE

    I have an applet that runs perfectly in the netbeans IDE, but won't run from command prompt (I'm using windows) or from a browser. I've been banging my head against the wall for a few days on this one. Here's the HTML I'm using:
    <applet width="400" height="525" code="musicapplet.class" archive="crypticgraffiti.jar">
    <param name="bgcolor" value="ffffff"> <param name="fontcolor" value="000000">
    </param> </param> Your browser is not Java enabled. </applet>
    Here is the structure of the jar file's contents:
    META-INF/
    META-INF/MANIFEST.MF
    com/
    com/crypticgraffiti/
    com/crypticgraffiti/music/musicapplet
    com/crypticgraffiti/music/GetNotes.class
    com/crypticgraffiti/music/InstList.class
    com/crypticgraffiti/music/Mode.class
    com/crypticgraffiti/music/MusicCreator.class
    com/crypticgraffiti/music/OctaveTransformer.class
    com/crypticgraffiti/music/Phrase.class
    musicapplet/MusicApplet$playerThread.class
    musicapplet/MusicApplet.class
    (Musicapplet.class is the main class)
    When I attempt to run from command prompt, I get:
    "Error: Could not find or load main class crypticgraffiti.MusicApplet"
    When I attempt to load via html:
    "basic: load: class musicapplet.class not found.
    load: class musicapplet.class not found.
    java.lang.ClassNotFoundException: musicapplet.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: musicapplet.class
    security: Accessing keys and certificate in Mozilla user profile: null"
    I have tried every possible variation for the 'code' element of the applet tag (package.mainclass.class, mainclass, mainclass.class, etc). I have also tried compiling with JDK 1.6 and this didn't change anything. I've tried clearing out the cache of temporary files using the java control panel settings, and have verified that my browser can run other applets using JRE 6 and 7.
    I've tried some different ways of distributing the applet, also: putting all the class files in the folder with the html file, putting the classes in a source folder in the same folder as the html file, and finally putting a jar in the same folder as the html file (which really seems the simplest).
    Any help at all would be most appreciated! This applet is a very cool and original music creating app that draws heavily on the JFugue API. It's a shame that I can't get it online for people to play with!

    Cryptic Graffiti wrote:
    Here is the structure of the jar file's contents:
    META-INF/
    META-INF/MANIFEST.MF
    com/
    com/crypticgraffiti/
    com/crypticgraffiti/music/musicapplet
    com/crypticgraffiti/music/GetNotes.class
    com/crypticgraffiti/music/InstList.class
    com/crypticgraffiti/music/Mode.class
    com/crypticgraffiti/music/MusicCreator.class
    com/crypticgraffiti/music/OctaveTransformer.class
    com/crypticgraffiti/music/Phrase.class
    musicapplet/MusicApplet$playerThread.class
    musicapplet/MusicApplet.class
    (Musicapplet.class is the main class)
    Please note that class names are case sensitive so "MusicApplet" is not same as "Musicapplet" or "musicapplet". Your applet tag should have fully qualified class name (without quotes) and should look like this:
    <applet width=400 height=525 code=musicapplet.MusicApplet archive="crypticgraffiti.jar">
    </applet>
    The JAR should be in the same directory as your HTML file. While launching from command line, you can also check if your JAR file is getting included in classpath.
    Thanks,
    Nitin

  • Itunes installer won't run in Windows 7

    I am trying to install the latest version of itunes on my new laptop and the installer won't run.  It is a samsung sereis 7 notebook running Windows 7.
    I have downloaded itunes multiple times and tried running as administrator.  I do not get any error, and occasionally a progress bar will flash up on screen for a couple of seconds but then nothing happens.  Other times I don't even get the progress bar, just nothing happens when I try to open the installer.
    Would appreciate any help with this problem.  Its driving me crazy not being able to add new music to my ipod!

    This forum is focused on consumer level products.  For the Designjet you may have better results posting in the HP Designjet forum here.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Java applets won't run on Safari???

    I have reinstalled Java twice, and it still won't run any Java applets. It just sits there with the cup logo and the arrow on either side. It works fine on Firefox but not Safari. Help?

    Hello
    I'm piggy backing on this thread because I too have had problems with Java and Safari
    Java runs fine for me in Firefox, however.
    I went to a federal website
    https://blrscr3.egs-seg.gc.ca/gol-ged/gov/browserdetection/BrowserCheck.html
    that uses java and received this message
    " Java applet unable to load
    To use this service, you must either install a recent version of the Sun JVM or enable "Scripting of Java applets" if it has been disabled."
    so i looked for an update and have downloaded and installed release 6, (at least, it said that it was installed, but have never been able to figure out where)
    when I check Java preferences, the choices are J2SE 1.4.2 or J2SE 5, and when I've switched to 1.4.2 I still have no luck.
    When i run firefox, i get the java console opening, but it doesn't open with safari, and I can't find the option for this to turn on in safari
    i have restarted both safari and my computer and no luck. I have repaired permissions and no changes have taken place.
    Any more suggestions?
    (thank you, by the way)

  • Sun RI 1.1_01 Won't Run on Tomcat 4.1.29

    I'm having problems getting a JSF application built using Sun RI 1.1_01 on a Tomcat server running on Linux. After deploying the application to the server, it won't start. A check of the server's localhost log reveals the following stack trace:
    2006-03-03 08:11:48 StandardContext[FacesTemplate]: Exception sending context initialized event to listener instance of clas
    s com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse configuration file:jar:file:/var/jakarta-tomcat-4.1.29/work/Standalone/localhost/Face
    sTemplate/WEB-INF/lib/jsf-impl.jar!/com/sun/faces/jsf-ri-runtime.xml
    at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1204)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:274)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3271)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3613)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
    at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
    at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
    at org.apache.commons.digester.Rule.end(Rule.java:276)
    at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1567)
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:385)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:819)
    at org.apache.catalina.servlets.ManagerServlet.deploy(ManagerServlet.java:562)
    at org.apache.catalina.servlets.ManagerServlet.doPut(ManagerServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.FileNotFoundException: JAR entry com/sun/faces/web-facesconfig_1_1.dtd not found in /var/jakarta-tomcat-4.
    1.29/work/Standalone/localhost/FacesTemplate/WEB-INF/lib/jsf-impl.jar
    at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:97)
    at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:107)
    at java.net.URL.openStream(URL.java:913)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
    at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1188)
    ... 63 more
    I checked the jsf-impl jar, and it does contain a web-facesconfig_1_1.dtd file, contrary to what the stack trace says. If my memory serves me correctly, the application ran fine on the server when it was at JSF 1.0, but when I upgraded it to 1.1_01, my problems began. The application runs fine at 1.1_01 within my development environment (Rational Web Developer v6) on my local machine (Windows XP). Can anyone shed some light on this problem for me?
    Thanks!
    Paul

    Hi guys,
    I think my question is near to you and i can get ready answer.
    I have upgraded from JSF1.1_01 to JSF1.2. I am able to deploy my application now. The deployment is failing with an error,
    Operation failed with error: Can't parse configuration file: code-source:/C:/OAS_1/j2ee/home/applications/test/SalesADFDemo/WEB-INF/lib/jsf-impl.jar!com/sun/faces/jsf-ri-runtime.xml: Error at line 3 column 14: code-source:/C:/OAS_1/j2ee/home/applications/test/SalesADFDemo/WEB-INF/lib/jsf-impl.jar!com/sun/faces/jsf-ri-runtime.xml: XML-20149: (Error) Element 'faces-config' used but not declared.
    Please help me out. how can solve this? I am using Oracle App server 10g.

Maybe you are looking for

  • I have updated my iPhone to ios 7. Now, my iTunes on my Mac wont recognise it. Help please!

    After updating my iPhone 4S to IOS7, my 10.6.8 iTunes will not recognise my iPhone. It says it requires itunes 11.1 or higher. I cannot find that update. Help please!

  • Capp Adrian

    Capp Adrian : thanks, i need whole procedure.My all program write in c++(by vc++60). please give me an example. how dO I store results which by c++ programs produced to oracle 9i(2)(eg:pictures(*.jpg))?whether is store procedure write in C++ or SQL?

  • DM_Mappings.csv which maps logical names to relational names is blank

    Hi, I have created a data model (both logical and relational) using OSDM 3.1.4.710. I am trying to generate a csv report (go to File -> Export -> To CSV option in OSDM) which maps the logical names to physical names (physical names are abbreviated as

  • 'Open With' gone kind of crazy...

    This is kind of a strange one... I often do a 'control-click' when opening jpegs. I often want to open them in photoshop instead of preview if I want to mess around with the image. Here's what's going on. It lists all the usual suspects (photoshop, p

  • Why I cannot open a application store

    Why I cannot open a application store in my iPhone 5??