BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.exe without need to any .class.Is it possible

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Mar 03, 2007 9:13 am    Post subject: .exe without need to any .class.Is it possible Reply with quote



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





PostPosted: Sat Mar 03, 2007 5:56 pm    Post subject: Re: .exe without need to any .class.Is it possible Reply with quote



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






PostPosted: Sat Mar 03, 2007 7:48 pm    Post subject: Re: .exe without need to any .class.Is it possible Reply with 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

Thanks
Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Sun Mar 04, 2007 1:42 am    Post subject: Re: .exe without need to any .class.Is it possible Reply with quote

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






PostPosted: Sun Mar 04, 2007 9:13 am    Post subject: Re: .exe without need to any .class.Is it possible Reply with 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

Thank you again!
Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Mon Mar 05, 2007 5:47 am    Post subject: Re: .exe without need to any .class.Is it possible Reply with quote

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






PostPosted: Wed Mar 07, 2007 2:16 pm    Post subject: Re: .exe without need to any .class.Is it possible Reply with quote

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





PostPosted: Wed Mar 07, 2007 6:54 pm    Post subject: Re: .exe without need to any .class.Is it possible Reply with quote

mohsen_fakhari (AT) yahoo (DOT) com wrote:

Quote:
Sorry
Where is this attachments group?
I can't find it.I'm writing in google groups
Thanks

borland.public.attachments

http://groups.google.com/group/borland.public.attachments/topics?hl=en

--
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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.