在 USER TOOLS中选:Add Tool>>
1、配置JAVA
Menu Text:java
Command:C:\jdk1.3.1\bin\java.exe
Argument:$(FileNameNoExt)
Initial Derictory:$(FileDir)
选中 Capture output
2、配置JAVAC
Menu Text:javac
Command:C:\jdk1.3.1\bin\java.exe
Argument:$(FileName)
Initial Derictory:$(FileDir)
选中 Capture output以后用Ctrl+1或2就可以编译运行你的JAVA程序了
1、配置JAVA
Menu Text:java
Command:C:\jdk1.3.1\bin\java.exe
Argument:$(FileNameNoExt)
Initial Derictory:$(FileDir)
选中 Capture output
2、配置JAVAC
Menu Text:javac
Command:C:\jdk1.3.1\bin\java.exe
Argument:$(FileName)
Initial Derictory:$(FileDir)
选中 Capture output以后用Ctrl+1或2就可以编译运行你的JAVA程序了
可是我刚才照你那么配置好像不对啊
因为我的程序是放在pro目录而不是bin下的
还有我想搞清楚
那augument和initial dir 到底是用来配置什么的啊
///output window是
---------- javac ----------
javac: invalid flag: HelloWorld
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-O Optimize; may hinder debugging or enlarge class file
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard optionsNormal Termination
Output completed (2 sec consumed).
它是配置JAVA的编译和执行目录
你的程序放到那里都可以要是编译出问题,只说明是你的系统的CLASSPATH缺少包
你可以把缺少的包放到
Command:C:\jdk1.3.1\bin\java.exe -classpath %classpath%;你的包另外,我不是姐姐或妹妹
dos底下编译程序
一点都没问题啊
javac: invalid flag: HelloWorld.JAVA
老是这个错误啊