Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Jars with driver linux / windows
Joined: Sep 22, 2009
Aug 21, 2010 04:38:34
When i compile jars like this
jar cvfm zjat.jar manifest.txt *.class mysql-connector-java-5.1.13-bin.jar
Main-Class: zjat Manifest-Version: 1.0 Class-Path: mysql-connector-java-5.1.13-bin.jar
It works on linux på not on windows, what do i need to do before it works on windows.
I didn't post the code because it doesn't matter its the Class-Path that is wrong, i have tried google it with no answer.
The connector is platform independent.
Joined: Oct 23, 2005
Aug 21, 2010 08:51:08
I believe the manifest file is supposed to come before the Jar name when using the 'm' flag.
Down Home Country Coding with Scott Selikoff
I agree. Here's the link:
subject: Jars with driver linux / windows
Connecting with MySql
JDBC connection error
How to add relative path in MANIFEST.MF
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013