[ExM Users] stc unsupported class error

Tim Armstrong tim.g.armstrong at gmail.com
Mon Apr 28 10:56:10 CDT 2014


I haven't seen that one before.  It sounds like it's being run with an
older version of Java than it was compiled with.

Java class version 51.0 corresponds to java 7 (
http://en.wikipedia.org/wiki/Java_class_file#General_layout), so it seems
like it must be getting run with an older version.

You could try the -V switch to STC to see which java it's being run with,
and then -j /path/to/jvm/bin/java to force a different java version.

- Tim


On Mon, Apr 28, 2014 at 10:33 AM, Ketan Maheshwari <ketan at mcs.anl.gov>wrote:

> Hi,
>
> While running stc on MCS workstations, I get:
>
> ./genleaf vanilla mockdock.c mockdock.h user.swift
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> exm/stc/ui/Main : Unsupported major.minor version 51.0
>
> Somehow the java versions at build and runtime are getting mixed up.
>
> This is how I build:
>
> export JAVA_HOME=/homes/ketan/jdk1.7.0_07
> ant install -Ddist.dir=/home/ketan/exm-install/stc
>
> I have the same java in my env:
>
> $ which java
> /homes/ketan/jdk1.7.0_07/bin/java
>
>
> Any suggestions to fix this?
>
> Thanks,
> Ketan
>
> _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140428/40093f62/attachment.html>


More information about the ExM-user mailing list