2. nov. 2005

Set classpath the smart way

Original: http://mindprod.com/jgloss/classpath.html

Isn't it annoying you have to specify all the jar files needed to run a javaprogram?


Nomally you would make a:
  SET CLASSPATH=jar1.jar;jar2.jar;jar3.jar...


But in stead you can simply specify the directory where you have all your jar files:
  javac.exe -Djava.ext.dirs=usualextdir;anotherdir... 

and
  java.exe -Djava.ext.dirs=usualextdir;anotherdir...


See the original page for more tips.

13. okt. 2005

Diagnostic Tests with Ant

Diagnostic Tests with Ant

Suppose you have developed your Java application and distributed it to your users. If all goes well, the application just works on every computer. But if there's a problem, you have to begin troubleshooting. Users will call for all sorts of installation problems, expecting you to fix them. Moreover, the same problems will often come back: the wrong version of Java, a deleted file, too-restrictive file permissions, etc. Most of these problems can be solved by creating a checklist. However, instead of wasting time asking new users the same questions on the checklist over and over, you can create a diagnostic test that goes through the checklist, providing users with the information they need to solve the problem. If users can't solve the problem themselves, they can show you a clear checklist, so you can take a look at what's going wrong without asking a bunch of questions first.

What problems can users expect? First, things can already go wrong during the installation process if the user doesn't follow the installation instructions accurately. Even if the installation succeeds, problems can appear later. Changes in configuration (like the JAVA_HOME environment variable) or changes in the directory structure can indeed break things. In this article, we will develop an Ant script to run diagnostic tests for a Java application. We will look at a list of possible problems and how to deal with them. For our approach to work, Ant has to be installed on the user's machine. This may mean that your installer will have to provide Ant.

The article gets you through all kinds of environmenttest:

  • Write out a checklist of the systemenvironment

  • Check nessesary folders and required classes

  • Task for checking minimum JDK-version

  • MD5-checksum for configurationfiles and classes

  • Restore original configuration

11. aug. 2005

The VoipBuster! Free phone to 24 countries in Europe

Download the beta version of The VoipBuster!, and get free phone calls all around the world.



(You must pay 1 Euro for unlimited call
s)

18. maj 2005

How to free up Windows XP system resources

How to free up Windows XP system resources
Situation:
You are having performance problems or conflicts on a Windows XP computer. You want to know what programs or services you can safely stop from loading when you start Windows.
Symantec gives here a list of recommondations.

17. maj 2005

A neural network for Java Lego robots

A neural network for Java Lego robots
Learn to program intelligent Lego Mindstorms robots with Java
The Lego Mindstorms Robotics Invention System lets you design and program real robots that do what you want them to. By using artificial neural networks, you can build intelligent robots that can learn and show emergent behavior. This article describes the backpropagation algorithm, a basic neural network, and its implementation on a Lego Roverbot with Java.

Developers can build intelligent robots with Java, as it provides APIs for programming systems that can see, hear, speak, move, and even learn, using neural networks, which are algorithms that mimic our brain.

This article shows how to develop a robot that can learn by using the backpropagation algorithm, a basic neural network, and implementing it on a Lego Roverbot. Using both the algorithm and Java, the Roverbot?a Lego robot vehicle?can learn some basic rules for moving forward, backward, left, and right.

In this article, we use the Lego Mindstorms Robotics Invention System 2.0 for building the Lego robot; leJOS 2.1.0, a little Java operating system for downloading and running Java programs inside the Roverbot; and J2SE for compiling the Java programs under leJOS.

18. apr. 2005

Automatically implement design guidelines in your code.
Add Hammurapi, a design-compliance solution, to your toolbox

Design guidelines represent mere intent; for success however, implementing these guidelines is essential. The traditional way of implementing them is via code reviews. Hammurapi, a design-compliance tool, provides an automated and consistent way of implementing design guidelines, thereby making design reviews effective and painless. In this tutorial, author Sidharth Sankar introduces Hammurapi, compares it with similar tools, and gives a quick peek under the hood to illustrate how it works.

3. feb. 2005

Java Platform Migration Guide from 1.3 to 5.0

http://java.sun.com/j2se/JM_White_Paper_R6A.pdf

This guide helps developers migrate Java applets, standalone applications, Java Web Start applications, and development tools from version 1.3 of the Java platform to version 5.0.
While many 1.3 applications run without change, compatibility issues do exist, as described in this guide. The first three sections cover issues that are of interest to all application developers. The fourth section covers issues that are primarily of interest to platform implementers and tool developers.

19. jan. 2005

WindowsDevCenter.com: Disk Cleanup Hacks

WindowsDevCenter.com: Disk Cleanup Hacks.

This article gives you an idea how to clean up your harddisk reguarly via creating a cleanupset.
cleanmgr /sageset:1

And then create a scheduled task with:
cleanmgr /sagerun:1

13. jan. 2005

ONJava.com: Mock Objects in Unit Tests

ONJava.com: Mock Objects in Unit Tests.
The use of mock objects is a widely employed unit testing strategy. It shields external and unnecessary factors from testing and helps developers focus on a specific function to be tested.

This article is an introduction to Mocquer, which is a mock tool.

6. jan. 2005

Meet the experts: Bobby Woolf on J2EE architecture and design

Meet the experts: Bobby Woolf on J2EE architecture and design.
Java 2 Enterprise Edition (J2EE) is an environment for developing and deploying enterprise applications. The J2EE platform consists of services, application programming interfaces (APIs), and protocols that provide functions for developing multi-tiered, Web-based applications.
Here you'll find Question/answers to many things.