Abhishek Gupta

The Sun won’t set at NIT Durgapur !

Posts Tagged ‘web’

How to open a .war (web archive) or .jar (java archive) files

Posted by abhiitechie on April 27, 2009

With Java we generate .JAR files to bundle a set of resources. For J2EE web applications, we generate .WAR (Web Archive) files for deployments. Both of these are ways of archiving a set of files.

Both these .jar or .war archives are in zip format. So there are plenty of ways to open those files to read the content. One way would be to use any tool that you use to open/extract a .zip file. Next will be to use the Jar command itself.

JAR Command

JAR (command) utility in Java can be used to open/extract these files as follows. Run following command from the folder where you need the content to be extracted by providing the path to the archive.

jar xf


x – extract the files
f – file to extract

jar xf myWebApp.war
jar xf myProject.jar

Posted in Uncategorized | Tagged: , , , , , , , , , | 1 Comment »

Talk on Glassfish and J2EE

Posted by abhiitechie on April 25, 2009

For a long time I was due for a Technical Session in my college . The month of February was jam-packed with helluva lots of fests and events and that was the sole reason that I did’nt wanted to squeeze my demo in between all the different fests and events . Web being my expertise , so a Talk on Glassfish and J2EE was looking the most feasible option for me as I did not had much time to prepare for the talk. 

Further trouble came when I found that the  date later went on to clash with the Mukti treat . When I publicised about the talk on the mailing lists and groups people told me that I was a block (dumb) as I scheduled the talk on the same evening as the Mukti treat . But I went on through my initial plans as I felt that work always comes above and over anything  and everything in life.

It was class test times for most of the students so the gathering was as expected limited with just about 25 people sitting I went on to start the talk . The talk was attended by students of Computer Science and  IT  1st, 2nd and 3rd year. It’s great to see a diverse audience, shows you really are reaching out to everyone, and for me the success of this talk meant a lot of confidence to do future talks in this semester. I wanted everything to be perfect. From the past week, I had been observing some of our faculty lecturers carefully, trying to understand the art of holding the interest of your audience throughout the lecture, how some lectures turn out to be boring, while others keep you glued to the teacher. We all know we hate slide reading, we hate too much theory, bookish language.. but there’s a lot more to it. Body language, being friendly and casual, relating your audience and yourself with the topic, visualization of ideas, giving examples, case studies and most importantly, involving your audience, making it interactive and not just one-way traffic. 

My audience for the first time in the college properly understood what the term Web Server really means and also got the abtract concept of Web 2.0 and Semantic Web technology . 

I had already made up my mind that this particular session will witness a much better demonstration as compared to the last demo which was somewhat very uninteresting . So I demonstrated them about how to make a real world bloger application using the popular JRuby-on-Rails and that too using Netbeans IDE which which made the whole thing very very easy and fast .

I also showed them use of Servlets and JavaBeans with respect to Http Session States.It was not a long session unlike the last one as I had to attend the Mukti treat and also my audience had some tests the following week . So I wrapped up the Session in an hour . A pretty nice experience again . Now I really consider myself really grateful to GOD for making me do all these things . Now I really feel more confident presenting knowledge and information in front of public.



Posted in sun | Tagged: , , , , , , , , , , , , , , , , , | Leave a Comment »

My First Session On Netbeans IDE and J2SE

Posted by abhiitechie on April 25, 2009

This was the debut session conducted by me as a CA . In the first part of my Demo I covered many topics related to Netbeans Intelligent Text Editor and showed them techniques like Code-Insertion , Code-Refactoring ,Using Javadoc , Live Code Parser and error checker , Local History , Code completion , Instant renaming , Compile on Save,and lots of other cool stuffs. I explained them how to use the Profiler and the Debugger. I explained them the use of Version Control and automated testing (Unit Testing) .

This was followed by a basic demonstration on the Swing Gui Builder and with functionalities like Automatic feedback , Quick Component Insertion , Anchoring , Alignment . After this I expained the basic features of event handling and demonstrated it with a small application built using the Swing Builder .

As people asked for more meat so I continued out of my plan to demonstrate them easy Data Binding using MySQL database , JTable and Java Persistence API showing them how to createa CRUD application in 5 mins! On audience demand I also showed them how to import an existing PHP-MySQL project in Netbeans and showed them advantage of using WEB 2.0 frameworks like JMaki and Dojo directly into the existing PHP project. I gave them an introduction to Visual Web Java Server Faces by demonstrating them how to populated a Woodstock Table from a MYSQL database using simple drag-drop.

Many obvious questions like why Netbeans over Eclipse which I think I answered satisfactorily. Many people came to me afterwards asking more details about multibooting Solaris and more about Web 2.0 and AJAX. I was on the top of the world when people actually clapped at the end of the talk. All in all a nice experience.

Here are some of the pictures from the Session






Posted in sun | Tagged: , , , , , , , , , , , , , , , , , , , , , | Leave a Comment »