I created a jar using the Export functionality in Eclipse and when I try to execute it in the following way it fails
java -jar Code.jar
However it works correctly for
java -Dfile.encoding=UTF-8 -jar Code.jar
Current manifest file
Manifest-Version: 1.0
Main-Class: test.Reader
Class-Path: .
How can I mention the encoding inside the manifest file? So that I dont have to mention it explicitly while running the jar file?