分类: Java
2008-12-25 17:13:27
@echo off
set classpath=E:\ming\workspace\nutch\bin;E:\ming\workspace\nutch\lib\org.eclipse.core.runtime_3.3.100.v20070530.jar;E:\ming\workspace\nutch\lib\org.eclipse.jface_3.3.2.M20080207-0800.jar;E:\ming\workspace\nutch\lib\org.eclipse.swt.win32.win32.x86_3.3.3.v3349.jar;
set path=;%path%;
java com.jy.main.AdminWin
pause
注释:
classpath表示所用到类和引用到JAR的目录,E:\ming\workspace\nutch\bin是nutch工程Java文件编译后存放的目录地址
set path表示JDK\BIN 目录,%path%表示在“环境变量”下设置的JDK\BIN 目录
java com.jy.main.AdminWin表示运行指定的SWT类文件,com.jy.main是包名,AdminWin类文件名
参考资料:http://www.blogjava.net/ThinkingTalking/archive/2007/10/28.html,http://kdisk-sina-com.javaeye.com/blog/275835
nm_2j(夜奔)回复于 2004-04-12 10:30:40 得分 22
@echo off
SET CLASSPATH=d:\exe;C:\jdk1.3\lib\tools.jar;
SET PATH=c:\jdk1.3\bin;
start javaw ***.***.***