Skip to content

How to set the *.argfile encoding type ? #1112

@aewnfin

Description

@aewnfin

[provide a description of the issue]

Environment
  • Operating System:
  • JDK version:
  • Visual Studio Code version:
  • Java extension version:
  • Java Debugger extension version:
Steps To Reproduce
  1. .vscode/settings.ison as follows:
    "[java]": {
    "files.encoding": "utf8"
    },
    The command line is shown below:
    java @*.argfile com.example.demo.MainApp
    错误: 无法初始化主类 com.example.demo.MainApp
    原因: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
  2. The encoding of the file *.argfile is utf-8 ,java couldn't identify it correctly
  3. I want to set the encoding of the file to GBK ,what should I do ?
    The following settings are not valid:
    "[bat]": {
    "files.encoding": "gbk"
    },
    "files.associations": {
    "*.argfile": "bat"
    }

[attach a sample project reproducing the error]
attach logs

Current Result
Expected Result
Additional Informations

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions