⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.java

📁 java 文件下载器。可自定义
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Main.java

package org.gudy.azureus2.ui.swt.updater.snippets;

import java.io.File;
import java.net.InetAddress;
import java.net.ServerSocket;
import org.gudy.azureus2.core3.util.Debug;

// Referenced classes of package org.gudy.azureus2.ui.swt.updater.snippets:
//			Logger

public class Main
{

	private static String classToStart = "org.gudy.azureus2.ui.swt.updater.snippets.Started";

	public Main()
	{
	}

	public static void main(String args[])
	{
		try
		{
			ServerSocket server = new ServerSocket(6880, 50, InetAddress.getByName("127.0.0.1"));
			spawnStarted();
			server.close();
		}
		catch (Exception e)
		{
			Debug.printStackTrace(e);
		}
	}

	public static void spawnStarted()
		throws Exception
	{
		String classPath = System.getProperty("java.class.path");
		String userPath = System.getProperty("user.dir");
		String javaPath = (new StringBuilder()).append(System.getProperty("java.home")).append(System.getProperty("file.separator")).append("bin").append(System.getProperty("file.separator")).toString();
		String exec = (new StringBuilder()).append("\"").append(javaPath).append("java\" -classpath \"").append(classPath).append("\" ").append(classToStart).toString();
		Logger.log((new StringBuilder()).append("Main is about to execute : ").append(exec).toString());
		File userDir = new File(userPath);
		String env[] = {
			(new StringBuilder()).append("user.dir=").append(userPath).toString()
		};
		Runtime.getRuntime().exec(exec);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -