aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help on configuring tomcat+java6+Eclipse on my ubuntu laptop 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Help on configuring tomcat+java6+Eclipse on my ubuntu laptop" Watch "Help on configuring tomcat+java6+Eclipse on my ubuntu laptop" New topic
Author

Help on configuring tomcat+java6+Eclipse on my ubuntu laptop

Teena George
Ranch Hand

Joined: May 01, 2008
Posts: 82
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.

Thanks in advance,
Teena
praseedha sai
Greenhorn

Joined: Dec 19, 2007
Posts: 19
Hi Teena,

instead of tomcat 3.2 try with latest tomcat version 5.0.X.X. I hope it will work. I got the similar problem whihc I was resolved with latest tomacat version.

Regards,
Sreenivas.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2712
    
    5

Hi Teena George welcome to Javaranch
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 .

Hope this helps


SCJP, SCWCD.
|Asking Good Questions|
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
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 / Amazon Amazon UK )
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
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:

http://www.eclipsetotale.com/tomcatPlugin.html
Teena George
Ranch Hand

Joined: May 01, 2008
Posts: 82
Thank you so much for all of you.... i got the solution to set up my tomcat server from the link given by Amit. Thanks a lot for the responses and i have to say, i got a good start today.

Thanks a lot again,
wish you good luck,
Teena
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2712
    
    5

You are welcome
And all the best for your SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help on configuring tomcat+java6+Eclipse on my ubuntu laptop
 
Similar Threads
Tomcat set up
Problem with installing tomcat 5.5
Intalling Linux
How can i add tomcat server to Eclipse Galileo
unable to run webapplications in tomcat