wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes basic Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "basic Problem" Watch "basic Problem" New topic
Author

basic Problem

Manoj Singh
Ranch Hand

Joined: Aug 10, 2000
Posts: 41
HI All !
I am new to j2ee environment and so have a simple problem. I have downloaded j2sdkee 1.3 from the sun's site and have also installed it on my computer (running windows 2000 server). After setting all the possible paths it is still gving me this error-"invalid path ! set J2EE_HOME to the j2ee installation directory"
I have changed the path in system enviroment and also in userconfig.bat file in the bin directory. But still it is not reading it. What to do now???
Thank you !
manoj


Sun Certified Java 2 Programmer<BR>" Only those who will risk going too far can possibly find out how far one can go "
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

J2EE_HOME isn't a "path" - it's an environment variable whose value you need to set to be the absolute pathname of the directory where J2EE is installed.


Customer surveys are for companies who didn't pay proper attention to begin with.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1851
Just check up if this helps

I however have j2sdkee1.2.1
------------------

Mahindrakar
IBM Application Server Forum Moderator
Consultant - Zensar Technologies.
SCJP2, SCJD2 & SCJEA (Part I)
Manjunath Subramanian
Ranch Hand

Joined: Jul 18, 2001
Posts: 236

Hello Manoj,
The reason could be..
you have given a white space(s) somewhere when setting the
J2EE_HOME value.Do not give any spaces.It should look like
this. set J2EE_HOME=c:\j2sdkee1.3
Hope this helps,
Manjunath
sunil seth
Greenhorn

Joined: Aug 18, 2001
Posts: 8
Hi Manoj Singh
you better don't go to userconfig.bat
just type the path environment what ever it requires
start with
c:\j2sdkee1.3\>cd bin
c:\j2sdkee1.3\bin>set J2EE_HOME=c:\j2sdkee1.3
c:\j2sdkee1.3\bin>set JAVA_HOME=c:\jdk1.2.2
c:\j2sdkee1.3\bin>j2ee
i hope NO PROBLEMS..
DO REPLY ME
captain_sonil@yahoo.com
HARSHAD bhawsar
Ranch Hand

Joined: Feb 22, 2001
Posts: 48
Rahul ,Sunil;
After setting the paths and starting the server when i try point my browser to http://localhost:1049/ the browser just hangs.
What must be prolem?

My another problem was my j2sdkee1.2.1 is compiling the java files i.e
but when i try to run it by java add it gives following error
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.1', but '1.2' is required.
Whats the solution.
Thanks in advance.
Harshad
somasundaram s
Greenhorn

Joined: Aug 25, 2001
Posts: 3
hi
create one .bat file like "som.bat".Before running u r j2ee server run the bat file.
set path=c:\jdk1.3\bin;c:\j2sdkee1.2.1\bin;
set classpath=c:\jdk1.3\lib\tools.jar;c:\j2sdkee1.2.1\lib\j2ee.jar;
set java_home =c:\jdk1.3
set j2ee_home =c:\j2sdkee1.2.1
som
sunil seth
Greenhorn

Joined: Aug 18, 2001
Posts: 8
c:\j2sdkee1.2.1\bin>deploytool
this will automatically opens a window for deployment
then process your deployment
second problem:
you are getting the error like
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.1', but '1.2' is required.
this type of problem occurs only when you doesnot have jdk1.2
which includs javasoft runtime invironment
re-install your jdk and install jdk1.2
it will automatically install javasoft\runtime environment
if further problem persist
reply me
captain_sonil@yahoo.com
sunil seth
Greenhorn

Joined: Aug 18, 2001
Posts: 8
hello ,HARSHAD bhawsar
your first problem was: http://localhost:1049/ the browser just hangs.
no need for doing that
after starting the server
open next command prompt
and set all the necessary path and classpath which you did in starting the server
then type
c:\j2sdkee1.2.1\bin>deploytool
this will automatically opens a window for deployment
then process your deployment
second problem:
you are getting the error like
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.1', but '1.2' is required.
this type of problem occurs only when you doesnot have jdk1.2
which includs javasoft runtime invironment
re-install your jdk and install jdk1.2
it will automatically install javasoft\runtime environment
if further problem persist
reply me
captain_sonil@yahoo.com
 
wood burning stoves
 
subject: basic Problem