Hi, I finished my scjp5 on july and after that i wanted to take my scwcd. But i am not able to install tomcat server on my ubuntu 7.10 laptop. I installed java 6 but my eclipse3.2 says 'the custom vm you have selected is not a valid executable'. Then regarding tomcat, I tried lots of links to install tomcat but that too of no use. because of this im not able to start preparing for my next exam. For installing tomcat i followed the link: http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/ but one of symlinks they mention 'S99tomcat' is not found in my /etc/rc2.d/ directory or in any of the rc directories. I am a newbie in linux also. Could anyone please help me with it?I know this may not be the right forum to post it, but i guess there could be many among this community who had come across the same difficulties. Im struggling with this for the past one month.
Originally posted by praseedha sai instead of tomcat 3.2 try with latest tomcat version
Its Eclipse 3.2 and not Tomcat 3.2.
Teena take a look at this link . It gives you a stepwise procedure to install Tomcat.
I installed java 6 but my eclipse3.2 says 'the custom vm you have selected is not a valid executable'.
Regarding the Eclipse and Java conflict, do your programs compile and run from the console? Have you configured Eclipse properly? And as far as I know, Eclipse in itself does not support web development, you'll need some plugin like MyEclipse .
A message I try to drum home to as many Linux users as possible is: use the automated installation tools. These do all the installation for you, no need to download and extract archives and compile native code. They also resolve dependencies so will automatically install every other package required (like the Java SDK when installing Tomcat).
For Ubuntu on desktop (with a display manager like GNOME), Synaptic package manager is your friend. Load it and search for Tomcat -- tick the right box (select Installation) and click Apply, and it'll do everything else for you.
Note: You need to do all of this as root, so in Ubuntu either use "sudo" in front of each command, or use "sudo -s" to switch into the root prompt first. This isn't applicable to Synaptic as it'll ask you for a password in order to elevate its privileges.
On the command line, it's apt-get (or aptitude). For example:and that should do all the installation for you (aptitude is the pretty front-end). To search in aptitude type "/tomcat" then enter after running aptitude and press "n" to look through all entries (something like "tomcat5.5" will do you). You can read about aptitude more on the Web.
Use the Eclipse plug-in manager to install the required Tomcat plug-ins there, then read their configuration docs for how to setup the links. I never found Eclipse+Tomcat stable enough for my needs, but I hear it has got much better and many are happy with it.
The symlinks are for differing runlevels -- only use them if you want Tomcat to start automatically on boot. You should be able to find the main script (called "tomcat" or similar) in /etc/init.d and then run "update-rc.d" (see here). This will create all symlinks for you (note that 8.04 onwards provides compatibility for SysV scripts but actually uses the event-driven Upstart for initing). Note the automated APT process may install symlinks for you, or may ask you if you want to start Tomcat on boot... I can't remember to be honest!
Let me know if that has helped. [ September 22, 2008: Message edited by: Charles Lyons ]
Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / AmazonAmazon UK )
Joined: Mar 27, 2003
As for the Eclipse plug-in, you will want to install the Java EE/J2EE plugins first for development purposes (use the plug-ins download manager from the Eclipse menus).
If you want to control Tomcat from Eclipse too, you might want to try this one: