About 50 results
Open links in new tab
  1. How do I run a Java program from the command line on Windows?

    Apr 22, 2013 · I'm trying to execute a Java program from the command line in Windows. Here is my code: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import …

  2. Android Gradle plugin requires Java 17 to run. You are currently using ...

    May 30, 2023 · Step 1: Just Download the Java 17. LINK Step 2: Set environment variable for Java 17. Step 3: In Android Studio Go to File → settings → Build, Execution, Deployment → Build Tools → …

  3. compilation - How do I run Java .class files? - Stack Overflow

    Dec 10, 2015 · 56 To run Java class file from the command line, the syntax is: ... where packageName (usually starts with either com or org) is the folder name where your class file is present.

  4. Android Studio Error "Android Gradle plugin requires Java 11 to run ...

    Apr 7, 2021 · If you run into this problem from the terminal in Android Studio, you should configure JAVA_HOME in your environment into Java 11, set the Gradle JDK in Preferences can't solve.

  5. java - How to open/run .jar file (double-click not working)? - Stack ...

    I can't open or run my .jar file. I just installed java, but I tried to open the .jar with other programs first, so the double-click defaults to something else and I can't change it back. java -jar

  6. java - How to run a JAR file - Stack Overflow

    Dec 4, 2016 · 11 If you don`t want to create a manifest just to run the jar file, you can reference the main-class directly from the command line when you run the jar file. ... This sets the which main …

  7. How to compile and run Java code in Visual Studio Code

    As a first step, try to compile your programm from te command line. E.g. How do I run a Java program from the command line on Windows? is a good start. You can run the commands directly in …

  8. java - Run .jar from batch-file - Stack Overflow

    Apr 12, 2010 · I have created an executable .jar file. How can I execute the .jar using a batch-file without mentioning a class path?

  9. macos - How to run a Java Class in Terminal - Stack Overflow

    Mar 12, 2017 · An alternative way is to create a runnable .jar file. First, you need to export jar file for the class. You can do this by right clicking to the .java file. Then Export > Runnable Jar file as in the …

  10. How to run Java program in command prompt - Stack Overflow

    Aug 15, 2012 · I created a Java project to call a Web service. It has one Main java file and another class file. I have used some jar files for HTTP client. In Eclipse it runs fine. I need to run the Java program...