Skip to content

hpi-swa-lab/graalpython-java-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java and Python Integration Example for GraalVM

This example demonstrates how to integrate Python on GraalVM with a Java application.

Getting Started

  1. Download GraalVM CE or EE and set your JAVA_HOME to point to it. Make sure you have installed Python support:
"${JAVA_HOME}"/bin/gu install python
  1. Compile the example:
mvn compile
  1. Run the example:
mvn exec:exec

Extending and Experimenting

This repository is meant as an example and a jumping off point. There are comments in the Java and Python files and the pom.xml for those aspects that are of particular interest for Java and Python integration on GraalVM. The example is kept small on purpose to allow reading through all of those files and experiment.

Blog post https://medium.com/graalvm/supercharge-your-java-apps-with-python-ec5d30634d18