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 http://www.java.com .

Andrea

67 Replies to “Cannot find javaw.exe”
  1. Well.. when you install java on Windows the java home path is added to the PATH system variable so the java command is available to every java application. This error shows 99% that java is not installed at all so it’s more a System issue than a pdfsam one. It can’t be managed like working dir o def env because they are managed by pdfsam and pdfsam needs java to run.

  2. thanks for your concern, please i tried to install your-freedom software on my pc but it keeps telling me no java runtime dat i should install at least 1.4 version or newer.how can u help me.

  3. Jperf error windows Vista (This will most likely apply to any .bat or .exe file. It just so happened I was trying to get Jperf to work)

    PROBLEM #1: “Windows cannot find ‘javaw'”

    SOLUTION: First, ensure java is loaded on your computer. If not, just google java download and install it. If java is installed and you’re receiving the error, then you have two options. First you need to locate where javaw.exe is loaded on your computer. I did a default install on my Vista computer and it was installed “C:Program Files (x86)Javajre6bin” #1 edit jperf.exe to add path to javaw as the first line in jperf.exe.

    set PATH=%PATH%;C:Program Files (x86)Javajre6bin

    #Option 2. Which is what I did on my Windows Vista 64bit system. Edit enviromental variable PATH to include pointing to the folder where jawa.exe.
    – Open Control Panel
    – Open System
    – Click on “Advanced system settings”
    – Click on “Environment Variables”
    – Under System variables select “Path” and then edit.
    – I copied and past the “Vaiable value” into note pad and edit then copy pasted back. I added “;C:Program Files (x86)Javajre6bin” without ” of course to the end and pasted back in.

    PROBLEM #2: When I execute jperf.exe, I see command prompt quickly open then close, but jperf doesn’t open.

    SOLUTION: You most likely have a permissions problem. Disable User Account Control (UAC) on Vista. To Disable UAC on Windows Vista:

    – Open up control panel, and type in “UAC” into the search box. You should see a link for “Turn User Account Control (UAC) on or off”.
    – On the next screen you should uncheck the box for “Use User Account Control (UAC)”, and then click OK.
    – You’ll need to reboot your computer before the changes take effect.
    NOTE: Disabling UAC will lead to a less secure system. You can google for more information, but for my lab computer UAC is ANNOYING.

  4. I am using Windows 7 (64 bit) and have installed Java SE Runtime (64 Bit). I got the same “Cannot find javaw.exe” error. I found that I needed to add “;C:Program FilesJavajre6bin” to system Path variable to get PDFSAM to work

  5. I am using Windows 7 and have installed Java 6, when my son tries to open games he gets the following message:

    “Java Virtual Machine Launder failed to load main-class manifest attribute from C://Warriors Plannet client v1.1/Theme.jar.

    Also when he tries to open Boxingscape Client it gives an error messgae “Windows cannot find javaw”

    Any help would be appreciated as I have no idea what to do.

  6. I’m also using Windows 7 (64-bit) and had a similar problem. The error is in fact a packaging error in JRE 64-bit which could be reported to Sun because you should not have to edit the PATH variable for a JRE install (that’s a JDK requirement only).

    JRE installs javaw.exe to C:WindowsSystem32 but under 64-bit windows it should also install javaw.exe to C:WindowsSysWOW64. Since pdfsam-starter.exe is a 32-bit program, not 64-bit, it can’t see files in C:WindowsSystem32.

    pdfsam-starter.exe could work around this bug in the JRE by explictly searching for %windir%SysWOW64javaw.exe if it can’t find javaw.exe by any other way.

  7. I have windows XP, I recently reinstalled a printer ( HP 3015 laserjet)and since that time a message pops up after turning computer on asking if I want to block javaw.exe I click ask me later until I find out what it is. Also since installing this printer the bootup on the computer is considerly slow than before.
    Can anyone help me.
    Thank you in advance.
    T.Farmer

  8. Using Windows 7 and I really, really try to avoid JRE like the plague due to the fact that so many viruses, junkware and malware use Java and JRE exploits…JRE also updates WAAAY too often due to the discovery of more exploits and bugs in the pile. JRE always runs in the background, and so many folks come to me to fix their computers because “somehow a JRE based virus/malware infiltrated their system.”

    Any software that requires the installation of MORE software is in my book, poorly compiled. Use C++ and build your own DLLs that don’t have 3rd party requirements, and get a (I know, it’s $$$) software validation certificate from MS. Sorry — I’ve used this app in the past, but due to security I’ll be going another route.

  9. My “javaw.exe” is located in a directory that is well set in PATH environment variable but “pdfsam-starter.exe” is still complaining:
    “Windows ne trouve pas ‘javaw.exe’. Vérifier que vous avez entré le nom correct, puis réessayez.”
    (approximativ translation: “Windows can’t find ‘javaw.exe’. Check the path you entered is correct and try again”)

    Hopefully, the Java installer associated .jar files and javaw.exe:
    “…binjavaw.exe” -jar “%1” %*

    So, a simple double-click on “pdfsam-2.2.0.jar” allowed me to finally run PDFSam.

    It’s seems that “pdfsam-starter.exe” is the faulty piece (unable to find javaw.exe)

    Hope that can help someone.

    I’m running Windows 7 (Pro) 64-bits and Java 6u18 64-bits.

  10. For Windows 7 users experiencing troubles with not being able to find javaw.exe here is what you do.

    Open C:/Windows/SysWOW64
    Scroll down and find javaw.exe and copy it
    Open C:/Windows/System32
    Paste javaw.exe

    That’s it. Work done.
    It took me a while to figure out what was going on, it’s some sort of association error and it is much easier putting javaw.exe in the System32 folder than messing around with anything else, especially for the less experienced computer users. Hope this helped.

  11. Yo tengo windows 7 de 64 bits, he mirado la ruta donde tengo instalado el archivo javaw (.exe porque es una aplicación) Y ha sido esta:

    C:Archivos de programaJavajre6bin

    hay quien lo tiene en archivos de programa (x86) como he leido en esta misma página

    Y he hecho esto con mi ruta:

    – Abra el Panel de control
    – Open System – Sistema Abierto
    – Click on “Advanced system settings” – Haga clic en “Configuración avanzada del sistema”
    – Click on “Environment Variables” – Haga clic en “Variables de entorno”
    – Under System variables select “Path” and then edit. – En Variables del sistema, seleccione “Path” y luego editar.
    – I copied and past the “Vaiable value” into note pad and edit then copy pasted back. – He copiado y pasado el valor “Vaiable” en bloc de notas y editar a continuación, copiar pegar de nuevo. I added “;C:Program Files (x86)Javajre6bin” without ” of course to the end and pasted back in. He añadido “; C: Archivos de programa (x86) Java jre6 bin ” sin “, por supuesto, hasta el final y pegar de vuelta pulg

  12. On Windows 7 (64 bit) with Java (64 bit) installed the problem is fixed by copying the file javaw.exe from the directory …WindowsSystem32 to …WindowsSysWOW64.

    Notes:
    1. This is the opposite to what Ryan (No. 17) suggested. But for me it worked this way.
    2. David Allsopp (No. 11) has a point. Obviously, pdfsam should scan for javaw.exe in the directories …Windowssystem32 AND …WindowsSysWOW64.
    3. I suppose that this copying procedure has to be done on every Java update. This is really bad news.
    4. Maybe supershwa’s (No. 15) comment has to be taken into account, too.

  13. For Windows 7 users experiencing troubles with not being able to find javaw.exe here is what you do.

    Open C:/Windows/SysWOW64
    Scroll down and find javaw.exe and copy it
    Open C:/Windows/System32
    Paste javaw.exe

    That’s it. Work done.
    It took me a while to figure out what was going on, it’s some sort of association error and it is much easier putting javaw.exe in the System32 folder than messing around with anything else, especially for the less experienced computer users. Hope this helped.

    THanks that worked for me great!

  14. for me I had no java.exe in C:windowsSysWOW64
    for me adding
    c:Program FilesJavajre6bin
    to the path seemed to fix it.

    Though the other ways described here might work too.

  15. there is no folder “syswow64” in the c:windows directory. I have searched for this filename in the windows search bar and it only appears in some hardware code for another device I am using. Where are these files?

  16. Ryan Says:
    August 31, 2010 at 10:29 pm

    For Windows 7 users experiencing troubles with not being able to find javaw.exe here is what you do.

    Open C:/Windows/SysWOW64
    Scroll down and find javaw.exe and copy it
    Open C:/Windows/System32
    Paste javaw.exe

    THANK YOU, RAYAN, BEST ADVICE EVER!

    That’s it. Work done.
    It took me a while to figure out what was going on, it’s some sort of association error and it is much easier putting javaw.exe in the System32 folder than messing around with anything else, especially for the less experienced computer users. Hope this helped.

  17. Open C:/Windows/SysWOW64
    Scroll down and find javaw.exe and copy it
    Open C:/Windows/System32
    Paste javaw.exe

    THANK YOU, RAYAN, BEST ADVICE EVER!

  18. Lo mas facil de todo es Equipo/C/Windows/system32/javaw
    copias el javaw y lo metes en la carpeta de PDFsam, en el mismo sitio que hay el ejecutable del programa y ya esta, funciona 100%

  19. Had the same problem in Win7. Don’t remember if I installed Java or PDFsam first.

    Like the instructions stated above, I searched for javaw.exe and found it, like others did, in the Java folder tree, which, for me, is: C:Program FilesJavajre6bin. DO NOT MAKE COPIES OF THIS PROGRAM.

    Update the environment variable PATH by adding YOUR Java path, which should be similar to mine above. This is found by:
    – Right-click on Computer and click Properties.
    – Click Advance System Settings in the left column.
    – Click the Environment Variables button on the bottom.
    – In the bottom half, it is marked System Variables.Scroll down until you see Path.
    – Double-click on Path.
    – Scroll to the end of the Variable Value and paste your Java path there, making sure the path is preceded by a semi-colon ‘;’
    – Click OK as you back out.
    – You should be able to use pdfsam now.

  20. Another way is to change the file the shortcut is pointing to.

    Change the target to “C:Program Files (x86)pdfsampdfsam-2.2.1.jar”

    i use windows 7 64-bit

  21. 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)Javajre7bin

    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)Javajre7bin

    So it should be like that : C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%SYSTEMROOT%System32WindowsPowerShellv1.0;C:Program Files (x86)Javajre7bin

    Validate , it works ! 🙂

    1. 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.

  22. 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 FilesJavajre7bin). Copy it.
    If you have the 32-bit version paste it in the C:WindowsSystem32 folder.
    If you have the 64-bit version then past it in the C:WindowsSysWOW64 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.

    1. 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)

    2. 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:WindowsSysWOW64 folder but not in C:WindowsSystem32 folder.
      I copy and pasted it and the problem was solved.

      So, thank you Mark B.

  23. 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.

  24. 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)Javajre7bin.

    Once selected, BNJ3 runs like a charm.

  25. 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?

  26. 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! 🙂

    -Melaine

  27. 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

  28. 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!

Leave a Reply

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

mode_edit
account_circle
email