# Interoperability with Java: Write yourself a compiler, Part VI

DevFeed: [Interoperability with Java: Write yourself a compiler, Part VI](<https://devfeed.tech/articles/interoperability-with-java-write-yourself-a-compiler-part-vi-60754.md>)

Original publisher: [Read original article](<https://nurkiewicz.com/2026/09/interoperability-with-java-write-yourself-a-compiler.html>)

Published: 2026-09-27T22:00:00Z

Content type: article

Language: en

Sources: [Tomasz Nurkiewicz around Java and concurrency](<https://devfeed.tech/sources/tomasz-nurkiewicz-around-java-and-concurrency.md>)

Topics: [Jule](<https://devfeed.tech/topics/jule.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>)

Tags: [bytecode](<https://devfeed.tech/tags/bytecode.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [functional](<https://devfeed.tech/tags/functional.md>), [go](<https://devfeed.tech/tags/go.md>), [interoperability](<https://devfeed.tech/tags/interoperability.md>), [interpreter](<https://devfeed.tech/tags/interpreter.md>), [java](<https://devfeed.tech/tags/java.md>), [jit](<https://devfeed.tech/tags/jit.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [scala](<https://devfeed.tech/tags/scala.md>), [virtual-machine](<https://devfeed.tech/tags/virtual-machine.md>), [writing-compiler](<https://devfeed.tech/tags/writing-compiler.md>)

## AI overview

This installment demonstrates how a toy language that compiles to JVM bytecode can interoperate with Java and other JVM languages. It describes accessing the Java ecosystem and standard library, and adding source-line metadata to support debugging.

## Source excerpt

A small addendum to our previous article where we wrote functional compiler targetting JVM bytecode, let's discuss interoperability with the JVM. The biggest win from using a well-established virtual machine is gaining access to the entire ecosystem.