0

Be kind. I am still learning and probably will use the wrong terminology.

I have a project where we were handed a JAR file. Locally, the Project is building in Visual Studio Code and running fine on my local PC.

I commit and push to remote. The build works in Bamboo. When I deploy via Octopus to Openshift "Dev" environment, I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: algorithmConfiguration/Class1
  at com.my.cgf.tazb.app.Main.main (Main.java:296)
Caused by: java.lang.ClassNotFoundException: algorithmConfiguration.Class1
  at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass (Unknown Source)
  at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass (Unknown Source)
  at java.base/java.lang.ClassLoader.loadClass (unknown Source)
  ... 1 more

line 296 in main.java is: Class1 manageClass = new Class1();

The JAR came from converting MATLAB. It has the Class1.class inside the JAR.

Again, this works fine locally. I think it is because our build system builds in Bamboo and then in Deploy it is a new "environment" and it can't find the JAR file in that new environment, but I happen to have it on my PC. I assume the deployment doesn't deploy with exactly my source directory/file structure.

I've searched and I'm thinking that when I deploy, the deployment needs to be told where to put the JAR in the correct location?

Thank you for your help

HJunk
  • 11
  • 2

0 Answers0