Cannot find javaw.exe

Windows only.
If, when you double click the pdfsam.exe, an error window shows the message “Cannot find javaw.exe”, it means that it cannot find a working Java installation. To solve this problem try installing (or reinstalling) a working Java Runtime Environment (1.4.2 or above). It can be found here .



  • Reply

    I had this problem for jperf : Windows cannot find javaw.exe

    I use Windows 7 64 bits

    Do a search for javaw.exe on C:

    For me it found C:\Program Files (x86)\Java\jre7\bin

    Edit the environment variables (Computer > Properties > Advanced > Environment Variables

    Locate Path at System Variables

    You should have some values like Nvidia, Powershell etc…. add ; and add this : C:\Program Files (x86)\Java\jre7\bin

    So it should be like that : C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre7\bin

    Validate , it works ! :)

    • Wayne, thaks for the post… time saver for me :-)

    • Thanks! Worked great for me.

  • Reply

    Thank you!!!!! Updated java and it worked.

  • Reply

    thanks downloaded java from the above given link and it worked

    • Sorry but your solution has a big flaw: Java security updates will have no effect, you will always use the outdated version you copied to the Windows directory.

      Basically Jav should set the right path itself (and did so in earlier versions), but for the moment I’d strongly recommend using the PATH environment variable addition proposed earlier.

  • Reply

    Same problem as everyone so I read all 53 posts.

    The answer to anyone’s problem depends on the exact version of Windows you have. So the first thing to do is find out if you have Windows7 32 bit or Windows 7 64 bit. Roght click My Computer > Properties. It will say which version you have.

    Find javaw.exe on your computer (C:\Program Files\Java\jre7\bin). Copy it.
    If you have the 32-bit version paste it in the C:\Windows\System32 folder.
    If you have the 64-bit version then past it in the C:\Windows\SysWOW64 folder.

    Forget about all the paths, pdfsam folder,etc. javaw.exe must reside in the system folder associated with your version of Window 7.

    In my case I have the 64-bit version and had to copy javaw.exe and paste it in the SysWOW32 because it wasn’t there. Bingo.

    • Sorry but your solution has a big flaw: Java security updates will have no effect, you will always use the outdated version you copied to the Windows directory.

      Basically Jav should set the right path itself (and did so in earlier versions), but for the moment

      (and sorry for replying to another post, the reply button is a bit misleading)

    • I have the 64-bit version and could not run Landserf 2.3 which is written for 32 bit. The javaw.exe existed in C:\Windows\SysWOW64 folder but not in C:\Windows\System32 folder.
      I copy and pasted it and the problem was solved.

      So, thank you Mark B.

    • Mark B – many thanks sorted it out for me

  • Reply

    thanks a lot!! finally i can use that!

  • Reply

    Vou falar em português mesmo…
    Estava com o mesmo problema, uso o Windows 7 e trabalho em um órgão público, onde não posso instalar/atualizar nenhum programa.
    Solucionei o problema de maneira muito muito simples: coloquei ele em Modo de Compatibilidade com o Windows 98.
    Está funcionando perfeitamente.

  • Reply

    I had this problem with BNJ3 (Bayesian Network tools in Java) on a Windows 7 system. Browsed for the file and found it in C:\Program Files (x86)\Java\jre7\bin\.

    Once selected, BNJ3 runs like a charm.

  • Reply

    The reason I liked PDFSam is because it is simple and small. Now, if you need to install hava in order to run it, PDFsam makes no longer sense. What other alternatives or solutions are avaliable?

    • PDFSam has been written in Java since the beginning, it requires a JVM installed and it can run on every OS where Java is available. I think there are plenty of alternatives, commercial and not, out there.

  • Reply


  • Reply

    Mark B (post #54) gave a good and easy solution. Now mine is working. Thanks!

  • Reply

    @Mark B, your solution is really easier to get rid of the error. Thank you buddy!

  • Reply

    Mark B.

    Thanks so very much, Mark! I’m new to Windows 8, and I had to paste the file in the (previously) empty system folder, but it works now. Thank you! :-)


  • Reply

    Thanks Mark, your fix worked for me too!

  • Reply

    Not working for me eclipse says the same problem
    i copyed all jre folder in eclipse intallation folder now it says failed to load JNI shared library please help

  • Reply

    Thanks designed for sharing such a nice thought, post is fastidious,
    thats why i have read it fully

  • Reply

    perfect! thanks!

  • Reply

    Mark, thank you very much!!great solution for me!!!

  • Reply

    Are you people all completely stupid?

    There is a serious bug in java, and browsing to the jre install path is NOT A FIX. I REPEAT: NOT A FIX.

    What happens when you update java tomorrow? And then again on Saturday? And twice next week?

    Are you seriously going to continue to run with an old jre? Or have java installer break your apps when it removes old java, just to go through this process again?

    Oracle have fucked up here, big time, and don’t seem to even understand.

  • Reply

    So I have done all that everyone has said in these previous posts and I didn’t manage to get Java to work in my computer, since I was running LandSerf and requires Java tu run!

    My problem was solved by manually downloading the 64-bit version of Java, which by default my bowser, chrome 32-bit, was downloading the 32-bit version of Java. So I had to manually install it from the downloads tab from the Java website.

    I know this is more about matching versions rather than adding the path to the exe. file but maybe this will help other people! Also my win is 64-bit which added to the confusion!

  • Reply

    hey there and thank you for your information – I have certainly picked up something new from right here. I did however expertise a few technical points using this web site, as I experienced to reload the website many times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I’m complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my e-mail and can look out for much more of your respective interesting content. Ensure that you update this again very soon.|

1 2

Leave a Reply

Your email address will not be published. Required fields are marked *