Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct JDK version? #80

Closed
ivmarkov opened this issue Feb 24, 2016 · 3 comments
Closed

Correct JDK version? #80

ivmarkov opened this issue Feb 24, 2016 · 3 comments
Milestone

Comments

@ivmarkov
Copy link

See cincheo/jsweet-eclipse-plugin#8
What is the correct JDK version to be used with jsweet?

Also, I guess the answer would be that the javax.tools API is missing something that com.sun.* has, but what is the reason of not using javax.tools.* in JSweetTranspiler?

@ivmarkov
Copy link
Author

Just answered the second question myself - javax.tools.* does not expose any AST. It is basically a toy to compile .java to .class files...

@renaudpawlak renaudpawlak added this to the 1.1.0 milestone Feb 24, 2016
@renaudpawlak
Copy link
Contributor

JSweet only works with JDK because you need the Java compiler, and version 8 because you need the lambdas....

At some point the transpiler was raising a nice error when a JDK 8 was not found in the path. But obviously, this regressed -- it is hard to test such things :(

@renaudpawlak
Copy link
Contributor

So, the outcome is that JSweet works with any 1.8 version. To use the Eclipse plugin, it is preferred to have JAVA_HOME properly set. This constraint should be relaxed in future versions of the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants