Error Message : Exception in thread "main" java.lang.NoClassDefFoundError

⚠️ Error: Class Not Found in JAR

📌 Causes

This error occurs because:

➡️ The required class is not included in the .jar build result file

Common causes:

🧠 Error Example

It usually appears like:
    java.lang.ClassNotFoundException
or
    NoClassDefFoundError    

🎯 Source of the Problem

1. External Libraries Not Included

➡️ If the class comes from an external library:

✔ Solution:

Copy file .jar to folder:
    ext_lib

2. Internal Library Not Enabled

➡️ If the class comes from the HGrid247 built-in library:

✔ Solution:

Open the menu:
    File → Additional Library


Check the required libraries (eg: JSON, JDBC, Grok, etc.)

✅ Solution Steps

🔧 Step-by-step
  1. Check class origin
    • Internal → enable in Additional Library
    • External → copy ke ext_lib
  2. Recompile workflow
    • Regenerate.jar

🧩 Tips Debug

✔ If used: ✔ Check the error log → usually mentions the name of the missing class