0
Why would my package cause the code to come up with an error when I put it int Code Playground?
https://code.sololearn.com/c2BjtZUXt8VM/#java This Code works on IntelliJ, but when I put it into Sololearn's Playground it doesn't work. It comes up with the Error - java.lang.NoClassDefFoundError: com/codewithray/Main (wrong name: Main) . If I take out the package and run it, it works fine. Can someone explain why this happens?
1 Antwort
0
Because we cannot create packages in sololearn codeplayground..