应该不是,我把代码修改如下:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "MyTimestamp" AS
import java.lang.String;
import java.sql.Timestamp;
import java.io.*;
import java.util.*;public class MyTimestamp
{
public static String getTimestamp()throws IOException
{
try
{
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("C:\\MYBAT.BAT"); }
catch(IOException ex) { return "not success!";} return(new Timestamp(System.currentTimeMillis())).toString();
}
};
则返回not success!"
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "MyTimestamp" AS
import java.lang.String;
import java.sql.Timestamp;
import java.io.*;
import java.util.*;public class MyTimestamp
{
public static String getTimestamp()throws IOException
{
try
{
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("C:\\MYBAT.BAT"); }
catch(IOException ex) { return "not success!";} return(new Timestamp(System.currentTimeMillis())).toString();
}
};
则返回not success!"
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货