tag:blogger.com,1999:blog-60347146262221430182024-03-05T21:21:51.580-08:00The Spiral OrbitScrap-pad of the members of Sun Club of UIETAdminhttp://www.blogger.com/profile/04192231678955593075noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-6034714626222143018.post-82754171331106618182008-02-19T21:05:00.000-08:002008-02-19T21:20:40.325-08:00Installation<div align="justify">Finally I was able to overcome all impediments (like permissions, sluggish lab assistants and viruses on machines) and installed some software related to Sun Microsystems technologies on 15 machines (3 machines had to be left out for they had only 128 Mbs of Ram) in CS lab 211. </div><div align="justify"><br />The following software was installed:<br />jdk 1.6.0<br />netbeans 6.0<br />open office 2.3</div><div align="justify"><br />Souvik has already installed these software along with solaris 10 on all systems in another lab CS 209 (around 20 machines). I am planning to install these software in two more labs. Then we will have these software on all labs on the first floor.</div>Rahul Mathurhttp://www.blogger.com/profile/11456253585660696170noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-84428823766713468112008-02-10T15:04:00.000-08:002008-03-16T04:41:20.556-07:00Running your First Java Program using Netbeans 6.0<div style="text-align: justify;">Well if you have been following my blogs, then this one is third in the series. I was highly motivated to write this blog when a couple of first years told me that my previous blogs had enabled them to get started with the Java programming language and they egged me to show them the way to get started with the Netbeans IDE. While in the previous two blogs I showed how to run a simple Java program and then go about debugging them (using the windows notepad as the editor and the command prompt), this one will introduce you to the Netbeans IDE.<br /><br />In computing, an integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, a compiler and/or interpreter, build automation tools, and (usually) a debugger.Typically an IDE is dedicated to a specific programming language, so as to provide a feature set which most closely matches the programming paradigms of the language. However, some multiple-language IDEs are in use, such as Eclipse, ActiveState Komodo, SlickEdit and recent versions of Microsoft Visual Studio.<br /><br />NetBeans began in 1997 as Xelfi, a student project under the guidance of the Faculty of Mathematics and Physics at Charles University in Prague. A company was later formed around the project and produced commercial versions of the NetBeans IDE until it was bought by Sun Microsystems in 1999. Sun open-sourced the NetBeans IDE in June of the following year. The NetBeans community has since continued to grow, thanks to individuals and companies using and contributing to the project.<br /><br />The NetBeans IDE is an open-source integrated development environment written entirely in Java using the NetBeans Platform. NetBeans IDE supports development of all Java application types (J2SE, web, EJB and mobile applications) out of the box. The current version is NetBeans IDE 6.0, which was released in December 2007.<br /><br />I have tried to provide a very simple and quick introduction to the NetBeans IDE workflow by walking you through the creation of a simple "Hello World" Java program. Once you go through the same, you will have a general knowledge of how to create, build, and run applications in the IDE.<br /><br /><span style="font-weight: bold;">CHECKLIST</span><br /></div><p style="text-align: justify;">To write your first program, you'll need to have the following software installed on your system:</p><div> </div><ul style="text-align: justify;"><li>The J2SE Development Kit (JDK). </li><li>NetBeans IDE 6.0.</li></ul><div style="text-align: justify;"> </div><h2 style="text-align: justify;"><a name="setup"></a></h2><div style="text-align: justify;"> </div><p style="text-align: justify;">To create an IDE project follow these simple steps. I have tried to include as many screen shots to make the things as clear as possible.<br /></p><div style="text-align: justify;"> </div><ol style="text-align: justify;"><li>Start NetBeans IDE.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Dtej6slVcKMJdvEFFilmmW4BEgAoubmzYBRSxlv2ziWbUsYcpAgofNyEsKw3EKY5LdeyiaYs5hcdaM7HOCwl7-sIREUXtfoSaRVMZ-p3SvoMvS2voRdiSN1SHnFxtbgDmpLSznRkrbZ8/s1600-h/NB.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Dtej6slVcKMJdvEFFilmmW4BEgAoubmzYBRSxlv2ziWbUsYcpAgofNyEsKw3EKY5LdeyiaYs5hcdaM7HOCwl7-sIREUXtfoSaRVMZ-p3SvoMvS2voRdiSN1SHnFxtbgDmpLSznRkrbZ8/s400/NB.jpg" alt="" id="BLOGGER_PHOTO_ID_5167623196354703186" border="0" /></a></li><li>In the IDE, choose File > New Project, as shown in the figure below.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO6Jb-I6iax8W9TXsXP69vV575Ay1RerDk9gCpqoMVLGESKiapPgXHwSaJDGhmWY2zwPnGAIZPuiRsTM4UpVsWTh1t-dySXZsaKNibaISqIyvFO5FNlppEMnmw2jM3h-bTpqPeu-mc6IVn/s1600-h/NB1.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO6Jb-I6iax8W9TXsXP69vV575Ay1RerDk9gCpqoMVLGESKiapPgXHwSaJDGhmWY2zwPnGAIZPuiRsTM4UpVsWTh1t-dySXZsaKNibaISqIyvFO5FNlppEMnmw2jM3h-bTpqPeu-mc6IVn/s400/NB1.jpg" alt="" id="BLOGGER_PHOTO_ID_5167623355268493154" border="0" /></a> <!--<p></p>--> <p class="align-center"><img src="" style="width: 1px; height: 18px;" alt="" /></p><!--<p></p>--> </li><li>In the New Project wizard, expand the Java category and select Java Application as shown in the figure below. Then click Next.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Bm0qoFA7qNalmw9KJfVTWm8R-6iEbX6oPIjkwmViBWszOlAPwmpcPIKsnCwN_gPQbQUIWurZCd9dSMOQQsJjxZ5om2CcKSknIKVO5lErRDwg0fBrkzsv9_Poz4wAHttPhoU915kIAGMl/s1600-h/NB2.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Bm0qoFA7qNalmw9KJfVTWm8R-6iEbX6oPIjkwmViBWszOlAPwmpcPIKsnCwN_gPQbQUIWurZCd9dSMOQQsJjxZ5om2CcKSknIKVO5lErRDwg0fBrkzsv9_Poz4wAHttPhoU915kIAGMl/s400/NB2.jpg" alt="" id="BLOGGER_PHOTO_ID_5167623522772217730" border="0" /></a><!--<p></p>--> <p class="align-center"><img alt="NetBeans IDE, New Project wizard, Choose Project page." src="file:///C:/Documents%20and%20Settings/Abhi/My%20Documents/Rahul/Sun/Java%20ebooks/Netbeans%20tutorial/NetBeans%20IDE%206_0%20Java%20Quick%20Start%20Tutorial_files/proj-wizard.png" align="bottom" height="412" width="586" /></p><!--<p></p>--> </li><li>In the Name and Location page of the wizard, do the following (as shown in the figure below): <ul><li>In the Project Name field, type <code>HelloWorldApp</code>. </li><li>In the Create Main Class field, type <code>helloworldapp.HelloWorldApp</code>. </li><li>Leave the Set as Main Project checkbox selected.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-8gOB9dpcn8RVLmaNoWFE_wJ37jf2exoYMsGyjI1D4I2kF1m2EKog3eZiOFXHC85poLhleM4C-KdWzEWc0-OU4N4JgXVADDyFzZcftAGIsfpH9_pcU9p9hzw2vGlaRZD121kTLcyJrZuV/s1600-h/NB3.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-8gOB9dpcn8RVLmaNoWFE_wJ37jf2exoYMsGyjI1D4I2kF1m2EKog3eZiOFXHC85poLhleM4C-KdWzEWc0-OU4N4JgXVADDyFzZcftAGIsfpH9_pcU9p9hzw2vGlaRZD121kTLcyJrZuV/s400/NB3.jpg" alt="" id="BLOGGER_PHOTO_ID_5167623634441367442" border="0" /></a></li></ul><!--<p></p>--> <p class="align-center"><img alt="NetBeans IDE, New Project wizard, Name and Location page." src="file:///C:/Documents%20and%20Settings/Abhi/My%20Documents/Rahul/Sun/Java%20ebooks/Netbeans%20tutorial/NetBeans%20IDE%206_0%20Java%20Quick%20Start%20Tutorial_files/proj-wizard2.png" align="bottom" height="378" width="609" /></p><!--<p></p>--> </li><li>Click Finish. </li></ol><div style="text-align: justify;"> </div><p style="text-align: justify;">The project is created and opened in the IDE. You should see the following components: </p><ul style="text-align: justify;"><li>The Projects window, which contains a tree view of the components of the project, including source files, libraries that your code depends on, and so on. </li><li>The Source Editor window with a file called <code>HelloWorldApp</code> open. </li><li>The Navigator window, which you can use to quickly navigate between elements within the selected class.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYau4PjmbY7_wcGT5QoiyWS-Q813mzwKO-MyPRhqvZnSEfQ3a53H9OpSwfwILe8y-P3IQC3sH97tJGq6FVQ7Ixu_xT-UgKBjpyI8gSuGhMOUqqb_9V8lcvWAjBDpaj79BZ0tIp5My7GOdg/s1600-h/NB4.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYau4PjmbY7_wcGT5QoiyWS-Q813mzwKO-MyPRhqvZnSEfQ3a53H9OpSwfwILe8y-P3IQC3sH97tJGq6FVQ7Ixu_xT-UgKBjpyI8gSuGhMOUqqb_9V8lcvWAjBDpaj79BZ0tIp5My7GOdg/s400/NB4.jpg" alt="" id="BLOGGER_PHOTO_ID_5167623827714895794" border="0" /></a> </li></ul><div style="text-align: justify;"><!--<p></p>--> </div><div style="text-align: justify;"><!--<p></p>--> </div><p style="text-align: justify;" class="align-center"><img alt="NetBeans IDE with the HelloWorldApp project open." src="file:///C:/Documents%20and%20Settings/Abhi/My%20Documents/Rahul/Sun/Java%20ebooks/Netbeans%20tutorial/NetBeans%20IDE%206_0%20Java%20Quick%20Start%20Tutorial_files/proj-opened.png" align="bottom" height="556" width="636" /></p><p style="text-align: justify;">Because we left the Create Main Class checkbox selected in the New Project wizard, the IDE has created a skeleton class for us. You can add the "Hello World!" message to the skeleton code by replacing the line: </p><div style="text-align: justify;"><pre class="examplecode"> // TODO code application logic here<br /> </pre>with the line: <pre class="examplecode"> System.out.println("Hello World!");<br /> </pre> </div><p style="text-align: justify;">Save the change by choosing File > Save.</p><div style="text-align: justify;"> </div><p style="text-align: justify;">The file should look something like this:</p><div style="text-align: justify;"><pre class="examplecode">/*<br />* HelloWorldApp.java<br />*<br />* Created on Feb 28, 2008, 7:56:01 PM<br />*<br />* To change this template, choose Tools | Templates<br />* and open the template in the editor.<br />*/<br /><br />package helloworldapp;<br /><br />/**<br />*<br />* @author Rahul Mathur<br />*/<br />public class HelloWorldApp {<br /><br />/**<br />* @param args the command line arguments<br />*/<br />public static void main(String[] args) {<br /> System.out.println("Hello World!");<br />}<br /><br />}<br /><br /><span style="font-size:180%;"><span style="font-weight: bold;font-family:times new roman;" >COMPILING THE SOURCE FILE</span></span></pre> </div><p style="text-align: justify;">To compile your source file, choose Build > Build Main Project from the IDE's main menu. </p><div style="text-align: justify;"> </div><p style="text-align: justify;">You can view the output of the build process by choosing Window > Output > Output.</p><div style="text-align: justify;"> </div><div style="text-align: justify;"><!--<p></p>--> </div><div style="text-align: justify;"><!--<p></p>--> </div><p style="text-align: justify;">The Output window opens and displays output similar to what you see in the following figure.</p><p style="text-align: justify;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1FznbOukh65GdIdoEPf5FE874BnGnmoA3Zi54aWeE57BYmP0JQ9tvmPJ8J4tb1umTN2QqjE_pktpT6ngihMdUOdv6SI9FqnsX2bf_EMvo0zhGRPzvlYy6T1F_NjVV4j2GPi8FlFHyYEJz/s1600-h/NB5.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1FznbOukh65GdIdoEPf5FE874BnGnmoA3Zi54aWeE57BYmP0JQ9tvmPJ8J4tb1umTN2QqjE_pktpT6ngihMdUOdv6SI9FqnsX2bf_EMvo0zhGRPzvlYy6T1F_NjVV4j2GPi8FlFHyYEJz/s400/NB5.jpg" alt="" id="BLOGGER_PHOTO_ID_5167623922204176322" border="0" /></a></p><p style="text-align: justify;" class="align-center"><img style="width: 466px; height: 18px;" alt="Output window showing results of building the HelloWorld project." src="file:///C:/Documents%20and%20Settings/Abhi/My%20Documents/Rahul/Sun/Java%20ebooks/Netbeans%20tutorial/NetBeans%20IDE%206_0%20Java%20Quick%20Start%20Tutorial_files/compile-output.png" align="bottom" /></p><p style="text-align: justify;">If the build output concludes with the statement <code>BUILD SUCCESSFUL</code>, congratulations! You have successfully compiled your program!</p><p style="text-align: justify;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9QOJZXCxIA_MwxhqwhTl-KzdvbOBG8Vqh4gmXkC854d7gC3DbQe6Q9alSbEcHqdFUCLlLO88A5QGuicCUzcE301qNKlipfGRRSiRzeRNQnS1wk_u-3bjrBp-Bx3RpA2oJKmaIsocelA8i/s1600-h/NB6.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9QOJZXCxIA_MwxhqwhTl-KzdvbOBG8Vqh4gmXkC854d7gC3DbQe6Q9alSbEcHqdFUCLlLO88A5QGuicCUzcE301qNKlipfGRRSiRzeRNQnS1wk_u-3bjrBp-Bx3RpA2oJKmaIsocelA8i/s400/NB6.jpg" alt="" id="BLOGGER_PHOTO_ID_5167624033873326034" border="0" /></a></p><div style="text-align: justify;"> </div><p style="text-align: justify;">If the build output concludes with the statement <code>BUILD FAILED</code>, you probably have a syntax error in your code. Errors are reported in the Output window as hyper-linked text. Click such a hyper-link to navigate to the source of an error. You can then fix the error and once again choose Build > Build Main Project.</p><p style="text-align: justify;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_HB2C0Gwg7xPQTG65Ldslzs8CLPprOniTdetXp5Ngp9A0XfXMqWIDzVf7d-HyzM-KUBBVwIELskBv6VZ5lP9T2eUcbC1O1O0BxunI8O9aR0s24snvaSG_F7QIMHD8eawSh8ahA-Ly4b0I/s1600-h/Picture1.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_HB2C0Gwg7xPQTG65Ldslzs8CLPprOniTdetXp5Ngp9A0XfXMqWIDzVf7d-HyzM-KUBBVwIELskBv6VZ5lP9T2eUcbC1O1O0BxunI8O9aR0s24snvaSG_F7QIMHD8eawSh8ahA-Ly4b0I/s400/Picture1.png" alt="" id="BLOGGER_PHOTO_ID_5167624132657573858" border="0" /></a></p><div style="text-align: justify;"> <!--<p></p>--> <!--<p></p>--> </div><p style="text-align: justify;">When you build the project, the bytecode file <code>HelloWorldApp.class</code> is generated. You can see where the new file is generated by opening the Files window and expanding the <code>Hello World App/build/classes/helloworldapp</code> node as shown in the following figure.</p><p style="text-align: justify;" class="align-center"><img style="width: 328px; height: 18px;" alt="Files window, showing the generated .class file." src="file:///C:/Documents%20and%20Settings/Abhi/My%20Documents/Rahul/Sun/Java%20ebooks/Netbeans%20tutorial/NetBeans%20IDE%206_0%20Java%20Quick%20Start%20Tutorial_files/files-window.png" align="bottom" /></p><p style="text-align: justify;">Now that you have built the project, you can run your program. </p><div style="text-align: justify;"> <span style="font-weight: bold;font-size:180%;" >RUNNING THE SOURCE FILE</span><span style="font-size:180%;"><br /></span> </div><p style="text-align: justify;">From the IDE's menu bar, choose Run > Run Main Project.</p><div style="text-align: justify;"> </div><p style="text-align: justify;">The next figure shows what you should now see.</p><p style="text-align: justify;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi23N3m6VWhIVNwzHzACi9vNB4oayL-rDK-9tCi70RK9uXAIdv9zoHH3DyVdBeuYTkYwzWBeFIwRejHXGNGfPtqeH3QCd-DF8jPoUr0Eg5GiMTn8klBUdi2FTAHRW7xTlnFkyB8Q99kddIN/s1600-h/Picture2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi23N3m6VWhIVNwzHzACi9vNB4oayL-rDK-9tCi70RK9uXAIdv9zoHH3DyVdBeuYTkYwzWBeFIwRejHXGNGfPtqeH3QCd-DF8jPoUr0Eg5GiMTn8klBUdi2FTAHRW7xTlnFkyB8Q99kddIN/s400/Picture2.png" alt="" id="BLOGGER_PHOTO_ID_5167624240031756274" border="0" /></a></p><div style="text-align: justify;"><!--<p></p>--> </div><p style="text-align: justify;" class="align-center"><img alt="The program prints Hello World! to the Output window (along with other output from the build script)." src="file:///C:/Documents%20and%20Settings/Abhi/My%20Documents/Rahul/Sun/Java%20ebooks/Netbeans%20tutorial/NetBeans%20IDE%206_0%20Java%20Quick%20Start%20Tutorial_files/run-output.png" align="bottom" height="127" width="399" /></p><div style="text-align: justify;"><!--<p></p>--> </div><p style="text-align: justify;">Congratulations! This is all that one needs to get started. <br /></p><div style="text-align: justify;"> </div>Rahul Mathurhttp://www.blogger.com/profile/11456253585660696170noreply@blogger.com2tag:blogger.com,1999:blog-6034714626222143018.post-72422623689270333142008-02-10T14:55:00.000-08:002008-02-16T05:00:12.505-08:00Common Problems in running and compiling a Java Program (and their Solutions)<div style="text-align: justify; color: rgb(102, 102, 102);font-family:times new roman;"><span style="font-size:100%;"><a name="compiler"><br /><span style="color: rgb(102, 102, 102);">In my last blog I tried to show how simple it really is to run a Java program. However you may be stuck with some errors while trying to compile or run your program. I have tried to list out all kind of errors that you may encounter (and which I faced myself!) while trying to run a Java program. </span><br /><br /></a></span></div><div style="text-align: justify; color: rgb(102, 102, 102);font-family:times new roman;"><span style="font-size:100%;"><em><span style="font-weight: bold;">1. Compiler Errors</span><br /><br />'javac' is not recognized as an internal or external command, operable program or batch file</em><br /></span></div><span style="color: rgb(102, 102, 102);font-family:times new roman;font-size:100%;" ><br />This is the most common of all the errors faced by people trying to compile their first piece of code. This message means that Windows cannot find the compiler (javac).<br /></span> <div style="text-align: justify; color: rgb(102, 102, 102);font-family:times new roman;"><p><span style="font-size:100%;">Here's one way to tell Windows where to find javac. At the prompt type the following command and press Enter:<br /></span></p><p><span style="font-size:100%;">C:> "\Program Files\Java\jdk1.6.0_<version>\bin\javac HelloWorldApp.java<br /></version></span> </p><p style="text-align: justify;"><span style="font-size:100%;">If you choose this option, you'll have to precede your javac and java commands with C:> "\Program Files\Java\jdk1.6.0_<version>\bin\ each time you compile or run a program. To avoid this extra typing and to be able to conveniently run the JDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command, you should update the PATH variable.<br /></version></span> </p><p style="text-align: justify;"><span style="font-size:100%;">To set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows on Microsoft Windows:<br /></version></version></span> </p><p style="text-align: justify;"><span style="font-size:100%;"> 1. Click Start > Control Panel > System on Windows XP or Start> Settings > Control Panel > System on Windows 2000.</span></p><p style="text-align: justify;"><span style="font-size:100%;"> 2. Click Advanced > Environment Variables.<br /></span></p><span style="font-size:100%;"> 3. Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for PATH is:<br /></span> <p style="text-align: justify;"><span style="font-size:100%;"> C:\Program Files\Java\jdk1.6.0_<version>\bin<br /></version></span> </p><p style="text-align: justify;"><span style="font-size:100%;">The PATH environment variable is a series of directories separated by semi-colons (;) and is not case sensitive. Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a JDK in the path at a time. Those following the first instance are ignored. If one is already present, update it to jdk1.6.0_<version>\bin. If you are not sure where to add the path, add it to the right end of the PATH in the User Variables. The new path takes effect in each new command window you open after setting the PATH variable.</version></span></p></div><span style="font-style: italic; color: rgb(102, 102, 102); font-weight: bold;font-family:times new roman;font-size:100%;" >2. Syntax Errors</span><span style="color: rgb(102, 102, 102);font-family:times new roman;font-size:100%;" ><br /></span><div style="text-align: justify; color: rgb(102, 102, 102);font-family:times new roman;"><span style="font-size:100%;"><br />If you mistype part of a program, the compiler may issue a syntax error. The message usually displays the type of the error, the line number where the error was detected, the code on that line, and the position of the error within the code. Here's an error caused by omitting a semicolon (;) at the end of a statement:<br /><br />testing.java:14: `;' expected.<br />System.out.println("Input has " + count + " chars.")<br />^<br />1 error<br /><br />Without the semicolon, the compiler has no way of knowing that the statement is complete.<br /><br />If you see any compiler errors, then your program did not successfully compile, and the compiler did not create a .class file. Carefully verify the program, fix any errors that you detect, and try again.<br /><br /><span style="font-style: italic;"><span style="font-weight: bold;">3. Semantic Errors<br /><br /></span></span>In addition to verifying that your program is syntactically correct, the compiler checks for other basic correctness. For example, the compiler warns you each time you use a variable that has not been initialized:<br /><br />testing.java:13: Variable count may not have been initialized.<br />count++<br />^<br /><br />Again, your program did not successfully compile, and the compiler did not create a .class file. Fix the error and try again.<br /><br /><a name="interpreter"><span style="font-style: italic; font-weight: bold; color: rgb(102, 102, 102);">4. Runtime Errors<br /><br /></span></a><span style="font-style: italic;">Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp</span><br /><br /></span><div style="text-align: justify;"><div style="text-align: justify;"><span style="font-size:100%;">If you receive this error, java cannot find your bytecode file, HelloWorldApp.class. </span><span style="font-size:100%;">One of the places java tries to find your .class file is your current directory. So if your .class file is in C:\uiet, you should change your current directory to that. To change your directory, type the following command at the prompt and press Enter:<br /><br /></span></div></div><span style="font-size:100%;">cd C:\uiet<br /><br />The prompt should change to C:\uiet>. If you enter dir at the prompt, you should see your .java and .class files. Now enter java HelloWorldApp again.<br /><br /><span style="font-style: italic;"><br /></span></span><div style="text-align: left;"><span style="font-size:100%;"><span style="font-style: italic;">Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class</span></span><br /></div><span style="font-size:100%;"><br />A common mistake made by beginner programmers is to try and run the java launcher on the .class file that was created by the compiler. For example, you'll get this error if you try to run your program with java HelloWorldApp.class instead of java HelloWorldApp. Remember, the argument is the name of the class that you want to use, not the filename.<br /><br /><br /></span><div style="text-align: left;"><span style="font-size:100%;"><span style="font-style: italic;">Exception in thread "main" java.lang.NoSuchMethodError: main</span></span><br /></div><span style="font-size:100%;"><br />The Java VM requires that the class you execute with it have a main method at which to begin execution of your application.<br /><br />I hope all the errors that have been bugging you fall in one of the above categories. Still, if you are confronted with an error that is not listed above do write to me. <br /></span></div>Rahul Mathurhttp://www.blogger.com/profile/11456253585660696170noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-31487512998059545442008-02-10T14:54:00.000-08:002008-02-16T05:01:42.881-08:00Run your First Java Program<div style="text-align: justify;">One thing I have realized after delivering a couple of sessions on Java that not everyone is very clear about installing the JDK and start programming in Java on their computers (specially the first years). Although there are many tutorials and a lot of help on the internet but its all scattered about making the life tough for a beginner. So my aim is to enable all those who are new to the Java programming environment to get started quickly.<br /></div><br />Before you write your first program, you'll need:<br /><br /><ul style="text-align: justify;"><li style="font-weight: bold;">The Java SE Development Kit 6 (JDK 6<span style="text-decoration: underline;">)</span></li><ul><li><a class="OutsideLink" href="http://java.sun.com/javase/6/download.jsp" target="_blank">click here to download</a><br /></li></ul></ul><ul style="text-align: justify;"><li><span style="font-weight: bold;">A text editor</span> (I'll be using a simple editor included with the Windows platforms, the <span style="font-weight: bold;">Notepad</span>)<br /></li></ul><br />The first program, HelloWorldApp, will simply display the greeting "Hello world!". To create this program, you will:<br /><br /><ol style="text-align: justify;"><li><span style="font-weight: bold;">Create a source file</span> containing the code, written in the Java programming language, that you and other programmers can understand. You can use any other text editor to create and edit source files.</li><li><span style="font-weight: bold;">Compile the source file into a .class file</span>. The Java programming language compiler (javac) takes your source file and translates its text into instructions that the Java virtual machine can understand. The instructions contained within this file are known as bytecodes.</li><li><span style="font-weight: bold;">Run the program</span>. The Java application launcher tool (java) uses the Java virtual machine to run your application.</li></ol><br /><a style="font-weight: bold;" name="win32-2a"></a><span style="font-style: italic; font-weight: bold;">1. Create a Source File</span><br /><br />First, start your editor. You can launch the Notepad editor from the Start menu by selecting<br />Programs > Accessories > Notepad.<br /><br />In a new document, type in the following code:<br /><br />/**<br />* The HelloWorldApp class implements an application that<br />* simply prints "Hello World!" to standard output.<br />*/<br />class HelloWorldApp {<br /> public static void main(String[] args) {<br /> System.out.println("Hello World!"); // Display the string.<br /> }<br />}<br /><br /><div style="text-align: justify;">Take care when you type. Type all code, commands, and file names exactly as shown. Both the compiler (javac) and launcher tool (java) are case-sensitive, so you must capitalize consistently.<br /></div><br /><div style="text-align: justify;">Save the code in a file with the name HelloWorldApp.java. To do this in Notepad, first choose the File > Save As menu item. Then, in the Save As dialog box, specify the folder (directory) where you'll save your file. In the File name text field, type "HelloWorldApp.java", including the quotation marks. From the Save as type combo box, choose Text Documents (*.txt). In the Encoding combo box, leave the encoding as ANSI. When you're finished, the dialog box should look somewhat like this.<br /></div><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwBk1Tmdx3LioZpGrhhn1u-0y42UhrOYm3ADw-4SuwEPd2AaCj_XUkQ4pJdNyWnsKu-sQBNcdRlyD-uOs_8ya7laySIdYdxBTeNBBWEdzKGPH3TeUfBGLGzwbGGcCZoDhJ9imlSp82k3fK/s1600-h/Picture2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwBk1Tmdx3LioZpGrhhn1u-0y42UhrOYm3ADw-4SuwEPd2AaCj_XUkQ4pJdNyWnsKu-sQBNcdRlyD-uOs_8ya7laySIdYdxBTeNBBWEdzKGPH3TeUfBGLGzwbGGcCZoDhJ9imlSp82k3fK/s400/Picture2.png" alt="" id="BLOGGER_PHOTO_ID_5167543692215086850" border="0" /></a><br /><br />Now click Save, and exit Notepad.<br /><br /><br /><a name="win32-2b"></a><span style="font-weight: bold; font-style: italic;">2. Compile the Source File into a .class File</span><br /><br /><div style="text-align: justify;">Bring up a shell, or "command," window. You can do this from the Start menu by choosing Command Prompt, or by choosing Run and then entering cmd.<br /></div><br />A shell window should look something like this.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNNTuRIwLPpOvdWe1hwqOJlppOe-p5DYQpC0Y3CdptWNm3CMNiL0J1Qe45KgNZ1Zsk-PVZPG-1zZE7FTA5Mx4OnN8jC5MmA_yDM01ubZvj5q-BVbcIf1earOwzxsOaZN-Yjvp3xH574-I7/s1600-h/Picture1.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 440px; height: 329px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNNTuRIwLPpOvdWe1hwqOJlppOe-p5DYQpC0Y3CdptWNm3CMNiL0J1Qe45KgNZ1Zsk-PVZPG-1zZE7FTA5Mx4OnN8jC5MmA_yDM01ubZvj5q-BVbcIf1earOwzxsOaZN-Yjvp3xH574-I7/s400/Picture1.png" alt="" id="BLOGGER_PHOTO_ID_5167542004292939490" border="0" /></a><br /><br /><div style="text-align: justify;">The prompt shows your current directory (as shown in the preceding figure).<br /><br />To compile your source file, change your current directory to the directory where your file is located. For example, if your source directory is uiet on the C drive, type the following command at the prompt and press Enter:<br /></div><br />cd C:\uiet<br /><br />Now the prompt should change to C:\uiet>.<br /><br /><div style="text-align: justify;">If you enter dir at the prompt, you should see your source file, as the following figure shows.<br /></div><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNTcW__g1aBPYpDBpLTCaVNZm_hSF4WZGM050dmxryVmi01N11eX3p2i9ZVSAzUv475U-rIh9k1V3hPeJcI5gdpJdcK_mEL2D1cZMNJAK4nECDyVlYvSxkaqBUU4ZL_tF5amw7R4YTSvIh/s1600-h/cmd.bmp"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNTcW__g1aBPYpDBpLTCaVNZm_hSF4WZGM050dmxryVmi01N11eX3p2i9ZVSAzUv475U-rIh9k1V3hPeJcI5gdpJdcK_mEL2D1cZMNJAK4nECDyVlYvSxkaqBUU4ZL_tF5amw7R4YTSvIh/s400/cmd.bmp" alt="" id="BLOGGER_PHOTO_ID_5167544890510962466" border="0" /></a><br />Now you are ready to compile. At the prompt, type the following command and press Enter.<br /><br />javac HelloWorldApp.java<br /><br /><div style="text-align: justify;">The compiler will generate a bytecode file, HelloWorldApp.class. At the prompt, type dir to see the new file that was generated, as shown in the following figure.<br /></div><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ6MCjsLmNUWcHe1HGUcXw3FoNTEDMYXGF9zBvOHYwOuzGDBRgC_e1zMor9AKgU4Qr0zS9coIVbkqlKIkD8EADH_De3d1B_I4QI1C8sRPbCexw7vvbgnjbvWKIdWn_c2sV87Qp5toHdPPX/s1600-h/cmd.bmp"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ6MCjsLmNUWcHe1HGUcXw3FoNTEDMYXGF9zBvOHYwOuzGDBRgC_e1zMor9AKgU4Qr0zS9coIVbkqlKIkD8EADH_De3d1B_I4QI1C8sRPbCexw7vvbgnjbvWKIdWn_c2sV87Qp5toHdPPX/s400/cmd.bmp" alt="" id="BLOGGER_PHOTO_ID_5167545487511416626" border="0" /></a><br /><br />Now that you have a .class file, you can run your program.<br /><br /><a name="win32-2c"></a><span style="font-weight: bold; font-style: italic;">3. Run the Program</span><br /><br />In the same directory, enter the following command at the prompt:<br /><br />java HelloWorldApp<br /><br />The next figure shows what you should now see:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiimw1t66DLo9izRgqLgUQ5msGMqbPjIbAOQV-HSH78u4I2OPJ2KSMd9CvvLDajP24Jf0chOHNm-_iPtLHAGImOIRKdQ78bX3tKB48aZetnFdHjHtKkJi66xuP6IY8zseDCytbnW766LK6n/s1600-h/cmd.bmp"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiimw1t66DLo9izRgqLgUQ5msGMqbPjIbAOQV-HSH78u4I2OPJ2KSMd9CvvLDajP24Jf0chOHNm-_iPtLHAGImOIRKdQ78bX3tKB48aZetnFdHjHtKkJi66xuP6IY8zseDCytbnW766LK6n/s400/cmd.bmp" alt="" id="BLOGGER_PHOTO_ID_5167545934188015426" border="0" /></a><br /><br />The program prints "Hello World!" to the screen. Congratulations! Your program works!<br /><br /><div style="text-align: justify;">Hopefully this post will help you to shed all your inhibitions and you will realize how simple it is realy to start programming in java. Best of Luck!<br /></div>Rahul Mathurhttp://www.blogger.com/profile/11456253585660696170noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-28420417538423560632007-12-29T13:07:00.000-08:002007-12-29T13:22:32.767-08:00Java- How did the name come??I have been studying Java for quite some time now. Once lost in oblivion while studying java, a question popped up in my mind. Why did the creator of java--James Gosling--named it java. My goofy mind gave several possible explanatios- he might be a native of Java islands, or he might have thought of some concept of the language while he was holidaying on java islanda....<br /><br />I finally referred wikipedia to find out. Here is what it says-"The language was initially called Oak, after an oak tree that stood outside Gosling's office - and also went by the name Green - and ended up later being renamed to Java, from a list of random words."<br /><br />So, java was nomenclatured randomly..?? I cant buy this proposition. It is still an enigma for me that why only "Java"??Kinshukhttp://www.blogger.com/profile/17768887542973238997noreply@blogger.com1tag:blogger.com,1999:blog-6034714626222143018.post-47669539021148596732007-12-21T06:26:00.000-08:002007-12-21T06:31:03.613-08:00Jaaaaavvvaaa!!The more i explore Java applications, the more i realize taht everything said about java is understated. Java supports so so many devices and services...jesus!! It seems a lifetime is not enough to fathom the ocean of java.Kinshukhttp://www.blogger.com/profile/17768887542973238997noreply@blogger.com1tag:blogger.com,1999:blog-6034714626222143018.post-17330047011663711562007-12-19T09:25:00.000-08:002007-12-19T09:50:43.783-08:00Sun Rising In The East!!The government of Japan has chosen SUN to deliver better govt. services to citizens under its "New IT Reform strategy". This strategy has a goal of making 50 percent of all applications and filings for government agencies to be submitted online by 2010. Sun has been chosen to create an integrated and inherently secure network, called Trusted Network, using OpenSolaris OS, Sun Java System Identity Manager software, Sun Java Composite Application Platform Suite and Sun Ray thin clients.<br /><br />Not only this, SUN has bagged the contract to develop NEW SINGAPORE SHARES web site..<br /><br />You can find more here:<br /><br />http://www.sun.com/aboutsun/pr/2007-12/sunflash.20071212.2.xmlKinshukhttp://www.blogger.com/profile/17768887542973238997noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-14465757262384944852007-12-06T09:05:00.001-08:002007-12-06T09:05:20.226-08:00Sunny AffairsI have finally created my blog at blogs.sun.com so from now on most of my posts will feature in this new blog.<br /><br /><a href="http://blogs.sun.com/souvik">http://blogs.sun.com/souvik</a><br /><br />But surely, every now and then I'll continue to show up on this blog.Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-48547913247457020022007-12-05T21:29:00.001-08:002007-12-05T21:29:11.655-08:00Solaris or Linux??After interacting with some of my fellow students at college, I realize that Solaris vs Linux is one of the hot topics. People who want to try out other operating systems and some of them who want to work on UNIX end up picking up one of the linux distros esp Fedora or Ubuntu. And unfortunately every new batch of students just stick on to this choice without much consideration, mostly because they are unaware of the other OS options and also because their peers/seniors have a copy of these linux distros. In this post I am not asking them to undo their decision but instead just refering to a healthy (factual) comparison between Solaris and RedHat.<br /><br />Have a look at <a href="http://blogs.sun.com/BVass/entry/can_t_say_enough_about">this blog entry</a> by Bill Vass.<br /><br />Also here is a <a href="http://blogs.sun.com/BVass/resource/SolarisRHELNEWcomparison.pdf">comparison chart</a> that you should have a look at. Feel free to comment on his blog/maybe mine too if you find any correction.Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-12459189994196859652007-12-05T07:17:00.001-08:002007-12-05T07:17:45.198-08:00Everything FOSS.INStay up to date with whats going around in FOSS.IN<br /><br /><a href="http://foss.in/2007/info/Home">FOSS.IN Website</a><br /><br />And haan dont miss the <a href="http://blogs.sun.com/fossin/">Sun's Official FOSS.IN Blog</a>Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-79930668401176948162007-12-03T09:07:00.001-08:002007-12-03T11:17:56.661-08:00Netbeans 6.0Hey Netbeans 6.0 is all ready for download.<br /><br />I dont know about the other platforms, but the Mac OS X version seems to be more "responsive" than the beta 2 which is a good thing. The launch time is also a bit less.. about 11.48 secs!! Go get a copy.<br /><br />Download it <a href="http://download.netbeans.org/netbeans/6.0/final/">here</a>Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-4575831360271973772007-12-03T05:29:00.001-08:002007-12-03T05:29:12.387-08:00Firefox 2.0.0.11Mozilla two updates in a very short interval of time.<br /><br /><a href="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.11/contrib/">http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.11/contrib/</a>Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-46831176925815143892007-11-30T10:32:00.001-08:002007-11-30T10:32:41.322-08:00docs.sun.comdocs.sun.com has a new blog<br /><br /><a href="http://blogs.sun.com/dsc">http://blogs.sun.com/dsc</a><br /><br />So stay upto-date with the latest developments made in docs.sun.comSouvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-39484144701111251782007-11-29T06:06:00.001-08:002007-11-29T06:06:09.247-08:00Solaris packagesThree links that would be immensely useful forsolaris beginners (like me).<br /><br /><a href="http://www.bolthole.com/solaris/pkg-get.html">http://www.bolthole.com/solaris/pkg-get.html</a> and its host website <a href="http://www.bolthole.com/">http://www.bolthole.com/</a><br /><br /><a href="http://www.blastwave.org/">http://www.blastwave.org/</a><br /><br /><a href="http://sunfreeware.com/">http://sunfreeware.com/</a><br /><br /> Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-60858002042464172112007-11-29T06:02:00.001-08:002007-11-29T06:02:10.562-08:00OpenOffice.org new forumsOpenOffice.org got new user forums. <a href="http://user.services.openoffice.org/en/forum/">http://user.services.openoffice.org/en/forum/</a><br /><br />To subscribe to the mailing list or get access to the archives of the announcement mailing list go to <a href="http://www.openoffice.org/mail_list.html">this web page</a>.Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-49417959079840791002007-11-29T05:56:00.001-08:002007-11-29T05:56:48.005-08:00SAMPFor web developers, this is a good news... the complete SAMP (Solaris Apache Mysql PHP) is available with the latest versions of each of them. Apache: 2.2, Mysql 5 and PHP5.<br />I have worked with the xAMP thingy on Windows, Linux and Mac... maybe its time for Solaris too...Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-68680408667563587002007-11-27T02:49:00.001-08:002007-11-27T02:49:41.583-08:00Firefox UpdateFirefox2 has recently been updated to version 2.0.0.10 which has some security and stability improvements.<br /><br />You can download the Solaris version from <a href="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.10/contrib/">here</a><br /><br />For release notes visit <a href="http://www.mozilla.com/en-US/firefox/2.0.0.10/releasenotes/">http://www.mozilla.com/en-US/firefox/2.0.0.10/releasenotes/</a> Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-35877935880113485542007-11-25T05:50:00.001-08:002007-11-25T05:50:56.604-08:00ZFS page at MacOSForge.orgNothing much... It will soon have more contents.<br /><br /><a href="http://zfs.macosforge.org/">http://zfs.macosforge.org/</a>Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-36895242852381040942007-11-24T09:48:00.001-08:002007-11-24T09:48:50.720-08:00FOSS.IN in about 10 days....I quote<br />"FOSS.IN is one of the world's largest FOSS events, held annually in India. The event is highly focussed on FOSS development and contribution. Over the years, it has attracted thousands of participants, and the speaker roster reads like a "Who's Who" of FOSS contributors from across the world."<br /><br />And hey, look almost 50% of the delegates are interested in OpenSolaris: <a href="http://foss.in/2007/register/delegates/stats.php">http://foss.in/2007/register/delegates/stats.php</a><br /><br />I think Lightning Talks are going to be interesting... Watch Out for updates.Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-99514000359967442007-11-21T05:22:00.001-08:002007-11-21T05:22:07.664-08:00Why oh why!!Why oh why isnt there any shut-down/restart option at the login screen of OpenSolaris?? Guys please put it there. It is really a pain to log in and then go to the shut down menu!!Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-60328860380444177782007-11-20T05:27:00.001-08:002007-11-20T05:27:24.021-08:00Project IndianaI have been trying my hands on Project Indiana for a few days now, but I have not been able to post anything since the University folks have blocked the blogger toolbar which lets you upload pictures and I did not want my post to go without any screenshots. But I feel I must mention a few things right now, maybe I'll post the screenshots later.<br /><br /><a href="http://www.opensolaris.org/os/project/indiana/">Project Indiana</a> is an effort to simplify everything about OpenSolaris. They have turned it tu much like Ubuntu. The OS now fits in a single CD (instead of 6), and the installation is much simpler. The CD contains both live version as well as an installer (once you boot using the live CD). The developer preview is out and is downloadable from <a href="http://opensolaris.org/os/project/indiana/resources/getit/">here</a>. I have tried to get it working on VMware Fusion (I dont have much of a choice to run it natively since I am using a Macbook Pro). Everything was an instant success but with few glitches (Which I am yet to figure out). The first problem is that it would simply refuse to let me sign into the root account. Secondly, once I am completely booted and signed in, it wont let me Shut Down the computer.... saying that I need Priviledges or something. Thirdly, the network b/w the VM and my Mac didnot work seamlessly right out after install as it usually works with the other operating systems. Maybe this will solve after I go through the workaround given <a href="http://opensolaris.org/os/project/indiana/resources/rn/">here</a>.Well I really dont think these are bugs, maybe I'll be able to work out these problems.<br /><br />Anyways, apart from those small glitches everything was really smooth, right from the bootup till the installation. I have removed the VM temporarily, cause I will switch to a 64-bit VM (earlier I was using 32-bit) and also due to some space constraints. But, I'll soon get back to it and post the screenshots as well.Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-27832052762008706152007-11-16T11:14:00.001-08:002007-11-16T11:14:16.116-08:00Some references for Mac users as well as Open Source loversBeing a Mac OS X user myself, I cant keep away from these articles. But some of these articles highlight the "short comings" of open source communties and they should be a must read for those who are trying to be a part of this movement. Looking at the real needs of the open source movement, we must try to address the issues described in the following references.<br /><br />1. <a href="http://blogs.sun.com/chhandomay/entry/solaris_reviews_and_blogs1">Chhandomay puts together a list of Solaris Reviews and Blogs</a><br /><br />2. <a href="http://www.37signals.com/svn/posts/695-ask-37signals-why-os-x-and-not-linux">I reached this article through subsequent links to the above listed page and its a MUST READ, esp the comments to this post.</a><br /><br />3. <a href="http://www.informationweek.com/blog/main/archives/2007/11/apples_leopard_1.html">Maybe this one is also worth a look</a>Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-8326145126160466292007-11-12T06:12:00.001-08:002007-11-12T06:13:13.922-08:00Simple examples...The Service Management Facility (SMF) and DTrace are some of the powerful features of Solaris.<br /><br />I have found these two links with some examples.<br /><br /><a href="http://www.sun.com/bigadmin/features/articles/smf_example.jsp"><span style="font-weight: bold;">Using Service Management Facility (SMF) in the Solaris 10 OS: A Quick Example</span></a><br /><br /><a href="http://developers.sun.com/solaris/articles/dtrace_ajax.html"><span style="font-weight: bold;">End-to-End Tracing of Ajax/Java Applications Using DTrace</span></a><br /><br />I never knew DTrace can be extended to even Ajax applications. Since I have been using Ajax for quite some time now, I think it could be of great help to developers.Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-89544820564700691042007-11-09T03:50:00.000-08:002007-11-09T03:51:24.859-08:00शुभ दिपावलीWishing all of you a very Happy Diwali!!Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0tag:blogger.com,1999:blog-6034714626222143018.post-64551647028603284442007-11-07T10:18:00.001-08:002007-11-07T10:18:34.057-08:00Sun Academic InitiativeI have been using <a href="http://www.sun.com/products-n-solutions/edu/programs/sai/">SAI</a> for a few days now... Really good material they have for all kinds of sun-related training. Currently I am doing some simple Solaris modules. They have a very brief and to-the-point notes and along with that animated tutorials that help you understand things easily. And these training materials train you directly for Sun Certification. Thus it is one of the recommended Sun products and just like most of them, even this is free.<br /><br />And yes... I really really hate the Panjab University adminstration to have this thing blocked due to some restricted keyword in the URL. Hopefully this will soon be lifted. I really hope I would be able to continue to enjoy this training even at my college/hostel.Souvikhttp://www.blogger.com/profile/12613666283072175278noreply@blogger.com0