| title | setup-java v5.5.0: signature verification, Tencent Kona JDK, and cleaner Maven builds | ||
|---|---|---|---|
| date | 2026-07-XX | ||
| categories |
|
||
| labels |
|
| void main() { | |
| IO.println("rock/paper/scissors:"); | |
| var u = IO.readln(); | |
| if (u.equals("exit")) return; | |
| var c = "rock,paper,scissors".split(","); | |
| var i = List.of(c).indexOf(u); | |
| if (i < 0) return; | |
| var j = new Random().nextInt(3); | |
| IO.println("Computer: " + c[j]); | |
| IO.println(i == j ? "Tie!" : (i == (j + 1) % 3 |
See 2024 JetBrains Java Developer Survey and Spring Boot Statistics for context on the Java ecosystem.
Note: The Community Toolkit provides Java/Spring Boot hosting. Aspire 13 elevated Python and JavaScript to first-class citizens with polyglot connection properties including JDBC format. This proposal outlines bringing Java to the same first-class status.
Java is the second most popular enterprise language after JavaScript/TypeScript, with Spring Boot dominating the web framework space (~70% of Java web applications). With Aspire 13's rebrand from ".NET Aspire" to "Aspire" and first-class Python/JavaScript support, Java is the natural next step. This document outlines a Spring Boot-centric approach while maintaining flexibility for other Java frameworks.
| void main() { | |
| IO.println("rock/paper/scissors:"); | |
| var u = IO.readln(); | |
| if (u.equals("exit")) return; | |
| var c = "rock,paper,scissors".split(","); | |
| var i = List.of(c).indexOf(u); | |
| if (i < 0) return; | |
| var j = new Random().nextInt(3); | |
| IO.println("Computer: " + c[j]); | |
| IO.println(i == j ? "Tie!" : (i == (j + 1) % 3 ? "You win!" : "Computer wins!")); |
| void main() { | |
| var s = """ | |
| void main() { | |
| var s = %c%c%c | |
| %s%c%c%c; | |
| IO.print(String.format(s, 34, 34, 34, s, 34, 34, 34)); | |
| }"""; | |
| IO.print(String.format(s, 34, 34, 34, s, 34, 34, 34)); | |
| } |
| #!/usr/bin/env bash | |
| # check-jvm-env-precedence.sh | |
| # Pairwise precedence test for: _JAVA_OPTIONS, JAVA_TOOL_OPTIONS, JDK_JAVA_OPTIONS | |
| set -euo pipefail | |
| say() { printf "%s\n" "$*"; } | |
| hr() { printf "%s\n" "----------------------------------------"; } | |
| # Tiny source-file program |
| [ | |
| { | |
| "id": 389291, | |
| "title": "Kotlin Multiplatform Conversions at Android Jetpack Scale", | |
| "description": "This is a case study of how we converted several Jetpack libraries to Kotlin Multiplatform as part of our ongoing experimentation with the multiplatform technology." | |
| }, | |
| { | |
| "id": 405587, | |
| "title": "Compose Multiplatform on iOS", | |
| "description": "An overview of the exciting present and future of Compose Multiplatform, including live demos and how to get started with the latest additions to the multiplatform UI framework built by JetBrains." |
| import java.lang.management.ManagementFactory; | |
| public class App { | |
| public static void main(String[] args) { | |
| long currentTime = System.currentTimeMillis(); | |
| long startTime = ManagementFactory.getRuntimeMXBean().getStartTime(); | |
| System.out.println("JVM Startup time: " + (currentTime - startTime)); | |
| } | |
| } |
| #!/bin/bash | |
| set -x | |
| function setenv-all-pods() { | |
| echo | |
| DEPLOYMENT_LIST=$(kubectl -n $1 get deployment -o jsonpath='{.items[*].metadata.name}') | |
| echo "Set Log4J setting for all pods by overriding LOG4J_FORMAT_MSG_NO_LOOKUPS with true." | |
| for deployment_name in $DEPLOYMENT_LIST; do | |
| kubectl -n $1 set env deployment $deployment_name LOG4J_FORMAT_MSG_NO_LOOKUPS="true" | |
| done |
| //DEPS org.openjfx:javafx-controls:11.0.2:${os.detected.jfxname} | |
| //DEPS org.openjfx:javafx-graphics:11.0.2:${os.detected.jfxname} | |
| import javafx.application.Application; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.layout.StackPane; | |
| import javafx.stage.Stage; | |
| public class hello extends Application { |