Skip to main content

Learning Java - Setting up a development environment

Here is a brief summary of the software that needs to be setup so as to experiment with Java.

JRE - Java Runtime Environment. The famed "Java Virtual Machine" (JVM) on which Java bytecode runs is included in the JRE. Every computer/device that can run Java programs will have the JRE installed. The JVM can be invoked using the "java" command.

JDK - Java Development Kit. This is a bundle of software which has all the essential tools needed by a developer to create new Java programs. By Java programs I mean the bytecode that a JVM can run. The most important part of the JDK is the compiler itself; called the "javac". It is the javac that converts the source code (the .java files that is essentially text) to .class files that contain the bytecode.

With this background I invite you to patiently go through the nice little tutorial http://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html (For Windows users)

The above tutorial doesn't introduce an IDE like Eclipe/NetBeans; but I think, as shown in the tutorial, its a very good learning experience to start by using the required tools on the command-line. Once the concepts become clear, you can move onto an IDE and make use of its productivity features.

Comments

Popular posts from this blog

Converting Samsung S-Note .snb file to video : Solved ?

After my recent post ( http://electrokavalam.blogspot.in/2013/05/converting-samsung-s-note-snb-file-to.html ) about the difficulty in converting a Samsung S-Note .snb file to video I got some encouraging comments which made me realize that the problem is indeed relevant to some people at least. I am happy to announce the prototype solution that I have put together. This solution can convert the snb to a flash movie that can be easily viewed using a web browser with flash player installed. So, here are the steps: Step 1: Get the "drawingdata_1" file The (x,y,time) coordinates of the pen are available in text format within the .snb archive. Rename .snb to .zip and extract the archive. Navigate to <extracted-folder>\snote\media directory. You will find "drawingdata_1" file there. This is a simple text file (in XML format) that we are interested in. Step 2: Create flash movie using snb2swf From a command prompt run snb2swf.exe (which may be downloade...

matplotlib.pyplot - A great way to plot

http://matplotlib.org/users/pyplot_tutorial.html It can be confusing in the beginning - there is this pylab module which are used in the examples on the scipy site, then there is pyplot, pylab and matplotlib. As I understand, matplotlib is the main package and it has two modules - matplotlib.pylab, matplotlib.pyplot. The first one is designed for interactive use and the second one for batch/script use. In the light of my experience with matplotlib.pyplot, I have found it to be very similar to MATLAB in usage. Remember, the above are just plotting libraries. For manipulating vectors, matrices etc. it is the job of Numpy/Scipy

Learning assembly is easy

More than a year ago, in the fourth semester of my engineering studies I was formally introduced to the assembly level programming of the Intel 8086. However, to test my programs I got a special software package installed on my PC. The extra piece of software was justified as there was the need for an emulator - something that mimics the 8086 on anybody's computer. But the question remained ... when am I going to write an assembly program that I can directly run on my own processor and not on an emulator. Now, after a while and having rediscovered my interest for assembly I have finally figured out that it is extremely easy using gcc on my Linux terminal - Write the assembly code and save to a test file with the extension .s. Next on the terminal $ gcc test.s $ ./a.out Done !! Here is a wonderful tutorial http://linuxgazette.net/issue94/ramankutty.html