<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.phidgets.com/docs/index.php?action=history&amp;feed=atom&amp;title=Template%3APT3_JAVA_SBC_JAVAC</id>
	<title>Template:PT3 JAVA SBC JAVAC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.phidgets.com/docs/index.php?action=history&amp;feed=atom&amp;title=Template%3APT3_JAVA_SBC_JAVAC"/>
	<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:PT3_JAVA_SBC_JAVAC&amp;action=history"/>
	<updated>2026-05-02T05:06:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.phidgets.com/docs/index.php?title=Template:PT3_JAVA_SBC_JAVAC&amp;diff=32413&amp;oldid=prev</id>
		<title>Mparadis: Created page with &quot;&lt;div class=&quot;phd-slide-deck&quot; data-deck=&quot;PT3_JAVA_SBC_JAVAC&quot;&gt; &lt;div class=&quot;phd-slide-deck-header&quot;&gt;&lt;h3&gt;Language - Java&lt;/h3&gt;&lt;/div&gt; &lt;div class=&quot;phd-slides&quot;&gt; &lt;div class=&quot;phd-slide&quot;&gt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.phidgets.com/docs/index.php?title=Template:PT3_JAVA_SBC_JAVAC&amp;diff=32413&amp;oldid=prev"/>
		<updated>2021-03-08T21:42:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;div class=&amp;quot;phd-slide-deck&amp;quot; data-deck=&amp;quot;PT3_JAVA_SBC_JAVAC&amp;quot;&amp;gt; &amp;lt;div class=&amp;quot;phd-slide-deck-header&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;Language - Java&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div class=&amp;quot;phd-slides&amp;quot;&amp;gt; &amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;phd-slide-deck&amp;quot; data-deck=&amp;quot;PT3_JAVA_SBC_JAVAC&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide-deck-header&amp;quot;&amp;gt;&amp;lt;h3&amp;gt;Language - Java&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slides&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;PhidgetSBC with Javac&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-panels&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-panel phd-flex-column-align-center phd-flex-column-justify-middle&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/200x-/50/javac.jpg&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-panel phd-flex-column-align-left phd-flex-column-justify-top&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Welcome to using Phidgets with Java! By using Java, you will have access to the complete Phidget22 API, including events.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Javac is a command line-based compiler for java programs that compiles java code into bytecode class files.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Requirements&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
If you haven&amp;#039;t already, check out the &amp;lt;span&amp;gt;[https://www.phidgets.com/docs/SBC3003_User_Guide#Getting_Started user guide]&amp;lt;/span&amp;gt; in order to set up the&lt;br /&gt;
following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● Networking&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● Administrator password&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
This guide will cover development using an external machine. For development using the SBC itself, go back and select &amp;lt;b&amp;gt;Javac - Linux&amp;lt;/b&amp;gt; as your environment.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Introduction&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To begin, this video will help you get started:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-video-embed&amp;quot;&amp;gt;{{#ev:youtube|gZmWvWXICIA}}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Developing With An External Computer&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;There are two main ways in which you can access your SBC from an external computer:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● SBC Web Interface&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● Secure Shell (SSH)&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Since the &amp;lt;span&amp;gt;[https://www.phidgets.com/docs/SBC3003_User_Guide#Getting_Started SBC User Guide]&amp;lt;/span&amp;gt; covers the web interface in detail, this guide will&lt;br /&gt;
cover SSH.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;SSH&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
If you are unfamiliar with SSH, it is a simple yet powerful tool that allows you to log into a remote machine in order to execute commands. You can also&lt;br /&gt;
transfer files using the associated SCP tool.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;In order to use SSH, you need the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● The SBC&amp;#039;s IP address (e.g. 192.168.3.195) or the link local address (e.g. phidgetsbc.local)&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● The administrator password&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● SSH enabled on the SBC&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;SSH&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You can enable SSH on the SBC Web Interface as shown below:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/-x350/50/ssh.jpg&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;SSH on Windows&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To use SSH on Windows, we recommend &amp;lt;span&amp;gt;[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html PuTTY]&amp;lt;/span&amp;gt;. Use the images below as a guide for&lt;br /&gt;
configuring PuTTY (use the IP address or the link local address interchangeably):&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/-x325/50/putty1.jpg&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;SSH on Windows&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;After clicking open, simply login as root and provide the administrator password:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/putty2.jpg&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To transfer files between your SBC and Windows machine, we recommend either of these programs:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● &amp;lt;span&amp;gt;[https://winscp.net/eng/download.php WinSCP]&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;● &amp;lt;span&amp;gt;[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY PSCP]&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You will follow a similar process to access the SBC as described for SSH.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;SSH on Linux and macOS&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;SSH is available on Linux and macOS by default. To run SSH, open the terminal and type:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;ssh root@phidgetsbc.local&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Or, something like this (you will need to know the IP address of your SBC):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;ssh root@192.168.3.195&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You will then be prompted for the password in order to gain access to the SBC:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/sshmaclnx.jpg&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;SSH on Linux and macOS&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To copy a file from the SBC to your development machine using SCP, open the terminal and type:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;scp root@phidgetsbc.local:/path/to/source /path/to/destination&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You can reverse this if you want to transfer a file from your development machine to your SBC:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;scp /path/to/source root@phidgetsbc.local:/path/to/destination&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Installing Packages For Development&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The simplest way to set up Java on the SBC is via the install buttons on located on the SBC Web Interface (&amp;lt;b&amp;gt;System-&amp;gt;Packages&amp;lt;/b&amp;gt;). Check&lt;br /&gt;
&amp;lt;b&amp;gt;Include full Debian Package Repository&amp;lt;/b&amp;gt; before installing.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/-x270/50/Phidgetsbc_java.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
You will need to run commands on the SBC to install support for Python. You can either use SSH to issue the commands, or you can connect directly to the SBC via&lt;br /&gt;
a monitor and keyboard.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Installing Packages For Development&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;When developing for Java, ensure your development machine and your SBC have the same version of Java. Check your Java version by entering this command:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If you need to update the version of Java on your SBC, use the following commands:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;apt-get install default-jre-headless&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;update-alternatives --config java&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You&amp;#039;re now ready to begin programming! Continue through this guide for code examples and directions on where to go next.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Finding Code Samples&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To find the code sample to use for your Phidget, navigate to the &amp;lt;span&amp;gt;[https://www.phidgets.com/?view=code_samples&amp;amp;lang=Java Code Samples]&amp;lt;/span&amp;gt; page and&lt;br /&gt;
select your device from the drop-down menu.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/Java_sample_code.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Once you select your device, the code sample generator will give you a working code sample, and a selection of options to customize it to your needs.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Using the Code Samples&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If it&amp;#039;s unclear what any of the options do, click on the nearby &amp;lt;b&amp;gt;&amp;#039;?&amp;#039;&amp;lt;/b&amp;gt; for more info.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Once you&amp;#039;ve made your selections, click the &amp;lt;b&amp;gt;Download Example&amp;lt;/b&amp;gt; button to download a sample Java file.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/-x320/50/Java_Sample_Code_Download.png&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Setting up a New Project&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
When you are building a project from scratch, or adding Phidget functionality to an existing project, you&amp;#039;ll need to configure your development environment to&lt;br /&gt;
properly link the Phidget Java library.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
When developing on an external computer, you will write, compile, and test your programs on that machine. When you are ready, you will then upload your programs&lt;br /&gt;
to the SBC to run them.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Setting up a New Project&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Once your code is written, follow these steps to get your program running on the SBC:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;1. Place &amp;lt;b&amp;gt;phidget22.jar&amp;lt;/b&amp;gt; on your development machine in a directory that you will use to compile your Java files.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;2. Compile your &amp;lt;b&amp;gt;ProgramName.java&amp;lt;/b&amp;gt; file. If you are using a Windows machine, type the following into the command prompt:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;javac -classpath .;phidget22.jar ProgramName.java&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;3. If you are using a Linux or macOS machine, type the following into the terminal:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;javac -classpath .:phidget22.jar ProgramName.java&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You should now have a number of .class files in your project directory&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Setting up a New Project&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;4. Using the SBC Web Interface, create a new project:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-lazy-image&amp;quot; data-src=&amp;quot;https://www.phidgets.com/decks/PT3_JAVA_SBC_JAVAC/-x320/50/sbcproj.jpg&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Setting up a New Project&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
5. Transfer all the .class files from the development machine to the SBC, either using the SBC Web Interface or a tool like&lt;br /&gt;
&amp;lt;span&amp;gt;[https://winscp.net/eng/download.php WinSCP]&amp;lt;/span&amp;gt;.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The project directory will be:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;/usr/userapps/ProjectName&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Setting up a New Project&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;6. Use SSH to access the SBC terminal and go to the project folder:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;cd /usr/userapps/ProjectName&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;You can now run the program with the command:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-command-line&amp;quot;&amp;gt;&amp;lt;code&amp;gt;java ExampleName&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Success! The program is running on your SBC.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Running a Program Automatically&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Click on the sections below for various automation options:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;{{SBC_Running_A_Program_Automatically}}&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-slide&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;What&amp;#039;s Next?&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;{{Slide_Deck_PT3_Outro}}&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-navigation-buttons&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-simple-button phd-to-slide-button&amp;quot; data-navigation-direction=&amp;quot;prev&amp;quot;&amp;gt;«&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-progress-container&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-progress-bar&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-progress-slide-info&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;phd-simple-button phd-to-slide-button&amp;quot; data-navigation-direction=&amp;quot;next&amp;quot;&amp;gt;»&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div hidden class=&amp;quot;phd-hidden-breadcrumb-label&amp;quot; data-label=&amp;quot;Javac&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mparadis</name></author>
	</entry>
</feed>