Compiling and running the java and maven application with the same encoding

0

I have an application that I'm compiling using maven from the command line. In my pom.xml I specified encoding using:

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

And at the time I'm going to run the application I use the following command:

"C:\Program Files\Java\jdk1.8.0_171\bin\java" -Dfile.encoding=UTF-8 -jar myJar.jar

However, when I run the application at the prompt appear strange characters ... type:

ADVERTÊNCIA ou INFORMAÇÕES

    
asked by anonymous 01.08.2018 / 20:46

0 answers