Windows cannot find bin javaw

Issue

.bat scrip refuses to launch Java application on Windows 7 Pro 64 bit computers. Error message:

Error - Windows cannot find 'javaw'

Windows cannot find ‘javaw’. Make sure you typed the name correctly, and then try again.

Cause

Providing JRE (Java Runtime Environment) is installed on the machine, most likely reason is that .bat script tries to find javaw.exe in a wrong location. For example it’s looking in Program Files but javaw.exe resides in Program Files(x86)

Resolution

Option 1

Open .bat script and search for javaw. Try replacing javaw with full path to the executable . For example “C:\Program Files (x86)\Java\jre7\bin\javaw.exe”

Option 2

Add javaw.exe path to PATHSystem Variable

  • Computer > Properties > Advanced System Settings
  • Change to Advanced tab
  • Click on Environment Variables
  • In System Variables section scroll down and double click on Path
  • At the very end add ;C:\Program Files (x86)\Java\jre7\bin (or other valid path to javaw.exe)
    Don’t forget semi column, it separates path values.

Windows 7 
Windows 8

I have installed IFS Report Designer along with Java however when running IFS Report Designer I get the error:  Windows cannot find ‘java\bin\javaw’

I am sure it is something simple but cannot see to resolve. 

I have tried re-installing java.

Is it an environment variable I am missing?

Thank you in advance.

Hi,

Looks like your Java folder is not in your Windows system path. Do one of the following.

OPTION1

  1. Go to your IFS RD install folder.
  2. Edit the IFSReportDesigner.cmd
  3. Specify the absolute path for javaw.
    • You should have something like START «IFS Report Designer» java\bin\javaw -cp «%~dp0.;%~dp0ifs_report_designer.jar» -Dfndext.configDir=»%~dp0.» com.ini.vldt.Global
    • Change it to START «IFS Report Designer» <java_path>\javaw -cp «%~dp0.;%~dp0ifs_report_designer.jar» -Dfndext.configDir=»%~dp0.» com.ini.vldt.Global where the <java_path> is the path to the bin folder of your java location where the javaw.exe is there. e.g. START «IFS Report Designer» C:\java8\bin\javaw -cp «%~dp0.;%~dp0ifs_report_designer.jar» -Dfndext.configDir=»%~dp0.» com.ini.vldt.Global
  4. Save the file

OPTION2

  1. In Windows go to settings and search for “Environment Variables”
  2. Select  ‘Edit The system Environment Variables”
  3. Click the “Environment Variables” button
  4. In the System Variable” section find the “path” variable and “edit”
  5. Select “New” and add the full path to your java bin folder e.g. C:\java8\bin
  6. Move the new path right to the top using the “Move Up” button.
  7. Click “OK” on all dialogs.

Make sure that you don’t have any spaces in your java path. E.g. C:\My Java Folder\Java 8\bin.

Regards,

Chanaka


Are you getting the Windows cannot find javaw.exe error message while a Java-based app? Javaw.exe is an executable component integrated within the Oracle Java Runtime Environment (JRE). It is essential to run certain Java-based programs including JAR files without using a console window.

Fix Windows cannot find javaw.exe error

Some Windows users have reported getting this error when they try launching a Java program. If you don’t have Java installed on your PC, this error will occur. However, this error can pop up in certain other scenarios. It can happen due to missing system environment variables or a corrupted installation of Java. Nonetheless, this error can be fixed using some of the fixes mentioned in this post. So, check out.

If you get the Windows cannot find javaw.exe error message while launching Java-based software, use the following solutions to fix the error:

  1. Make sure Java is installed on your PC.
  2. Add the path of Javaw.exe to the Environment Variable Path.
  3. Reinstall Java.

1] Make sure Java is installed on your PC

Since Java is required to run Java-based apps and software on Windows, ensure you have Java installed on your computer. Otherwise, you might run into errors like these.

2] Add the path of Javaw.exe to the Environment Variable Path

The next thing you should do to fix the error is to check whether Java is included in the System PATH Environment Variable. If not, manually add the path of Javaw.exe to the environment variable and then check if the error is gone. Here’s how to do that:

First, press the Win+R hotkey to open the Run command box and enter “sysdm.cpl” in the Open box to launch the System Properties window.

Now, move to the Advanced tab and then hit the Environment Variables button present at the bottom of the window.

After that, under the System variables section, select the Path variable and press the Edit button.

In the Edit environment variable window, press the New button and enter one of the below path:

C:\Program Files\Java\jre-1.8\bin

or

C:\Program Files (x86)\Java\jre-1.8\bin

The above path is where the “javaw.exe” file is present by default. And, jre-1.8 is the version. If you have installed Java in a customized location, enter the path accordingly.

You can also add the symbolic link javapath to avoid adjusting the path variable after each Java update. Add the below path to the above system variable:

C:\Program Files (x86)\Common Files\Oracle\Java\javapath

If the path variable is absent, click on the New button under the System variables section to open the New System Variable window. Next, enter “path” in the Variable name field and enter the Java installation location in the Variable value field. Once created, you can add the above-mentioned paths.

When done, press the OK button to save changes and exit the System Properties window.

Read: Java Virtual Machine Launcher Error, Could not create the Java Virtual Machine.

3] Reinstall Java

The last resort to fix this error is reinstalling Java on your PC. Some corrupted or broken installation files of Java might be causing the error. Hence, if the scenario is applicable, uninstall Java and then reinstall its latest version on your computer to check if the error has stopped.

Here’s how to do that:

First, open the Settings app using Win+I and move to the Apps tab from the left-side pane. After that, click on the Installed apps option.

Now, look for the Java application under the list of your installed apps and press the three-dot menu button attached to it.

Next, select the Uninstall option and then confirm the uninstallation to remove it from your PC.

When done, reboot your computer and download the latest version of Java from its official website.

Finally, install Java on your PC and see if the Windows cannot find ‘javaw.exe’ error is fixed now.

Read: Java Install or Update did not complete, Error Code 1603.

I hope this helps!

What is the difference between Javaw exe and java exe?

Both java.exe and javaw.exe can run Java programs. However, the main difference between the two is the way they interact with the operating system. The “java.exe” executable file used the command-line environment to run Java applications. It is primarily used to run apps that need a command-line interface (CLI). On the other hand, the javaw.exe executable can run Java programs without the console window or command prompt. It is mainly required for graphical user interface (GUI) based apps.

How do I find java exe?

Java is, by default, installed at the C:\Program Files\Java location on a 64-bit architecture. So, the java.exe file is present in a similar folder like C:\Program Files\Java\jre-1.8\bin.

psychoticyeti

Posts: 3
Joined: Sun Nov 03, 2024 10:55 pm

installation issues

Hello i’m new here and could use some help. When installing Yawcam i get this error, windows cannot find ‘jre\bin\javaw.exe’. Make sure you typed the name correctly then try again. Anyone know how to fix this or what i’m doing wrong. It happens after I click the yawcamai.bat file.

malun

Site Admin
Posts: 1776
Joined: Sun Jan 04, 2004 1:29 pm

Re: installation issues

Post

by malun »

Strange!
Have you unzipped all the content from the downloaded file?
Can please check to make sure that you have the file «jre\bin\javaw.exe» in the correct place?
Do you have the «jre» folder in the directory where you unzipped Yawcam Ai’s program files?

/malun

psychoticyeti

Posts: 3
Joined: Sun Nov 03, 2024 10:55 pm

Re: installation issues

Post

by psychoticyeti »

Yes i do believe all files are unzipped. I checked and there is a jre folder with the java file in it but i’m not sure if its in the right place. The jre folder is in the main folder where the batch file is located. All i did was unzip it with 7zip i didnt change anything.

malun

Site Admin
Posts: 1776
Joined: Sun Jan 04, 2004 1:29 pm

Re: installation issues

Post

by malun »

Do you get the same error if you try to run YawcamAi-console.bat instead?

The difference with this start file is that it will keep the console open as long as Yawcam is running and show the logs.
It also uses the binary jre\bin\java.exe instead of jre\bin\javaw.exe to start the program.

/malun

malun

Site Admin
Posts: 1776
Joined: Sun Jan 04, 2004 1:29 pm

Re: installation issues

Post

by malun »

Okay, that means we most likely got the same result as with the ordinary start file.

Next step in the troubleshooting is to open a command prompt and run some tests.
It would be great if you could run them and then post a screenshot of the result here.

1) Start a command prompt.
Open Windows start menu and search for «command prompt» and click the result.

2) Change the directory in the command prompt into the directory where you unzipped Yawcam Ai’s program files.
If Yawcam’s program files are located here: C:\Program Files\yawcam-ai
You need to type the following and press Enter:

3) Now type the following and press Enter:

4) Next, type this and press Enter:

5) Change directory by typing this and press Enter:

6) Try to check the java version again by typing this and press Enter:

As a comparison, for me the result of the tests looks like this:

java-debug.png

java-debug.png (59.31 KiB) Viewed 95488 times

/malun

GGS

Posts: 2
Joined: Fri Nov 08, 2024 9:46 pm

Re: installation issues

Post

by GGS »

Hey, new guy here
mine looks almost the same as yours but I can’t start the software.

cmd.png

cmd.png (67 KiB) Viewed 95440 times

GGS

Posts: 2
Joined: Fri Nov 08, 2024 9:46 pm

Re: installation issues

Post

by GGS »

update, this is what happens when I run the console:

console jpg.jpg

console jpg.jpg (202.38 KiB) Viewed 95438 times

malun

Site Admin
Posts: 1776
Joined: Sun Jan 04, 2004 1:29 pm

Re: installation issues

Post

by malun »

Okay. Your error is different from the error psychoticyeti encountered.
In your case Yawcam Ai begins the startup process, but then fails before it is started. Can you see any other warnings or error messages earlier in the logs? It might actually be easier to view the actual log file located here:
C:\Users\%username%\.yawcam-ai\logs\yawcam.log

/malun

OldTimbo

Posts: 8
Joined: Fri Dec 06, 2024 6:32 pm

Re: installation issues

Post

by OldTimbo »

Hi there, I’ve also been having installation issues. No log was generated that I could find. Reading what was previously posted here are a couple of screen captures of what I’m getting. Any help appreciated.

Tim

Yawcam Ai BAT.JPG

Yawcam Ai BAT.JPG (29.22 KiB) Viewed 93337 times
Tests.JPG

Tests.JPG (46.71 KiB) Viewed 93337 times

malun

Site Admin
Posts: 1776
Joined: Sun Jan 04, 2004 1:29 pm

Re: installation issues

Post

by malun »

Thanks for running the tests OldTimbo.
Your results look fine!

What happens if you try to start the program with the alternative start file called YawcamAi-console.bat ?

/malun

OldTimbo

Posts: 8
Joined: Fri Dec 06, 2024 6:32 pm

Re: installation issues

Post

by OldTimbo »

Hi I think the same thing happens, but the Command prompt window opens and closes so fast it is just a flash.

Tim

malun

Site Admin
Posts: 1776
Joined: Sun Jan 04, 2004 1:29 pm

Re: installation issues

Post

by malun »

Yes, I will have to change that, so the window stays open after an error occurs…
But if you open a command prompt first, and then run YawcamAi-console.bat from that prompt, the window should stay open even if there is an error.
Could you please try again, and:

1) Open a command prompt
2) Change directory by running:

3) Run the YawcamAi-console.bat script by typing the name and pressing Enter.

Can you see any errors in the console now?

/malun

malun

Site Admin
Posts: 1776
Joined: Sun Jan 04, 2004 1:29 pm

Re: installation issues

Post

by malun »

Thanks! I think this is an error introduced in version 1.4.0.
Please hang tight for a fix…

/malun

Skip to content



Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Description

I downloaded the latest build «MegaBasterdWINDOWS_7.41_portable» and when i open «MegaBasterd.bat» with administrator authority i am getting this «jre/bin/javaw couldnt be found by windows.» what should i do? thanks in advance.

Metadata

Metadata

Development

No branches or pull requests

Issue actions

    Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии
  • Mediatek usb driver windows 10 x64
  • Как настроить фильтр smartscreen в windows 10
  • Не работают горячие клавиши windows 10 win
  • Жесткий диск используется на 100 процентов windows 10
  • Настройка smb сервера windows 10