Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

terryliza

Members
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

About terryliza

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

terryliza's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. Error Compiler fixed ....... package l2f.commons.compiler; import java.io.File; import java.io.StringWriter; import java.io.Writer; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Locale; import javax.tools.Diagnostic; import javax.tools.DiagnosticListener; import javax.tools.JavaCompiler; import javax.tools.JavaFileObject; import javax.tools.StandardJavaFileManager; import org.eclipse.jdt.internal.compiler.tool.EclipseCompiler; import org.eclipse.jdt.internal.compiler.tool.EclipseFileManager; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * ????? ?????????? ??????? Java ??????<br> * ? ???????? ??????????? ???????????? Eclipse Java Compiler * @author G1ta0 */ public class Compiler { private static final Logger _log = LoggerFactory.getLogger(Compiler.class); private static final JavaCompiler javac = new EclipseCompiler(); private final DiagnosticListener<JavaFileObject> listener = new DefaultDiagnosticListener(); private final StandardJavaFileManager fileManager = new EclipseFileManager(Locale.getDefault(), Charset.defaultCharset()); private final MemoryClassLoader memClassLoader = new MemoryClassLoader(); private final MemoryJavaFileManager memFileManager = new MemoryJavaFileManager(this.fileManager, this.memClassLoader); public boolean compile(File... files) { // javac options List<String> options = new ArrayList<String>(); options.add("-Xlint:all"); options.add("-warn:none"); // options.add("-g:none"); options.add("-g"); options.add("-source"); options.add("1.8"); // options.add("-deprecation"); Writer writer = new StringWriter(); JavaCompiler.CompilationTask compile = javac.getTask(writer, this.memFileManager, this.listener, options, null, this.fileManager.getJavaFileObjects(files)); if (compile.call()) { return true; } return false; } public boolean compile(Collection<File> files) { return this.compile(files.toArray(new File[files.size()])); } public MemoryClassLoader getClassLoader() { return this.memClassLoader; } private class DefaultDiagnosticListener implements DiagnosticListener<JavaFileObject> { @Override public void report(Diagnostic<? extends JavaFileObject> diagnostic) { _log.error(diagnostic.getSource().getName() + (diagnostic.getPosition() == Diagnostic.NOPOS ? "" : ":" + diagnostic.getLineNumber() + "," + diagnostic.getColumnNumber()) + ": " + diagnostic.getMessage(Locale.getDefault())); } } }
  2. Hello guys, can someone help with a high hit. so I want to and we will proceed with this project. I fixed a few things