konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.66k stars 265 forks source link

<maven.compiler.source> and </maven.compiler.source>question #946

Closed jsfan3 closed 2 months ago

jsfan3 commented 2 months ago

I am starting my first project from scratch with TeaVM. I am not sure about the level of bytecode compatibility. This is my pom.xml: are the maven.compiler.source and maven.compiler.target options correct and necessary?

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
</properties>
konsoletyper commented 2 months ago

Hi. Sorry, I don't fully understand your question. Do you mean something like "does TeaVM support bytecode version more than 8"? TeaVM supports source bytecode for Java up to 21 and it requires at Java 11 to run compiler.

jsfan3 commented 2 months ago

You answered my question, thank you.