JunKao Lin

Greenhorn
+ Follow
since Feb 05, 2004
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 JunKao Lin

Hi Murad,

Originally posted by Murad Iqbal:
Hi all!
How can I make my thread sleep until a specified date (including hours, minutes and millis) occurs? Or do I have to calculate the current milliseconds and subtract it from the milliseconds of that date and then pass it on to thread.sleep method?
A quick reply and help is higly commended


I think you'd better use the data.wait() and data.notify().When the specified date occurs,you could invoke the data.notify() to make the method which has invoked the data.wait() become runnable again.
Hi jian,

Originally posted by jian zheng:
Hi George,
Thank you .I think you are right.I'll try to run the program without setting CLASSPATH.But I'm sure that I've put the "XXXX_stub.class" in right package and it's already been in the jar,here is my package structure:
-------------
suncertify.db
-------------
Data.class
RemoteData.class
RemoteDataImpl.class
RemoteDataImpl_Stub.class
xxxException.class
...
-------------
suncertify.srv
-------------
Server.class
-------------
suncertify.ui
-------------
XXXXXXXXX.class
XXXXX.class
.....
I bind RemoteDataImpl.class in Server.class,server.jar includes suncertify.db and sunertify.srv,and the main class is Server.class,is it ok?
The result is "XXXX_Stub not found" if I've not set CLASSPATH before I start rmiregistry,but "java -jar runme.jar server" is ok without "XXX_Stub not found".I got confused because client use "XXX_Stub.class" when it runs in server mode too.
I'll try like what you said,maybe I lost something,and I'll change the package structure if needed.
Thank you!George
Best Regards!
Jian


As you said:because client use "XXX_Stub.class" when it runs in server mode too.So you have to include the XXX_Stub.class in the client's jar file.That is,the XXX_Stub.class must be placed in both client's jar file and server jar file.
Hope this helps,
Hi Andrew,

Originally posted by Andrew Monkhouse:
Hi Ljk,
Welcome to JavaRanch.
We don't have many rules here, but one we do have is the JavaRanch Official Policy on Displayed Names. According to that policy your displayed name should be a real name. Could you please update your profile to display your real name? You can change it here
You may want to read the JavaRanch SCJD FAQ particularly the questions relating to what assignments there are, and what has changed in the assignments.
Regards, Andrew


I am sorry for my fictitious name,and thank you for correcting me.Since I am a chinese,so I will use JunKao Lin as my Publicly Displayed Name.
Hi Vrinda,

Originally posted by Vrinda Werdel:
Hi Friends,
I just managed to download the assignment. It contains an html file describing the requirements and a database file.
I just want to confirm if this is all we will be given to work with. Just to be sure I have downloaded the file in its entirety.
regards
Vrinda.
[ February 06, 2004: Message edited by: Vrinda Werdel ]


Yes,you had downloaded all the files.By the way,can you let me known which assignment you download?
thanks,
ljk
Hi George,

Originally posted by George Marinkovich:
Hi ljk,
The content of your answers is much more important on the exam than demonstrating a high degree of fluency in English. Most, if not all, of the exam questions can be answered by providing a list of points that support your design decision.
For example, since you are offered in the assignment instructions a choice between RMI and sockets for your network communications solution, you might possibly be asked on the exam to justify your choice. The following example is from Trottier's book (Java 2 Developer Exam Cram 2):
Describe your choice between RMI and sockets and provide a justification for that choice:
I chose RMI.
1) Thread safety is built into RMI.
2) RMI comes with its own communications protocol.
3) RMI is a simpler programming model.
4) RMI is built on sockets, but is easier to understand.
5) blah, blah, blah,
6) "
7) "
8) etc.
I think Sun realizes that English is not the native language for many people taking the exam. In my opinion, it's not a test of whether you can write a coherent essay in English, but whether you can convey technical information in support of your design decisions and make the grader comfortable that you have a sound grasp of why you did what you did. Remember one of the main purposes of the essay exam (maybe the only purpose) is to demonstrate that the project you submit is actually your own work.
The grader may even be happier to read the answers in a brief bulleted list format than have to wade through a verbose explanation even if delivered in perfectly grammatical English. Also, realize that the essay exam is basically pass/fail. Either the grader believes that you have demonstrated sufficient familiarity and understanding of your submission, or he doesn't. I don't think you need worry about losing points because some of your responses may contain grammatical anomalies.
Hope this helps,
George


I am agree with you,and I will do my best to learn english well from others(including you of course) in this forum.Thanks for you answers.
ljk
Hi Morgan,

Originally posted by morgan bath:
Ive been slashing buttons and options from my gui because after a few runs through I realised id had added things basically to try and prove I know swing. After a few hours Im left with a very very bare GUI, and yet its what I would want to use myself. My worry is it looks like I have been lazy.
Basically I have A JTable at the top of the window and underneath it is the search panel. And thats it! The search panel is two text fields, a search button and a clear button.
I totally stripped the Booking panel out after I ran the client and my first instinct was to double click a row to alter it. Now The user double clicks a record and if its free he gets a JOptionPane asking him for a client ID, or if its already booked he gets a "Customer xxxx has this contractor reserved. Do you wish to delete this reservation" type of thing.
I used the default JOptionPanes rather than design my own wizzy looking ones to start with. But to be honest whilst they are plain they seem oddly appropriate.
Anyone submit a really bare GUI and get good marks for it? For that matter has anyone submitted a solution with no buttons for booking or unbooking? That bit especially makes me nervous, but the gui looks ten times better without them, and double clicking is so instinctive for most users I think.



I don't think we need to make the gui complicated intentionally.
As long as we make our user use our gui easily,quickly and cosily,
I think we has done well enough.
ljk
Hi everyone,
I am not very good at english,so I want to know how many words I should write in the essay exam?
thanks,
ljk
Hi George,

Originally posted by George Marinkovich:
Hi Ljk,

Unfortunately, you won't get the opportunity to choose which assignment you do. You will just be given one of the assignments and you'll find out which one you got when you download the assignment instructions.
It seems that most people lately have been getting the Bodgitt & Scarper contractor assignment, which is a database application that allows the user to search for building contractors and book (reserve) the services of a particular contractor for a customer. Another current assignment is the URLyBird hotel reservation assignment, which is a database application that allows the user to search for and book (reserve) hotel rooms. You should get the impression from this that the assignments are all basically the same although the details differ. I don't think any of the assignments are more difficult than any of the others, but they all have their particular challanges. A lot of the issues are very similar and people can benefit from advice given by people who have different assignments. Also the assignments themselves have different versions. So, B&S has a number of different versions that have differences in the Sun-supplied interface, for example. The different versions of an assignment may also have different Sun-supplied database files.
There are still people working on one of the old assignments, Fly By Night, which I think was a database application that allowed the user to book (reserve) airline flights. Because candidates have a year to complete the project there are a number of different assignments that are being worked on at any one time. However, these three, B&S, URLyBird, and FBN, are the only ones of which I am aware.
Hope this helps,
George



Thanks for your explanation about the scjd.I have learnt a lot from it.
thanks,
ljk
Hi George,

Originally posted by George Marinkovich:
Hi Ljk,

What has changed? Which version of the scjd are you comparing against?
Hope this helps,
George


I don't know how many versions there are,but I think I will take the newest one.I am waitting for your answer.
thanks,
ljk
hi everyone,
I am going to take the scjd test,but I don't know what has changed in the new release,can you help me?
thanks,
ljk_java