sruthi laya

Greenhorn
+ Follow
since Oct 15, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sruthi laya

thank you guys , i am clear .
16 years ago
Hi ,

I have written a program in which i am trying to understand the static concepts .

I have a doubt , can i access a static variable in a non static method.

because when i am doing that it is executing properly ...
please check the below

import java.io.*;
import java.lang.*;

public class StaticExample{


private static int cal=1;
private static int count = 0;


static void method1(){
System.out.println(" The cal value is " + cal);
}

void method2(){
System.out.println( count);
}

public static void main (String [] args){
StaticExample ex = new StaticExample();
ex.method1();
ex.method2();
while(count<10){
System.out.println(count++);
}

}
}
16 years ago
Hi ,

I am checking the logs folder , but there are no files in it ...

i have uninstalled the tomcat and installed it again , when i start up tomcat the new console is opening and getting closed in seconds ...

Can any one please guide me ...

Thanks ,
Sruthi.
16 years ago
Hey guys ,

I got my java program executed , but still facing a problem with tomcat.
it is not starting .



Anyway thanks a lot
16 years ago
Hi ,

Thanks for the replies ,

Actually i was trying to have tomcat as well as java on my system.

i had set PATH :C:\jdk1.3\bin
JAVA_HOME : C:\jdk1.3\bin
CATALINA_HOME : C:\Tomcat4.1

and deleted CLASSPATH ;

Please guide me how can i run tomcat as well as my java programs .
CLASSPATH is needed for java right ?

please clear my doubts .

thanks ,
sruthi.
16 years ago
Hi ,

I am trying to execute a java class , i am getting a run time exception saying "Error in Thread main : NoClassDefFoundException" . I had set my classpath as C:\jdk1.3\bin . I am working on Windows xp .

needed a solution , please help me out to sort this .

Thanks in advance ,
sruthi .
16 years ago
Hi ,

I have installed tomcat 4.1 and started it using startup.bat
then i got the following


C:\Program Files\Apache Software Foundation\Tomcat 4.1>cd bin

C:\Program Files\Apache Software Foundation\Tomcat 4.1\bin>startup.bat
Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 4.1
Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 4.1\te
mp
Using JAVA_HOME: C:\jdk1.3


is this the correct way startup the server if so , then when i am accessing the homepage using "http://localhost:8080/" in the browser it is giving "page cannot display".

Please guide me how to continue with this ....

Thanks in advance .

Sruthi.
16 years ago