• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

configuring J2EE environment variables

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

can anyone help with this problem?

I have the J2sdk installed and the JAVA_HOME environment variable set OK.

Now I've downloaded J2EEsdk, following instructions from Simon Browns' article in Oct 2002 newsletter:-
http://www.javaranch.com/newsletter/Oct2002/newsletteroct2002.jsp#j2ee

I set the destination directory as C:/ not realising that there would be so many files and folders to manage and, because I don't really know what they are and how to begin, I am struggling to find the solution to the error that occurs when I try to start the server.(see step 3 below)
-------------

Step 3 : Start the J2EE server
For the purposes of illustrating how to start up the J2EE server, let's assume that you're using a Microsoft Windows platform and have installed the JDK into c:\j2sdk1.4.1, and the J2EE SDK into c:\j2sdkee1.3.1. To start the J2EE server, open up command window and type the following:
set JAVA_HOME=c:\j2sdk1.4.1
set J2EE_HOME=c:\j2sdkee1.3.1
cd %J2EE_HOME%\bin
j2ee -verbose
After a short delay and a few messages, you should see "J2EE server startup complete".
---------------------
OK, so the first 3 lines work, but then command prompt won't accept:-
j2ee -verbose as a valid command!

Should I start over?
J
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by J Chandler:

set JAVA_HOME=c:\j2sdk1.4.1
set J2EE_HOME=c:\j2sdkee1.3.1
cd %J2EE_HOME%\bin
j2ee -verbose
After a short delay and a few messages, you should see "J2EE server startup complete".
---------------------
OK, so the first 3 lines work, but then command prompt won't accept:-
j2ee -verbose as a valid command!


In which directory are you when executing "j2ee -verbose"? Do you see j2ee.bat in that directory?
 
J Chandler
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I searched my system for this j2ee.bat file you speak of and came up with no results!

I definately have j2ee installed.

It would be useful to know exactly what the commands are doing and how to find the correct path thru all the downloaded folders .

Sorry I can't help any further at this point.

ps. I have a folder called Sun that holds another folder called AppServer...
this in turn has a bin dir. with lots of .bat files, but none called j2ee.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah. You're using the new reference implementation, not the old one. Simon's article was about the old one.

If you're using the Sun ONE application server for J2EE 1.3, follow the J2EE 1.3 Tutorial, if you're using the Sun ONE application server for J2EE 1.4, follow the J2EE 1.4 Tutorial.
 
J Chandler
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lasse,

had a looksy at the link you suggested and it seems to be just the job!

Thanks a lot

J
 
reply
    Bookmark Topic Watch Topic
  • New Topic