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

您没有登录

» Java开发网 » Java SE 综合讨论区  

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





发贴: 16
积分: 20
于 2003-01-23 04:39 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
目录结构应该如下,

输出类:
d:\edit\java\jdk\package\classes

d:\edit\java\jdk\package\classes\com\simple\list.class
d:\edit\java\jdk\package\classes\yourmain.class

源代码:
d:\edit\java\jdk\package\src

d:\edit\java\jdk\package\src\com\simple\list.java
d:\edit\java\jdk\package\src\yourmain.java

In yourmain.java, you can ”import com.simple.*;".
And in list.java, the 1st line should be "package com.simple;"

The end, set classpath includes "d\edit\java\jdk\package\classes'", then i think everything would be fine.



人怕出名猪怕壮,我是一个流浪的寂寞黑手

搞笑QQ图片

话题树型展开
人气 标题 作者 字数 发贴时间
4518 package????? snakejohe 311 2003-01-20 21:15
3726 Re:package????? jamesji 530 2003-01-23 04:39
3705 Re:package????? javachina 371 2003-01-23 08:30

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