No 'jar' binary detected in PATH, on wndows 7

Latest response

When trying to install Joboss BPM on windows 7 32,
the error: No 'jar' binary detected in PATH

is appearing,

how to overcome this issue.

Responses

Same error on Windows 7 64b, jar in PATH, no one seems to care anyway.

like the error message is saying: it cannot find the command "jar" in your environment settings. JAVA installed on the system? JAVA PATH Variable set in your environment? Did you run the installation from your java installation directory? Update the PATH Environment Variable (Microsoft Windows)

You can run Java applications just fine without setting the PATH environment variable. Or, you can optionally set it as a convenience.

Set the PATH environment variable if you want to be able to conveniently run the executables (javac.exe, java.exe, javadoc.exe, and so on) from any directory without having to type the full path of the command. If you do not set the PATH variable, you need to specify the full path to the executable every time you run it, such as:

C:\Java\jdk1.7.0\bin\javac MyClass.java

The PATH environment variable is a series of directories separated by semicolons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should have only one bin directory for the JDK in the path at a time (those following the first are ignored), so if one is already present, you can update that particular entry.

The following is an example of a PATH environment variable:

C:\Java\jdk1.7.0\bin;C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem

It is useful to set the PATH environment variable permanently so it will persist after rebooting. To make a permanent change to the PATH variable, use the System icon in the Control Panel.

Windows 7:

From the desktop, right click the Computer icon.
Choose Properties from the context menu.
Click the Advanced system settings link.
Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.

Well, after examination, it has nothing to do with the current PATH whatsoever. The problem is that the embedded IzPack in the installer is trying to relaunch the Java process to add a JVM parameter, and doing this it doesn't propagate the current PATH and starts from a blank environment. Why is it doing that? To run in "privileged mode", which makes actually little sense to start with.

Make sure that you have a full JDK and not just a JRE. You can run "jar" at the command prompt. If the command isn't found you probably only have a JRE installed.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.