[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Client Reply - [CONDUIT !NXD-544090]: Request (fwd)



UnsupportedClassVersionError means they are using an older version of java. 
They need 1.4.2 or above.

Robb Kambic wrote:
can you shed some light on this error Unsupported major.minor version

line 48 in ToolsUI.java is import java.awt.*;

does that mean java.awt is too old to work. i'll ask what version of java
he is using.

thanks,
robb...


===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================

---------- Forwarded message ----------
Date: Fri, 05 May 2006 03:26:17 -0600
From: Markus Ristic <address@hidden>
To: address@hidden
Subject: New Client Reply - [CONDUIT !NXD-544090]: Request

New Reply: Request

Hi Robb

Bad luck, it doesn't work ...
------------------------------------
Output of the shell program:

srvx6 local/ldm> test.scr
java -classpath /usr/local/ldm/toolsUI-2.2.14.jar ucar.nc2.ui.ToolsUI
Exception in thread "main" java.lang.UnsupportedClassVersionError:
ucar/nc2/ui/ToolsUI (Unsupported major.minor version 48.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
------------------------------------
where

$HOME = /usr/local/ldm
------------------------------------
Cat test.scr:

#!/bin/csh -f

set CP="$HOME/toolsUI-2.2.14.jar"

echo "java -classpath $CP ucar.nc2.ui.ToolsUI"

java -Xmx512m -classpath $CP ucar.nc2.ui.ToolsUI
------------------------------------

I've also modified the .cshrc as following:

------------------------------------
#!/bin/csh

set path = ($path /usr/local/j2sdk1.4.2_11/bin $HOME/decoders $HOME/util
$HOME/bin /opt/kde3/bin /usr/local/bin .)

setenv ldmhome $HOME

setenv MANPATH $HOME/man:/usr/man:/usr/share/man

setenv UDUNITS_PATH $HOME/etc/udunits.dat

setenv CP $HOME/toolsUI-2.2.14.jar

alias convert1 'java -Xmx512m -classpath $CP ucar.nc2.ui.ToolsUI'

alias convert2 'java -Xmx512m -classpath $CP ucar.nc2.iosp.grib.Grib2Netcdf'

set datapath="$HOME/data/native/grid/NCEP/GFS/Global_0p5deg"
------------------------------------

Executing convert1 brings the same result as test.scr

Executing convert2:

srvx6 local/ldm> convert2 $datapath/GFS_Global_0p5deg_20060504_0600.grib2
test.NC
Exception in thread "main" java.lang.NoClassDefFoundError:
ucar/nc2/iosp/grib/Grib2Netcdf
srvx6 local/ldm>

Maybe something in my java is not working ?

Sincerely

Mark



-----Urspr�ngliche Nachricht-----
Von: Unidata netCDF Decoders Support
[mailto:address@hidden]
Gesendet: Donnerstag, 4. Mai 2006 20:55
An: address@hidden
Cc: address@hidden;
address@hidden
Betreff: [CONDUIT #NXD-544090]: Request

Markus,

the $CP needs to be set by you, where the toolsUI-2.2.14.jar is located.
Here is a shell program. replace <yourpathtoo> with your own path.

#/bin/csh -f

set CP="<yourpathtoo>toolsUI-2.2.14.jar"

echo "java -classpath $CP ucar.nc2.ui.ToolsUI"

java -Xmx512m -classpath $CP ucar.nc2.ui.ToolsUI

also the Grib2Netcdf can replace the ToolsUI by

java -Xmx512m -classpath $CP ucar.nc2.iosp.grib.Grib2Netcdf INPUT OUTPUT.NC

Don't forget to add the INPUT grib file and OUTPUT.NC names.

robb...

Ticket Details
===================
Ticket ID: NXD-544090
Department: Support netCDF Decoders
Priority: Normal
Status: Open






Ticket Details
===================
Ticket ID: NXD-544090
Department: Support netCDF Decoders
Priority: Normal
Status: Closed
http://www.unidata.ucar.edu/esupport/staff/index.php?_m=tickets&_a=viewticket&ticketid=570