J2CL is a lightweight transpiler developed by Google that converts Java source code into highly optimized JavaScript designed to work seamlessly with the Closure Compiler. It allows developers to write applications in Java while targeting web environments, enabling strong type safety and code reuse across platforms. Unlike monolithic frameworks, J2CL focuses purely on transpilation, leaving optimization, bundling, and runtime concerns to the broader toolchain, which provides flexibility in modern development workflows. The generated JavaScript is fully type-safe and can be aggressively optimized by the Closure Compiler to reduce code size and improve performance. J2CL is widely used internally at Google in large-scale applications such as Gmail and Google Docs, demonstrating its production readiness and scalability. It supports interoperability between Java and JavaScript through tools like JsInterop, enabling seamless integration of code across languages.

Features

  • Java-to-JavaScript transpilation with Closure compatibility
  • Strong type checking and error detection
  • Seamless Java and JavaScript interoperability
  • Integration with Closure Compiler for optimization
  • Support for large-scale production applications
  • Code reuse across platforms and ecosystems

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow J2CL

J2CL Web Site

Other Useful Business Software
Earn up to 16% annual interest with Nexo. Icon
Earn up to 16% annual interest with Nexo.

Let your crypto work for you

Put idle assets to work with competitive interest rates, borrow without selling, and trade with precision. All in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of J2CL!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Java

Related Categories

Java Software Development Software

Registered

4 days ago