i got illegal start of expression error , plese tell me the mistake where i did...

i got illegal start of expression error , plese tell me the mistake where i did...

 import org.springframework.context.*; 
 import java.util.*;
 public class MyListener implements ApplicationListener 
 {
public static void main(String[] args) throws Exception 
{
    long sttime,endtime;

    public void onApplicationEvent(ApplicationEvent ae)
    {

        if(ae.toString().indexOf("ContextRefreshed")!=-1)
        {
            System.out.println("App ctx started at"+new java.util.Date());
            sttime=System.currentTimeMillies();
        }//if
        if(ae.toString().indexOf("Context stopped")!=-1)
        {
            System.out.println("App ctx stpped at"+new java.util.Date());
            endtime=System.currentTimeMillies();
            System.out.println("Appctx is in running mod for"+(endtime-sttime)+"ms");
        }//if
    }//method

}//main

}//class

View Answers

Ads









Related Tutorials/Questions & Answers:
i got illegal start of expression error , plese tell me the mistake where i did...
i got illegal start of expression error , plese tell me the mistake where i did...   import org.springframework.context.*; import java.util.*; public class MyListener implements ApplicationListener { public static void main
illegal start of expression in servlet error..
illegal start of expression in servlet error..  hello Sir, here is my servlet code and i am getting illegal start of expression error..., String Usuario, String Email) {" plz help me out to solve the problem .thank you
Advertisements
Please tell me where I can find tutorials on spring hibernate?
Please tell me where I can find tutorials on spring hibernate?  Hello, Please tell me where I can find tutorials on spring hibernate? Thanks..   Dear Friend, You can find some good tutorials on Spring Hibernate here
I GOT ERROR FOR MY PROJECT
I GOT ERROR FOR MY PROJECT  Dear Friend/ RoseIndia Team, Firstly I would to thank u Guys help me so many time.. I got error on my little project when running at server. please correctly my error Guys... ERROR CODE: "LOGIN
Where do I start machine learning and AI?
: Where do I start machine learning and AI? Try to provide me good examples or tutorials links so that I can learn the topic "Where do I start machine...Where do I start machine learning and AI?  Hi, I am beginner in Data
I am new to ML/AI. Where do I start learning?
. Where do I start learning?". Also tell me which is the good training... to learn: I am new to ML/AI. Where do I start learning? Try to provide me good...I am new to ML/AI. Where do I start learning?  Hi, I am beginner
I want to learn Machine Learning, where should I start?
"I want to learn Machine Learning, where should I start?". Also tell me...I want to learn Machine Learning, where should I start?  Hi, I am... for the tutorials to learn: I want to learn Machine Learning, where should I start? Try
i got an error while compile this program manually.
i got an error while compile this program manually.  import... mapping.findForward("errors.jsp"); } } i set both servlet,struts jar files and i got an error in saveErrors() error Heading cannot find
plese tell me the control flow of this program
plese tell me the control flow of this program  public class... k....? plese tell me the control flow... i=1; i<=9; i++) { System.out.println
this is my javascript code and i am not understanding the mistake in this,please help me?
this is my javascript code and i am not understanding the mistake in this,please help me?  <html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail
i have got error while compiling simple tag handler
i have got error while compiling simple tag handler   javac.servlet.jsp not found! tell me what are the jar files required to run simple tag handler...;it is : javax.servlet.jsp only but getting error wt is reason
when I run exiting project that time I got error, I want solution on it?
when I run exiting project that time I got error, I want solution on it?  Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select initcap(ename),job from emp where substr(job,4,length(job,4,3)))='age
Please tell me how can i convert string to timer
Please tell me how can i convert string to timer  Please tell me how can i convert string to timer
ModuleNotFoundError: No module named 'i-did'
ModuleNotFoundError: No module named 'i-did'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'i-did..., ModuleNotFoundError: No module named 'i-did' error will be solved. Thanks
Where can I start learning how to use TensorFlow?
Where can I start learning how to use TensorFlow?  Hi, I have finished with my MCA and during studies I learned Java. I have also knowledge of C... start learning TensorFlow? Where can I start learning how to use TensorFlow
Where can I start learning how to use TensorFlow?
Where can I start learning how to use TensorFlow?  Hi, TensorFlow is becoming programming language of choice among data scientist. I also want to learn TensorFlow. Where can I start learning how to use TensorFlow? Thanks
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select length(ename)||' charecters exist in '||initcap(ename)||'s name' as "names and length" from emp
how can i get output pls urget tell me
how can i get output pls urget tell me  HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
Please tell me how I can access a field (data type char) of resultset in a java class
Please tell me how I can access a field (data type char) of resultset in a java class  I have created a table named empdetails in postgreSql 8.4...("empsex")); as erroneous. There is no method like getChar() also. Please tell me
illegal start of type
illegal start of type  Hi, This is my code i m getting illegal start of type as error when i m compiling it,can anyone pls help me to correct this error. public class WriteByteArrayToFile { public static void main(String
illegal start type, HELP!
is " + shipping + " dollars."); } } } Illegal start type error? help?   ...illegal start type, HELP!  import java.util.Scanner; public class...;Hi Now the is running here...... I think you have made mistake here double
i got an exception while accept to a jsp
i got an exception while accept to a jsp  type Exception report message description The server encountered an internal error... in a file.later i changed it to ANSII problem is resolved
I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way.....
I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way.....  I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please
pls tell me the difference between the run() and start() in threads in java....
pls tell me the difference between the run() and start() in threads in java....  difference between the run() and start() in threads in java
regular expression expalanation i need
regular expression expalanation i need  hi......... here is my code could explain it <html> <script language = "Javascript">... your regular expression. ^ shows beginning of string
How can I start big data?
start big data? Try to provide me good examples or tutorials links so that I can learn the topic "How can I start big data?". Also tell me which...How can I start big data?  Hi, I am beginner in Data Science
How do I start a data mining company?
: How do I start a data mining company? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start a data mining...How do I start a data mining company?  Hi, I am beginner in Data
How do I start learning AI?
start learning AI? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start learning AI?". Also tell me which...How do I start learning AI?  Hi, I am beginner in Data Science
How do I start a data science career?
: How do I start a data science career? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start a data science...How do I start a data science career?  Hi, I am beginner in Data
How do I start learning machine learning?
: How do I start learning machine learning? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start learning...How do I start learning machine learning?  Hi, I am beginner in Data

Ads