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?

22nd Nov 2019, 7:39 PM
Raymond Johnson Jr.
Raymond Johnson Jr. - avatar
1 ответ
0
Because we cannot create packages in sololearn codeplayground..
22nd Nov 2019, 7:43 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar