| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Mar 03, 2007 9:13 am Post subject: .exe without need to any .class.Is it possible |
|
|
Hi all
I want to have a native executable that doesn't need any .class
file.Is it possible by jbuilder?
I've written a simple rmi project with jbuilder(mulitple versions
used) and then created a .exe file by native executable builder.I
selected all classes to be included.
But when I run it,there's a classNotFoundException on one of
classes:ServerImpl_Stub,not any other classes.
You know,it is a class created when you compile your rmi projects.Not
directly pair of one .java file.
What shoud I do to have a standalone exe which can be ran wherever it
is placed (of course with its .config file)
This is my s.config,however.
Any idea mey help
vmparam -Djava.security.policy=file:.\rmi.policy
mainclass thefiles.ServerImpl |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Sat Mar 03, 2007 5:56 pm Post subject: Re: .exe without need to any .class.Is it possible |
|
|
mohsen_fakhari (AT) yahoo (DOT) com wrote:
| Quote: | This is my s.config,however.
Any idea mey help
|
Right-click on the JAR file on which the executable is based, go to the
"Dependencies" tab, and make sure that all dependencies are set to
"Include all".
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Mar 03, 2007 7:48 pm Post subject: Re: .exe without need to any .class.Is it possible |
|
|
Thank you for your response.
Dependencies tab is about used libraries,in my case jbcl.
It is inlude all already.
But the missed class is something created from my
class:serverImpl.java .
'rmic' has made the class 'serverImpl_stub' from .java file
It seems in other projects when you select "include all" in "content"
tab you'll have no problem.
What's with mine?I don't know
Thanks |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Sun Mar 04, 2007 1:42 am Post subject: Re: .exe without need to any .class.Is it possible |
|
|
mohsen_fakhari (AT) yahoo (DOT) com wrote:
| Quote: | Thank you for your response.
Dependencies tab is about used libraries,in my case jbcl.
It is inlude all already.
But the missed class is something created from my
class:serverImpl.java .
'rmic' has made the class 'serverImpl_stub' from .java file
It seems in other projects when you select "include all" in "content"
tab you'll have no problem.
What's with mine?I don't know
|
How are you accessing the client stubs for your RMI server? If they're
accessible in the project, they must be in a library somewhere or part of
the project. If they're part of the project, you may have to add them
explicitly to the JAR in the JAR's content tab.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Mar 04, 2007 9:13 am Post subject: Re: .exe without need to any .class.Is it possible |
|
|
In fact there's no client stub.
Maybe it's upside down,but my server does nothing.My clients access
one single class of server : ServerImpl and it get them what they
want.
There's just one stub.The ServerImpl_stub and it is not accessible.
There's just one package and it is included.
All server and client classes are placed in one packege,so is
ServerImpl_stub
Thank you again! |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Mon Mar 05, 2007 5:47 am Post subject: Re: .exe without need to any .class.Is it possible |
|
|
mohsen_fakhari (AT) yahoo (DOT) com wrote:
| Quote: | In fact there's no client stub.
Maybe it's upside down,but my server does nothing.My clients access
one single class of server : ServerImpl and it get them what they
want.
There's just one stub.The ServerImpl_stub and it is not accessible.
There's just one package and it is included.
All server and client classes are placed in one packege,so is
ServerImpl_stub
|
At this point I really don't know. Can you zip up a sample project and
put it in the attachments group for me to take a look at?
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Mar 07, 2007 2:16 pm Post subject: Re: .exe without need to any .class.Is it possible |
|
|
Sorry
Where is this attachments group?
I can't find it.I'm writing in google groups
Thanks |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
|
| Back to top |
|
 |
|