Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2ee program not recognized

 
Carol Bloch
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have gone through the first example in HFEJB and got stuck when trying to start J2EE. I get the error "program not recognized as an internal or external command operable program or batch comand"

I have looked through all the posts on setting up the environemental variables and I think they are all correct. I am running windowsXP.

This is a list of my environamental variables:

J2EE_HOME C:\j2sdkee1.3.1

JAVA_HOME C:\Program Files\Java\jdk1.5.0_06

PATH C:\Program Files\Java\jdk1.5.0_06\bin;C:\Tomcat\common\lib\servlet-api.jar;C:\j2sdkee1.3.1\bin

CLASSPATH C:\tomcat\common\lib\servlet-api.jar;c:\j2sdkee1.3.1\lib\j2ee.jar;%J2EE_HOME\bin

Nothing I have tried seems to work. Is there a basic incompatibility with
J2EE 1.3 and JDK 1.5 or windows XP??

Any help would be greatly appreciated.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly did you do when you got the error message? Did you type something on the command line? Without knowing the details it is hard to guess what might be the problem.
 
Carol Bloch
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the command line, I type

j2ee

I have checked and there is a j2ee.bat in the j2sdl1.3.1/bin folder.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add that directory to your PATH, or include the full path when you call it, like:

C:\j2sdk1.3.1\bin\j2ee
 
Carol Bloch
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I went back to version 1.4 of java and can now start the j2ee server.
 
Bharathi Kongara
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Carol,

I got the same problem. I have J2SE 5.0 on my machine. How do you go back to 1.4, do we need to reinstall that version.

Thanks,
Bharathi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic