How to create Batch Script⚙for automate☕java compiling processšŸ› 

Java Compiler v0.1

    Hello Readers, Welcome all of you! I felt little uncomfortable while compiling Java Program in Command Prompt (cmd). So, I built up this...

As an example, always we have to type down like this,

javac PrimitiveData.java 

Press EnteršŸ˜”

PrimitiveData.java 

Press EnteršŸ˜”šŸ„±

     As a beginner you also will face this uncomfortable matter too, if you’re not using advanced IDEs like NetBeans, eclipse, VScode etc. If you’re most interacting with Advance IDEs, then skip this method because they have inbuilt compiler within. 

    This simple program for users who using simple text editors for their ease. I personally use Notepad++ (Try out that cutie if you like).

    This is a simple Batch Script to sequence a snippet of codes.

@echo off

echo Input the name of Java program with (.java) extention

set /p resp="Name: "

echo "Compiling & Executing.."

javac %resp%

%resp%

 You can download (.bat) file herešŸ‘‡.

gayashanb/jacompy: a little experiment to compile java program easily in command prompt (github.com)

#jacompy #javacompiler #menuka #gayashanb #batchscript

Comments