• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deploying Driver Jars  RSS feed

 
Tim Holmes
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...I am creating a client application that I am deploying as a JAR file for users to have as a utility. In the application I am connecting to SQL 2000. My question is how to I deploy this so that when I give the JAR to other users they don't have to have the drivers installed on their machine and the CLASSPATH set, etc. ???
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are writing a run script for them, right? So, in the script, set the classpath and run your program:

java -cp path/to/jar-file(s) class [args...]

Or (perhaps better) do it with an Ant script.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!