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 

Problems running JAR in JBuilderX

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





PostPosted: Fri Dec 03, 2004 5:45 pm    Post subject: Problems running JAR in JBuilderX Reply with 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
Back to top
Lori M Olson [TeamB]
Guest





PostPosted: Mon Dec 06, 2004 6:44 pm    Post subject: Re: Problems running JAR in JBuilderX Reply with quote



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





PostPosted: Tue Jan 18, 2005 7:49 am    Post subject: Re: Problems running JAR in JBuilderX Reply with quote



Hi Lori M Olson
wel i am facing the same problem to execute the jar file. did u find
any solution?

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment 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.