🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #23195

����package�ģ���Ϻ����

#23195
From: colakings
Date: Mon, 11 Aug 2003 10:19
100 lines
7222 bytes
������: colakings (��������������ô��), ����: Java                            
  ]                                       
��  ��: ��Ϻ��ŷ������ι���package��                                         
                                          
����վ: ���¹⻪ (2003��08��11��16:01:10 ����һ), վ���ż�
                                                              

import colakings.fudan.*;                                                     
                                          
                 ~~~~~~~  ���ﻻ��fudan.packtest;������                       
                                          
public class coke                                                             
                                          
{                                                                             
                                          
    public static void main(String args[])                                    
                                          
    {                                                                         
                                          
        packtest pack=new packtest();                                         
                                          
    }                                                                         
                                          
}                                                                             
                                          
����F:\test\NewFolder����                                                     
                                          
package colakings.fudan;                                                      
                                          
public class packtest                                                         
                                          
{                                                                             
                                          
    public int pack;                                                          
                                          
    public packtest()                                                         
                                          
    {                                                                         
                                          
        pack=1;                                                               
                                          
    }                                                                         
                                          
    public void change()                                                      
                                          
    {                                                                         
                                          
        pack=2;                                                               
                                          
    }                                                                         
                                          
};                                                                            
                                          
����F:\test\NewFolder\colakings\fudan��                                       
                                          
                                                                              
                                          
����                                                                          
                                          
coke.java����                                                                 
                                          
---------- javac ----------                                                   
                                          
coke.java:6: cannot access packtest                                           
                                          
bad class file: .\packtest.class                                              
                                          
class file contains wrong class: colakings.fudan.packtest                     
                                          
Please remove or make sure it appears in the correct subdirectory of 
the                                                
classpath.                                                                    
                                          
        packtest pack=new packtest();                                         
                                          
                ^                                                             
                                          
1 error                                                                       
                                          
Output completed (0 sec consumed) - Normal Termination                        
                                          
������coke.java��import��䰴���������һ��                                 
                                          
�����ͨ����                                                                  
                                          
˭�ܽ���һ��                                                                  
                                          
--                                                                            
                                          
//��ˮ�ļ�                                                                    
                                          
//�ࡢ�ࡢ�࣡~~                                                              
                                          
�� ��Դ:�����¹⻪ bbs.fudan.edu.cn��[FROM: 10.89.100.24]                     
                                          
�� �޸�:��colakings � 08��11��16:01:42 �޸ı��ġ�[FROM: 10.89.100.24]        
                                          

--
�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 202.120.224.18]
Technical Details
Message-ID: <47c8TU$9uK@bbs.pku.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.zixia.net!news.happynet.org!PKU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,e71e80453084f74b,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-08-11 03:20:17 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.zixia.net!news.happynet.org!PKU
From: colakings@bbs.pku.edu.cn (colakings)
Newsgroups: cn.bbs.comp.lang.java
Subject: ����package�ģ���Ϻ����
Date: 11 Aug 2003 10:19:25 GMT
Organization: ����δ��վ
Message-ID: <47c8TU$9uK@bbs.pku.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1060597134.A
Lines: 100