thank you so much i saw lot of videos but no one tell this approach . very helpful
in my case there is no "code runner executor map" section in the code.Then i have to add it, yeah now it worked
Thanks Man, The first method worked for me
Thanku so much very helpful
I have done the same as you have done in the video still the problem persist even i used powershell as well
Very helpful brother..... thanks you
nice one it worked in vs code but when i try to run in cmd it shows the same error , how to solve this?
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
aapne bola vo krne ke baad ye error dikha raha hai please help
thank you very much, it works
Sir in my case inside the settings code runner there is 10 line code only even i have installed code runner still not showing that code where i want to edit classpath
i don't have written code runner executer map in my vs code..... what should I do ? plzz tell
when after opening settings when i press that icon in the corner i am not able to see code runner executor map. why?
You need to install the code runner from the extensions. If that setting isn't there, the copy the setting from here:
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java -classpath . $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "python3 -u",
"perl": "perl",
"perl6": "perl6",
"ruby": "ruby",
"go": "go run",
"lua": "lua",
"groovy": "groovy",
"powershell": "powershell -ExecutionPolicy ByPass -File",
"bat": "cmd /c",
"shellscript": "bash",
"fsharp": "fsi",
"csharp": "scriptcs",
"vbscript": "cscript //Nologo",
"typescript": "ts-node",
"coffeescript": "coffee",
"scala": "scala",
"swift": "swift",
"julia": "julia",
"crystal": "crystal",
"ocaml": "ocaml",
"r": "Rscript",
"applescript": "osascript",
"clojure": "lein exec",
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
"racket": "racket",
"scheme": "csi -script",
"ahk": "autohotkey",
"autoit": "autoit3",
"dart": "dart",
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
"haskell": "runhaskell",
"nim": "nim compile --verbosity:0 --hints:off --run",
"lisp": "sbcl --script",
"kit": "kitc --run",
"v": "v run",
"sass": "sass --style expanded",
"scss": "scss --style expanded",
"less": "cd $dir && lessc $fileName $fileNameWithoutExt.css",
"FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
},
Thank you so much bro 😊
thank you brother...just liked and sus,,,,,
Thank you for the video anyway, but...
SOLVED ANOTHER WAY:
No method solved it for me, either of those presented in this video or in others. The only way for me was:
- when compiling, click on the "FIX" option
- then click on the "clear cache" option
... and SOLVED !
Thanks!
nice one thanks
thank you so much
mine still error after java -classpath . Pemahaman
PS D:\Belajar.java> java -classpath . Pemahaman
Error: Could not find or load main class Pemahaman
Caused by: java.lang.ClassNotFoundException: Pemahaman
please help me l suffer from this
It usually happens when you code in vscode. Change your filename to something else and then compile and run the bytecode. Hope it helps.
Thank you thank you thank you so much bhaiyaa
thankyou
W vid thank you sm
👍
code:
package Assignment1;
public class Greeting {
public static void main(String[] args) {
System.out.println("Hello
World");
}
}
Error:
Error: Could not find or load main class Greeting
Caused by: java.lang.NoClassDefFoundError: Assignment1/Greeting (wrong name: Greeting)
I tried all the steps but still getting the same error
sammeeee please help me, whenever i add the package, it shows error everytime
@@Spedmuel yeah! Instead of adding the package folder, I just open my vs code in another window with that assignment1 folder!
@@sajalchitlangia3033 can you please elaborate, like how to do that, idk how but after some time the error doesnt appear anymore but still it's annoying
thanks
thnkx
very helpful video but still showing error
Error: Could not find or load main class loopHollowSquare
Caused by: java.lang.NoClassDefFoundError: loopHollowSquare (wrong name: LOOPS/loopHollowSquare)
plzz help me sir🙏🙏🙏🙏
NoClassDefFoundError In Java
Reasons:
Java Virtual Machine is not able to find a particular class at runtime which was available at compile time.
If a class was present during compile time but not available in java classpath during runtime.
Read the 4th answer in this thread:
stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java
Hope it helps!
Java.lang.Classnot found exception: com.mysql.cj.jdbc.Driver
Could you solve this error using jdk19 and vs code
Please look for solution here....
stackoverflow.com/questions/17484764/java-lang-classnotfoundexception-com-mysql-jdbc-driver-in-eclipse
Otherwise I'd have to look at your project. You can share your github repo link here.
Thank u so much i watch a lot of videos expalaining that i have to chage the system variables but it didn't work for me. I'm glad i found your video