Hello World
For a first project, we’ll enter some very simple code and compile it. This should establish that your setup is in good shape.
Enter Code
In file named ‘HelloWorld.cs’, enter the following:
using System;using TaxControls;class HelloWorld{ public static void Main(){ CTaxControl tc = new CTaxControl(); Console.WriteLine(tc.SoftwareVersion); }}
In a file named ‘HelloWorld.java’, enter the following:
import com.boondocks.taxcontrols.TaxControl;public class HelloWorld{ public static void main(String[] args){ TaxControl tc = new TaxControl(); System.out.println(tc.getSoftwareVersion()); }}
Compile
Compile the code at the command prompt by executing the following:
csc /reference:TaxControls.dll HelloWorld.cs
javac -classpath .;bigloo_u.zip;TaxControls.jar HelloWorld.java
Run
Run the program by typing:
HelloWorld
You should see output similar to:
1.6.6.0
java -classpath .;bigloo_u.zip;TaxControls.jar HelloWorld
You should see output similar to:
2.5.6