phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mujtaba Chohan (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-2303) does not use JAVA_HOME
Date Thu, 29 Oct 2015 00:04:27 GMT


Mujtaba Chohan commented on PHOENIX-2303:

I see somehow was not patched in master however it's in phoenix-4.x-HBase-0.98/1.0.
I'll commit to it as well. Thanks for informing.

> does not use JAVA_HOME
> -------------------------------------
>                 Key: PHOENIX-2303
>                 URL:
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.5.2
>            Reporter: Albert Chu
>            Priority: Minor
>             Fix For: 4.6.0
> Was testing Phoenix support in one of my projects when I hit this issue with
(cut & pasting for people web searching).
> {noformat}
> Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/phoenix/util/PhoenixRuntime
: Unsupported major.minor version 51.0
> 	  at java.lang.ClassLoader.defineClass1(Native Method)
> 	  at java.lang.ClassLoader.defineClassCond(
> 	  at java.lang.ClassLoader.defineClass(
> 	  at
> 	  at
> 	  at$000(
> 	  at$
> 	  at Method)
> 	  at
> 	  at java.lang.ClassLoader.loadClass(
> 	  at sun.misc.Launcher$AppClassLoader.loadClass(
> 	  at java.lang.ClassLoader.loadClass(
> Could not find the main class: org.apache.phoenix.util.PhoenixRuntime.  Program will
> {noformat}
> This is of course the common error indicating that you are using an older version of
java to run something compiled with a newer version.  But I was setting JAVA_HOME to an appropriate
Java 1.7 path.
> I eventually realized the issue was wasn't honoring the environment variable
JAVA_HOME and picking up an older java version sitting in /usr/bin, where as
does honor JAVA_HOME.
> I can / will produce a patch, but can't right now.  Thought I'd post this bug today for
people web searching and in case someone else wants to beat me to it.

This message was sent by Atlassian JIRA

View raw message