Ôîðóì ModelldepO  

Âåðíóòüñÿ   Ôîðóì ModelldepO > Ïîëåçíàÿ èíôîðìàöèÿ > Ññûëêè
Ññûëêè ññûëêè íà èíòåðåñíûå ðåñóðñû

Îòâåò
 
Îïöèè òåìû Îïöèè ïðîñìîòðà

Problem 1: No main manifest attribute Fix: Specify main class explicitly:

<dependency> <groupId>com.yourcompany</groupId> <artifactId>quark</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>$project.basedir/libs/quark.jar</systemPath> </dependency>

java -cp quark.jar com.example.MainClass Find the main class by examining the JAR:

jar tf quark.jar | grep -E 'Main.*\.class|Application\.class' Means dependencies are missing. Inspect the JAR’s dependencies:

dependencies implementation files('libs/quark.jar')

Quark.jar — ((full))

Problem 1: No main manifest attribute Fix: Specify main class explicitly:

<dependency> <groupId>com.yourcompany</groupId> <artifactId>quark</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>$project.basedir/libs/quark.jar</systemPath> </dependency>

java -cp quark.jar com.example.MainClass Find the main class by examining the JAR:

jar tf quark.jar | grep -E 'Main.*\.class|Application\.class' Means dependencies are missing. Inspect the JAR’s dependencies:

dependencies implementation files('libs/quark.jar')


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc. Ïåðåâîä: zCarot
Copyright © ModelldepO.ru 2006 -