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









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
illegal start of expression - Java Beginners
illegal start of expression  here i attach my program.. which shows illgal start of expression.. plz aynone will silve this particular problem.. and correct this particular program.. plz help me
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
Java error illegal start of type
Java error illegal start of type       The Java error illegal start of type... start of type error. Output Compiling 1 
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
tell me i don't know about cms and history - Java Interview Questions
tell me i don't know about cms and history  what is cms,when can it is used ,what are the advantages and what are the more information about CMS
How do i start to create Download Manager in Java - JSP-Servlet
How do i start to create Download Manager in Java  Can you tell me from where do i start to develop Download manager in java
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
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 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
Where can I learn JavaScript
Where can I learn JavaScript  Hi, I have HTML knowledge and now want to learn JavaScript. Which is the best tutorials to learn JavaScript? Where can I learn JavaScript? Thanks   Hi, JavaScript is programming
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
How do I start a deep learning career?
: How do I start a deep learning career? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start a deep learning...How do I start a deep learning career?  Hi, I am beginner in Data
When should I start learning machine learning?
to learn: When should I start learning machine learning? Try to provide me good... start learning machine learning?". Also tell me which is the good training...When should I start learning machine learning?  Hi, I am beginner
How do I start learning data science?
: How do I start learning data science? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start learning data...How do I start learning data science?  Hi, I am beginner in Data
How can I start data analyst?
start data analyst? Try to provide me good examples or tutorials links so that I can learn the topic "How can I start data analyst?". Also tell me...How can I start data analyst?  Hi, I am beginner in Data Science
How do I start data mining?
start data mining? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start data mining?". Also tell me which...How do I start data mining?  Hi, I am beginner in Data Science
How do I start preparing for data science?
to learn: How do I start preparing for data science? Try to provide me good examples or tutorials links so that I can learn the topic "How do I start...How do I start preparing for data science?  Hi, I am beginner
Tell me where we are using overloading and overriding in realtime project?
Tell me where we are using overloading and overriding in realtime project?  Hi,Tell me where we are using overloading and overriding in realtime project? please give me answer
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
Can you see what i have done because i did it but i still have problem - SQL
Can you see what i have done because i did it but i still have problem  This is what i have done but i still have a problem:- Can you correct my... nvarchar(10),Start_Date DateTime,End_Date DateTime, Primary Key (Lease
I need Oracle connector jar file. where will i download?
I need Oracle connector jar file. where will i download?  I need Oracle connector jar file. where will i download
Where can I learn Data Science for free?
: Where can I learn Data Science for free? Try to provide me good examples or tutorials links so that I can learn the topic "Where can I learn Data...Where can I learn Data Science for free?  Hi, I am beginner in Data
Where can I learn AI for free?
that I can learn the topic "Where can I learn AI for free?". Also tell...Where can I learn AI for free?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Where
Where can I learn data science?
Where can I learn data science?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Where can I learn data science? Try to provide me good examples or tutorials links so
Where can I study data science?
Where can I study data science?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Where can I study data science? Try to provide me good examples or tutorials links so
plese tell -Struts or Spring - Spring
plese tell -Struts or Spring  Hello, i want to study a framework. i have some basic overview of Struts1.1 and Strurts 2.0. i don't know much about spring. which frameork i should do Struts or Spring and which version. i

Ads