D
D
DunkanMaklaut2020-06-29 13:59:39
Java
DunkanMaklaut, 2020-06-29 13:59:39

Is it possible to run a project compiled on JDK 13 on earlier versions of the JDK?

Hello, I wrote some project and compiled it using JDK 13, now I need to distribute it to some PCs that have JDK 6 installed, tell me if it is possible to build the project so that it runs regardless of the JDK version, or can I do an adaptation or rebuild project on an earlier version? If it is possible, tell me what manipulations need to be done for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-06-29
@DunkanMaklaut

You can, if your code does not use the features of new versions of the language. It is enough to specify the version of the target platform when compiling.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question