Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

result after compilation

Ads

 
 

Share on Google+Share on Google+

tejaswi
result after compilation
1 Answer(s)      6 years ago
Posted in : JavaMail

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

Ads
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
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
Advertisements
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
result problem
result problem  sir,i have written program given below but that program is not giving proper output.pls help me import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; class filedata extends
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
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
Webshpere compilation error
Webshpere compilation error   I want clear result . Thank you WSWS3166E: Error: No client transport named 'http' found. faultActor: null faultDetail: [10/5/10 13:19:40:937 EDT] 00000043 SystemOut O WSWS3166E: Error
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
compilation errors - Swing AWT
compilation errors  how to create a window with five textFields, five labels and three buttons
java compilation error - Applet
java compilation error  I am getting compilation error in the following code.: public void paint(Graphics g) { switch(screen) { case 0: g.drawString(line1,2,10); break; case 1
java compilation error - Hibernate
java compilation error  hi i am getting org.hibernate.exception.GenericJDBCException: Cannot open connection exception when runnig the code why this exception is coming
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
groovy compilation error - Framework
groovy compilation error  while i am running the grails application , i got the error message like: [groovyc...] [groovyc] 1 error Compilation error: Compilation Failed how we can resolve
"compilation error " & "throw an exception" - Java Beginners
. Will result in compilation error c. Will return the number of rows retrieved from..."compilation error " & "throw an exception"  Hello. I have a question here: Statement sql2 = con.createStatement(); int result
Result=Set - Java Beginners
Result=Set  Hi Friend, Can u tell how to get the count of records. in a select operation like sqlstmt="SELECT * FROM search_log_tab WHERE... result set, first move the pointer from first record to last record and get
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
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
write the result into excelsheet
write the result into excelsheet  package reader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import... the result in to the same excel file....... please help me. if username is superadmin
jdbc compilation error - JDBC
jdbc compilation error  java.lang.Exception: Problem in call_select when i am executing the program i am getting the above error. how can i resolve it?  Hi friend, plz specify in detail and send me code
compilation error - Java Beginners
compilation error  sir what is the error inthis code after executing the below code i got java.lang.NoSuchMethodError: main Exception in thread "main" package org.array; import java.io.*; public class Employee
Java compilation error - Java Beginners
Java compilation error  Method overridden problems in compile time error
java compilation error - Java Beginners
java compilation error  Dear Sir ........ I was installed the java soft ware in PC by following your guidelines only, after installing I'm writing my code through command line instead of a note pad but while compiling I'm
java compilation error,Struts2 - Struts
java compilation error,Struts2  hi, From last 3 days i m trying for image uploading through struts2 by taking the reference of file upload sample code from roseindia.net site,But i m unable to insert it into database,its
java compilation error - Applet
java compilation error  hi friends the following is the awt front design program error, give me the replay E:\ramesh>javac product.java Note: product.java uses or overrides a deprecated API. Note
Java Compilation error - SQL
Java Compilation error  ava.lang.NullPointerException at beanUtils.SaleHeaderUtility.getFullRemainPatientList(SaleHeaderUtility.java:754) at forms.ProcessDialog.updatePatientBalances(ProcessDialog.java:119