Skip to content

awcasella/Simple-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

Simple calculator built using Java.

About this Project

This project's goal is to create a simple calculator app on which the user can perform simple mathematical operations and get the result displayed.

Getting Started

Prerequisites

To run this project, you'll need to have a basic environment to run a Java App.

Cloning the Repository

$ git clone https://github.com/awcasella/Simple-Calculator.git

$ cd Simple-Calculator

Java Installation

$ sudo apt install default-jre

$ sudo apt install default-jdk

Run project

Compile the main class

$ javac Calculator.java

Run the application

$ java Calculator

After that, build the package

$ javac -d . Calculator.java

Run the application from the package

$ java src.Calculator

Making a standalone application

Create a manifest.MF document:

$ touch manifest.MF

Open the document, and write this:

Main-Class: src.Calculator
Name: src/Calculator.class
Java-Bean: True

Then just save the document. To make an jar, type this:

$ jar cfm app.jar manifest.MF src

Run the .jar file:

$ java -jar app.jar

To make it executable on linux, type this:

$ chmod +x app.jar

Built With

  • NetBeans: Quickly and easily develop desktop, mobile, and web applications with Java, JavaScript, HTML5, PHP, C/C++ and more.

References

About

Simple calculator built using Java.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages