• Post Reply Bookmark Topic Watch Topic
  • New Topic

entering a CLASSPATH in a manifest file when the directory is not in root  RSS feed

 
Nikolas Nikolaou
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.I'm trying to add a CLASSPATH to a manifest file linking (not sure If that's the right word) to an sqljdbc4.jar file.

If I copy the file Into my root folder and use CLASSPATH: sqljdbc4.jar It works fine.

Class-Path: sqljdbc4.jar
Main-Class: com.ncntech.go

If I try CLASSPATH: C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\sqljdbc4.jar I receive a "Could not find or load main class" error.

Class-Path: C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\sqljdbc4.jar
Main-Class: com.ncntech.go

Is the syntax correct for specifying a directory path ?

Thank you.
 
Knute Snortum
Sheriff
Posts: 4274
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a guess... do you need quotes around the path name?
 
Knute Snortum
Sheriff
Posts: 4274
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:Just a guess... do you need quotes around the path name?


Nope. Looks like the solution is to not have directories with spaces in the name!

See discussion here.
 
Nikolas Nikolaou
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! That link cleared things up
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!