Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mirai Chelean
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mirai Chelean
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic