aspose file tools*
The moose likes Other Java Products and Servers and the fly likes configuring J2EE environment variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "configuring J2EE environment variables" Watch "configuring J2EE environment variables" New topic
Author

configuring J2EE environment variables

J Chandler
Ranch Hand

Joined: May 17, 2003
Posts: 32
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
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
J Chandler
Ranch Hand

Joined: May 17, 2003
Posts: 32
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
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: May 17, 2003
Posts: 32
Lasse,

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

Thanks a lot

J
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: configuring J2EE environment variables
 
Similar Threads
Need help installing J2EE on WinXP Pro
J2EE and XP issues
J2EE & JMS
cant start the j2ee server?
j2sdkee1.3.1 JAVA_HOME not set to jdk error