Skip to content

Generic Java

Creates a container that runs java.

egg-generic-java.json

updated

Install

Installer image
ghcr.io/ptero-eggs/yolks:debian
Install script
10 lines

Images

New servers use the first image. Users can change it on the Startup page.

  • Java 8 default ghcr.io/ptero-eggs/yolks:java_8
  • Java 11 ghcr.io/ptero-eggs/yolks:java_11
  • Java 16 ghcr.io/ptero-eggs/yolks:java_16
  • Java 17 ghcr.io/ptero-eggs/yolks:java_17
  • Java 19 ghcr.io/ptero-eggs/yolks:java_19
  • Java 21 ghcr.io/ptero-eggs/yolks:java_21

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

1 variable

Startup command

java -Dterminal.jline=false -Dterminal.ansi=true -jar sneakyhub.jar
  • JARFILEUsers can edit

    required|string|max:50

Wings

Stop command
^C (SIGINT)
Running when the console shows
change this text

Readme

Java Language Generic

This egg is designed to run any generic Java application, allowing users to pull their own Java source code from a Github repository. This egg is also compatible with Kotlin.

There is an option to allow a user to upload their own files to run a bot.

The startup configs and commands may need changing to actually function properly.

Configuration

The server will be stuck as starting until the egg Start Configuration is modified. You have to edit the text to match something your bot will print for Pterodactyl panel to detect it as running. image

You can use arrays to have multiple different values when different bots are being used

{
  "done":[
    "change this text 1",
    "change this text 2"
  ]
}

Changes

  1. Fix docker image case

    · Daniel Barton · c6218f8

  2. Update repo names and remove some GH stuff for now

    · Daniel Barton · 8a5189b

  3. Increase characters from 20 to 50 for jar name in Java egg (#4)

    · TonimatasDEV · cb78143

  4. change over for pelican-eggs layout

    · Michael (Parker) Parker · 9a21770

  5. Update Java versions for certain Minecraft eggs

    · powercas_gamer · ca8a749

  6. fix images

    · Torsten Widmann · 350f922

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 10 lines bash in ghcr.io/ptero-eggs/yolks:debian Show
#!/bin/bash
# Java Installation Script
#
# Server Files: /mnt/server
PROJECT=java

apt update
apt install -y curl jq

cd /mnt/server