Posts Tagged ‘Windows cannot find -Djava.endorsed.dirs=’

Windows cannot find -Djava.endorsed.dirs= error – How to fix it

March 22nd, 2012

Are you having problems running Tomcat? This article will explain you how to solve them. Sometimes for no apparent reason you get a pop-up error message as you run startup from a command prompt in the C:\Tomcat4.1\bin directory (c:\Tomcat4.1\bin>startup):

Windows cannot find ‘-Djava.endorsed.drs=’. Make sure you typed thename correctly, and then try again. To search for a file, click the Start button, and then click Search.

windows cannot find -Djava.endorsed.dirs= error

You may get this error if do not have a JDK in your path or you are missing some environment variables. First of all, you can try to reinstall Tomcat. If it doesn’t work, follow these instructions. When “Windows cannot find -Djava.endorsed.dirs=” error appears, you need to set the JAVA_HOME to where the JDK installation directory is located. For the SAS 9.1.3 it is C:\j2sdk1.4.2_04. You would need to modify this accordingly to your installation location. If it is not set, Tomcat 4.1.18 does not start.

In some cases it will be necessary to update the JAVA_HOME environment variable from the Control Panel. To do this, follow this steps:

  1. Go Start > Settings > Control Panel > System
  2. Find the Advanced tab and hit the Environment Variables button.
  3. Now go to the System Variables, scroll down, and check if you have an entry for Java_home.
  4. If you do you can edit the existing one. But if you don’t click on New and type in:

Variable Name: JAVA_HOME
Variable value: C:\j2sdk1.4.2_04
(or any version you are using)

Try setting your environment variable to: /jdk1.5.0_x (not /jdr). Then search for “java.exe”; now you can see all the directories containing your /bin/java.exe, after that reset your environment variable to the ‘jdk’ directory, for JAVA_HOME. Or you may try to check if within file catalina.bat there is the following line:


and remove the %_EXECJAVA% environment variable from there, and replace it with ‘java’ or ‘start java’.

Get it from CNET! Download Windows Cannot Find Fix Wizard ($19.95). We offer free remote support in case software won’t work.

If you have tried all the above ways and you still get ‘Windows cannot find -Djava.endorsed.dirs=’ message try to solve it with a specialized tool “Windows cannot find Fix Wizard”. This program is made specifically to save you from time-consuming search for other solutions and following complicated instructions and make your life easier. It can fix all known modifications of this errors including “Windows cannot find -Djava.endorsed.dirs=’”. Windows Cannot Find Fix Wizard is guaranteed to solve your problem quickly and efficiently.