This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - How to install apache tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - How to install apache tomcat?" Watch "Eclipse - How to install apache tomcat?" New topic
Author

Eclipse - How to install apache tomcat?

Deepa Chandrashekar
Greenhorn

Joined: Oct 16, 2012
Posts: 24
Hi guys,

I downloaded eclipse and tomcat 7.
i don't know how to set the class path in the mac. I tried to run it and set it in the class variable but it s showin error as "The specified Tomcat installation directory does not exist." .
So how to correct it??

Please advise.
Thanks in advance!

Regards,
Deepa
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

You should not have to set classpath. After you unzip both Eclipse and Tomcat, go into Eclipse and create a new server (File > New > Servers > Apache/Tomcat v7.0 Server) and when the dialog asks for the Tomcat directory, browse to it. Eclipse will then take care of all classpaths for any dynamic web projects you create.

(This is based on my work on Windows/Linux, I don't have a mac.)


JBoss In Action
Deepa Chandrashekar
Greenhorn

Joined: Oct 16, 2012
Posts: 24
Hello Peter,

Thanks for the help! but I was able to go to servers->apache ->when i clicked on tomcat v7.0 . It says "Cannot create a server using the selected type". So i couldn't browse to it...
I had installed tomcat earlier but those bin files got deleted for some reason. so i am trying to install it again.
Please advise!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

You could try installing Tomcat 6 and using it.

I suspect that the Tomcat 7 config files are missing or corrupt. The easiest solution is to reinstall Eclipse.
Deepa Chandrashekar
Greenhorn

Joined: Oct 16, 2012
Posts: 24
Hey Peter,

Thanks for helping!

I was able to resolve it by changing the folder place in preferences and adding the new location.
 
jQuery in Action, 2nd edition
 
subject: Eclipse - How to install apache tomcat?