Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

need help in IDE NetBean

hi,
I am new to NetBean and java, and my problem is that how I create a "executable" file by using NetBean or there is anohter way to create such file? Any help is greatly appreciated.
[190 byte] By [maxChin] at [2007-11-11 6:38:34]
# 1 Re: need help in IDE NetBean
when you compile your project, it automatically creates a JAR file in the directory: <PROJECT HOME>\dist
chimps at 2007-11-11 22:40:43 >
# 2 Re: need help in IDE NetBean
Thanks for your info.
When I click the jar file, nothing happen. It is weird. So how should i use the jar file? thank in advance.
maxChin at 2007-11-11 22:41:43 >
# 3 Re: need help in IDE NetBean
you need to tell your operating system that you want your jar file to be run automatically.
This is (in wondows) done by right click, open with
and then select / browse to javaw.exe in your J2SDK - bin directory.
ractoc at 2007-11-11 22:42:47 >
# 4 Re: need help in IDE NetBean
Thank ractoc, I had tried with that but nothing happened.
maxChin at 2007-11-11 22:43:46 >
# 5 Re: need help in IDE NetBean
try running [java -jar x.jar] from the command promt (or from a simple batch file for that matter..
x.jar is you library
ractoc at 2007-11-11 22:44:45 >