Modify the classpath to run Java on the command line
If you’re getting the NoClassDefFoundError when you try to run your Java program, there are two ways to solve this. 1. Specify the classpath as your current directory each time you run your program by...
View ArticleInstall Sun Java JDK on Ubuntu
These instructions were executed on Ubuntu 10.10 running atop a 32-bit machine. 1. Download the latest JDK here. 2. Move the binary file to your directory of choice. The consensus from various...
View ArticleStatic versus Instance Methods
Static methods belong to a type while instance methods belong to instances of a type. – Mehrdad Afshari Well said. (Source: stackoverflow)
View ArticleShort-circuit Conditionals in VB.NET
I found myself searching for this several times. The two operators for short-circuit evaluation are ‘AndAlso’ and ‘OrElse’. If (conditionOne) AndAlso (conditionTwo) Then …. End If If (conditionOne) is...
View ArticleCrystal Reports for .NET Framework 4.0: FileLoadException
If you’re using a CrystalReportViewer and get this exception when attempting to load a report, this is a possible fix: In the App.config file for the project, change <startup> to <startup...
View ArticleCallbacks Analogy
It can be helpful to make an analogy to something that might occur in everyday life to fully appreciate the value of a design based on callbacks. Imagine your boss has just assigned you a task. Assume...
View Article
More Pages to Explore .....