1.如何让一个控件获得焦点,TextField tf=new TextField(30);tf.setFocusable();???
2JCreator3.5设置问题:
引用的包在d:\,当前的程序在c:\test\下,看书上说需要设置class path,再import.
设置步骤如下:configue--jdk profiles--选中j2skd---edit---class---add--addpath---添加d:\---确定.可设置完后,就连原来编译通过的程序也编译不了,都是类似下面的提示,总之,修改过后所有的.java都无法编译生成.class文件.
请教该如何在JCreator中设置新增加的classpath.--------------------Configuration: <Default>--------------------
javac: invalid flag: C:\test\Interface1.java
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
-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 options
Process completed.
2JCreator3.5设置问题:
引用的包在d:\,当前的程序在c:\test\下,看书上说需要设置class path,再import.
设置步骤如下:configue--jdk profiles--选中j2skd---edit---class---add--addpath---添加d:\---确定.可设置完后,就连原来编译通过的程序也编译不了,都是类似下面的提示,总之,修改过后所有的.java都无法编译生成.class文件.
请教该如何在JCreator中设置新增加的classpath.--------------------Configuration: <Default>--------------------
javac: invalid flag: C:\test\Interface1.java
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
-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 options
Process completed.
解决方案 »
- 如何用JAVA 判断一个文本文件的编码字符集?高分请教各位大侠!!!
- 在DOS窗口下输入javac -help命令帮组信息出现乱码(有图)
- eclipse打印问题
- 编译时出现unchecked for details 这应该怎么解决呢??
- 不用集成环境,在dos环境下怎样运行编好的java 文件
- 高分求助:泛型类能序列化吗?
- 98 下的环境变量在哪里设置?
- 谁能给我祥细解释一下MVC的开发模式,或有关相文档
- 单实例的类对象使用后,如何释放?
- 请教Java Swing开发高手一个JTattoo皮肤包的技术问题。
- 急!急!急!急!急!大伙帮我看看,马上揭帖!!!
- 求求大家帮忙解决tomcat的问题,急啊。。。
我知道应该是JDBC驱动的问题。
我在环境变量中已经配置了 mysql-connector-java-3.2.0-alpha-bin.jar 的路径(包括文件名)。
配置在 path 里面Class.forName(com.mysql.jdbc.Driver);
System.out.println("Success loading MySQL Driver!");
PATH里面我设置了BIN目录
CLASSPAHT里面设置了
tools.jar和驱动.jar的完整路径