Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to run a Java app on Linux using the ZSH shell environment. The app is OCLE version 2.0.4

The app uses a shell script with the following code for starting the app:

Bash
#!/bin/sh
# The Java interpreter must be in PATH
# Set OCLE_HOME to the directory where the distribution was unpacked

OCLE_HOME=/home/user/ocle-2.0.4

if [ "$OCLE_HOME" == "" ]; then 
    echo "Please set the OCLE_HOME environment variable to the directory where the distribution was unpacked. "
    exit 1
fi

OCLE_LIB=${OCLE_HOME}/lib

java -Xms192m -Xmx192m -Djava.library.path=${OCLE_LIB} -classpath ${OCLE_LIB}/jgraph.jar:${OCLE_LIB}/kLF.jar:${OCLE_LIB}/template.jar:${OCLE_LIB}/velocity-dep-1.3.jar:${OCLE_LIB}/Whiteboard.jar:${OCLE_HOME}/bin ro.ubbcluj.lci.gui.mainframe.GApplication


Error output:

Terminal
Exception in thread "main" java.lang.ExceptionInInitializerError
at ro.ubbcluj.lci.ocl.batcheval.CustomizationDialog.updateTree(CustomizationDialog.java:189)
at ro.ubbcluj.lci.ocl.batcheval.CustomizationDialog.initialize(CustomizationDialog.java:120)
at ro.ubbcluj.lci.ocl.batcheval.CustomizationDialog.<init>(CustomizationDialog.java:26)
at ro.ubbcluj.lci.ocl.batcheval.BatchEvaluationSystem.<init>(BatchEvaluationSystem.java:105)
at ro.ubbcluj.lci.gui.mainframe.GApplication.main(GApplication.java:218)
Caused by: java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null
at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:232)
at ro.ubbcluj.lci.gui.tools.tree.SelectionTreeCellRenderer.<clinit>(SelectionTreeCellRenderer.java:39)
... 5 more




Thank you.

What I have tried:

I tried running the app using Oracle JDK 18 and OpenJDK 18 with the same result.
Posted
Updated 20-Jul-22 22:49pm

Caused by: java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null

You need to use the debugger to find out why that reference is null.
 
Share this answer
 
Thanks for the reply. Unfortunately, I'm not the one who created the application.
 
Share this answer
 
Comments
Richard MacCutchan 21-Jul-22 5:27am    
Then you need to talk to the person who is. No one here can access your system to find any more information.
Richard Deeming 22-Jul-22 6:43am    
If you want to reply to a solution, click the "Have a Question or Comment?" button under that solution and post a comment.

Do not post your comment as another "solution".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900