Recommended
PDF
Writing GPU-Ready AI Models in Pure Java with Babylon
PDF
Writing GPU-Ready AI Models in Pure Java with Babylon
PDF
Writing GPU-Ready AI Models in Pure Java with Babylon
PDF
JVM in the Age of AI: Babylon, Valhalla, TornadoVM and friends
PDF
Deep Learning for Java Developer - Getting Started
PDF
Code Europe Spring 2018 - Mind the Gap
PDF
LJC-Unconference-2023-Keynote.pdf
PDF
JVM in the Age of AI: 2026 Edition - Deep Dive
PDF
DBI-Assisted Android Application Reverse Engineering
PDF
Using Java to deploy Deep Learning models with MXNet
PPTX
Deep Learning in Java with Apache MXNet
PDF
The Diabolical Developer's Guide to Surviving Java 9
PPTX
GDG AI for Science - Why JAX and Flax NNX
PDF
Beyond JVM - YOW Melbourne 2013
PPTX
The Art of Metaprogramming in Java
PPTX
Machines Can Learn - a Practical Take on Machine Intelligence Using Spring Cl...
PDF
PPTX
Unlocking AI with Java: Tools and Libraries Driving Machine Learning
PPTX
GOTO Night with Charles Nutter Slides
PDF
DSS_ML_Creating GenAI Apps in Java with SD4J and the ONNX Runtime
PDF
Java With The Best Online Conference - Mind the gap: Java, Machine Learning, ...
PDF
Creating GenAI Apps in Java with SD4J and the ONNX Runtime - MiTechCon - Mic...
PDF
Why scala for data science
PPTX
GDG AI for Science Australia - JAX AI Stack
PDF
Sjug #26 ml is in java but is dl too - ver1.04 - tomasz sikora 2018-03-23
PDF
TDC - The Developers Conference - Creating GenAI Apps in Java with SD4J and t...
PPTX
Onnx at lf oss na 20200629 v5
PDF
Core2 Document - Java SCORE Overview.pptx.pdf
PDF
Supercharge Your JVM Performance with Project Leyden
PDF
Secure Java Applications against Quantum Threats
More Related Content
PDF
Writing GPU-Ready AI Models in Pure Java with Babylon
PDF
Writing GPU-Ready AI Models in Pure Java with Babylon
PDF
Writing GPU-Ready AI Models in Pure Java with Babylon
PDF
JVM in the Age of AI: Babylon, Valhalla, TornadoVM and friends
PDF
Deep Learning for Java Developer - Getting Started
PDF
Code Europe Spring 2018 - Mind the Gap
PDF
LJC-Unconference-2023-Keynote.pdf
PDF
JVM in the Age of AI: 2026 Edition - Deep Dive
Similar to Now and Next Java For AI -- JSpring 2026
PDF
DBI-Assisted Android Application Reverse Engineering
PDF
Using Java to deploy Deep Learning models with MXNet
PPTX
Deep Learning in Java with Apache MXNet
PDF
The Diabolical Developer's Guide to Surviving Java 9
PPTX
GDG AI for Science - Why JAX and Flax NNX
PDF
Beyond JVM - YOW Melbourne 2013
PPTX
The Art of Metaprogramming in Java
PPTX
Machines Can Learn - a Practical Take on Machine Intelligence Using Spring Cl...
PDF
PPTX
Unlocking AI with Java: Tools and Libraries Driving Machine Learning
PPTX
GOTO Night with Charles Nutter Slides
PDF
DSS_ML_Creating GenAI Apps in Java with SD4J and the ONNX Runtime
PDF
Java With The Best Online Conference - Mind the gap: Java, Machine Learning, ...
PDF
Creating GenAI Apps in Java with SD4J and the ONNX Runtime - MiTechCon - Mic...
PDF
Why scala for data science
PPTX
GDG AI for Science Australia - JAX AI Stack
PDF
Sjug #26 ml is in java but is dl too - ver1.04 - tomasz sikora 2018-03-23
PDF
TDC - The Developers Conference - Creating GenAI Apps in Java with SD4J and t...
PPTX
Onnx at lf oss na 20200629 v5
PDF
Core2 Document - Java SCORE Overview.pptx.pdf
More from Ana-Maria Mihalceanu
PDF
Supercharge Your JVM Performance with Project Leyden
PDF
Secure Java Applications against Quantum Threats
PDF
Towards Better JVM Performance Presentation
PDF
Supercharge Your JVM with Project Leyden
PDF
Secure Java Applications against Quantum Threats
PDF
Empower Inclusion Through Accessible Java Applications
PDF
Java 25 and Beyond - A Roadmap of Innovations
PDF
Sécuriser les Applications Java Contre les Menaces Quantiques
PDF
Des joyaux de code natif aux trésors Java avec jextract
PDF
From native code gems to Java treasures with jextract
PDF
Exciting Features and Enhancements in Java 23 and 24
PDF
Monitoring Java Application Security with JDK Tools and JFR Events
PDF
Enhancing Productivity and Insight A Tour of JDK Tools Progress Beyond Java 17
PDF
From native code gems to Java treasures with jextract
PDF
Monitoring Java Application Security with JDK Tools and JFR Events
PDF
Java 23 and Beyond - A Roadmap Of Innovations
PDF
Enhancing Productivity and Insight A Tour of JDK Tools Progress Beyond Java 17
PDF
Monitoring Java Application Security with JDK Tools and JFR Events
PDF
Java 22 and Beyond- A Roadmap of Innovations
PDF
Surveillance de la sécurité des applications Java avec les outils du JDK e...
Recently uploaded
PDF
Top 6 Accenture Alternatives for Finance Transformation Services in 2026
PDF
Today's Information System Trends - Toward Greater AI Connectivity and Networ...
PDF
Pillar Inventory & Sales Management System (PIMS) Project Overview
PDF
The Emergence and Impact of Vertical AI - The Meliora Company
PDF
LLMs and the WWW: Towards the Agentic Web
PDF
What You Can Learn from a Year of Our Support Cases
PDF
Mapping at Scale: using QGIS and Python to automate hundreds of maps
PDF
Innovative University Technologies Showcased in YEARBOOK Series 2022-2025
PDF
Josh Chu Boston - MA Technology Executive
PDF
Fibre Sensing in the NREN ecosystem, by Asiera
PDF
AI Agents in Enterprise: Real-World Use Cases, ROI, and Industry Impact
PDF
Josh Chu Boston - Holds A Bachelor’s Degree In Computer Science
PPTX
Nesa Software – Smart Software Solutions | AI, DevOps, IoT & Custom Development
PDF
Demystifying Artificial Intelligence - The Journey Through AI: Concepts, Appl...
PDF
Was Sie von einem Jahr unserer Supportfälle lernen können
PDF
7 Best Alternatives to Infosys BPM for Finance Transformation in 2026
PDF
Top Consulting Firms Specializing in Finance Transformation Services in 2026
PDF
AI Security in Practice - NDC Copenhagen 2026
PPTX
How Claude AI Helps Indian Research & Data Teams Work 15x Faster
PDF
Why Chat Interfaces Fail to Sustain Human Relationships: Insights from Relati...
Now and Next Java For AI -- JSpring 2026 1. Now and Next Java For AI
Ana-Maria Mihalceanu
Senior Java Developer Advocate @ Oracle
https://bsky.app/profile/ammbra1508.bsky.social
https://mastodon.social/@ammbra1508
https://x.com/ammbra1508
2. Shifts in Software Perspective
Copyright © 2026, Oracle and/or its affiliates
2
Desktop Applications
Client-Server Desktop
Applications
Web Applications Cloud
Applications/SaaS
Mobile Applications Generative AI
Applications
~1970s
~mid-1990s
2022
~2010s
~1990
late 2000s
3. “Change is the only constant”
Mark Reinhold, Devoxx Belgium 2018
https://www.youtube.com/watch?v=wHoRBvt3U6o
3 Copyright © 2026, Oracle and/or its affiliates
4. 5. 6. 7. 8. The AI/ML Model Journey
AI/ML Model
Stage
Description
Data (What?) Process (How?) Goal (Why?)
Train Build a model from
scratch.
Large, historical,
labeled datasets.
Iteratively learn from a
large dataset.
Obtain an accurate and
knowledgeable model.
Fine-Tune Adapt the pre-
trained model for a
specific purpose.
Smaller, task-specific
datasets.
Refine an existing
model with a smaller
dataset.
Customization to reduce
inaccuracies and attain
efficiency.
Inference Use a trained
model to make
predictions
(classifications).
Real, unlabelled data,
most likely not part of
the training dataset.
A single model “run”
of new data.
Achieve latency (speed),
throughput and scale.
Serve Improve model
accuracy and
capability.
Package the model
and expose it as a
library/API.
Reliably maintain and scale
the inference endpoint.
8 Copyright © 2026, Oracle and/or its affiliates
9. RUNTIME
Deep Learning Models
9
MODEL
• .pt
• .pb
• .onnx
• .gguf
• ...
Graph
(ops + layers)
Weights
IN (img, tokens, …) OUT (cat., tokens, …)
Loads Model
Dispatches Load
to HW
→ PyTorch
→ TensorFlow Runtime
→ ONNX Runtime
→ Llama.cpp
Copyright © 2026, Oracle and/or its affiliates
10. Two Control Surfaces from Application Perspective
Serving AI Models For Handling Inference Requests
Remote Inference Inference Control Layer
10
(Java) Client
Model Server
Native Runtime
CPU/GPU
HTTP/gRPC
Simplifies upgrades and isolation. Better control over data and more opportunity for predictable
specialized behavior.
(Java) Library
Copyright © 2026, Oracle and/or its affiliates
11. Examples of ONNX Java Inference Community Efforts
11 Copyright © 2026, Oracle and/or its affiliates
https://inference4j.github.io/inference4j/ https://github.com/langchain4j/langchain4j/tree/main/embeddings
12. Babylon Code Reflection
@Reflect
Talk Overview
Building blocks examples to perform inference through Java
12 Copyright © 2026, Oracle and/or its affiliates
Execution Provider
ONNX runtime (native)
Panama bindings for main
runtime methods
.onnx ML model
Execution Provider
ONNX runtime (native)
Panama bindings for ML
operators
Java ML model
Now
Next
13. ONNX and Java
ONNX from Java Perspective
The Java platform knows nothing about ONNX.
Java considers ONNX runtime a foreign (native) library.
Java considers the ONNX programming model a foreign
programming model.
13 Copyright © 2026, Oracle and/or its affiliates
14. Foreign Function and Memory API
14 Copyright © 2026, Oracle and/or its affiliates
ONNX Native Library
(libonnxruntime.dylib | libonnxruntime.dll |
libonnxruntime.so)
Foreign Function & Memory (FFM) Java Bindings
Java Client
Memory Layouts Var handles
Function
Descriptors
Method Handles
15. MemorySegment as a Tensor Backing Store
15 Copyright © 2026, Oracle and/or its affiliates
OrtValue
(tensor handle)
MemorySegment
Java Data
(float[]/ByteBuffer)
ONNX Native Library
(libonnxruntime.dylib | libonnxruntime.dll |
libonnxruntime.so)
Foreign Function & Memory (FFM) Java Bindings
Java Client
16. Deploy and Execute an ONNX Model
16 Copyright © 2026, Oracle and/or its affiliates
Image
(.png)
Java Client Classification/Probabilities
ONNX Model
(e.g. emotion-ferplus-8.onnx)
Execution Provider
ONNX runtime (native)
(libonnxruntime.dylib | libonnxruntime.dll |
libonnxruntime.so)
Panama bindings for main runtime
methods
runtime.createSession
inference.run
…
17. Demo: Run an ONNX Model
via FFM API
17 Copyright © 2026, Oracle and/or its affiliates
18. What’s Inside an ONNX Model
Model metadata
• version, description, ...
Graph structure
• operators and tensors
• protobuf (Protocol Buffers for serialization)
Initializers (weights)
• can be large chunks of binary data (float32, int64, etc.)
Inputs and outputs
• Example: input is float[1, 1, 64, 264], output is float[1, 8].
18 Copyright © 2026, Oracle and/or its affiliates
https://netron.app/
19. 20. 21. @Reflect helps identify areas of Java source code to reflect over
and give access to as code models at compile time and runtime.
Extend Java Reach to Foreign Programming Models
21 Copyright © 2026, Oracle and/or its affiliates
func @"f" ()void -> {
%0 : java.io.PrintStream = field.load@"java.lang.System::out()java.io.PrintStream";
%1 : java.lang.String = constant @"Hello !";
invoke %0 %1 @"java.io.PrintStream::print(java.lang.String)void";
return;
};
@Reflect
static void f() {
System.out.println("Hello !");
}
Input Java Code
Java Code Model
public static void f();
Code:
0: getstatic #2 // Field java/lang/System.out:Ljava/io/PrintStream;
3: ldc #3 // String Hello !
5: invokevirtual #4 // Method java/io/PrintStream.print:(Ljava/lang/String;)V
8: return
JVM Bytecode
Reflect
Foreign Code Model
Translate
(eg. autodiff)
Lower
22. 22 Copyright © 2026, Oracle and/or its affiliates
Project Panama is to
foreign
libraries
Project Babylon is to
foreign
programming models
as
23. Operators
Using ONNX Operators in Java
Pre-generated in Babylon Examples (come out-of-the-box with Code Reflection)
23 Copyright © 2026, Oracle and/or its affiliates
Conv (input, weights, ...)
Gemm (matrixA, matrixB, ...)
Relu (tensor)
...
Extract operators from
ONNX schema
(done already)
Operators are recognised
and transformed by Code
Reflection
24. Architecture of Java ONNX Prototype
24 Copyright © 2026, Oracle and/or its affiliates
ONNX runtime (ORT)
Foreign Function & Memory API
Panama ONNX binding
ONNX model authored using
Java ONNX API
JDK
Library
Application
onnxruntime_c_api.h
Java ONNX API &
Code Model Transformer
Java code
Native code
jextract
25. Demo: Execute a Java Model
through ONNX Runtime
25 Copyright © 2026, Oracle and/or its affiliates
github.com/openjdk/babylon/tree/code-reflection/cr-examples/onnx
26. How to run A Java Code Model on ONNX Runtime
26 Copyright © 2026, Oracle and/or its affiliates
Java Code Model
Code Reflection API
Java ONNX Script Library
Tensor…
ir.OnnxOp..
ir.OnnxType
compiler.OnnxTransformer..
OnnxRuntime…
FFM Bindings
foreign.OrtApi..
foreign.OrtGenApi
ONNX Runtime ONNX GenAI Runtime
OnnxOperators
ir.OnnxOps
proto.OnnxBuilder..
ONNX
Specs & Sources
OpGen
ProtoGen
jextract
27. More AI Layers
Agent
• The composition of inference
• Orchestrating LLM, tools, and information sources
Agentic
• The composition of agents, with dynamic context
• Workflow to autonomously achieve a desired outcome
27 Copyright © 2026, Oracle and/or its affiliates
28. 29. 30. Foundational
building blocks
in the JDK
Panama - Foreign Function & Memory (FFM) API
Deploy and execute ONNX models using native ONNX runtime
Panama - Vector API
Implement model runtimes on the CPU
Babylon - HAT
Implement model runtimes on the GPU
Valhalla - Express more numeric types arrays of which are flat in memory
Detroit - Deploy and execute PyTorch models
30 Copyright © 2026, Oracle and/or its affiliates
31. 32.