• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

j2ee program not recognized

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I went back to version 1.4 of java and can now start the j2ee server.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic