weiliu lili

Ranch Hand
+ Follow
since Apr 11, 2002
Merit badge: grant badges
For More
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 weiliu lili

Finally I set both the environment variables of Paht and classpath of my OS, and it was done successfully.
19 years ago
Sorry ,mate.
Yes,actually it is the path variable I set in Win 2k. and the error message is No ClassDef found error
19 years ago
Sorry, I cant understand what you mean. What I did was just following up the installation instructions from the Sun website. Here it is:
Update the PATH variable
You can run the Java 2 SDK without setting the PATH variable, or you can optionally set it as a convenience.
Should I set the PATH variable?
Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. If you don't set the PATH variable, you need to specify the full path to the executable every time you run it, such as:
C:> \j2sdk1.4.1_<version number>\bin\javac MyClass.java
It's useful to set the PATH permanently so it will persist after rebooting.
How do I set the PATH permanently?
To set the PATH permanently, add the full path of the j2sdk1.4.1_<version number>\bin directory to the PATH variable. Typically this full path looks something like C:\j2sdk1.4.1_<version number>\bin. Set the PATH as follows, according to whether you are on Microsoft Windows NT or 98/2000/ME.
Microsoft Windows NT, 2000, and XP - To set the PATH permanently:

Choose Start, Settings, Control Panel, and double-click System. On Microsoft Windows NT, select the Environment tab; on Microsoft Windows 2000 select the Advanced tab and then Environment Variables. Look for "Path" in the User Variables and System Variables. If you're not sure where to add the path, add it to the right end of the "Path" in the User Variables. A typical value for PATH is:
C:\j2sdk1.4.1_<version number>\bin
Capitalization doesn't matter. Click "Set", "OK" or "Apply".
The PATH can be a series of directories separated by semi-colons ( . Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a Java SDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to j2sdk1.4.1_<version number>\bin.

The new path takes effect in each new Command Prompt window you open after setting the PATH variable.
[ March 13, 2003: Message edited by: weiliu lili ]
19 years ago
hello,Dirk
I tried your method,but unfortunatelly it failed,the current full path is ".;C:\j2sdk1.4.0\bin;C:\Oracle\Ora81\bin;C:\Program files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\orb\bin "
any other idea? I need it urgently for my assignment.
thanks for your help
19 years ago
My class path is "C:\j2sdk1.4.0\bin;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\orb\bin "
I can compile *.java successfully, but cant run it.
19 years ago
saying i have got sql script in D/sqldirectry, what is the command runing it in sql*plus, should be @???, i forget!
thanks
20 years ago

Originally posted by Sumit Amar:
Instead of Osbourne's books(which have had some mistakes), go for Oracle ILTs, some of your peers may provide you with the PDF format. Oracle 9i is certainly advantagous than 8i, but it will take time to fully commercialise the new version.
As for Job prospects, I would recommend you to start working as a part time DBA, while you take on your certification. After completing the Certification, people are going to ask you "what's your hands on experience?"


hello, Sumit
what do you mean by
Oracle ILTs
what is URL for it?
20 years ago
I took this exam this afternoon, and passed it ...very happy.
thanks a lot for the bartender and those people who helped me.
I think this forum is very very good. I would remember it deeply in my mind.
good bye
20 years ago
What is the output of trying to compile and run the following code?
(Select one correct answer)
public class Test041
{
static double d;
static float f;
public static void main(String args[])
{
compare(Long.MAX_VALUE, Long.MAX_VALUE );
compare(Integer.MAX_VALUE, Integer.MAX_VALUE );
compare(Character.MAX_VALUE, Character.MAX_VALUE);
compare(Short.MAX_VALUE, Short.MAX_VALUE );
compare(Byte.MAX_VALUE, Byte.MAX_VALUE );
}
static void compare(double d, float f)
{
if (f == d) System.out.print(" equal" );
else System.out.print(" unequal");
}
}
A: unequal equal equal equal equal
B: equal unequal equal equal equal
C: equal equal unequal equal equal
D: equal equal equal unequal equal
E: equal equal equal equal unequal

ans:b
why is that? Could anyone give explanation ?
thanks
Which of the following will NEVER compile correctly in any situation?
(Select three correct answers)
Assume TestInterface is a valid interface.
A: public TestInterface getInterface1( int i )
{
return new TestInterface ( )
{
{
System.out.println(i);
}
};
}
B: public TestInterface getInterface2( final int i )
{
return new TestInterface ( )
{
{
System.out.println(i);
}
};
}
C: public TestInterface getInterface3( )
{
return new TestInterface ( int i )
{
{
System.out.println(i);
}
};
}
D: public TestInterface getInterface4( )
{
return new TestInterface ( final int i )
{
{
System.out.println(i);
}
};
}
E: public TestInterface getInterface5( )
{
return new TestInterface ( )
{
{
System.out.println( i );
}
};
}

ans: a,c,d
explanation:Inner class can only access final variables of the enclosing method.
Interface can never have any constructor, but C D try to access the constructor
but what i m confused is that in b, which is correct answerreturn new TestInterface ( final int i){...} it does try to access the construncor as well,doesn't it?
while performing addition if one of the operands is String and other is of premitive datatype.
Conversion of an operand of premitive type to String is achived by...
Integer.toString() is it right?
what is the right answer?
thanks
what is the max character length for identifiers?
thanks
what is the scope of access modifier "friendly" in comparision with protected and default?
"friendly" can be used only as method access modifier, right?
public class Test026
{
static Test026 t = new Test026();
String str;
public static void main(String args[]) {
Test026 t = new Test026();
t.method("0");
}
void method(String str) {
str = str;
System.out.println(str);
System.out.println(t.str);
System.out.println(this.str);
}
}
-----------------------------------------------------------------------
The output is:
0
null
null

the explanation:
The str for object t and this remains uninitialised and keep null value
I thought str has already been initialised as "str=str", where m i wrong?
thanks
why this is valid? float f= \u0038
I thought the right way should be float f= 'u0038'
the explanation is that \u0038 is unicode for nbr 8. what does that mean?