服务器补偿问题 [英] server compliation problem

查看:97
本文介绍了服务器补偿问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试编译我的服务器时,我收到以下错误


D:\ JAVA_P~1 \SIMPLE~1> javac -classpath。 PhoneDirServer.java

PhoneDirServer.java:6:包PhoneDirectory不存在

import PhoneDirectory.PhoneDirImpl;

^

。\ PhoneDirImpl.java:34:类,接口或enum预期

}

^

。\ PhoneDirImpl.java :12:找不到符号

符号:class PhoneDirInterface

实现PhoneDirInterface {

^

PhoneDirServer.java: 29:无法访问PhoneDirImpl

坏类文件:.\ PhoneDirImpl.java

文件不包含类PhoneDirImpl

请删除或确认它出现在classpa的正确子目录中

th。

PhoneDirImpl myObject = new PhoneDirImpl();

^

4错误


这是我的服务器代码

when i try to compile my server i get the following errors

D:\JAVA_P~1\SIMPLE~1>javac -classpath . PhoneDirServer.java
PhoneDirServer.java:6: package PhoneDirectory does not exist
import PhoneDirectory.PhoneDirImpl;
^
.\PhoneDirImpl.java:34: class, interface, or enum expected
}
^
.\PhoneDirImpl.java:12: cannot find symbol
symbol: class PhoneDirInterface
implements PhoneDirInterface {
^
PhoneDirServer.java:29: cannot access PhoneDirImpl
bad class file: .\PhoneDirImpl.java
file does not contain class PhoneDirImpl
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
PhoneDirImpl myObject = new PhoneDirImpl();
^
4 errors


here is my server code

展开 | 选择 | Wrap | 行号

推荐答案


当我尝试编译我的服务器时出现以下错误


D:\ JAVA_P~1 \SIMPLE~1> javac -classpath。 PhoneDirServer.java

PhoneDirServer.java:6:包PhoneDirectory不存在

import PhoneDirectory.PhoneDirImpl;

^

。\ PhoneDirImpl.java:34:类,接口或enum预期

}

^

。\ PhoneDirImpl.java :12:找不到符号

符号:class PhoneDirInterface

实现PhoneDirInterface {

^

PhoneDirServer.java: 29:无法访问PhoneDirImpl

坏类文件:.\ PhoneDirImpl.java

文件不包含类PhoneDirImpl

请删除或确认它出现在classpa的正确子目录中

th。

PhoneDirImpl myObject = new PhoneDirImpl();

^

4错误


这是我的服务器代码
when i try to compile my server i get the following errors

D:\JAVA_P~1\SIMPLE~1>javac -classpath . PhoneDirServer.java
PhoneDirServer.java:6: package PhoneDirectory does not exist
import PhoneDirectory.PhoneDirImpl;
^
.\PhoneDirImpl.java:34: class, interface, or enum expected
}
^
.\PhoneDirImpl.java:12: cannot find symbol
symbol: class PhoneDirInterface
implements PhoneDirInterface {
^
PhoneDirServer.java:29: cannot access PhoneDirImpl
bad class file: .\PhoneDirImpl.java
file does not contain class PhoneDirImpl
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
PhoneDirImpl myObject = new PhoneDirImpl();
^
4 errors


here is my server code
展开 | 选择 | Wrap | 行号


D:\ _JAVA_P~1 \SIMPLE~1 \PHONED~1> javac -classpath。 PhoneDirImpl.java

PhoneDirImpl.java:34:类,接口或枚举预期

}

^

1错误
D:\JAVA_P~1\SIMPLE~1\PHONED~1>javac -classpath . PhoneDirImpl.java
PhoneDirImpl.java:34: class, interface, or enum expected
}
^
1 error



D:\ JAVA_P~1 \SIMPLE~1 \ PHONED~1> javac -classpath。 PhoneDirImpl.java

PhoneDirImpl.java:34:类,接口或枚举预期

}

^

1错误
D:\JAVA_P~1\SIMPLE~1\PHONED~1>javac -classpath . PhoneDirImpl.java
PhoneDirImpl.java:34: class, interface, or enum expected
}
^
1 error



好​​;现在至少javac可以找到正确的来源。以上只是

编译错误(缺少括号等)了解如何读取编译器错误

诊断消息。


编译器期望更多关注正确的大括号

,表明你的括号不匹配。


亲切的问候,


Jos

Good; now at least javac can find the correct source. The above is simply
a compilation error (missing brackets etc.) Learn how to read compiler error
diagnostic messages.

The compiler expected something more following that right curly brackets
which indicates that your brackets don''t match properly.

kind regards,

Jos


这篇关于服务器补偿问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆