Getting started with NIO

The new input/output (NIO) library was introduced with JDK 1.4. Picking up where original I/O leaves off, NIO provides high-speed, block-oriented I/O in standard Java code. By defining classes to hold data, and by processing that data in blocks, NIO takes advantage of low-level optimizations in a way that the original I/O package could not, without using native code.
Read more

Using The Java Native Interface

In this tutorial we illustrate how the Java Native Interface (JNI) can be used to permit Java programs to communicate with C programs. We begin by compiling the Java program and the C program at the command prompt (i.e. outside of Eclipse) using the MinGW gcc compiler. Once the programs are compiled and executing correctly, we show how the programs can be integrated into an Eclipse project using the CDT plugin.
Read more

Java Using J-integra Tutorial

Generate Java COM code using J-integra
1) Run the application com2java.exe in the \bin directory.
2) Click the select button at the top of the window and locate the STKX.dll to be used to generate the Java code.
3) In the text box labeled Java package, type the name of the package in which you want the code to be placed. This tutorial will use the package STKX.
4) Select the Options…button and verify that the following options are enabled
Read more

jSIMPLEBUG: a Swarm tutorial for Java

This tutorial takes the user through the development of a Swarm model using the Java programming language. The model itself is a very simple one, but the application we build step by step around it makes use of a lot of the functionality of Swarm and demonstrates many of Swarm’s features. This Java-based tutorial borrows heavily from an earlier Objective-C-based tutorial by Chris Lanton and the Swarm development team. Indeed, the Java code is pretty much a loose translation of their Objective-C code and portions of the text are theirs as well. There are a number of changes, however, to reflect this tutorial’s focus on using Swarm with Java rather than Objective-C.
Read more

Eclipse And Java For Total Beginners Companion Tutorial Document

There are many ways to learn how to program in Java. The author believes that there are advantages to learning Java using the Eclipse integrated development environment (IDE). Some of these are listed below:
- Eclipse provides a number of aids that make writing Java code much quicker and easier than using a text editor. This means that you can spend more time learning Java, and less time typing and looking up documentation.
- The Eclipse debugger and scrapbook allow you to look inside the execution of the Java code. This allows you to “see” objects and to understand how Java is working behind the scenes
Read more