Skip to content

Cannot even run basic Java (with Gradle) autogenerated project #2392

Description

@AgainPsychoX

Cannot even run basic Java (with Gradle) autogenerated project.

Environment
  • Operating System: Windows 10
  • JDK version: OpenJDK
java version "17.0.2" 2022-01-18 LTS
Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
  • Visual Studio Code version: 1.66.0
  • Java extension version: v0.22.2
Steps To Reproduce
  1. Install Extension Pack for Java.
  2. Click Create Java Project.
  3. Select Gradle (will ask to install Gradle for Java).
  4. Select project location.
  5. Wait for initialization to finish.
  6. Try to run autogenerated basic project.
Current Result

Cannot use Java with Gradle in VS Code.

image

Logs: https://gist.github.com/AgainPsychoX/c78f9c43df3f65f339e4c89aa48098ea

Terminal:

PS C:\Users\PsychoX\Desktop\Środa\Grafika\Renderer>  c:; cd 'c:\Users\PsychoX\Desktop\Środa\Grafika\Renderer'; & 'C:\Users\PsychoX\.vscode\extensions\redhat.java-1.4.0-win32-x64\jre\17.0.2-win32-x86_64\bin\java.exe' '-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:1165' '-XX:+ShowCodeDetailsInExceptionMessages' '@C:\Users\PsychoX\AppData\Local\Temp\cp_a5r05w7gbm9zfjlzvure95lfx.argfile' 'Renderer.App'
Error: Could not find or load main class Renderer.App
Caused by: java.lang.ClassNotFoundException: Renderer.App
Expected Result

I hate Java, so ngl "not working" is expected result for me. Some could argue, it should "just" work - but not in Java world.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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