File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Windows cannot find '-Djava.endorsed.dirs='? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Windows cannot find Watch "Windows cannot find New topic
Author

Windows cannot find '-Djava.endorsed.dirs='?

Mirai Chelean
Greenhorn

Joined: Jun 27, 2005
Posts: 23
Hello there anybody, I facing some problems too when i try to start the tomcat by execute the TOMCAT_HOME/bin/startup.bat.

Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\jdk1.3.1_16

Until then, this message shows up:
"Windows cannot find '-Djava.endorsed.dirs='. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search"

CATALINA_BASE: .. , CATALINA_HOME: .. is that mean i still haven't set the env?
I've set the JAVA_HOME enviroment, can anybody help me on this?

By the way, i'm using WinXP sp2.

Thanks in advance.


The moon light is pouring down on my bedside<br />Like white frost spreading on the ground<br />I look up the bright round moon in the sky<br />And lower my head thinking of my dear hometown
Mirai Chelean
Greenhorn

Joined: Jun 27, 2005
Posts: 23
When i start tomcat i can see that the -Djava.endorsed.dirs is not define:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>cd program files\apache group

C:\Program Files\Apache Group>cd tomcat 4.1

C:\Program Files\Apache Group\Tomcat 4.1>cd bin

C:\Program Files\Apache Group\Tomcat 4.1\bin>startup
Environment variable the default -Djava.endorsed.dirs not defined
Using CATALINA_BASE: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME: C:\jdk1.3.1_16
C:\Program Files\Apache Group\Tomcat 4.1\bin>shutdown
Environment variable the default -Djava.endorsed.dirs not defined
Using CATALINA_BASE: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME: C:\jdk1.3.1_16
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.<init>(Socket.java:268)
at java.net.Socket.<init>(Socket.java:95)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

I am sincerely ask somebody to teach me how and where to define the -Djava.
chsanthosh kumar
Ranch Hand

Joined: Jun 28, 2005
Posts: 56
First Let me know u r setted the java_home in u r start.bat

if not SET JAVA_HOME=C:/J2SDK1.4/

it would point inside the directory of java.

Environment variable the default -Djava.endorsed.dirs not defined
Using CATALINA_BASE: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME: C:\jdk1.3.1_16

u did like this
just add
SET JAVA_HOME: C:\jdk1.3.1_16\

It work's fine.
And let me Know.
[ July 07, 2005: Message edited by: chsanthosh kumar ]

---------------------<br />SCJP(1.4)With 95%<br /> <br />Do it Right and Forget it!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Windows cannot find '-Djava.endorsed.dirs='?