Project

General

Profile

Actions

Bug #1255

closed

Java Version dependency problem

Added by Dan Higgins over 20 years ago. Updated over 20 years ago.

Status:
Resolved
Priority:
Normal
Category:
morpho - general
Target version:
Start date:
01/07/2004
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1255

Description

Morpho 1.5.0alpha2 will not run under Java 1.3. Needed to update to Java 1.4.2
to get it to run correctly (class not found error). We need to track down this
problem.

Actions #1

Updated by Dan Higgins over 20 years ago

the error message under Java 1.3 is:

java.lang.NoSuchMethodError
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.CustomList.initList(C
ustomList.java:223)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.CustomList.init(Custo
mList.java:196)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.CustomList.<init>(Cus
tomList.java:187)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.WidgetFactory.makeLis
t(WidgetFactory.java:347)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.pages.Project.getData
Panel(Project.java:194)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.pages.Project.init(Pr
oject.java:134)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.pages.Project.<init>(
Project.java:82)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.WizardPageLibrary.reI
nitialize(WizardPageLibrary.java:99)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.WizardPageLibrary.<in
it>(WizardPageLibrary.java:87)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.WizardContainerFrame.
<init>(WizardContainerFrame.java:85)
at edu.ucsb.nceas.morpho.plugins.datapackagewizard.DataPackageWizardPlug
in.<init>(DataPackageWizardPlugin.java:68)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at edu.ucsb.nceas.morpho.Morpho.createObject(Morpho.java:1347)
at edu.ucsb.nceas.morpho.Morpho.loadPlugins(Morpho.java:1088)
at edu.ucsb.nceas.morpho.Morpho.main(Morpho.java:897)

Actions #2

Updated by Saurabh Garg over 20 years ago

The function on line 223 of datapackagewizard/CustomList.java is setFocusable().
This line was added recenly I think.
setFocusable() method was introduced in java.awt.Component in version 1.4
So Java 1.3 is not recognizing it.

Actions #3

Updated by Matthew Brooke over 20 years ago

removed setFocusable - introduced by perumal as a bug fix for tab-key focus
problems - we need to find another way of doing this.

Tried compiling under 1.3, and found 3 more jdk1.4 dependencies. Fixed one of
them (Color.BLACK --> Color.black in
plugins/datapackagewizard/TextImportWizardEml2.java), but the other 2 look like
they might be a bit more involved - probably better to ask Perumal to look at
these, since I think he wrote the original code (see below)

C:\DEV\ecoinfo\MORPHO_ROOT\CVS_SOURCE\morpho\src\edu\ucsb\nceas\morpho\plugins\datapackagewizard\pages\Attri
butePage.java:809: cannot resolve symbol
[javac] symbol : method replaceAll (java.lang.String,java.lang.String)
[javac] location: class java.lang.String
[javac] String newKey = key.replaceAll("\\[1\\]","");
[javac] ^
[javac]
C:\DEV\ecoinfo\MORPHO_ROOT\CVS_SOURCE\morpho\src\edu\ucsb\nceas\morpho\plugins\datapackagewizard\pages\Inter
valRatioPanel.java:759: cannot resolve symbol
[javac] symbol : method getItemListeners ()
[javac] location: class javax.swing.JComboBox
[javac] ItemListener[] itemListeners = unitTypesList.getItemListeners();
[javac] ^

Actions #4

Updated by Perumal Sambasivam over 20 years ago

all the java 1.4 dependencies have been fixed

Actions #5

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 1255

Actions

Also available in: Atom PDF