sr shashidhar

Greenhorn
+ Follow
since Jan 17, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sr shashidhar

Bear Bibeault wrote:Have you consulted the documentation for this API?



No sir, can you suggest what all i need to go through before touching above mentioned application..
Hi friends,

I want to know how to develop application which must keep updating Live Cricket Score from selected Sports Channel after specific time interval asynchronously using Google Ajax Feed API...

thanks
Shashidhar
Hi friends, i am using Tomcat 6.0 to work this program. here i am getting error while deploying the war file... can anyone help me in solving this...

deployWar:
[echo] Deploying into Server...!
[copy] Copying 1 file to C:\Tomcat 6.0\webapps

start:
[echo] Building WEB APP
[java] java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
[java] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
[exec] Result: 1

BUILD SUCCESSFUL
Total time: 3 seconds

i am using
Ant Version : ant 1.9.1/any 1.8.4


build.xml
========



Thanks
Shashidhar
8 years ago

Paul Clapham wrote:

Don't do that. You need to use the Logger class from log4j, not that Logger class.




Ok, Its worked after using

import org.apache.log4j.Logger;

Thanks
Shashidhar
Hi friends, in the following code getting

Error: "The method error(Exception) is undefined for the type Logger"

added log4j-1.2.15.jar to "WEB-INF/lib" directory. how to solve this problem?




Thanks
Shashidhar
Hi frndz,

As we know we can create executable JAR file for Standalone application using Swing/AWT(GUI) in core java which can be executed in all java installed machines directly instead of executing it from Eclipse always...

But i wan to know how to create such executable file for Servlet or JSP program.



Thanks
8 years ago
Hi frndz



While compiling getting exception as

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method m1(int[]) is ambiguous for the type A

my doubt is according to overloading concept Output must be "BYTE", but why Compilation error..

Thanks in advance
9 years ago

Thanks Campbell Ritchie.
9 years ago
In the below program,

Only while using


Java Compiler gives Exception as

Exception in thread "main" java.lang.ArithmeticException: / by zero

Why not for Floating or Double type...?





Output:


9 years ago

Nice explanation Tony Docherty, Thanks.

Tony Docherty wrote:The JVM will only exit when all non-daemon threads have finished and because, in the second case, you have started 3 threads that are not daemon threads the JVM does not exit and the 3 threads keep on running.



I didn't got what this sentence actually mean, can you elaborate on this...
This following 2 programs are implemented with the same logic i.e, In one program, creating thread by extending Thread class and the other by implementing Runnable interface.

Here the output will be like "Print some values till i press ENTER or RETURN key", My problem is, when i run these two programs "program where we are creating Thread by extending Thread class will by halted from
extending Thread class printing values till i Press ENTER/RETURN but "program where we are creating Thread with Runnable interface output is getting halted"

Here the logic is same in these two programs, only difference is one program extending Thread Class and implementing Runnable interface.


Creating Thread by extending Thread Class





Creating Thread by Implementing Runnable Interface




can anyone explain about output with above code.

Thanks in advance

Now i got.
Thanks Campbell Ritchie , Tony Docherty
9 years ago
Hi frnds,






My question is how we are getting 8 and 56 for '\u0038'...?


thanks in advance
9 years ago