Skip to content

karthigaav/Java_Shell_Using_Thread

Repository files navigation

Java_Shell_Using_Thread(Feb 2015)

Project Introduction:

This program is an Extension of interactive shell application implemented using Threads in Java language. The accomplishment is to provide a user a command promt and prompt the user for a operating system commands such as: attrib, copy, delete, dir, execute, main, mkdir, date, time, edit, rename, rmdir. This is same output like my @Java_Shell_Program but the only variation is this interactive shell program is implemented using Java Threads i.e each class is implemented using threads.


Implementation Of Each Class:
  • Attrib.java - This class has a method that is implemented to make a file read only.
  • Copy.java - the command copy fileA fileB will copy fileA to fileB.
  • Delete.java - This is implemented to delete a file.
  • Dir.java - This is implement to list the directory name that is displayed. In case of just dir, the list of the items in the current directory should show up.
  • execute.java - This class is implemented to run the main class as a command through this execute class.
  • mkdir name - mkdir.java - This class is implemented to create a directory.
  • MyDate.java - This class is for displaying the current time.
  • Notepad.java - This is a edit class that displays a notepad editor on the screen
  • Rename.java - Rename fileA to fileB.
  • Rmdir.java- This class is to remove the directory that is given as a input in the command prompt.
  • main.java - This class will have all the other classes has objects on its main method.

NOTE:

Most of these commands the user types a path and a name. For example if the user types: dir C:\windows The files and the directories of the directory windows must show up.

Software Requirements:

Used Eclipse Editor for Coding and testing.

System Requirements:

I have used Windows Operating system but this Application can be used in MAC, Linux too.

Programming Language:

core Java - Threads & Advance Java Libraries.

How to execute this project:

dowload all the .java files and put all the file into a zip file. Then import this folder to a Eclipse IDE editor and then execute the Execute.java file first. finaly, enter the command in the command prompt as assisted above.

Conclusion:

This programming implementation directly interacts with kernel level of the operating systems and complete each task.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages