java
markinlqx
这个作者很懒,什么都没留下…
展开
-
ChromeDriverService start java.lang.NoSuchMethodError
Exception in thread "main" java.lang.NoSuchMethodError: 'void com.google.common.base.Preconditions.checkState(boolean, java.lang.String, java.lang.Object)' at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:146) ...原创 2021-10-15 11:10:16 · 417 阅读 · 0 评论 -
Can't find AVD or SDK manager in Eclipse
Can't find AVD or SDK manager in EclipseI have solved this as follows:Window > Customize Perspective... (you will see Android and AVD Manager are disabled)Command Groups Availabi原创 2018-02-05 17:45:45 · 174 阅读 · 0 评论 -
Java实现对MongoDB的AND、OR和IN操作
reference: http://blog.csdn.net/mydeman/article/details/6652387@SuppressWarnings("deprecation") public boolean Is_Execution_In_The_Status_Under_Project(String ProjectName, String ExecutionName,原创 2016-01-06 16:24:09 · 500 阅读 · 0 评论 -
Failed to load the sqljdbc_auth.dll cause :- no sqljdbc_auth in java.library.path
First , download the latest version of jdbc driver from following address:http://www.microsoft.com/zh-cn/download/details.aspx?id=11774click the application you have downloaded .Copy原创 2015-08-13 10:18:47 · 3117 阅读 · 0 评论 -
Compare two different format date string
//Compare two different format date string, if two date same, return true, else return falsepublic static boolean IsTwoDateSame(String sDateA, String sDateB) { boolean flag=false; SimpleDateF原创 2015-02-05 17:06:23 · 451 阅读 · 0 评论 -
Java String and Date convert
//String to dateString date = "15/04/2015";SimpleDateFormat sf = new SimpleDateFormat("dd/MM/yyyy");try { Date myDate = sf.parse(date); } catch (java.text.ParseException e) { e.printStackTrace()转载 2015-02-05 17:38:06 · 444 阅读 · 0 评论 -
java中正则表达式运用实例(用String类的matches方法演示)
测试代码 package test; /** * 在String的matches()方法,split()方法中使用正则表达式. * @author fhd001 */ public class RegexTest { public static void main(String[] ar转载 2015-02-05 16:54:26 · 1011 阅读 · 0 评论 -
execute Windows powershell command or .ps1 file by java
public static String executePSCommand(String command) throws Exception { //String cmd = "cmd /c c:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell -noprofile -noexit -executionP原创 2014-07-30 11:08:51 · 1099 阅读 · 1 评论 -
java中Class.getResource用法
转自 : http://sailinglee.iteye.com/blog/433097转载 2014-07-28 17:31:15 · 387 阅读 · 0 评论