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
Unicode character in class name will fail to run #780
This error is a manual check from java debugger, we can fix it, but i'm afraid you may meet other problems at running class with unicode name. So please ignore this error first, and click "Fix" button to go on and see whether it works.
And when i tried to use javac in CMD to compile a class with unicode in the file name, actually it won't succeed.
It is working out of the box with maven compile. For javac via console you have to add "javac -encoding utf8 SüperClass.java".
Everything else regarding unicode is luckily working/running without a problem (now in 2020). I have an already deployed & running project (created with eclipse/maven) which i was trying to move to vscode now.
If i press 'Fix' and select the class to run an error shows up: Fehler: Hauptklasse SüperMain konnte nicht gefunden oder geladen werden Ursache: java.lang.ClassNotFoundException: SüperMain
Actually i get the same error when trying it in CMD and other IDEs like Eclipse/Intellij IDEA.
Below are the steps i tried in CMD. javac works, but java execution will throw ClassNotFoundException. javac -encoding utf8 xyz java -Dfile.encoding=UTF-8 -cp . xyz
Activity
testforstephen commentedon Mar 23, 2020
This error is a manual check from java debugger, we can fix it, but i'm afraid you may meet other problems at running class with unicode name. So please ignore this error first, and click
"Fix"button to go on and see whether it works.And when i tried to use
javacin CMD to compile a class with unicode in the file name, actually it won't succeed.wenzel-k commentedon Mar 24, 2020
It is working out of the box with maven compile. For javac via console you have to add "javac -encoding utf8 SüperClass.java".
Everything else regarding unicode is luckily working/running without a problem (now in 2020). I have an already deployed & running project (created with eclipse/maven) which i was trying to move to vscode now.
testforstephen commentedon Mar 24, 2020
Ping again.
ConfigError: 'de.süper.SüperMain' is not a valid class name.is easy to fix, but i need know whether there are other problems.wenzel-k commentedon Mar 24, 2020
If i press 'Fix' and select the class to run an error shows up:
Fehler: Hauptklasse SüperMain konnte nicht gefunden oder geladen werden Ursache: java.lang.ClassNotFoundException: SüperMaintestforstephen commentedon Mar 25, 2020
Actually i get the same error when trying it in CMD and other IDEs like Eclipse/Intellij IDEA.
Below are the steps i tried in CMD. javac works, but java execution will throw ClassNotFoundException.
javac -encoding utf8 xyzjava -Dfile.encoding=UTF-8 -cp . xyzwenzel-k commentedon Apr 2, 2020
Here is a working example:
Windows 10/openjdk 11.0.3 2019-04-16/Git Bash
Will print