You are visitor number

Monday, May 25, 2009

Setup java compiler in Windows 7 in ten steps

When I first decided to learn Java all alone, the first major setback I faced was how to setup the java compiler in Windows 7 (same for windows vista). Most of the search I did gave confusing description and were based on Windows XP which is kind of history now.

For guys who are new to Windows Vista and 7 following is the detailed description of setting up your java compiler:

  1. Download the Java Development Kit (JDK). You can download it here.
  2. Follow the instructions and install the JDK.
  3. Right-click the Computer icon on your desktop or start menu, click on properties.
  4. Click on Advanced system settings. A dialog box appears.
  5. Click on the Environment Variables button at the bottom-right of the System Properties dialog box.
  6. A dialog box named Environment Variables appears. Click on the TEMP variable in the User variables section. Now go down to the “Path” variable in the System Variables section and click on edit.
  7. The Edit System Variable dialog appears. At the end of the Variable value section append a semi-colon and then enter the path of the bin directory of you JDK. To copy the path of the bin directory follow the picture below

  8. Then paste the path on the field as shown below. Make sure you have appended a semi-colon before you paste the address.

  9. Then click on OK as shown and then you are done. To confirm whether your settings are right, open command prompt and type “javac”. You should get a response like this on your prompt.

  10. Type ”java” and you should get something like this.


If all of the above steps are followed correctly, you will be able to setup your java compiler and you can now start programming.

P.S.: I recommend you to use textpad instead of the usual command line interface to do your java programs. Its a freeware although it will ask you to register it.

Saturday, May 16, 2009

U.S. and U.S.S.R. had tried to nuke the moon!!

When I first learnt about this I didn’t believe it. Afterall why would a country conduct nuclear tests on the moon bearing enormous costs and risk of a mid-air explosion in the early stages of space research?

It was the late 1950s, and the Cold War was extremely chilly. Someone in the US Government got the bright idea of nuking the Moon, and in 1958 the Air Force Special Weapons Center spearheaded the project (labeled A119, "A Study of Lunar Research Flights").

The idea was to shock the Soviet Union, with a massive display of American nuclear might. What better demonstration than an atomic explosion on our closest celestial neighbour? According to the project's reports, the flash would've been visible to the naked eye on Earth. (It's been suggested that another motivation may have been to use the Moon as a test range, thus avoiding the problems with irradiating our home planet.)

Although scientist spearheading the project had warned the U.S. Government about the enormous cost of this project, the authorities were concerned only about its effects in the politics back at Earth. But the irony is after the whole blue-print of the project A119 was prepared it simply went away, much like all other “classified” documents.

But this wasn’t the only time an U.S. government agency had thought of nuking our distant neighbour.In 1956, W.W. Kellogg of RAND Corporation considered the possibility of launching an atomic bomb to the Moon. In 1957, NASA's Jet Propulsion Laboratory put forth “Project Red Socks”, the first serious proposal to send a spacecraft to the Moon. One of its lesser suggestions was to nuke the Moon in order to send lunar rocks hurtling back to Earth, where they could be collected and studied. The creator of the hydrogen bomb, physicist Edward Teller, similarly mused about dropping atomic bombs on the Moon in order to study the seismic waves they would create.

The Communists back at The Soviet Union were also not much behind. In the late 1950s, the setup Project E-4 which would've used a probe armed with an A-bomb to blast the Moon, apparently as a display of its dominance in space research. The idea reached the stage of a full-scale model but was aborted for fear of the probe falling back to Earth.

One can barely imagine the consequences had both of these Superpowers been successful in nuking the moon. As we all know the moon and Earth balance each others orbit and many other attributes. And in my opinion had the nuke tests in the moon been rampant, it would have led to a significant change in the lunar mass which according to Newton’s Universal Gravitational Law could have adverse effects back here. But this is merely a speculation, and thankfully indeed.