Forum Discussion
Hi, could you help check again your .class file name for your program. The compiler will generate the .class file with the exact same name given to the Java class in the program. You can refer to this link https://www.baeldung.com/java-could-not-find-load-main-class
- jrb1235 years ago
New Contributor
I have hit the same problem with the Stratix10 DX board test system (BTS) files. I'm running Ubuntu and I see the same same error: "Error: Could not find or load main class com.intel.bts.BtsApp" running any of the *.sh scripts in the board_test_system subdirectory of the devkit's examples.
This is the default version of the bts launcher:
#!/bin/sh
if [ "$QUARTUS_ROOTDIR" == "" ]; then
export QUARTUS_ROOTDIR=/tools/acds/15.1.2/current.linux/linux64/quartus
echo "Use default QUARTUS_ROOTDIR: $QUARTUS_ROOTDIR"
fi
export PATH=$QUARTUS_ROOTDIR/linux64/jre64/bin:$PATH
java -Xmx256m -jar bts.jarI don't think the way that script determines QUARTUS_ROOTDIR is a general solution, but even when I 'fix it' for my installation the command: java -Xmx256m -jar bts.jar gives the same error above.
Any suggestions on how to fix or debug this?
- JamesNewmanMyrtle5 years ago
New Contributor
I have the same problem, also running Ubuntu. No idea as to the solution as yet.
FWIW I found my BoardTestSystem.sh file was also slightly broken in that it seemed to have the wrong line endings.