You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot even run basic Java (with Gradle) autogenerated project #2392
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.
Also fails when running from "Java Projects" thingy (but different reason, malformed shell command)
PS C:\Users\PsychoX\Desktop\Środa\Grafika\Renderer> gradle 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:3100' '-XX:+ShowCodeDetailsInExceptionMessages' '@C:\Users\PsychoX\AppData\Local\Temp\cp_a5r05w7gbm9zfjlzvure95lfx.argfile' 'Renderer.App'
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
FAILURE: Build failed with an exception.
* What went wrong:
Project 'c' not found in root project 'Renderer'.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 38s
Error: could not open `C:\Users\PsychoX\AppData\Local\Temp\cp_a5r05w7gbm9zfjlzvure95lfx.argfile'
``
I can't understand, why isn't it working... The file is compiled into .class. If I decompile it, it had the proper main class. Class paths are set properly (inside file included to args @...; contains -cp "C:\\Users\\PsychoX\\Desktop\\Środa\\Grafika\\Renderer\\app\\bin\\main; ...).
I tried modifying launch.json but it seems it doesn't have any effect - can't even add more class paths or pass additional arguments.
When I manually do:
PS C:\Users\PsychoX\Desktop\Środa\Grafika\Renderer\app\bin\main> & 'C:\Users\PsychoX\.vscode\extensions\redhat.java-1.4.0-win32-x64\jre\17.0.2-win32-x86_64\bin\java.exe' 'Renderer.App'
Hello World
It works, so why isn't the built-in stuff working?
I "love" how Java brands itself as multiplatform and portable, when it can't handle Unicode characters left and right... And not even giving clear error/warning message - even working with GCC warnings is easier to read at this point...
Activity
AgainPsychoX commentedon Apr 6, 2022
Also fails when running from "Java Projects" thingy (but different reason, malformed shell command)

AgainPsychoX commentedon Apr 6, 2022
I can't understand, why isn't it working... The file is compiled into
.class. If I decompile it, it had the proper main class. Class paths are set properly (inside file included to args@...; contains-cp "C:\\Users\\PsychoX\\Desktop\\Środa\\Grafika\\Renderer\\app\\bin\\main; ...).I tried modifying
launch.jsonbut it seems it doesn't have any effect - can't even add more class paths or pass additional arguments.When I manually do:
It works, so why isn't the built-in stuff working?
testforstephen commentedon Apr 6, 2022
The issue is that your path contains some unicode character
Środa, and Java debug extension doesn't handle it well.Could you move the issue to https://github.com/microsoft/vscode-java-debug/issues?
AgainPsychoX commentedon Apr 6, 2022
I "love" how Java brands itself as multiplatform and portable, when it can't handle Unicode characters left and right... And not even giving clear error/warning message - even working with GCC warnings is easier to read at this point...
Also, why does the issue still occur when there were similar issues in the past? https://github.com/microsoft/vscode-java-debug/issues?q=Unicode
Anyway, thanks for help.
fbricon commentedon Apr 6, 2022
@testforstephen you're a contributor to both vscode-java and vscode-java-debug, so please transfer that issue over there. Else just close it here.
testforstephen commentedon Apr 6, 2022
Tracked this issue at microsoft/vscode-java-debug#1149