After the new Katalon update, I received the following error… not sure how to fix it.
“Java was started but returned exit code=1”
2 Likes
At first, you should make a search in Google with key ”Java was started but returned exit code=1”. Then you will receive several resources concerned about that massage. These resources would suggest something to you.
1 Like
Fix: “Java was started but returned exit code=1” in Katalon Studio
Step-by-Step Resolution
- Java Compatibility Check
- Verify Java Install:
bash
java -version # Expect output like Java 17 (e.g., "17.0.6")
- Fix Missing Java:
Install Java 17 via:
bash
# Mac: Use Homebrew
brew install zulu17
# Windows: Download from Zulu’s site
- Set JAVA_HOME:
bash
# Mac
export JAVA_HOME=$(/usr/libexec/java_home -v 17)
# Windows
Set environment variable: JAVA_HOME = path_to_jdk17
- Clean Reinstall
- Full Uninstall:
bash
# Mac
rm -rf ~/Applications/Katalon\ Studio.app
rm -rf ~/Library/Application\ Support/Katalon
# Windows
Revo Uninstaller → Remove Katalon + all config
- Fresh Install:
Download latest version from Katalon Website.
3.Deselect “Java Optional”* during install → Use existing Java.
- Increase Memory Allocation
- Modify Katalon.ini:
text
# Mac: Katalon Studio.app/Contents/MacOS/Katalon.ini
# Windows: Katalon.ini in installed directory
-Xms1g -Xmx2g # Adjust based on RAM (e.g., 4GB → -Xms4g -Xmx4g)
- Reset Workspace
- New Workspace:
File → Switch Workspace
→ Choose new folder → Recreate project
If error persists, Provide These Logs:
- Error Log:
bash
# Mac
tail ~/Library/Application\ Support/Katalon/App setName']/config/.metadata/.plugins/org.eclipse.ui.workbench/log
# Windows
%HOMEPATH%.kks\latestVersion\.metadata\.plugins\org.eclipse.ui.workbench\log
- Java Runtime Verification:
bash
javac -version # Should show 17
1 Like
Welcome to the community, @JP_FLT!
We’re glad to have you here, let us know how it went, we would love to hear from you