Code Monkey home page Code Monkey logo

gcmd's Introduction

GCMD - Gavriel's Command Line Console


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.


How to run?

There are few options.

IDE

Run main.java in your IDE.

Your OS cmd

Use the following commands from the folder where you have saved the source code:

javac *.java`
java main.java

Jar

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

.exe of the current version of the GCMD exists in the source's main branch, and it is the easiest way to run GCMD.

image


Converting .jar To .exe

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/

Example:

image

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

Example:

image

Then, press on image and choose a file directory and name that ends with .exe where the output executable shall be saved.


Features

Keywords Highlighting

For now it is very simple and has some issues that should be fixed. image

Commands (Shall be added soon...)

* help

Command that prints the list of commands and what do they do.

* about

* echo

Command that prints all the text after the echo command, like real echo.

* background

* exit

Command that exists the GCMD.

* clear

Preview

image

gcmd's People

Contributors

gavriel770u avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.