Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UNABLE TO SET THE PATH

 
sourav das
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I have just clearesd SCJP1.4 with 91% marks. Kathy's book is really great. It is the best technical book, I have ever read.
Now, I have bought Heasd First EJB to repeat same level of success. But, I am stuck. Please help me. I am unable to set the environment variable. I am using windows xp.

When I am doing the following, the command j2ee is not working.
CLASSPATH
c:\j2sdkee1.3.1\lib\j2ee.jar

J2EE_HOME
c:\j2sdkee1.3.1

JAVA_HOME
c:\j2sdk1.4.2_07

PATH
c:\j2sdk1.4.2_07\bin; c:\j2ee\bin;

When I am doing the following, the command javac is not working.
CLASSPATH
c:\j2sdkee1.3.1\lib\j2ee.jar

J2EE_HOME
c:\j2sdkee1.3.1

JAVA_HOME
c:\j2sdk1.4.2_07

PATH
c:\j2ee\bin; c:\j2sdk1.4.2_07\bin;

Is there any special way to set the PATH variable? I am very concerned. I really need one of your helping hand. Thank you.

[Val removed a politically incorrect statement]
[ July 07, 2005: Message edited by: Valentin Crettaz ]
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open a command window, enter path and tell us what is displayed.
 
sourav das
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be slightly more specific.
 
Mikalai Zaikin
Ranch Hand
Posts: 3364
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
type in Windows' command prompt:

set path
set java_home
set classpath
....

to see environment variables

regards,
MZ
 
sourav das
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for the response. Here it is, as you had asked, all the result of typing command at the command prompt:

CLASSPATH=c:\j2sdkee1.3.1\lib\j2ee.jar

J2EE_HOME=c:\j2sdkee1.3.1

JAVA_HOME=c:\j2sdk1.4.2_07

Path=c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\system32\Wbem;c:\j2sdk1.4.2_07\bin;c:\j2sdkee1.3.1\bin

PATHTEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

Now, javac command is working. But, j2ee command is not working.

SUN is providing such a wonderful creation like java ansd j2ee. Why don't they create a patch or something similar, that will set up the environment variable automatically?
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
scjp das,

You have already been warned in another thread that your display name does not satisfy our naming policy.

Please read it and adjust your display name to conform to it or you might run the risk of being locked out.

Thank you for your comprehension
 
Pasha
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I also have the same problem , i.e., j2ee command is not working.


Regards

Pasha
SCJP 1.4
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic