Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

updating tomcat and Java versions on server

 
Sean Cormican
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would anyone have any idea where I would begin to upgrade the version of java and tomcat (only if necessary) on a server which only has terminal access using a VNC?

I'm looking to upgrade to java 1.6 as I am having a number of issues with the current version 1.4.
would anyone have an idea or maybe even know where I should ask to carry out the task ?

It's a Linux server

Thanks in advance!
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What OS is the server?

Pat.
 
Sean Cormican
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's a linux server
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which distribution? Is it RedHat, SuSE, Debian, Ubuntu, something else? Most distributions have a package manager that allows you to update using command line (e.g. RPM on RedHat, dpkg on Debian / Ubuntu), but if we don't know which distribution you're using we can't tell you which commands to use.
 
Sean Cormican
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might nullify my previous question but java 1.6 is actually installed elsewhere on the server, as I have tomcat version 5.5 is there any way that I can point the tomcat server to 1.6 java?
would this cause compatibility issues with the older 5.5 tomcat ?
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had Tomcat 5.5 running with Java 1.6 before, that shouldn't be a problem. That was on Windows so I wouldn't know how to change this in Linux. I still suggest updating to Tomcat 7 though.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is designed to permit multiple brands/flavors/versions to be installed and used concurrently on a single machine. In other words, it's the exact opposite of Internet (There Can Be Only One) Explorer.

Tomcat will employ the JAVA_HOME environment setting that is in currently effect for the shell that launches it. So moving from JDK 1.5 to JDK 1.6 would be as simple as setting JAVA_HOME=/usr/java/jdk1.6.x for that shell. If Tomcat is being managed by an init script, examine the script to see how JAVA_HOME is being set.

I don't think Java6 is a problem for Tomcat 5.5, although it would be for Tomcat 5.0. However, it's better to upgrade to at least Tomcat6 just for support reasons.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic