Skip to content

java.lang.ClassNotFoundException #692

@jadelike-wine

Description

@jadelike-wine

I can run my code in cmd . But my code can't run in vscode.
error: java.lang.ClassNotFoundException
image
PS C:\Users\10156\vscode\Test> cd 'c:\Users\10156\vscode\Test'; & 'C:\Users\10156.vscode\extensions\vscjava.vscode-java-debug-0.22.0\scripts\launcher.bat' 'C:\Program Files\Java\jdk-12.0.2\bin\java' '--enable-preview' '-Dfile.encoding=UTF-8' '-cp' 'C:\Users\10156\AppData\Roaming\Code\User\workspaceStorage\64ad1d34ecc58c3f8dcf9119a054a187\redhat.java\jdt_ws\Test_dff30b5c\bin' 'test'
错误: 找不到或无法加载主类 test
原因: java.lang.ClassNotFoundException: test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions