• Post Reply Bookmark Topic Watch Topic
  • New Topic

Executable Jar File  RSS feed

 
Ram Mohan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai friends,
I am facing a problem.

I developed a schema browser with assistance of jtds driver.
So on making my application an executable jar file,I should also carry this jar file(jtds-1.1.jar) with my application. And before executing the jar file(application) I have to specify the jtds jar file in the class path.

Any idea to develop such an application.

Ram Mohan.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can add other jar files to your classpath by specifying them in the manifest file. If you add a line like

Class-Path: jtds-1.1.jar

to the manifest, you should not need to do anything else. You can even use relative paths, if the jar is in a different directory than the jar file carrying the manifest. It's also possible to add several jar files, by keeping their names space-separated (like "Class-Path: 1.jar 2.jar").
[ December 21, 2005: Message edited by: Ulf Dittmer ]
 
Ram Mohan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will try...

Ram Mohan.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!