Skip to content

Error in running java code with external jar while the path includes chinese  #1012

@F-19-F

Description

@F-19-F

[provide a description of the issue]

Environment
  • Operating System:Windows 10 19042.985
  • JDK version: 15.0.2
  • Visual Studio Code version: 1.56.2
  • Java extension version: v0.16.0
  • Java Debugger extension version: v0.34.0
Steps To Reproduce
  1. Just open a simple dir(the parent includes chinese) and create a java source file to active java extension;
  2. import jar library
  3. Run code that uses library classes
  4. Errors happen
Current Result

terminal just says Exception in thread "main" java.lang.NoClassDefFoundError

Expected Result

running code as expected

Additional Informations

I just cpoy the args and input it into Java Process Console manualy,it works well.

import java.io.IOException;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
class entry{
    public static void main(String[] args) throws IOException {
        Connection con = Jsoup.connect("http://www.baidu.com").followRedirects(true);
        Connection.Response res = con.execute();
        String text = res.body();
        System.out.println(text+"\n");
    }
}

by clicking run
image
manually input works well

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions