fengqiao cao

Ranch Hand
+ Follow
since Oct 26, 2001
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 fengqiao cao

hi, everyone
As far as i know, we can use j2ee or java WSDP to develop web based application.
I am a bit confused what the diferent are?
thanks
hi, anyone
has anyone ever used J2ee with Mapxtreme ?
thanks
hi, anyone
sorry to ask this kind of question , in fact i shuold search the forum however in china i just found out the Google has been blocked .

could someone tell me how to set up the enviornment variable: JAVA_HOME, J2EE_HOME, ANT_HOME in order to runing the J2ee examples?
hi, everyone
i am working on a project using Mapxtreme java.
i want to search(using SQL) on a layer for specified object like lines and then change the lines' colour.
could anyone help? If it is ok, pleas povide example code.
thanks very much...
21 years ago
hi, again
i put a dot to my exiting classpath d:\java\JDBC\;D:\java\JDBC\codeExamples\firstEdition;c:\j2sdk1.4.0\bin\;D:\java\JDBC\weblogic\mssqlserver4v70\license;D:\java\JDBC\weblogic\mssqlserver4v70\classes;.;
however, it is still not worikng . it complaint that it could not find Task.class.
what is wrong with that?
hi, Rene
thanks for your reply
I don't have a dot in the classpath. why a dot?
could u explain more?
( i have set the classpath)
hi, everyone
i have the following package called compute..and two interfaces. I tried to compile them . The first interface, Task workes fine. However, when compiling the interface Compute , it couldn't compile and complaint that it could not resove the simple Task....
Could anyone explain that? Thanks...
1.
2.
hi,
Finally, i found out that there is nothing wrong with the code.
However, it is becuause the CLASSPATH problem.
I came from windows me to windows 2000. There is huge different(ha...) when dealing with CLASSPATH(In windows 2000 , if u want to run java application you must set the CLASSPATH but now in windows me) ha.....
hope this help the newbies like me....
hi, everyone
i am pretty new to JDBC and i try to creat a table called COFFEES in the COFFEEBREAKTRY databas which exits in my sql server. The following program seems ok to me however i got erro :Exception in thread "main" java.lang.NoClassdefFounderError:creatCoffee.
could anyone help me out? (many thanks).

import java.sql.*;
import java.util.Properties;
public class CreateCoffees {
public static void main(String args[]) {
String url = "jdbc:weblogic:mssqlserver4";
Connection con;
String createString;
createString = "create table COFFEES " +
"(COF_NAME varchar(32), " +
"SUP_ID int, " +
"PRICE float, " +
"SALES int, " +
"TOTAL int)";
Statement stmt;
Properties props = new Properties();
props.put("user", "caofengqiao");
props.put("password", "8801386");
props.put("server", "COFFEEBREAKTRY@CFQ-YQ1RKQ9LSD7:1433");
//database name=COFFEEBREAKTRY,Server=CFQ-YQ1RKQ9LSD7
try {
Class.forName("weblogic.jdbc.mssqlserver4.Driver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
}
try {
con = DriverManager.getConnection(url,props);
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
}
}
}
hi, there
My criteriaFind()works fine with most of string pair (for instance: "Origin airport=SFO, Destination airport=LAX, Day=Tue")except "Carrier=...., Pirce=... which i foud out there is some special character following these values when i print out the records(I print out all the record to a file, from which i identify the special character just following Carrier,Price, Duration and Available seat's values).
I think the special character make my criteriaFind()not working well.
Has everyone met this situation before and how do you deal with it?
Thanks in advance....
I
hi, Mark and Mathew
Thanks for your reply, and i really appreciate it.
It is ok that an objcet from Vecton compare with a string.
Also now i am just tryint to make comparing values work and then i will compare the fieldname as well.
Any hint?
hi, everyone
i am stuck in the criteriaFind().
could you give me some hints?
//some codes from my criteraFind()
outer:for (int r = 1; r <= recordCount; r++){
values = readRecord();
middle:for(int a=1;a<V.size();a+=2){
found= false;

for( int i=0;i<description.length;i++){
if (values[i].equals(V.get(a))){
found=true;
System.out.print("ok");//line 2
break;
}
}
continue middle;
}

if(found){
recordContainer.add(new DataInfo(r, description, values));
}
continue outer;}
//******
V is a vector which holds the object that originate from tokenizing "criteria".
RecorderContainer is an Arraylist which holds records matching criteria.
could you let me know why it can't never reach line2? Am i on the right track?
Thanks in advance....
Note: for the moment i just compare the values.
Thanks for your reply.
yes, please!!!
hi, there
could anyone let me know which flag used to make execution in order to see the output per screen?
Thanks in Advance.....
hi, everybody
could you help me figure out what i should do?
I am preparing on installing FreeBsd(unix) on my computer . It requires two boot disks obtaining content from the internet.
my problem is the content for per disk is 1.40M, it is too big for the floppy disk.
To my knowledge, the capacity of one floppy is 1.44M, but in my case i formated the floppy i just bought and the cappacity is just 1.38M. I tried many floppy disks, the outcome is just 1.38( NT or windows me enviorment). could someone help me out?
thanks in adva....
22 years ago