shubhra chauhan

Greenhorn
+ Follow
since Aug 31, 2007
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shubhra chauhan

Hi Joe,

Thanks for compiling each statement. I got my problem very clear. I have installed jdk1.4 which is working fine. I only lose 174.67 MB because of the mistake I have done.
Anyway I appreciate your work.

Thanks
Shubhra
12 years ago
First of all thanks to both of you for answering my question.
But I am still having the same problem.
I downloaded JavaEE + Jdk from the link given below.
http://java.sun.com/javaee/downloads/index.jsp
Then three directories were added to c:\ namely jdk, javadb, jbi.

Set classpath=C:\jdk\bin
path=C:\jdk\bin

I have checked for other sdk and found jdk1.5 within the bea directory which was for weblogic. I removed this but still not getting help.

Now can you please suggest me what exactly i have to do?

Thanks
Shubhra
12 years ago
First of all thanks to both of you for answering my question.
But I am still having the same problem.
I downloaded JavaEE + Jdk from the link given below.
http://java.sun.com/javaee/downloads/index.jsp
Then three directories were added to c:\ namely jdk, javadb, jbi.

Set classpath=C:\jdk\bin
path=C:\jdk\bin

I have checked for other sdk and found jdk1.5 within the bea directory which was for weblogic. I removed this but still not getting help.

Now can you please suggest me what exactly i have to do?

Thanks
Shubhra
12 years ago
Hello friends,

Need some help. I installed Java 5 SDK today but later on decided to go for Java 2 sdk. But somehow I am not able to uninstall that. I tried to remove jdk manually(error:cannot delete javaw.exe- access is denied) and also tried control panel\add-remove method which was giving me error could not find the main class. Can anyone please suggest me how to remove this program from my system?

Thanks
Shubhra
12 years ago
Hi
I have java EE 5 SDK on my system. I set CLASSPATH variable to servlet-api.jar and PATH variable to C:\sun\sdk\bin.
I have been trying to run a servlet but compiler is giving error:
package javax.servlet.http does not exist.

Initially it was giving package javax.servlet does not exist. But after setting PATH to javax pakage, the compiler has shown package javax.servlet.http does not exist error.

I just want to run a simple servlet. please do guide me if i have to do any setting changes or if i need to install other j2ee version.
12 years ago
Hi
I have java EE 5 SDK on my system. I set CLASSPATH variable to servlet-api.jar and PATH variable to C:\sun\sdk\bin.
I have been trying to run a servlet but compiler is giving error:
package javax.servlet.http does not exist.

Initially it was giving package javax.servlet does not exist. But after setting PATH to javax pakage, the compiler has shown package javax.servlet.http does not exist error.

I just want to run a simple servlet. pls do guide me if i have to do any setting changes or if i need to install other j2ee version.

Looking for some prompt responses.
12 years ago
Hi all,

Can anyone pls suggest me books for SCWCD? It would be great if you could suggest me some online tutorial links also.

Thanks
Shubhra
[SCJP1.4]
Hi,

I am trying to run a jsp page. so to run it on server i have to specify the installation directory.
Can anyone please explain me on this as while doing so i.e c:\program files\tomcat6.0\lib it is giving me a error "the tomcat directory is not vaid. It is missing expected file or folder lib\jasper-el.jar" which is actually present inside lib. so i am not getting it. please help me out.
12 years ago
Hi friends

I m just starting to learn EJB and wanna be a good programmer. so can anyone pls send me some gud links for EJB. I need examples with coding and its expalantion. sometimes i found only coding but no explaination then it becomes really hard for me to understand the whole flow.

Pls do guide me.

Thanks
Shubhra
public class Assert{
private Boolean isvalid(int i)
{
if(i<1 || i>12)
return new Boolean("Incorrect value");
else
return new Boolean(true);
}

void testvalue(int val)
{
assert isvalid(val):"out of range value"; //1
}
public static void main(String args[])
{
Assert test=new Assert();
test.testvalue(12);
}
}


it compiles even when asserions are enabled but it should not as at 1 boolean expression is required not Boolean type. can anyone help me out.. why it is compiling?
thanks Jesper...i got it..
class Base {
int i;
Base() { add(1); }
void add(int v) { i += v; }
void print() { System.out.println(i); }
}
class Extension extends Base {
Extension() { add(2); }
void add(int v) { i += v*2; }
}
public class Qd073 {
public static void main(String[] args) {
bogo(new Extension());
}
static void bogo(Base b) {
b.add(8);
b.print();
}
}

output of this program is 22. how? need an explanation.
Which of the following are valid escape sequences ?



Options

Select 4 correct options.

1:
2:
3: f
4:
5: x

answer is 1,2,3,4.
i don't know how. they eplained backslash by /* u005c: backslash */ which is denoted by blank space here. Is it true?
hi dolly..

see x as a state of an object belongs to f1,f2 & f3 also.

now in this line of code

Fizz f3=FizzSwitch(f1,f2); //1
static Fizz FizzSwitch(Fizz x,Fizz y){//2
final Fizz z=x; //3
z.x=6;
return z; }}

now f1 is assigned to z(see line 1, 2, 3), this means now z and f1 refers to the same object which has x.
then z.x=6 changes the value of x from 5 to 6. this value is now effective for f1 and f3 only because of returning z. f1,f3,z refers to the same object having the same value ie x=6. only f2 has x=5.

if f1 was not final it would have a different reference value means other than earlier one but on contrary of that its refrence value is still the same but its object state is only modified.

i tried to make it as simple as psbl...hp it'll help you..
[ September 14, 2007: Message edited by: shubhra chauhan ]