package me.bell;
import java.awt.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.security.spec.ECField;
public class Main {
public static void main(String[] args) throws Exception {
//判断系统是否支持System Tray
if (!SystemTray.isSupported()) {
System.out.println("System Tray is not supported");
return;
} else {
//执行任务
Thread startThread = new Thread(new TrayUpdate());
startThread.start();
}
// start();
}
/*private static void start() {
try {
String currentDir = System.getProperty("user.dir") + "/../../../py/Tu.py";
String[] py = new String[]{"python", currentDir};
Process process = Runtime.getRuntime().exec(py);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line;
while ((line = br.readLine())!=null){
System.out.println(line);
}
br.close();
process.waitFor();
System.out.println("~~~~~~~ end ~~~~~~~");
} catch (Exception e) {
e.printStackTrace();
}
}*/
}