<p>We have a simple [spring-hibernate] application (console app) where in we have set the classpath in manifest file of the executable JAR file. And the app connects to the database using jTDS JDBC Driver, Everything works as expected on Windows machine and JDK 1.6, but on Linux, the app is unable to find the driver, 
We are running the program using java -jar MainClassName.</p>

<p>Any suggestions why this might be happening is greatly appreciated.</p>

[{'answer_id': 61222, 'author': 'Fernando Barrocal', 'author_id': 2274, 'author_profile': 'https://Stackoverflow.com/users/2274', 'pm_score': 0, 'selected': False, 'text': "<p>Honestly it sounds like bad CLASSPATH. One thing I suggest to start debugging this problem is copying the jtds package to same path as your main packages/classes and see if it works. This way you can assure the Classpath manifest is or isn't the problem. The Spring/Hibernate relies on the lib directory, so it will always be on classpath because it's main structure. Use the lib directory also to test.</p>\n\n<p>Hope this guidelines will help. Also send more information, like paths, classpath and manifest files.</p>\n"}, {'answer_id': 106590, 'author': 'MM.', 'author_id': 6332, 'author_profile': 'https://Stackoverflow.com/users/6332', 'pm_score': 2, 'selected': False, 'text': '<p>This issue occurred because our jdbc.url had invalid url. This was because maven treats jdbc.url property as a special property and while profiling, instead of url defined in the filter.properties. And that is the reason "No Suitable Driver" exception. The question should have been more clear. </p>\n\n<p>Anyways to fix that we had to rename jdbc.url properties to jdbc.url.somename. This fixed our issue with maven profiling. We also had a similar maven profiling issue for a property called "server.name" This filter property was also confusing maven profiling . We had to change the name of that property as well.</p>\n\n<p>Thanks again Fernando. </p>\n'}, {'answer_id': 1389015, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>It is a Maven bug\n<a href="http://jira.codehaus.org/browse/MNG-3563" rel="nofollow noreferrer">http://jira.codehaus.org/browse/MNG-3563</a></p>\n'}]
['https://Stackoverflow.com/questions/61191', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6332/']