Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区 » 安装/配置/编译/环境  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:请教一个classpath问题 [Re:why]
sammi8190





发贴: 14
积分: 0
于 2005-05-05 10:54 user profilesend a private message to usersend email to sammi8190search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
not this problem.
I find the command-line: java -classpath filename.jar -jar ex.jar
do not work. I use netbeans, I don't whether because of netbeans or java
If you have the problem like it,
you can add classpath in jar's Manifest.mf file

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.5.0_01-b08 (Sun Microsystems Inc.)
Main-Class: chat.Main
// add this line
Class-Path: dir\*.jar //(jar file name)
X-COMMENT: Main-Class will be added automatically by build




话题树型展开
人气 标题 作者 字数 发贴时间
9812 请教一个classpath问题 sammi8190 134 2005-05-04 15:09
8126 Re:请教一个classpath问题 why 104 2005-05-04 20:38
8422 Re:请教一个classpath问题 sammi8190 48 2005-05-04 21:36
8401 Re:请教一个classpath问题 sammi8190 368 2005-05-04 21:42
8201 Re:请教一个classpath问题 why 348 2005-05-04 22:31
8322 Re:请教一个classpath问题 sammi8190 348 2005-05-05 07:57
8193 Re:请教一个classpath问题 why 857 2005-05-05 09:26
8915 Re:请教一个classpath问题 sammi8190 493 2005-05-05 10:54

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923