#SWT Scientific Calculator
This is a Java application I made. It reproduces a RPN calculator with the addition of another calculator that can graph functions for you.
For further information visit the [wiki] (https://github.com/gjkf/SWTCalculator/wiki/)
[Requirements] (#requirements)
[Downloads] (#downloads)
[Launching] (#launching)
[Licensing] (#licensing)
###Requirements
This application requires Java to run. Make sure you have it installed before launching this application.
The Java JDK is used to compile this project.
- Download and install the Java JDK.
- Windows/Mac download link. Scroll down, accept the
Oracle Binary Code License Agreement for Java SE
, and download it (if you have a 64-bit OS, please download the 64-bit version). - Linux: Installation methods for certain popular flavors of Linux are listed below. If your distribution is not listed, follow the instructions specific to your package manager or install it manually here.
- Gentoo:
emerge dev-java/oracle-jdk-bin
- Archlinux:
pacman -S jdk7-openjdk
- Ubuntu/Debian:
apt-get install openjdk-7-jdk
- Fedora:
yum install java-1.7.0-openjdk
- Gentoo:
- Windows/Mac download link. Scroll down, accept the
- Windows: Set environment variables for the JDK.
- Go to
Control Panel\System and Security\System
, and click onAdvanced System Settings
on the left-hand side. - Click on
Environment Variables
. - Under
System Variables
, clickNew
. - For
Variable Name
, inputJAVA_HOME
. - For
Variable Value
, input something similar toC:\Program Files\Java\jdk1.7.0_51
EXACTLY AS SHOWN (or wherever your Java JDK installation is), and clickOk
. - Scroll down to a variable named
Path
, and double-click on it. - Append
;%JAVA_HOME%\bin
EXACTLY AS SHOWN and clickOk
. Make sure the location is correct; double-check just to make sure.
- Go to
- Open up your command line and run
javac
. If it spews out a bunch of possible options and the usage, then you're good to go.
###Downloads
- Linux:
- Windows
- MacOSX
###Launching
Make sure you have the SWTCalculator.jar
in the same directory as the swt.jar
, otherwise it won't work.
Unfortunately this needs to be launched via command line, sorry!
All you have to do is navigate to the extracted directory (you'll download a .zip file so you'll un-zip it and you'll get a folder) using cd
. Once you are there just run java -jar SWTCalculator.jar
.
If you are on Mac, you need to type in this java -jar -XstartOnFirstThread SWTCalculator.jar
.
-
Source code Copyright © 2014 Davide Cossu.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.