A note on Java compilation on Windows, Ubuntu, and Raspberry Pi (Debian)

Here is some basic info for these three platforms (in particular, Java environment). A side note - I tried Geany, Netbeans, and BlueJ on Raspberry Pi. It seems that none of these IDE's is fast enough to do the work. The most efficient way to compile the Java source code probably is through command lines. … Continue reading A note on Java compilation on Windows, Ubuntu, and Raspberry Pi (Debian)

Java classpath and external library (with some personal notes as well)

The majority of this post is from Wikipedia. Classpath is a parameter—set either on the command-line, or through an environment variable—that tells the Java Virtual Machine or the Java compiler where to look for user-defined classes and packages. Contents 1 Overview and architecture 2 Setting the path to execute Java programs 2.1 Supplying as application … Continue reading Java classpath and external library (with some personal notes as well)

How to compile and run a Java program in command prompt?

Here is an example if you are going to use OpenJDK. This helps when it's too slow to load a Java IDE to compile the source files (For example, on Raspberry Pi platform; I've tried Geany and Netbeans. It takes forever to load...). From Terminal install the open jdk sudo apt-get install openjdk-7-jdk Write program … Continue reading How to compile and run a Java program in command prompt?

Processing.js – convert Java into JavaScript

Processing.js Quick Start - Processing Developer Edition Introduction This quick start guide is written from the standpoint of a Processing developer. No HTML or JavaScript knowledge is assumed, and only basic Processing knowledge is necessary. Index For the Impatient Why Processing.js? The Web: from Java to JavaScript Processing.js uses Modern Web Standards Writing a Processing.js … Continue reading Processing.js – convert Java into JavaScript

A simple Java code to use HTTP GET in Processing

import java.io.*; import java.net.*; String web_url = "https://www.google.com"; public class Web_access {    public String getHTML(String urlToRead) {       URL url;       HttpURLConnection conn;       BufferedReader rd;       String line;       String result = "";       try {          url = new URL(urlToRead);          conn = (HttpURLConnection) url.openConnection();          conn.setRequestMethod("GET");          rd = new BufferedReader(new … Continue reading A simple Java code to use HTTP GET in Processing

Another place to search for API

http://www.programmableweb.com/apis/directory This is the first page ONLY. API Name Description Category Updated Google Maps The Google Maps API allow for the embedding of Google Maps onto web pages of outside developers, using a simple JavaScript interface or a Flash interface. It is designed to work on both mobile... Mapping 12.05.2005 Twitter The Twitter micro-blogging service … Continue reading Another place to search for API