polyglot-compiler / JLang

JLang: Ahead-of-time compilation of Java programs to LLVM
http://polyglot-compiler.github.io/JLang/
Other
287 stars 30 forks source link

java.lang.UnsupportedClassVersionError #76

Closed jsomeara closed 3 years ago

jsomeara commented 3 years ago

Not exactly sure what to say here, but this is the issue I'm getting:

"java -version" outputs 1.8.0... should it be java 7?

JDK7 and JAVA_HOME are both set to JDK 7

image

dz333 commented 3 years ago

Hi,

Your JAVA_HOME variable should be set to your java 8 install location, not java 7 (see the quick start guide) If this doesn't solve the problem, let me know.

jsomeara commented 3 years ago

I will try that, the quick start guide says in the JDK 7 section:

When trying to run programs compiled with JLang you will need to set the JAVA_HOME environment variable to this value as well

was confused by this I guess.

dz333 commented 3 years ago

Yeah its confusing - it would be nice if JLang didn't need a bunch of different JVM versions for different components :shrug:

jsomeara commented 3 years ago

Working great now! Thanks so much 👍