signtool - problems with com and COM

Mitch Gart (mgart@netegrity.com)
Wed, 18 Aug 1999 10:58:41 -0400

From: Mitch Gart <mgart@netegrity.com>
To: "Java Security (E-mail)" <java-security@java.sun.com>
Subject: signtool - problems with com and COM
Date: Wed, 18 Aug 1999 10:58:41 -0400

Using signtool to sign a jar file, I've run into a
problem. Signtool takes a directory tree and creates
a signed .jar. But some of my classes (from third parties,
not written by me) have package-class names com.something and
others have names COM.something. Java rules say these files
go into directories com/something and COM/something.
This is a problem on Windows because file and directory names
are case-insensitive and "com" and "COM" are the same directory.

If you're using the "jar" command it lets you put some classes
into the jar, then cd elsewhere, then put some more classes in.
But with signtool you must put all the classes in with one
command and by specifying just one directory-tree.

Has anyone thought of a way to build a signed jar which contains
class files whose names are mixed in this way?

By the way the same problem exists with the Microsoft "cabarc"
program for signing a .cab file. Thanks,

- Mitch
- mgart at netegrity dot com