Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error: Could not find or load main after upgrading to Java 1.8

Kawsion2 March 22, 2019

New to bamboo after upgrading bamboo project to Java 1.8 and upgrading to Maven 3 resulting jar file compiled in bamboo not including main project class in jar file. Resulting in error when attempting to execute jar:

Error: Could not find or load main class com.abcinc.filetester.FileTester

The main class definition is added to the manifest file but actual path is not included in the jar file produced. Compiling the project in netbeans resulting jar file works without issue.

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Built-By: bamboo
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_191
Main-Class: com.abcinc.filetester.FileTester

<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->

1 answer

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 15, 2019

Check if the Maven Executable path is correct as stated in Maven task fail with Could not find or load main class

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events