| View previous topic :: View next topic |
| Author |
Message |
Edwin van Oostrom Guest
|
Posted: Mon Apr 26, 2004 7:21 pm Post subject: running applications |
|
|
How can i run my applications outside jbuilder. Do i have to use jar's....
gr.Edwin
|
|
| Back to top |
|
 |
pnichols Guest
|
Posted: Tue Apr 27, 2004 5:16 am Post subject: Re: running applications |
|
|
Edwin van Oostrom wrote:
| Quote: | How can i run my applications outside jbuilder. Do i have to use jar's....
gr.Edwin
|
No you do not have to use jars, nut you will find it much easier.
Example Project helloworld
From DOS command lime
C:Documents and Settingsuserjbproject/> java helloworld.MainClass
Unix
:home/user/jbproject/java helloworld.MainClass
Where MainClass is the executable or runnable class.
NOTE:
if you use any other packages and classes in your project, other than the
ones that are provided in the default jre, you will need to prepend these
to the classpath:
Example:
C:Documents and Settingsuserjbproject/> java -cp C:extralibsjar.jar;C
extralibsjar2.jar helloworld.MainClass
|
|
| Back to top |
|
 |
Joe Guest
|
Posted: Wed Apr 28, 2004 7:38 pm Post subject: Re: running applications |
|
|
"Edwin van Oostrom" <vanoostrom (AT) zonnet (DOT) nl> wrote:
| Quote: | How can i run my applications outside jbuilder. Do i have to use jar's....
gr.Edwin
|
It is fairly simple to set it up with Jbuilder 5 and X to create the jar file. Just use I think its under tools and configure the archive.
|
|
| Back to top |
|
 |
|