这个程序我是从http://www-900.ibm.com/developerWorks/cn/java/l-javaprint/index.shtml
下载来的:PrintSrc.zip。请多关注
下载来的:PrintSrc.zip。请多关注
解决方案 »
- java调用bat文件报java.lang.NoClassDefFoundError错误
- 关于bean的问题,请教教我。
- 谁有关于元旦的flash简单的作品 flash大侠请进
- 我也发个面试题:华为食堂面试
- 如何设置sun公司的netbean的类路径??
- 使用JNI,请问在VC中的unsigned short 在JAVA中用什么表示?
- sjc0722(★刀剑笑★) ﹐lengnuan(冷暖自知)快來取分
- FileInputStream fin = new FileInputStrem(System.in)
- applet在jbuilder环境下没问题,用ie调用出applet can't be instantiated,什么原因呢?
- 小菜鸟求问 Set<>和Iterator<>里面的值到底起的是什么作用?是表示Set遍历的规则吗,求教
- 请问哪里有jdk1.4.1下呀!
- 写好的 java 代码怎样编译成 exe 文件
另外,你查一下SystemProperties.java里,是否有package wf.common
在C:\javacode\com\szallcom\tools下有PrintTest.java
在C:\javacode\wf\common下有SystemProperties.class,但没有SystemProperties.java文件编译PrintTest.java显示:
C:\javacode\com\szallcom\tools\PrintTest.java:9: package wf.common does not exist
import wf.common.SystemProperties;
在C:\javacode\com\szallcom\tools下有PrintTest.java 在PrintTest.java文件中
在C:\javacode\com\szallcom\tools下有PrintTest.java 在PrintTest.java文件中
package com.szallcom.tools;
import ....;
import wf.common.SystemProperties;//在这里出错
public class PrintTest extends JFrame
implements ActionListener, Printable
{{.........
} 在SystemProperties.java文件中
package wf.common; import java.awt.*; public final class SystemProperties
{.....}在编译PrintTest.java时:
C:\javacode\com\szallcom\tools\PrintTest.java:9: package wf.common does not exist
import wf.common.SystemProperties;请朋友们看看问题在什么地方。
c:\javacode是我设置的classpath。如下:set classpath=c:\j2sdk1.4.1_01\lib;c:\j2sdk1.4.1_01\jre\lib\rt.jar;c:\j2sdk1.4.1_01\lib\tools.jar;c:\javacode
set classpath=c:\javacode;c:\j2sdk1.4.1_01\lib;c:\j2sdk1.4.1_01\jre\lib\rt.jar;c:\j2sdk1.4.1_01\lib\tools.jarset path=c:\j2sdk1.4.1_01\bin;%path%
classpath=%classpath%;d:\jdk\lib\dt.jar