Question : getting null

I am executing following program


 
 
public class MainClass
{
   public static void main( String args[] )
   {
      GradeBook myGradeBook = new GradeBook();

      System.out.printf( "Initial course name is: %s\n\n",myGradeBook.getCourseName() );

      String theName = "Java";
      myGradeBook.setCourseName( theName ); // set the course name

      myGradeBook.displayMessage();
   }
}

class GradeBook
{
   private String courseName; // course name for this GradeBook

   // method to set the course name
   public void setCourseName( String name )
   {
      courseName = name; // store the course name
   }

   // method to retrieve the course name
   public String getCourseName()
   {
      return courseName;
   }

   // display a welcome message to the GradeBook user
   public void displayMessage()
   {
      System.out.printf( "Welcome to the grade book for\n%s!\n",
         getCourseName() );
   }

}
 
output
Initial course name is: null

Welcome to the grade book for
Java!


not sure why getting null in 1st line. Please clarify

Answer : getting null

Hi eseutil

yes i have seen this issue many times, you mention that it is successful on another machine, ask your self what is the difference between the two machines? What i suggest is to reconfigure the dl 380 to a similar config as the machine which eseutil works on. you mention that you have reduced the RAM, and have run exbpa. exbpa would have nothing to do with your eseutil issues as you can run eseutil without an exchange install. How many processor cores do you have, try and reduce the cores to 2 and see how you go. if it worked on another machine without copying the jcb.dll in every directory and registering dll's it will work on the dl380. Run eseutil as normal just change the number of cores, i think this will solve your issue.

Let me know how you go eseutil.


Random Solutions  
 
programming4us programming4us