wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Help!Jar file question!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Help!Jar file question!!" Watch "Help!Jar file question!!" New topic
Author

Help!Jar file question!!

xin dong
Ranch Hand

Joined: Mar 24, 2003
Posts: 33
I have almost complete the whole assignment.Now I compress them into two jar files :client.jar and server.jar.
before I do this ,all work without problems.but after compressed.when run in local mode.it works fine.When remote mode.error found that client can't find stub class.
I placed stub class into client package so I think I don't need add codebase Parameter in console.such this :
client.jar-|----- suncertify\client\client files
|----- suncertify.server.RemoteDataImpl_stub
is it right??
I think No.but I don't know where should I place it.who can tell me?
any answer is appreciated!!!
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi Xin
You should not need to specify your codebase on the client side.
Is there a reason you listed a path structure including backslashes "\" for the client class files, but the stub file is listed as being dot separated? Is this just a typo, or have you actually included a file named "suncertify.server.RemoteDataImpl_stub"?
Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
xin dong
Ranch Hand

Joined: Mar 24, 2003
Posts: 33
just type. like folder struct
client.jar includes|-> suncertify\client\*.*
-------------------|-> RemoteDataImpl_stub.class
my english is poor .but does this make sense?
xin dong
Ranch Hand

Joined: Mar 24, 2003
Posts: 33
the question is:
it doesn't matter what name it is. but where I should place stub files.
before I compress them .all works fine.it means codes are all correct.
but at that time .I placed stub class in suncertify.server package.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi Xin
I am still a little confused as to what you are doing.
In the client jar file, you should have the directory structure "suncertify/server" and in that directory, you should have your stub class.
Is this what you have?
Regards, Andrew
xin dong
Ranch Hand

Joined: Mar 24, 2003
Posts: 33
But someone told me if I placed stub class in client.then I needn't add codebase partemter in console.Since client need download it from server.Why we can not place it directly to client package?
xin dong
Ranch Hand

Joined: Mar 24, 2003
Posts: 33
Oh sorry ,I just didn't understand your meaning.
you mean I should create a folder named server in suncertify.then placed stub class in it.
finally ,client.jar should include suncertify\db suncertify\client
suncertify\server.but in server folder there is only one class :stub.class.
is right?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi Xin
Yes, that is correct.
Regards, Andrew
xin dong
Ranch Hand

Joined: Mar 24, 2003
Posts: 33
Thank you very much!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help!Jar file question!!
 
Similar Threads
ClassNotFoundException for org.jnp.interfaces.NamingContextFactory
A JAR PROBLEM
FBN - packaging + locking
Final Design Please help
error unmarshalling return