Project

General

Profile

Actions

Bug #2900

closed

Morpho Ubuntu install needs Java 1.5.0 or greater

Added by Callie Bowdish over 17 years ago. Updated about 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
morpho - general
Target version:
Start date:
08/07/2007
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2900

Description

The Morpho install for Ubuntu contains a zip file that installs a Morpho.1.6.1 directory containing the files needed to run Morpho. This program can be started by using the terminal and typing in ./morpho in that directory. When an older version of Java was previously loaded and has the JAVA_HOME path set there is a problem. This is the error: Exception in thread "main" java.lang.UnsupportedClassVersionError: edu/ucsb/nceas/morpho/Morpho (Unsupported major.minor version 49.0)

Here is the command for the version and the version that my computer was set to: java version "1.4.2_12".

Java has been updated on this computer but the JAVA_HOME path has not been changed with the update. End users will get the above error if the path has not been updated. They do not get the helpful screen for people who do not have a path set.

Here is the screen that comes up for people who do not have the JAVA_HOME path set.

----------------------------------------------------------------------
----------------------------------------------------------------------
---------------------------- N O T E ---------------------------------
---- YOU MUST SET THE JAVA_HOME ENVIRONMENT VARIABLE TO POINT TO -----
--- YOUR JDK OR JRE INSTALLATION DIRECTORY BEFORE RUNNING MORPHO! ----
----- Note that Morpho may not work correctly with non-SUN JVMs, -----
--------------------- such as gcj or kafee. --------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------

There are two problems that need to be addressed.

One is the README file says that Java 1.3 or greater will work and recommends 1.4. (1.4 does not work with this Ubuntu version of Morpho). The README needs to be changed to reflect this. I wonder if we should give direction on updating the JAVA_HOME environment variable in the readme file as well.

The other problem is that users need to be told to update their JAVA_HOME environment variable path if they have an earlier version set with it. The error that users get when the variable is not set right might not be clear to many users.

something like this needs to be run at the command line
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/ and be set in the users .bashrc file.

Actions #1

Updated by Jing Tao about 15 years ago

Now morpho has the requirement - running on java 1.5 or greater.

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 2900

Actions

Also available in: Atom PDF