REPOSITORY OVERVIEWLive repository statistics
★ 4Stars
⑂ 1Forks
◯ 0Open issues
◉ 4Watchers
65/100
OPENREPOHUB HEALTH SIGNALHealthy signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
100 Community adoption25% weight
9 Maintenance state20% weight
100 License clarity10% weight
0 Project information10% weight
75 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
The jolt-jni-docs project provides
documentation and sample applications
for the Jolt-JNI physics library.
It contains 12 subprojects:
- docs: Antora external documentation for Jolt JNI, including a tutorial
- java-apps: all 27 sample applications mentioned in the tutorial, in Java
- scala-apps: all 27 sample applications, ported to Scala
- jython-apps: 16 sample applications ported to Jython Python
- kotlin-apps: 9 sample applications ported to Kotlin
- nashorn-apps: 8 sample applications ported to Nashorn JavaScript
- jruby-apps: 4 sample applications ported to JRuby Ruby
- groovy-apps: 3 sample applications ported to statically-compiled Groovy
- groovy223-apps: 3 sample applications ported to scripted Groovy
- luaj-apps: a sample application ported to Luaj Lua
- luajava-apps: a sample application ported to Luajava Lua
- src/clojure: a sample application ported to Clojure
For visualization, many of the sample applications utilize
the SPORT graphics engine for Jolt,
which is a separate open-source project at GitHub.
Complete source code is provided under
a 3-clause BSD license.
How to build and run jolt-jni-docs from source
Sample applications (except Clojure)
- Install a Java Development Kit (JDK),
version 21 or higher,
if you don't already have one.
- Point the
JAVA_HOME environment variable to your JDK installation:
(In other words, set it to the path of a directory/folder
containing a "bin" that contains a Java executable.
That path might look something like
"C:\Program Files\Eclipse Adoptium\jdk-21.0.3.7-hotspot"
or "/usr/lib/jvm/java-21-openjdk-amd64/" or
"/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home" .)
- using Bash or Zsh:
export JAVA_HOME=" path to installation "
- using Fish:
set -g JAVA_HOME " path to installation "
- using Windows Command Prompt:
set JAVA_HOME=" path to installation "
- using PowerShell:
$env:JAVA_HOME = ' path to installation '
- Download and extract the jolt-jni-docs source code from GitHub:
- using Git:
git clone https://github.com/stephengold/jolt-jni-docs.git
cd jolt-jni-docs
- Run the Gradle wrapper:
- using Bash or Fish or PowerShell or Zsh:
./gradlew build
- using Windows Command Prompt:
.\gradlew build
To run the Java version of the "HelloJoltJni" application:
- using Bash or Fish or PowerShell or Zsh:
./gradlew :java-apps:HelloJoltJni
- using Windows Command Prompt:
.\gradlew :java-apps:HelloJoltJni
Clojure sample applications
- Install a Java Development Kit (JDK),
if you don't already have one.
- Install a Leiningen build tool.
- Download and extract the jolt-jni-docs source code from GitHub.
lein run
Antora documentation
- Download and extract the jolt-jni-docs source code from GitHub.
- Edit "docs/playbook.yml" and replace "/home/sgold/NetBeansProjects/jolt-jni-docs"
with an absolute path to your checkout directory (2 places).
- Install Node.js
- Run the Antora site generator:
npx antora docs/playbook.yml
Cleanup
You can restore the project to a pristine state:
- using Bash or Fish or PowerShell or Zsh:
./gradlew clean
- using Windows Command Prompt:
.\gradlew clean