Ok, I think I must be doing something wrong.
I've been able to get the .jar file created, and I have a manifest file that looks as follows:
I have a directory C:\Projects\java and that's where all the classes I use are, including DST. Then there are Microsoft
JDBC classes which all exist under the C:\Projects\java\com directory.
So, from the command line I type:
jar cvfm DST.jar DST.manifest *.java *.dll com (the *.dll is because there's a file called admincheck.dll that DST makes a call to)
My classpath has the following in it:
C:\Projects\java
C:\Projects\java\DST.jar
However, I get the error "Could not find the main class. Program will exit." if I use javaw DST.jar.
On the other hand, using java -jar DST.jar or double-clicking on the icon for DST.jar works. I don't understand why they work and javaw doesn't from the command line.
Can anyone help me with that?
Separate problem: If I copy the DST.jar file to another directory, and I add that directory to the classpath (and the directory\DST.jar as well), then double-clicking and javaw both fail. java -jar on the other hand gives me an error that admincheck is not in java.library.path
How do I solve this problem?
Thanks again in advance.