About 50 results
Open links in new tab
  1. How does Visual Studio Code compile Java code? - Stack Overflow

    Jul 31, 2025 · The JIT compiler optimizes the application at runtime and compiles it to machine-code (that's why it's a JIT (just-in-time) compiler). The issue I have with your answer is that you say "Java …

  2. Does java compiler (javac) require JVM to compile the java code?

    Jul 1, 2025 · 5 If javac is written in java, does compiling a java code require the JVM to start? Yes, running javac requires a JVM or some equivalent way to execute Java code. (You could, I suppose, …

  3. How to find and change Java compiler option in Visual Studio Code ...

    Jul 2, 2019 · The most common way is to set JAVA_HOME environment variable to the install location of the JDK while you can also use java.home setting in Visual Studio Code settings (workspace or user …

  4. How exactly does java compilation take place? - Stack Overflow

    If the compiler code is written is java, then how come compiler code is executed at the compilation stage, since its the job of the jvm to execute java code. That's exactly what wrapping code does.

  5. Is Java a Compiled or an Interpreted programming language

    Aug 25, 2009 · Java implementations typically use a two-step compilation process. Java source code is compiled down to bytecode by the Java compiler. The bytecode is executed by a Java Virtual …

  6. java - Compile code fully in memory with javax.tools.JavaCompiler ...

    I think this here might be of help it basically shows how to compile Java source from memory (the string is located in the class). It uses the PrinterWriter and StringWriter to write the source to a String /in …

  7. Can I compile Java to native code? - Stack Overflow

    Jun 7, 2010 · Is there any way to compile from Java to standalone (or library) machine code without requiring a JVM?

  8. Java - When is it a compiler error and when is it a runtime exception ...

    I'm not sure if this "human compiler" skill is all that useful, honestly, beyond some basic working understanding of the language and the API. It's pretty much guaranteed that there will always be a …

  9. Optimization by Java Compiler - Stack Overflow

    The javac compiler once supported an option to generate optimized bytecode by passing -o on the command line. However starting J2SE1.3, the HotSpot JVM was shipped with the platform, which …

  10. java - Is the JVM a compiler or an interpreter? - Stack Overflow

    Oct 6, 2011 · A typical compiler will convert all the code at once from source code to machine level language. Instead, JIT goes line by line (line by line execution is a feature of Interpreters) and …