result after compilation

result after compilation

public class MainCls { public static void main(String argv) { System.out.println("My text"); } }

View Answers

July 11, 2011 at 12:08 PM

The above code gives following error:

java.lang.NoSuchMethodError: main

This error occurs because you haven't specify string array in main method.

We have corrected your code:

public class MainCls {
    public static void main(String []argv) { 
        System.out.println("My text");
        }
        }

It gives following output:

My text

Ads









Related Tutorials/Questions & Answers:
result after compilation
result after compilation  public class MainCls { public static void main(String argv) { System.out.println("My text
compilation problem
compilation problem  struts 2.0 : i have included all 5 jars in lib folder,but its giving compilation problem that package open symphony doesnot exist ( though i imported it) & cant recognise SUCCESS etc symbol.i think i
Advertisements
compilation problem
compilation problem  struts 2.0 : i have included all 5 jars in lib folder,but its giving compilation problem that package open symphony doesnot exist ( though i imported it) & cant recognise SUCCESS etc symbol.i think i
java compilation error - Hibernate
).By that only this exeptions rise dude..Try it and give your result after...java compilation error  hi, i have made an registration page whosevalues should be inserted into database. i have used hibernate and eclipse
compilation fail
compilation fail  package jsptube.tutorials.servletexample; import javax.servlet.GenericServlet; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import java.io.IOException; import
java Compilation
java program compilation time following error is occur in my system Note
java Compilation
java program compilation time following error is occur in my system Note
java Compilation
java program compilation time following error is occur in my system Note
compilation error
compilation error  Hi my program below is not compiling,when I try to compile it i'm getting the error message "tool completed with exit code 1".The loop has to be at the end of the program can you help me. Blockquoteimport
compilation errors
compilation errors  package jsptube.tutorials.servletexample; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import
compilation error - Java Beginners
compilation error  class s { public static...; //Hexadecimal number System.out.println("Value = 10(10): result ="+a); System.out.println("Value = 8(8*1+8*0): result ="+b); System.out.println("Value
Java compilation error - Java Beginners
Java compilation error  Method overridden problems in compile time error
command prompt is compilation is not working
command prompt is compilation is not working   Dear java users can anyone help me to run the program in command line prompt i tried by selecting the environment variable and class path and path in my system my program
ModuleNotFoundError: No module named 'result'
: pip install result After the installation of result python library...ModuleNotFoundError: No module named 'result'  Hi, My Python... 'result' How to remove the ModuleNotFoundError: No module named 'result'
display result
display result  i want a code that takes input from user through dropdown box and display the result into table.all the values regarding the user input must be displayed. i am using mysql database   hi i want study
java compilation error - Java Beginners
java compilation error  i have downloaded java software(version 6 update 12) from www.java.com. whenever i try to compile the program using javac command, error message is displayed javac is not recognized as an internal
ModuleNotFoundError: No module named 'cdumay-result'
with following command: pip install cdumay-result After...ModuleNotFoundError: No module named 'cdumay-result'  Hi, My... 'cdumay-result' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'cdumay-result'
with following command: pip install cdumay-result After...ModuleNotFoundError: No module named 'cdumay-result'  Hi, My... 'cdumay-result' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'deferred-result'
python with following command: pip install deferred-result After...ModuleNotFoundError: No module named 'deferred-result'  Hi, My... named 'deferred-result' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'grep-result'
with following command: pip install grep-result After the installation of grep...ModuleNotFoundError: No module named 'grep-result'  Hi, My Python... 'grep-result' How to remove the ModuleNotFoundError: No module named '
ModuleNotFoundError: No module named 'result_py'
command: pip install result_py After the installation of result_py...ModuleNotFoundError: No module named 'result_py'  Hi, My Python... 'result_py' How to remove the ModuleNotFoundError: No module named 'result
ModuleNotFoundError: No module named 'result-quality'
python with following command: pip install result-quality After...ModuleNotFoundError: No module named 'result-quality'  Hi, My... named 'result-quality' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'thumbor_no_result'
After the installation of thumbor_no_result python library, ModuleNotFoundError...ModuleNotFoundError: No module named 'thumbor_no_result'  Hi, My... named 'thumbor_no_result' How to remove the ModuleNotFoundError: No module
ModuleNotFoundError: No module named 'typed-result'
with following command: pip install typed-result After the installation...ModuleNotFoundError: No module named 'typed-result'  Hi, My Python... 'typed-result' How to remove the ModuleNotFoundError: No module named '
Does the object type known during compilation in Java?.
Does the object type known during compilation in Java?.  class A { } class B extends class A { } class checkType { public static void main(String[] args) { A ObjA = new B();/// Here ObjA is of type A--> this fact
Java Compilation error. Hibernate code problem. Struts first example - Hibernate
Java Compilation error. Hibernate code problem. Struts first example  Java Compilation error. Hibernate code problem. Struts first example
hide and show result in jsp
hide and show result in jsp  what codes do i have to change to make my result display if only i enter the correct value? suppose if i click search,then the result will be display at the bottom.. if not.. only the header
Sort Result set
Sort Result set   I build a connect for my page with the database and then read all rows and show it in a table, I want to change the view of my data to be sorted uppon a specific column when click on the column name, so what
result analysis issue
result analysis issue  i have given 100 users in my thread group for http sampler.some threads r getting response and some threads r getting error response.the error response shown in view results tree listener is as shown below
ModuleNotFoundError: No module named 'boois_return_result'
_result After the installation of boois_return_result python library...ModuleNotFoundError: No module named 'boois_return_result'  Hi, My... named 'boois_return_result' How to remove the ModuleNotFoundError
ModuleNotFoundError: No module named 'colcon-lcov-result'
After the installation of colcon-lcov-result python library...ModuleNotFoundError: No module named 'colcon-lcov-result'  Hi, My... named 'colcon-lcov-result' How to remove the ModuleNotFoundError: No module

Ads