 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Craig Wilson Guest
|
Posted: Fri Dec 03, 2004 5:45 pm Post subject: Problems running JAR in JBuilderX |
|
|
I created a JAR file of type "Application" in JBuilder5. A while back I moved to JBuilderX, and that project automatically creates the "Application" type JAR with each build. Runs fine by just calling "MyJAR.jar" from the command line or shortcut.
But I'm having trouble running a JAR file of type "BASIC" I've created in JBuilderX. I type:
java -cp myjar.jar myjarname.myclassname
and am getting NoClassDefErrors for some classes in the JRE. I'm struggling to add paths to my CLASSPATH and to the -cp path - unsuccessfully so far. My question is this. Can you use the wizard to create a JAR of type "Application" (or equivalent), with its simplified launching? It's not listed among the available types. If not, any suggestions would be appreciated. Thanks.
Craig
|
|
| Back to top |
|
 |
Lori M Olson [TeamB] Guest
|
Posted: Mon Dec 06, 2004 6:44 pm Post subject: Re: Problems running JAR in JBuilderX |
|
|
Craig Wilson wrote:
| Quote: | I created a JAR file of type "Application" in JBuilder5. A while
back I moved to JBuilderX, and that project automatically creates the
"Application" type JAR with each build. Runs fine by just calling
"MyJAR.jar" from the command line or shortcut.
But I'm having trouble running a JAR file of type "BASIC" I've
created in JBuilderX. I type:
java -cp myjar.jar myjarname.myclassname
and am getting NoClassDefErrors for some classes in the JRE. I'm
struggling to add paths to my CLASSPATH and to the -cp path -
unsuccessfully so far. My question is this. Can you use the wizard
to create a JAR of type "Application" (or equivalent), with its
simplified launching? It's not listed among the available types. If
not, any suggestions would be appreciated. Thanks.
Craig
|
File | New. Archive section. You want the "Application" selection.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
Ghizal Guest
|
Posted: Tue Jan 18, 2005 7:49 am Post subject: Re: Problems running JAR in JBuilderX |
|
|
Hi Lori M Olson
wel i am facing the same problem to execute the jar file. did u find
any solution?
|
|
| Back to top |
|
 |
|
|
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
|
|