Answer the question
In order to leave comments, you need to log in
Jar file crashes due to PDF output button?
After launching the jar file and passing the authorization window, the jar crashes. At random, it was revealed that everything breaks due to two lines of the button for creating a PDF file. In my form, the salary is calculated and the variables are output to the jar file. Inside the development environment, the form works perfectly, but something goes wrong in the jar file. For pdf I use itextpdf library. I think it's all about my pom.... Can you tell me what the problem is ( Here is my pom:
project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
modelVersion 4.0.0 /modelVersion
groupId pdf /groupId
artifactId pdf /artifactId
version 1.1 /version
packaging jar /packaging
name pdf_create /name
description pdf_create for kurs /description
url http://maven.apache.org /url
build
finalName CreatePDF /finalName
defaultGoal package /defaultGoal
pluginManagement
plugins
plugin
artifactId maven-compiler-plugin</artifactId
version>3.3</version
<configuration
source>1.8</source
target>1.8</target
/configuration>
/plugin>
plugin>
groupId>org.apache.maven.plugins</groupId
artifactId>maven-jar-plugin</artifactId
version>3.1.1</version
<configuration
<archive
<manifest
mainClass>Calcul.Form</mainClass
</manifest
</archive
</configuration
</plugin
</plugins
</pluginManagement
</build
<dependencies
<dependency
groupId>junit</groupId
artifactId>junit</artifactId
version>4.12</version
</dependency
<dependency
groupId>com.itextpdf</groupId
artifactId>itextpdf</artifactId
version>5.5.13.2</version
/dependency>
<dependency
groupId>org.bouncycastle</groupId
artifactId>bcprov-jdk15on</artifactId
version>1.66</version
</dependency
/dependencies>
/project>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question