Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Choosing the right version of Java and Tomcat

Java is described as being a portable language. But that only means that the 'runnable' class files are fairly portable - you must download and install the correct Java Virtual Machine / Java Runtime Environment / Java Development Kit for your computer / operating system / needs.

This diagram shows you the choices you make in deciding which version is right for you.

• Which Distribution do you need - Sun's? IBM's? The Gnu version? Typically, Sun's version is the one we use, as we're heavily into the Tomcat container. The Gnu version is nice / unusual in that it lets you generate native executables.

• Do you need the full Java Development Kit which includes the compiler (if you're running JSPs on Tomcat, or developing code yourself, you do), or is just a Java Runtime Environment - the java engine plus all the standard classes that almost all code uses - sufficient? You can also download just a Java Virtual Machine - the core engine - but that's not much use without the supporting classes

• Micro edition (suitable for generating code to run on tiny devices), Standard Edition (a typical, middle of the road setup for client workstations), or Enterprise Edition (including all the server stuff). Surprisingly, for a simple Tomcat server setup, the Standard Edition is enough as the servlet-api which is in the enterprise edition is ALL you would need from the enterprise edition ... and it's included in the Tomcat distribution anyway.

• Download for the correct processor chip set. Although Java class files are portable, the underlying virtual machine is not - it's written in C and is compiled up for a particular processor

• Download for the correct operating system. As the code of the JVM is in C, and makes system calls, you need to have the version that's right for your operating system. If you download a Linux version and try and run it on Windows it won't work - even if you got everything else right - since the OS calls will be missing!

• And finally, you will need to download an appropriate release of Java. "Latest is best" may be your automatic reaction, but if you are compiling applets that will run in your user's browser, that may not be the case since you need to be able to generate class files that will be compatible with the JVMs that your users will have installed in their browsers. You can do yourself a huge dis-service by providing an applet that will ONLY work in the very latest browser releases because it uses new facilities that most people haven't yet upgraded to!

If you're installing Tomcat, you'll need to have Java installed - and you'll need the right version of Java to go with your Tomcat. Firstly - get the correct chip and OS version, and note that you'll want the Java Development Kit (JDK) and at least the standard edition of Java. Then choose your version.

• Tomcat 6 requires Java 1.6 (a.k.a Java 6). In the future, that will probably read "Java 6 or later".

• Tomcat 5.5 requires Java 1.5 (a.k.a. Java 5) or later

• Tomcat 5.0 requires Java 1.4 (a.k.a. Java 2 1.4) or later

If you must use Tomcat 5.5 with Java 1.4, there's an extra download available that will let you patch your Java and run that combination ... but Java 1.4 is getting old and the need for that patch is fading fast.

(written 2009-05-16)

Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A602 - Web Application Deployment - Apache httpd - Sourcing, Installation, Testing
  [523] Apache httpd release 2.2 - (2005-12-10)
  [526] Apache httpd - serving web documents from different directories - (2005-12-12)
  [550] 2006 - Making business a pleasure - (2006-01-01)
  [660] Stopping and restarting Apache httpd cleanly - (2006-03-29)
  [907] Browser -> httpd -> Tomcat -> MySQL. Restarting. - (2006-10-28)
  [982] Notes from the white board - (2006-12-14)
  [1095] Apache httpd , browser, MySQL and MySQL client downloads - (2007-02-28)
  [1292] DHCP automatic IP address v Static IP - (2007-08-06)
  [1449] Upgrade Mac OSX to Leopard, Web Server Apache httpd config lost - (2007-11-29)
  [1455] Connecting to MySQL 5 from PHP on Mac OSX Leopard - (2007-12-03)
  [1707] Configuring Apache httpd - (2008-07-12)
  [1731] Apache httpd, MySQL, PHP - installation procedure - (2008-08-01)
  [1768] What is built in to this httpd and PHP? - (2008-08-23)
  [1945] Summary - Apache httpd build on Linux - (2008-12-14)
  [2080] Using ApacheBench and jconsole to test and monitor Tomcat - (2009-03-14)
  [2096] Where is my new Apache httpd installed - (2009-03-22)
  [2520] Global and Enable - two misused words! - (2009-11-30)
  [3426] Automed web site testing scripted in Ruby using watir-webdriver - (2011-09-09)
  [4437] Adding a PHP build option, rotating an image based on camera data, and a new look at thumbnails in PHP - (2015-02-22)

A503 - Web Application Deployment - Java - Sourcing, Installing, Initial Testing
  [1908] Java CLASSPATH explained - (2008-11-26)
  [2079] Java - Memory Allocation and garbage collection - (2009-03-14)
  [2153] Class Loading and Variable Conversion in Java - (2009-05-02)

Back to
Servlet life cycle, and Java Servlet variable scope
Previous and next
Horse's mouth home
Forward to
Abstract Classes - Java
Some other Articles
Camera to record where a picture was taken
Are we IITT (Institute of IT Training) members?
An FAQ on the Apache httpd and Apache Tomcat web servers, and on using them together
Abstract Classes - Java
Choosing the right version of Java and Tomcat
Servlet life cycle, and Java Servlet variable scope
What Linux run level am I in?
You cannot please all of the people all of the time
Patterns in numbers - room occupancy
Offers that I can refuse
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page

This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/2184_Cho ... omcat.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb