Ross Gayle

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

Recent posts by Ross Gayle

i'm also getting the same error when i try to configure weblogic connection pool. I use Oracle 10g. have the classes12.jar and the 10g ojdbc14.jar set in the CLASSPATH before weblogic.jar as specified in the documentation, but still get the error. i can connect thru' sqlplus.

any help is greatly appreciated

thx,

Ross
hi guys,

this to all those who passed with some awesome scores....

i was just curious , have any of u taken JQ+ examulator ?

if so what were u getting ( score wise ) during the last few days before u were gonna give the exam....

thx.
20 years ago
I had a funny incident. when i saw this question posted, i began solving it, but later it turned out that the way i solved it was wrong. but to my astonishment i got the right answer ( -7 ).

this is what i did :


b = b >> 1 ( this is wrong , but bear with me till i finish )

-13 in binary , take + 13 first

0000 1101

flip bits

1111 0010

add 1

1111 0011

alright now right shift by one.

we have

1111 1001

now this is negative , to get the decimal number , do the usual stuff.

flip bits

0000 0110

add 1

0000 0111

we get it !!!

-7

but its wrong , wrong ,wrong.....


Thanks to Corey , he explained the right way...

thanks dude !!!

keep up the good work.
thanks a lot for that info Mr. Swamy. It was quite useful. I knew the way to do it , just was checking to see if a better way existed.
I wish to know if there are any simple conversion techniques of integral values from hex (0x7fffffff) to decimal (2147483647) . it can be quite useful in solving questions.

thx....
i think david is right....
Hi there,

i have a question regarding two's complement in java. i was solving this question the other day

*****************************************************

class EBH005 {
public static void main (String[] s) {
byte b = 127; b <<= 2;
System.out.println(b);
}}

What is the result of attempting to compile and run the program?

a. Prints: -4
b. Prints: -3
c. Prints: -2
d. Prints: 0
e. Prints: 1
f. Prints: 127
g. Prints: 508
h. Run-time error
i. Compile-time error
j. None of the above

*************************************************************

the answer is a . Prints -4.

i cud understand the while conversion from 508 to byte , the left 3 bytes are left out. but with the remaining 1111 1100 how do u get to -4 .

i know there is the conversion from 0's to 1's and adding 1 , but i am little confused with that . can anyone kindly explain me the conversion and stuff.....

thx.

R0ss.
i have downloaded the sun java app server module from sun website and when i try and install it as per the installation guide , i get this error.
********************************
./j2eesdk-1_4-dr-linux-eval-app: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
***********************************
i know i am running gnu linux , some old distribution, but any help will be appreciated.....
thx,
-R0ss.
21 years ago
did all those steps . after i hit ./jdk***.bin , it starts installing, takes a few steps( lines of dots on the screen ) , then it gives that error and stops. usually i use secure shell to login .I found a help page with the same problem on sun website, but had to leave that day and closed it ,confident that i can find it again. i tried after 3 days, it was removed. i remember it discussed a soln. wherein we have to change to csh and some other stuff. I am a novice to linux , just started using it at my office where i am interning , so any help will be greatly appreciated....
-R0ss.
21 years ago
"The installer is unable to run in graphical mode. Try running the installer with the -console or -silent flag "
this is what it says after some intial steps. from which shell do you actually install the sdk?
21 years ago
I downloaded the bin version.
21 years ago
I keep getting this error message when installing j2sdk binary on linux," The installer is unable to run in graphical mode. Try running the installer with the -console or -silent flag ". I tried installation notes on the java.sun.com website, but it does not discuss this problem. any help will be greatly appreciated.
thx in advance...
-R0ss.
21 years ago