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

March 22nd, 2012 by Alexey Abalmasov No comments »

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:

%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs=”%JAVA_ENDORSED_DIRS%” -classpath “%CLASSPATH%” -Dcatalina.base=”%CATALINA_BASE%” -Dcatalina.home=”%CATALINA_HOME%” -Djava.io.tmpdir=”%CATALINA_TMPDIR%” %MAINCLASS% %CMD_LINE_ARGS% %ACTION%

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

Get it from CNET Download.com! 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.

Solution for Windows cannot find taskmgr.exe error

November 21st, 2011 by Alexey Abalmasov No comments »

Sometimes you can see such an error message on your monitor:

“Windows cannot find “C:\Windows\system32\taskmgr.exe”. Make sure you typed the name correctly, and try again.”

windows cannot find taskmgr.exe

Download Windows Cannot Find Fix Wizard

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


Reasons of this error

This is so-called Windows cannot find taskmgr.exe error. The essence of this error is that Windows system is not able to find this file in its system folder. There are not so much reasons of this error. One of the reason is that configuration of system files is wrong. It can be also the consequences of some problems in System Register, for example it can be full up with the great amount of information. Or sometimes the system file can be just lost or defective because of some viruses or malware on your computer. The signs of the whole problem can include also sudden program lock-ups, slow computer performance, some problems on computer startup and shutdown and occasionally the problems with installation of programs. You will not be able to define the real source of these problems by yourselves, but still you may try to fix it. The most frequent reason is the presence of viruses, Trojans, spyware, or some other types of malware, so please scan your system for viruses and then restore your Windows system with the help of Microsoft Windows setup disk.

Possible solutions

But if this method is useless for you then you may follow this one:

  • 1. Download Sysinternals Suite from Microsoft Technet and unarchive it.
  • 2. The find and run procexp.exe.
  • 3. Select Options menu on Replace Task Manager and then Restore Task Manager.
  • 4. Press Ctrl+Alt+Del.

With the help of this method the settings are re-targeted and the application must work well and Windows cannot find taskmgr.exe Error mustn’t appear again.
But if the application taskmgr.exe is still disabled then the following method is for you:

  • 1. Click Start, then type regedit.exe into the Search box and click OK.
  • 2. Then find this key in the System Registry:
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

  • 3. Double-click “DisableTaskMgr“, then replace the “1” with a “0“.
  • You even don’t need to reboot your computer; the taskmgr.exe must be operable now

There is also another solution of Windows cannot find taskmgr.exe Error:

With the help of Autorun Utility you may find out that the name “taskmgr.exe” was substituted with the name “PROCEXP64.EXE”. And to straighten out this problem, you should edit the two registry keys to point to PROCEXP.EXE instead.

Here are the keys:

HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe = …your path…\procexp.exe
HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe = …your path…\procexp.exe