• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2EE and XP issues

 
Ian Ohlander
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(I searched the web and the archives using this as my search string and couldn't find anything:
how AND to AND install AND j2ee AND in AND windows AND xp
So if I am repeating something from before, I'm sorry.)
I recently installed Windows Xp. I have, also recently, decided to learn j2ee. So I got a book on the subject, downloaded the newest j2se, j2se sdk 1.4.01 and j2eesdk 1.3.1 and installed them both. I then went to sun's site and followed their instruction for getting j2ee up and running in Windows:

1. If you have installed a previous version of the J2EE SDK product, you must delete or un-install the previous version from your computer before proceeding with the new version. When you are ready, run the setup program.
Double-click on the icon of the j2sdkee-1_3_1-win.exe file, and follow the instructions provided by the setup program. By default, the setup program installs the software in C:\j2sdkee1.3.1.
2. Set the environment variables.
Before running the J2EE SDK, you must set these environment variables:
J2EE_HOME - the directory where you installed this release.
JAVA_HOME - the directory where the Java 2 SDK Standard Edition is installed.
PATH - include the bin directory beneath the directory where you've installed this release.
If you need help with setting these variables, see Setting Environment Variables.
3. See "Where do I go from here?"

Point 3 takes you to the j2ee tutorial, where after making sure the variables are set properly, you simply type: j2ee -verbose.
But I keep getting this error:
"j2ee is not recognized as an internal or external command, operable program, or batch file."
I have check my environment variables 3 times. They are:
J2EE_HOME=C:\j2sdkee1.3.1
JAVA_HOME=C:\j2sdk1.4.0_01
Path=%SYSTEMROOT%\system32;%SYSTEMROOT%;%SYSTEMROOT%\COMMAND;C:\xml_tools\xalan-j_2_3_1\bin;%SYSTEMROOT%\system32\WBEM;%J2EE_HOME%\bin;%JAVA_HOME%\bin
where the directories for j2se and j2ee are where they were installed at the outset.
Am I mising something? If I type "java" at the command prompt I get the usual list of possible command line additions. So the path is set. But it won't recognize "j2ee" or "j2ee -verbose".
Any ideas?
[ August 02, 2002: Message edited by: Ian Ohlander ]
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To start it up, I usually do the following...
set JAVA_HOME=c:\j2sdk1.4.0_01
set J2EE_HOME=c:\j2sdkee1.3.1
cd c:\j2sdkee1.3.1\bin
j2ee -verbose
(on NT, W2K and XP)
Simon
 
Ian Ohlander
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, that works. Thank you. AT least I have a recourse. So do you simply create a batch file that does that? I can do that.
But what I don't understand is why, when I followed the instructions (and since typing "java" works properly, as JAVA_HOME is on the path) why refering to the j2ee.bat file that is in J2EE_HOME/bin isn't automatically resolved?
Maybe there is a detail I missed, or my path isn't exactly right. Do they look right to you?
I appreciate your help. At least it's not hopeless.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't get it either - your PATH looks okay to me too. Apart from double-checking the PATH in the command window from which you try starting the J2EE RI there's not much else you can do. Perhaps Windows is truncating it somehow ... I've had this before.
Oh well - atleast you can run the RI now.
Cheers
Simon
 
Ian Ohlander
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's something wierd. Of all the steps you showed me, the only one necessary is changing the directory to J2EE_HOME. So I wanted to check if there was something wrong with my J2EE_HOME variable. So (and this is something I thought I should do anyway if I was to use your technique) I set the properties from the dos-prompt to open to: %J2EE_HOME%\bin.
Now, when I open up a dos-prompt it goes to the J2EE_HOME directory. So the variable is working. This makes no sense. IF the variable correctly is putting directory on the path then all the files (exe, bat) should be accessible from anywhere, right?
Hmmm.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!