I just went through first level and wrote below program as requested :
import java.io.*;
public class Solution
{
public static void main(String[] args)
{
System.out.println("Amigo is very smart");
}
}
This program worked on my local system not on this site.
Can anybody please explain what is missing here?
Errors in simple java pgm on Codegym editor
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Dipali
14 December 2018, 04:25
why should I import package com.codegym.task.task01.task0142 pkg if this program is working fine on my local system
0
Dipali
9 December 2018, 06:47
com.javarush.task.common.model.execution.UnhandledException: java.lang.ClassNotFoundException: com.javarush.task.task01.task0142.Solution
at com.javarush.task.common.model.execution.ExecuteService.execute(ExecuteService.java:107)
at com.javarush.task.app.execution.ExecutionService.execute(ExecutionService.java:107)
at com.javarush.task.app.execution.ExecutionService.main(ExecutionService.java:244)
at com.javarush.task.app.MainApplication.main(MainApplication.java:49)
Caused by: java.lang.ClassNotFoundException: com.javarush.task.task01.task0142.Solution
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.javarush.task.common.model.execution.ExecuteService.detectMainMethod(ExecuteService.java:51)
at com.javarush.task.common.model.execution.ExecuteService.execute(ExecuteService.java:99)
... 3 more
0
Khurram
9 December 2018, 08:27
the package statement at the start of the code might be incorrect, can you check if it is
package com.codegym.task.task01.task0142;
or something else
0
Khurram
9 December 2018, 05:45
the program is indeed working fine on INtelliJ, can you share what error(s) you are getting on the site?
0