A custom cmd / CLI written in java using basic built-in javax.swing and java.awt GUI.
IMPORTANT NOTE: all the .exe
files that exists now are for Windows, and there is no guarantee that it will work for other OS such as Linux or macOS.
IMPORTANT NOTE2: the .exe
and .jar
files sometimes will be the older versions of the GCMD until I will be satisfied by the updates before I publish them.
There are few options.
Run main.java
in your IDE.
Use the following commands from the folder where you have saved the source code:
javac *.java`
java main.java
Jar is basically a java executable, in this source in the build
folder there will be all .class
files and manifest (.MF
) with .jar
, so only if you update the code you can run this.
The current version of the GCMD as .jar
is inside the build
folder so you can run it as regular application.
Use the following commands in your OS cmd to create .jar
:
NOTE: before it, switch your directory to the src
directory.
javac -d ../build *.java
cd ../build
jar cfm GCMD.jar MANIFEST.MF *.class
.exe
of the current version of the GCMD exists in the source's main branch, and it is the easiest way to run GCMD.
If you updated the code and you have compiled the code and converted it into .jar
and you want more users to use the version of the GCMD as executable and not as jar without downloading OpenJDK you can download the launch4j program.
Then, when you finished the setup of the program, open it.
Choose the Basic section, then in the Output file field choose or write the directory with filename in which the .exe
will be saved.
For instance: C:\Users\your_user\Desktop\GCMD.exe
In the Jar field choose or write the source .jar
file that will be copied and converted as .exe
.
Optional: in the Icon field you can choose .ico
image to be the icon of the .exe
NOTE: The original .ico
of the GCMD is in the source with the .exe
file.
In the Java download URL field write https://www.java.com/en/download/
Then, go to the JRE section and click on it.
In the Min JRE version field write 1.4.0
Optional: you can select JDK required
and 64-Bit required
Then, press on and choose a file directory and name that ends with .exe
where the output executable shall be saved.
For now it is very simple and has some issues that should be fixed.
Command that prints the list of commands and what do they do.
Command that prints all the text after the echo command, like real echo.
Command that exists the GCMD.