`

Duplicate name in Manifest: Depends-On

 
阅读更多

解决方法:http://ww2.sjc.edu/faculty_pages/hzhou/javaBugSolutions.html

Solutions to Encountered Bugs

I have been fixing some bugs in Java but never wrote down how.  Since now I am  teaching Java programming language, so I would like to record how bugs encountered are fixed.

1.    When you are running JDK5.0, you may see warning message when using javac:

java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Depends-On

 

This problem may be caused by different reasons.  Some people claimed that it was caused some jar files which contain 'bad' manifest file(s) in the jar package and the manifest file(s) may contain duplicate classpath specification.  When I met this problem and after reading the explanation of other java professionals, I did a little bit different.

First, I checked the system classpath.  Under Windows, 'echo %CLASSPATH%'; under Linux/Unix, 'echo $CLASSPATH'.   I found that I have some old version of java that is in the classpath, such as VisualCafe.  I suspect that this is the problem.  Then I cleaned the classpath, and then everything works fine.  (On our lab computers, I asked students to set the classpath to be ".\" to clear out any existing content since we do not have other libraries to refer to).

How to modify the CLASSPATH? 

  • Under window, go to Control Panel --> System --> Advanced --> Environment Variables --> Edit the Classpath.
  • Under Linux, modify your .bashrc or .zshrc or related profile.

 

分享到:
评论

相关推荐

    PPCoin: Peer-to-Peer Crypto-Currency with Proof-of-Stake

    Minting based on Proof-of-Stake Main Chain Protocol Checkpoint: Protection of History Block Signatures and Duplicate Stake Protocol Energy Efficiency Other Considerations Conclusion

    flink-connector-base-1.13.2-API文档-中英对照版.zip

    赠送jar包:flink-connector-base-1.13.2.jar; 赠送原API文档:flink-connector-base-1.13.2-javadoc.jar; 赠送源代码:flink-connector-base-1.13.2-sources.jar; 赠送Maven依赖信息文件:flink-connector-base-...

    谷歌地图 delphi 封装库 2013 0.1.9 全面支持google maps api

    - Improvement: TLinkedComponent -> added ChangeProperties protected method to centralize in one place the changes of properties of the objects - Improvement: TGMMarker -> modified all Set and Show...

    aspose-words-15.8.0-jdk16 jar包

    《Aspose.Words 15.8.0 for Java:高效实现Word到PDF转换》 在信息技术领域,文档转换是一项常见的需求,特别是在Java开发中。Aspose.Words是一款强大的库,专为处理Microsoft Word文档而设计,允许开发者在Java...

    EurekaLog_7.5.0.0_Enterprise

    1)....Fixed: Added workaround for codegen bug in Delphi 7 (possibly - other), bug manifests itself as wrong date-time in reports or integer overflows 2)....Fixed: Some MAPI DLLs may not be loaded ...

    glibc-common-2.17-307.el7.1.x86_64_oracle_glibc_依赖glibc安装_

    在IT行业中,操作系统和应用程序之间的交互是至关重要的。在Linux环境下,GNU C Library(简称glibc)扮演着核心角色,它是Linux系统上C语言编程的主要接口。标题中的"glibc-common-2.17-307.el7.1.x86_64_oracle_...

    codeblocks命令行启动.pdf

    CodeBlocks 命令行启动 CodeBlocks 是一个功能强大且灵活的集成开发环境(IDE),它可以通过命令行来运行。...* Duplicate line caret is on:Ctrl + D 这些快捷键可以帮助开发者快速完成开发任务。

    maven-duplicate-finder-plugin-1.0.4.jar

    maven-duplicate-finder-plugin-1.0.4.jar

    Duplicate Bug Report Detection Using Dual-Channel Convolution Neural Networks

    标题和描述所涉及的知识点主要集中在"Duplicate Bug Report Detection Using Dual-Channel Convolution Neural Networks",这是一种利用深度学习技术,特别是双通道卷积神经网络(CNN)来检测重复错误报告的方法。...

    TeeChart8.01 FullSource

    resell or redistribute in any way this source code as it is or modified. See the License.txt document for complete licensing and disclaimer issues. Recompiling Packages: ---------------------- ...

    ios开发快捷键大全.pdf

    - Command+A:选中全部内容(Duplicate) 4. 特定于Objective-C的快捷键: - Command+Shift+J:弹出模板选择菜单(objc2.0) 5. 代码编辑快捷键: - Command+[:缩进 - Command+]:反缩进 - Command+{:左大括号 -...

    RNPlayer:react-native音乐播放器

    RNPlayer基于react-native的音乐播放器音乐来源:网易云音乐Start git clone https://github.com/landandan/RNPlayer.git npm i效果展示引用库UI第一次使用,感觉不是那么好用遇到的问题Duplicate module name: ---...

    Fluent中常见报错及解决办法

    8. **Reverse flow infaces on pressure-outlet-X**: - 出现出口回流现象,可能是出口区域设计不当或计算域长度不足。延长出口计算域,检查并调整边界条件。 9. **temperature limited to 1.0000e+00**: - 计算...

    oracle常见错误号

    2. ORA-00957:duplicate column name - 在创建表或修改表结构时,如果列名重复,会出现此错误。确保所有列名都是唯一的。 3. ORA-01403:no data found - 在执行`SELECT INTO`或`EXISTS`查询时,如果没有找到匹配...

    neo4j-admin import导入工具csv导入及参数说明

    - **--ignore-duplicate-nodes**: 忽略重复节点的设置。 - 示例:`--ignore-duplicate-nodes=true` - 可选值:`true`, `false`。 - 默认值为 `false`。 - 解释:如果设置为 `true`,则在导入时忽略重复的节点...

    lrucacheleetcode-leetcode-in-go:leetcode-in-go

    contains-duplicate-0217 find-minimum-in-rotated-sorted-array-0153 数组的乘积-除了-self-0238 从排序数组中删除重复项-0026 搜索旋转排序数组-0033 两个整数之和-0371 二和-0001 回溯 组合-和-0039 组合总和-ii-...

    fdnd-net-presence-duplicate:https:fdnd-task.github.iofdnd-net-presence-duplicate

    叉子deze leertaak en ga aan渣。 jouw eigen GitHub omgeving uitwerken中的Onderstaan​​de大纲和je geedurende deze taak。 德·斯蒂文·温德·杰(Zoals altijd),在: 标题描述 :nerd_face:目录产品特点安装...

    Alike Duplicate Image Finder 2.2 绿色版-----查找重复图片

    《Alike Duplicate Image Finder 2.2 绿色版——高效重复图片查找工具解析》 在数字时代,我们的电脑和移动设备中往往存储了大量的图片,随着时间的推移,重复图片的问题变得越来越普遍。这些重复的图片不仅占用...

Global site tag (gtag.js) - Google Analytics