Skip to content

This bash script allows you to both compile and run a Java file using only one command, while displaying compiling errors in a different color.

Notifications You must be signed in to change notification settings

balamou/JavaMake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description:

This bash script allows you to both compile and run using only one command. The errors are displayed in a different colors.

asciicast

How to use Compile:

  • Open the terminal and type:

    $ curl -s https://raw.githubusercontent.com/balamou/compiler/master/installer.sh | bash
    
  • Switch to your directory using 'cd' and type this to compile and run the Java program (.java extension is optional):

    $ compile <YourJavaClass>
    
  • You can also compile it with parameters:

    $ compile <YourJavaClass> Param1 Param2 Param3
    
  • Once you typed your class name once, the script will remember it:

    $ compile Param1 Param2 Param3
    

    will run your last compiled class with those arguments.

  • If you type this:

    $ compile Test
    

    The output will be:

    [Java]
    -----COMPILING-----
    0 errors
    ------RUNNING------
    This is a test
    -------ENDED-------
    
    * Running this will generate .class files in the 'class' folder.
    

Commands

Command Function
--uninstall removes the soft link from /usr/local/bin and deletes the $HOME/compiler folder
--clear removes the 'class' folder

TODO

  • Make a configuration file that stores all the info like the name of the folder with the .class files. Also one that changed the colour of the errors and the colour of the display tags (----RUN----)
  • Add a --help command

About

This bash script allows you to both compile and run a Java file using only one command, while displaying compiling errors in a different color.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published