Jump to content

terryliza

Members
  • Posts

    5
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About terryliza

Profile Information

  • Gender
    Not Telling
  • Country
    Brazil

Recent Profile Visitors

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

terryliza's Achievements

Newbie

Newbie (1/16)

  • Dedicated Rare
  • First Post Rare
  • Reacting Well Rare
  • Conversation Starter Rare
  • Week One Done Rare

Recent Badges

0

Reputation

  1. Hello, in the video I show how to change the protocol and downgrade from high five to interlude
  2. 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())); } } }
  3. 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
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock