# \#lang:java

**URL:** https://discourse.cmake.org/tag/lang-java/41.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [Changing Java Version inside CMake](https://discourse.cmake.org/t/changing-java-version-inside-cmake/3541)

<div class="topic-metadata">

**Author:** [@inevo](https://discourse.cmake.org/u/inevo)\
**Replies:** 3\
**Last updated:** [June 14, 2021, 11:24am UTC](https://discourse.cmake.org/t/changing-java-version-inside-cmake/3541 "2021-06-14T11:24:02Z")

</div>

Hi, I need to cross-compile a jar and a shared library so that they will be imported into an Android application and ran on a machine running Ubuntu. For this reason I would like to create a CMakeLists.txt file that will…
