• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while staring the Tomcat 7.0.37 ?

 
dattathreya bonakurthi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have below configurations in my system.
Jdk1.6
Jre 1.7
below system variables are set :
JRE_HOME = C:\Program Files\Java\jre7;
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_37;
CATALINA_HOME = D:\JAVA_2\apache-tomcat-7.0.37;

when trying to start the tomcat using below command by going to the bin folder of apache :

D:\JAVA_2\apache-tomcat-7.0.37\bin>startup
The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program

tried to set the path for jre_home but still the error exists.

In my system, I have two program files folders
1. C:\Program Files (x86)
2. C:\Program Files
are these the problem for the above message ?

Thanks,
Datta


 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you attempting to use two completely different versions of Java at the same time?

You do not need to set JRE_HOME. JAVA_HOME is sufficient.
 
dattathreya bonakurthi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:Why are you attempting to use two completely different versions of Java at the same time?

You do not need to set JRE_HOME. JAVA_HOME is sufficient.


i had tried using single environmnet variable JAVA_HOME still it was throwing the error.

Can you please guide me.

thanks
datta
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case, I suspect that the environment variables are not set for the execution context that you are trying to run Tomcat in.

In the command window where you issue the Tomcat "startup.bat" command, issue this command:


In order for Tomcat to launch properly, that command should have printed a value that points to a valid Java JDK.
 
dattathreya bonakurthi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:In that case, I suspect that the environment variables are not set for the execution context that you are trying to run Tomcat in.

In the command window where you issue the Tomcat "startup.bat" command, issue this command:


In order for Tomcat to launch properly, that command should have printed a value that points to a valid Java JDK.


Hi,

I have checked it.
there is no environmnet variable "JDK_HOME".
should I define it.


 
K. Gil
Ranch Hand
Posts: 75
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all you need is JAVA_HOME set correctly,
and you can't really mix and match different versions of JRE / JDK,
and I'm not sure why you're trying this.

Do you planning to run tomcat that will run under java 6 and 7 at the same time?
this is not possible.

add:
echo %JAVA_HOME%

to your startup.bat
and execute it, make sure it shows you correct path.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I mis-typed it. Should have been "echo %JAVA_HOME%".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic