ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42030] - Class-Path attribute is not merged in the proper order in <manifest>
Date Tue, 03 Apr 2007 18:17:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42030>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42030





------- Additional Comments From wyuenho@gmail.com  2007-04-03 11:17 -------
Steve:

1. This requirement is nowhere to be found on the internet.
2. Sun's JDK 1.6.0, and 1.5.0_11 on Windows, Apple's JDK 1.5.0_07 and JDK 1.6.0
3. The build file has been attached

The problem with Ant generated manifests is that somehow Class-Path always gets
appended to the end. Suppose the Main-Class is referencing some classes in the
Class-Path, the above JDKs' java commands can't load the Class-Path before the
loading the Main-Class and executing the jar file results in
NoClassDefFoundErrors. This problem does not exist by using the JDK supplied jar
utility because the Class-Path attribute is always merged in a place before the
Main-Class. This may be a JDK implementation-specific bug but it's a big one.
May be Ant can do something about this for now?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message