Forum Discussion
While executing, when JVM does not find a .class file with the specified name then a run time error occurs saying “Could not found or load main class”. The reason why this happens is mostly due to:
- Wrong Class Name
- Invalid Classpath
Main class could not be found when there is typo or wrong syntax in the fully qualified java class name or it does not exist in the provided classpath. You must ensure that you add the location of your .class file to your classpath. So, if its in the current folder, add . to your classpath. Note that the Windows classpath separator is a semi-colon(
- NikoR5 years ago
Occasional Contributor
This problem still persist in Quartus Prime Pro 20.2.
The BoardTestSystem.sh supplied with the cyclone-10-gx-kit-ocllateral.zip seems to be created with Quartus 15.1. Maybe it should have been updated?
It looks like the class in question is embedded in the bts.jar file:
Why is it not recognized when running the Java environment supplied with the Quartus installation?
Are there any options or switches that can be used with the java command to point to where the class is located?
- jomarm105 years ago
New Contributor
Did anybody make any progress on this issue.
I am running Quartus Prime Pro 20.2 as well on a Ubuntu 18.04 LTS and I am facing the same problem