How to find the version a Java class was compiled with?

I wanted to lookup the Java version a class was compiled with. I was getting an error:

java.lang.UnsupportedClassVersionError: (MyClass) bad major version at offset=6

Thanks to StackOverflow I found out the following command I did not know before:

javap -verbose MyClass

The major version tells the Java version used. Here are some example values:

* Java 1.2 uses major version 46
* Java 1.3 uses major version 47
* Java 1.4 uses major version 48
* Java 5 uses major version 49
* Java 6 uses major version 50

I am blogging this for future reference.

No Comments

Jacksonville Airshow

I saw the Jacksonville Airshow. The Blue Angels were amazing. So was the helicopter that flew upside down. Didn’t know helicopters could do that.

No Comments

BumpTop 3D MultiTouch

 

BumpTop 3D MultiTouch gestures are great. Now I need a multitouch laptop…

5 Comments

Leelai Movie: Music by my friend!

 

My friend and college mate, Satish Chakravarthy is the music director of the Tamil movie Leelai check out the trailer above and all the songs here. Way to go dude. Hope to listen to more music from you.

4 Comments

E71 to iPhone

IMG_2386

After holding out for so long I finally succumbed to the pressure and converted from Nokia E71 to an iPhone. My wife, Tina, got me an iPhone for my birthday! Thanks Tina. She had also got me my E71 last year. :-) It is early days. I am still missing a few things from the E71 like timed profiles…

3 Comments

Moved to Jacksonville FL

Indigo Apartments
Pool in our apartment

 

I have not blogged in a while. I moved to Jacksonville, Florida. Joined a new job at Syntel. I have been a bit busy setting up the apartment, settling down at work… I have been out of touch with tech news too. Time to catch up.

No Comments

It is 81 degrees everywhere

81 everywhere

Strange coincidence. :-)

4 Comments

Chrome Mouse Gesture Extensions

I have been using Mouse Gestures for browsing for quite some time. Can not browse with out it once you get used to it. Till now I have been using gMote to get gestures working in Chrome. Now there is not one but three native gesture extensions for Chome. Check them out here.

I am using the one by os0x. Works great. Now if there was a Super drag and drop extension…

8 Comments

Looks like everyone is talking about Chrome OS…

… about an OS they know nothing about! Oh well.

No Comments

Nokia E71 Firmware Update

Nokia has released a firmware update for Nokia E71. The new version is 300.21.012 and is available for Nokia E71-2 NAM Edition. Get it here. Here is the change log:

  • Mail Improved Mail For Exchange
  • Music Internet Radio added
  • Other improvements My Nokia Application and easy-dialing added, improved USB flashing and enhanced usability

7 Comments