My program won't run properly

Here's my JFrame apps, it's creating an array of 10 inner Car object and then proceeds to define the first two objects. Then through the buttons, Display Next, you're supposed to display the values in the object, starting with the first. I got the Clear button and the Display Button working, but it seems that the Add, Search and Change buttons won't work properly. Help me please!
import java.lang.String.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.DecimalFormat;
import java.util.*;
public class CarRental extends JFrame implements ActionListener
private Car cars[] = new Car[10];
private char ct;
private Date d;
private double f, fee;
private int addCount, carCount = 0, displayCount = -1;
private int searchCount = 0, yMade, yRented, mRented, dRented;
private JButton bDisplayNext, bClear, bSearch;
private JButton bAdd, bChange;
private JLabel lLicense, lYear, lCategory;
private JLabel lFee, lDateRented, lMessage;
private JPanel infoPanel, buttonPanel, messagePanel;
private JPanel panel1, panel2, panel3, panel4, panel5;
private JRadioButton rbSubcompact, rbIntermediate, rbLuxury;
private JTextField tLicense, tYear;
private JTextField tFee, tDateRented;
private String licsNum, feeVal, yVal, mVal, dVal;
private String dateVal, rf, searchString;
DecimalFormat twoDigits = new DecimalFormat("0.00");
DecimalFormat twoNumber = new DecimalFormat("00");
DecimalFormat fourNumber = new DecimalFormat("0000");
public CarRental()
super("Madterp's Rental Cars");
cars[0] = new Car("ABC111",1999,'S',100,0,0,0);
cars[1] = new Car("DEF222",2002,'I',160,2002,2,2);
carCount += 2;
infoPanel = new JPanel();
infoPanel.setLayout(new GridLayout(5,1));
panel1 = new JPanel();
panel1.setLayout(new FlowLayout());
lLicense = new JLabel("License Number: ");
tLicense = new JTextField(30);
panel1.add(lLicense);
panel1.add(tLicense);
panel2 = new JPanel();
panel2.setLayout(new FlowLayout());
lYear = new JLabel("Year Made: ");
tYear = new JTextField(30);
panel2.add(lYear);
panel2.add(tYear);
panel3 = new JPanel();
panel3.setLayout(new FlowLayout());
lCategory = new JLabel("Category: ");
rbSubcompact = new JRadioButton("S", true);
rbIntermediate = new JRadioButton("I",false);
rbLuxury = new JRadioButton("L",false);
panel3.add(lCategory);
panel3.add(rbSubcompact);
panel3.add(rbIntermediate);
panel3.add(rbLuxury);
panel4 = new JPanel();
panel4.setLayout(new FlowLayout());
lFee = new JLabel("Daily Rental Fee: ");
tFee = new JTextField(30);
panel4.add(lFee);
panel4.add(tFee);
panel5 = new JPanel();
panel5.setLayout(new FlowLayout());
lDateRented = new JLabel("Date Rented: ");
tDateRented = new JTextField(30);
panel5.add(lDateRented);
panel5.add(tDateRented);
infoPanel.add(panel1);
infoPanel.add(panel2);
infoPanel.add(panel3);
infoPanel.add(panel4);
infoPanel.add(panel5);
buttonPanel = new JPanel();
buttonPanel.setLayout(new GridLayout(1,5,3,3));
bDisplayNext = new JButton("Display Next");
bDisplayNext.addActionListener(this);
buttonPanel.add(bDisplayNext);
bClear = new JButton("Clear");
bClear.addActionListener(this);
buttonPanel.add(bClear);
bSearch = new JButton("Search");
bSearch.addActionListener(this);
buttonPanel.add(bSearch);
bAdd = new JButton("Add");
bAdd.addActionListener(this);
buttonPanel.add(bAdd);
bChange = new JButton("Change");
bChange.addActionListener(this);
buttonPanel.add(bChange);
messagePanel = new JPanel();
messagePanel.setLayout(new FlowLayout());
lMessage = new JLabel("");
messagePanel.add(lMessage);
Container c = getContentPane();
c.add(infoPanel, BorderLayout.NORTH);
c.add(buttonPanel, BorderLayout.CENTER);
c.add(messagePanel, BorderLayout.SOUTH);
setSize(700,500);
show();
public static void main(String args[])
CarRental app = new CarRental();
app.addWindowListener
new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
public void actionPerformed(ActionEvent e)
if (e.getSource() == bDisplayNext)
if (displayCount > carCount || displayCount > 10)
lMessage.setText("No More Cars!");
else
displayCount += 1;
licsNum = cars[displayCount].getLicenseNum();
yVal = fourNumber.format(cars[displayCount].getYearMade());
ct = cars[displayCount].getCategory();
rf = twoDigits.format(cars[displayCount].getFee());
d = cars[displayCount].getRentedDate();
tLicense.setText(licsNum);
tYear.setText(yVal);
tFee.setText(rf);
tDateRented.setText(d.toString());
if (ct == 'S' || ct == 's')
rbSubcompact.setSelected(true);
rbIntermediate.setSelected(false);
rbLuxury.setSelected(false);
else if (ct == 'I' || ct == 'i')
rbSubcompact.setSelected(false);
rbSubcompact.setSelected(true);
rbSubcompact.setSelected(false);
else if (ct == 'L' || ct == 'l')
rbSubcompact.setSelected(false);
rbSubcompact.setSelected(false);
rbSubcompact.setSelected(true);
else if (e.getSource() == bSearch)
int found = 0, noOfFound = 0;
DecimalFormat fourNumber = new DecimalFormat("0000");
DecimalFormat twoDigits = new DecimalFormat("0.00");
searchString = tLicense.getText();
searchCount = 0;
if (searchString != "")
while (searchCount < carCount && found != 1)
licsNum = cars[searchCount].getLicenseNum();
if (searchString == licsNum)
yVal = fourNumber.format(cars[searchCount].getYearMade());
ct = cars[searchCount].getCategory();
     rf = twoDigits.format(cars[searchCount].getFee());
     d = cars[searchCount].getRentedDate();
noOfFound++;
found = 1;
else
found = 0;
searchCount++;
if (noOfFound > 0)
tLicense.setText(licsNum);
tYear.setText(yVal);
tFee.setText(rf);
tDateRented.setText(d.toString());
lMessage.setText("Search Found!");
else
lMessage.setText("Search Not Found!");
else
lMessage.setText("Search Not Valid!");
else if (e.getSource() == bAdd)
int count = 0;
int foundEmpty = 0;
while (count < 10 && foundEmpty != 1)
String s = cars[count].getLicenseNum();
if (s != "")
count++;
foundEmpty = 0;
else
foundEmpty = 1;
if ( count < 10 )
licsNum = tLicense.getText();
feeVal = tFee.getText();
yVal = tYear.getText();
dateVal = tDateRented.getText();
if (feeVal != "")
fee = Double.parseDouble(feeVal);
else
fee = 0;
if (yVal != "")
yMade = Integer.parseInt(yVal);
else
yMade = 0;
if (rbSubcompact.isSelected())
ct = 'S';
if (rbIntermediate.isSelected())
ct = 'I';
if (rbLuxury.isSelected())
ct = 'L';
if (dateVal != "")
int s1 = dateVal.indexOf("/");
int s2 = dateVal.indexOf("/", s1+1);
int i = 0;
while (i < s1)
yVal += dateVal.charAt(i);
i++;
i = s1 + 1;
while (i < s2)
mVal += dateVal.charAt(i);
i++;
i = s2 + 1;
while (i < dateVal.length())
dVal += dateVal.charAt(i);
i++;
yRented = Integer.parseInt(yVal);
mRented = Integer.parseInt(mVal);
dRented = Integer.parseInt(dVal);
else
yRented = 0;
mRented = 0;
dRented = 0;
cars[count] = new Car(licsNum, yMade, ct, fee, yRented, mRented, dRented);
else
lMessage.setText("No More Room To Add A New Car!");
if (e.getSource() == bChange)
licsNum = tLicense.getText();
feeVal = tFee.getText();
yVal = tYear.getText();
dateVal = tDateRented.getText();
if (feeVal != "")
fee = Double.parseDouble(feeVal);
else
fee = 0;
if (yVal != "")
yMade = Integer.parseInt(yVal);
else
yMade = 0;
if (rbSubcompact.isSelected())
ct = 'S';
if (rbIntermediate.isSelected())
ct = 'I';
if (rbLuxury.isSelected())
ct = 'L';
if (dateVal != "")
int s1 = dateVal.indexOf("/");
int s2 = dateVal.indexOf("/", s1+1);
int i = 0;
while (i < s1)
yVal += dateVal.charAt(i);
i++;
i = s1 + 1;
while (i < s2)
mVal += dateVal.charAt(i);
i++;
i = s2 + 1;
while (i < dateVal.length())
dVal += dateVal.charAt(i);
i++;
yRented = Integer.parseInt(yVal);
mRented = Integer.parseInt(mVal);
dRented = Integer.parseInt(dVal);
else
yRented = 0;
mRented = 0;
dRented = 0;
if (displayCount <= carCount)
cars[displayCount].setLicenseNum(licsNum);
cars[displayCount].setYearMade(yMade);
cars[displayCount].setCategory(ct);
cars[displayCount].setFee(fee);
cars[displayCount].setRentedDate(yRented, mRented, dRented);
else
lMessage.setText("No car to change!");
else if (e.getSource() == bClear)
displayCount = -1;
tLicense.setText("");
tYear.setText("");
tFee.setText("");
tDateRented.setText("");
lMessage.setText("");
rbSubcompact.setSelected(true);
rbIntermediate.setSelected(false);
rbLuxury.setSelected(false);
public class Car
private String licenseNum;
private int yearMade;
private char category;
private double fee;
private Date rentedDate;
public Car(String l, int yM, char c, double f, int yR, int mR, int dR)
setLicenseNum(l);
setYearMade(yM);
setCategory(c);
setFee(f);
setRentedDate(yR,mR,dR);
public void setLicenseNum(String l)
licenseNum = l;
public void setYearMade(int yM)
yearMade = yM;
public void setCategory(char c)
category = c;
public void setFee(double f)
fee = f;
public void setRentedDate(int yR, int mR, int dR)
rentedDate = new Date(yR,mR,dR);
public String getLicenseNum()
return licenseNum;
public int getYearMade()
return yearMade;
public char getCategory()
return category;
public double getFee()
return fee;
public Date getRentedDate()
return rentedDate;
public String toString()
DecimalFormat twoDigits = new DecimalFormat("0.00");
return licenseNum + " " + yearMade + " " + category + " " + twoDigits.format( fee ) + " " + rentedDate.toString();
public class Date
private int month;
private int day;
private int year;
public Date( int yr, int mn, int dy )
if ( mn > 0 && mn <= 12 )
month = mn;
else
month = 0;
year = yr;
day = checkDay( dy );
private int checkDay( int testDay )
int daysPerMonth[] = { 0, 31, 28, 31, 30,
31, 30, 31, 31, 30,
31, 30, 31 };
if ( testDay > 0 && testDay <= daysPerMonth[ month ] )
return testDay;
if ( month == 2 && testDay == 29 &&
( year % 400 == 0 || ( year % 4 == 0 && year % 100 != 0 ) ) )
return testDay;
return 0;
public String toString()
return fourNumber.format(year) + "/" + twoNumber.format(month) + "/" + twoNumber.format(day);
I have tried to put the actionPerformed sections into different sections. For each if or else if, I've tried to put them into another function. But still it didn't work. Can you tell me what's wrong with my logic and can you fix it? Thanks!

Hi there,
Your code as is is giving exceptions on hitting displaynext button after the first 2 cars are displayed.
Pl find below some changes to yuor code, now displaynest, search and clear buttons work fine.
In order to make the Change and Add buttons work, what you need to do is, instead of hardcoding the Car values in an array as you have done, store these values in a file or database table and only then, you will bw able to add or change these values. Cheers.
import java.lang.String.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.DecimalFormat;
import java.util.*;
public class CarRental extends JFrame implements ActionListener
          private Car cars[] = new Car[10];
          private char ct;
          private Date d;
          private double f, fee;
          private int addCount, carCount = 0, displayCount = 0;
          private int searchCount = 0, yMade, yRented, mRented, dRented;
          private JButton bDisplayNext, bClear, bSearch,bAdd, bChange;
          private JLabel lLicense, lYear, lCategory, lFee, lDateRented, lMessage;
          private JPanel infoPanel, buttonPanel, messagePanel, panel1, panel2, panel3, panel4, panel5;
          private JRadioButton rbSubcompact, rbIntermediate, rbLuxury;
          private JTextField tLicense, tYear, tFee, tDateRented;
          private String licsNum, feeVal, yVal, mVal, dVal, dateVal, rf, searchString;
          DecimalFormat twoDigits = new DecimalFormat("0.00");
          DecimalFormat twoNumber = new DecimalFormat("00");
          DecimalFormat fourNumber = new DecimalFormat("0000");
          public CarRental()
                    super("Madterp's Rental Cars");
                    cars[0] = new Car("ABC111",1999,'S',100,0,0,0);
                    cars[1] = new Car("DEF222",2002,'I',160,2002,2,2);
                    cars[2] = new Car("GHJ333",2003,'I',160,2002,2,2);
                    cars[3] = new Car("KLM444",2004,'I',160,2002,2,2);
                    cars[4] = new Car("NOP555",2005,'I',160,2002,2,2);
                    cars[5] = new Car("QRS666",2006,'I',160,2002,2,2);
                    cars[6] = new Car("TUV777",2007,'I',160,2002,2,2);
                    cars[7] = new Car("XYZ888",2002,'I',160,2002,2,2);
                    cars[8] = new Car("AAA888",2002,'I',160,2002,2,2);
                    cars[9] = new Car("BBB222",2002,'I',160,2002,2,2);
                    carCount += 10;
                    infoPanel = new JPanel();
                    infoPanel.setLayout(new GridLayout(5,1));
                    panel1 = new JPanel();
                    lLicense = new JLabel("License Number: ");
                    tLicense = new JTextField(30);
                    panel1.add(lLicense);
                    panel1.add(tLicense);
                    panel2 = new JPanel();
                    lYear = new JLabel("Year Made: ");
                    tYear = new JTextField(30);
                    panel2.add(lYear);
                    panel2.add(tYear);
                    panel3 = new JPanel();
                    lCategory = new JLabel("Category: ");
                    rbSubcompact = new JRadioButton("S", true);
                    rbIntermediate = new JRadioButton("I",false);
                    rbLuxury = new JRadioButton("L",false);
                    panel3.add(lCategory);
                    panel3.add(rbSubcompact);
                    panel3.add(rbIntermediate);
                    panel3.add(rbLuxury);
                    panel4 = new JPanel();
                    lFee = new JLabel("Daily Rental Fee: ");
                    tFee = new JTextField(30);
                    panel4.add(lFee);
                    panel4.add(tFee);
                    panel5 = new JPanel();
                    lDateRented = new JLabel("Date Rented: ");
                    tDateRented = new JTextField(30);
                    panel5.add(lDateRented);
                    panel5.add(tDateRented);
                    infoPanel.add(panel1);
                    infoPanel.add(panel2);
                    infoPanel.add(panel3);
                    infoPanel.add(panel4);
                    infoPanel.add(panel5);
                    buttonPanel = new JPanel();
                    buttonPanel.setLayout(new GridLayout(1,5,3,3));
                    bDisplayNext = new JButton("Display Next");
                    bDisplayNext.addActionListener(this);
                    buttonPanel.add(bDisplayNext);
                    bClear = new JButton("Clear");
                    bClear.addActionListener(this);
                    buttonPanel.add(bClear);
                    bSearch = new JButton("Search");
                    bSearch.addActionListener(this);
                    buttonPanel.add(bSearch);
                    bAdd = new JButton("Add");
                    bAdd.addActionListener(this);
                    buttonPanel.add(bAdd);
                    bChange = new JButton("Change");
                    bChange.addActionListener(this);
                    buttonPanel.add(bChange);
                    messagePanel = new JPanel();
                    messagePanel.setLayout(new FlowLayout());
                    lMessage = new JLabel("");
                    messagePanel.add(lMessage);
                    Container c = getContentPane();
                    c.add(infoPanel, BorderLayout.NORTH);
                    c.add(buttonPanel, BorderLayout.CENTER);
                    c.add(messagePanel, BorderLayout.SOUTH);
                    setSize(700,500);
                    show();
          public static void main(String args[])
               CarRental app = new CarRental();
               app.addWindowListener
                    (new WindowAdapter()
                                   public void windowClosing(WindowEvent e)
                                        System.exit(0);
     public void actionPerformed(ActionEvent e)
          if (e.getSource() == bDisplayNext)
                    if ( displayCount > 9)
                         lMessage.setText("No More Cars!");
                    else
                              licsNum = cars[displayCount].getLicenseNum();
                              yVal = fourNumber.format(cars[displayCount].getYearMade());
                              ct = cars[displayCount].getCategory();
                              rf = twoDigits.format(cars[displayCount].getFee());
                              d = cars[displayCount].getRentedDate();
                              tLicense.setText(licsNum);
                              tYear.setText(yVal);
                              tFee.setText(rf);
                              tDateRented.setText(d.toString());
                              if (ct == 'S' || ct == 's')
                                        rbSubcompact.setSelected(true);
                                        rbIntermediate.setSelected(false);
                                        rbLuxury.setSelected(false);
                              else if (ct == 'I' || ct == 'i')
                                        rbSubcompact.setSelected(false);
                                        rbSubcompact.setSelected(true);
                                        rbSubcompact.setSelected(false);
                              else if (ct == 'L' || ct == 'l')
                                        rbSubcompact.setSelected(false);
                                        rbSubcompact.setSelected(false);
                                        rbSubcompact.setSelected(true);
                              displayCount += 1;
          else if (e.getSource() == bSearch)
                    int found = 0, noOfFound = 0;
                    DecimalFormat fourNumber = new DecimalFormat("0000");
                    DecimalFormat twoDigits = new DecimalFormat("0.00");
                    searchString = tLicense.getText();
                    searchCount = 0;
                    if (searchString != "")
                              while (searchCount < carCount && found != 1)
                                   licsNum = cars[searchCount].getLicenseNum();
                                        if (searchString.equals(licsNum)) {
                                                  yVal = fourNumber.format(cars[searchCount].getYearMade());
                                                  ct = cars[searchCount].getCategory();
                                                  rf = twoDigits.format(cars[searchCount].getFee());
                                                  d = cars[searchCount].getRentedDate();
                                                  noOfFound++;
                                                  found = 1;
                                        else {
                                             found = 0;
                                   searchCount++;
                                        if (noOfFound > 0) {
                                                  tLicense.setText(licsNum);
                                                  tYear.setText(yVal);
                                                  tFee.setText(rf);
                                                  tDateRented.setText(d.toString());
                                                  lMessage.setText("Search Found!");
                                        else     {
                                             lMessage.setText("Search Not Found!");
                         else     {
                              lMessage.setText("Search Not Valid!");
               else if (e.getSource() == bAdd)
                              int count = 0;
                              int foundEmpty = 0;
                              while (count < 10 && foundEmpty != 1)
                                   String s = cars[count].getLicenseNum();
                                        if (s != "")
                                                  count++;
                                                  foundEmpty = 0;
                                        else
                                             foundEmpty = 1;
                              if ( count < 10 )
                                        licsNum = tLicense.getText();
                                        feeVal = tFee.getText();
                                        yVal = tYear.getText();
                                        dateVal = tDateRented.getText();
                                        if (feeVal != "")     {
                                             fee = Double.parseDouble(feeVal);
                                        else {
                                             fee = 0;
                                        if (yVal != "")     {
                                             yMade = Integer.parseInt(yVal);
                                        else {
                                             yMade = 0;
                                        if (rbSubcompact.isSelected()) {
                                             ct = 'S';
                                        if (rbIntermediate.isSelected()) {
                                             ct = 'I';
                                        if (rbLuxury.isSelected()) {
                                             ct = 'L';
                                        if (dateVal != "") {
                                                  int s1 = dateVal.indexOf("/");
                                                  int s2 = dateVal.indexOf("/", s1+1);
                                                  int i = 0;
                                                  while (i < s1) {
                                                            yVal += dateVal.charAt(i);
                                                            i++;
                                                  i = s1 + 1;
                                                  while (i < s2) {
                                                            mVal += dateVal.charAt(i);
                                                            i++;
                                                  i = s2 + 1;
                                                  while (i < dateVal.length()) {
                                                            dVal += dateVal.charAt(i);
                                                            i++;
                                                  yRented = Integer.parseInt(yVal);
                                                  mRented = Integer.parseInt(mVal);
                                                  dRented = Integer.parseInt(dVal);
                                             else {
                                                            yRented = 0;
                                                            mRented = 0;
                                                            dRented = 0;
                                             cars[count] = new Car(licsNum, yMade, ct, fee, yRented, mRented, dRented);
                                   else {
                                        lMessage.setText("No More Room To Add A New Car!");
                    if (e.getSource() == bChange)
                              searchString = tLicense.getText();
                              feeVal = tFee.getText();
                              yVal = tYear.getText();
                              dateVal = tDateRented.getText();
                              int searchCount = 0;
                              if (searchString != "")
                                        while (searchCount < carCount )
                                             licsNum = cars[searchCount].getLicenseNum();
                                                  if (searchString.equals(licsNum)) {
                                                            displayCount = searchCount;
                              if (feeVal != "")                              {
                                   fee = Double.parseDouble(feeVal);
                              else {
                                   fee = 0;
                              if (yVal != "")     {
                                   yMade = Integer.parseInt(yVal);
                              else {
                                   yMade = 0;
                              if (rbSubcompact.isSelected()){
                                   ct = 'S';
                              else if (rbIntermediate.isSelected()){
                                   ct = 'I';
                              else if (rbLuxury.isSelected()){
                                   ct = 'L';
                              if (dateVal != "")
                                        int s1 = dateVal.indexOf("/");
                                        int s2 = dateVal.indexOf("/", s1+1);
                                        int i = 0;
                                        while (i < s1){
                                                  yVal += dateVal.charAt(i);
                                                  i++;
                                        i = s1 + 1;
                                        while (i < s2){
                                                  mVal += dateVal.charAt(i);
                                                  i++;
                                        i = s2 + 1;
                                        while (i < dateVal.length()){
                                                  dVal += dateVal.charAt(i);
                                                  i++;
                                        yRented = Integer.parseInt(yVal);
                                        mRented = Integer.parseInt(mVal);
                                        dRented = Integer.parseInt(dVal);
                              else
                                        yRented = 0;
                                        mRented = 0;
                                        dRented = 0;
                              if (displayCount <= carCount)
                                        cars[displayCount].setLicenseNum(licsNum);
                                        cars[displayCount].setYearMade(yMade);
                                        cars[displayCount].setCategory(ct);
                                        cars[displayCount].setFee(fee);
                                        cars[displayCount].setRentedDate(yRented, mRented, dRented);
                              else
                                   lMessage.setText("No car to change!");
                    else if (e.getSource() == bClear)
                              displayCount = 0;
                              tLicense.setText("");
                              tYear.setText("");
                              tFee.setText("");
                              tDateRented.setText("");
                              lMessage.setText("");
                              rbSubcompact.setSelected(true);
                              rbIntermediate.setSelected(false);
                              rbLuxury.setSelected(false);
          public class Car
                    private String licenseNum;
                    private int yearMade;
                    private char category;
                    private double fee;
                    private Date rentedDate;
                    public Car(String l, int yM, char c, double f, int yR, int mR, int dR){
                              setLicenseNum(l);
                              setYearMade(yM);
                              setCategory(c);
                              setFee(f);
                              setRentedDate(yR,mR,dR);
                    public void setLicenseNum(String l){
                         licenseNum = l;
                    public void setYearMade(int yM){
                         yearMade = yM;
                    public void setCategory(char c){
                         category = c;
                    public void setFee(double f){
                         fee = f;
                    public void setRentedDate(int yR, int mR, int dR){
                         rentedDate = new Date(yR,mR,dR);
                    public String getLicenseNum(){
                         return licenseNum;
                    public int getYearMade(){
                         return yearMade;
                    public char getCategory(){
                         return category;
                    public double getFee(){
                         return fee;
                    public Date getRentedDate(){
                         return rentedDate;
                    public String toString() {
                              DecimalFormat twoDigits = new DecimalFormat("0.00");
                              return licenseNum + " " + yearMade + " " + category + " " + twoDigits.format( fee ) + " " + rentedDate.toString();
          public class Date
                    private int month;
                    private int day;
                    private int year;
                    public Date( int yr, int mn, int dy ) {
                              if ( mn > 0 && mn <= 12 )     {
                                   month = mn;
                              else           {
                                   month = 0;
                              year = yr;
                              day = checkDay( dy );
                    private int checkDay( int testDay ) {
                         int daysPerMonth[] = { 0, 31, 28, 31, 30,     31, 30, 31, 31, 30,     31, 30, 31 };
                              if ( testDay > 0 && testDay <= daysPerMonth[ month ] ) {
                                   return testDay;
                              if ( month == 2 && testDay == 29 && ( year % 400 == 0 || ( year % 4 == 0 && year % 100 != 0 ) ) ) {
                                   return testDay;
                         return 0;
                    public String toString()
                         return fourNumber.format(year) + "/" + twoNumber.format(month) + "/" + twoNumber.format(day);

Similar Messages

  • My accounts program won't run without legacy Java SE6 runtime since I upgraded to OS x Yosemite but I can't download it

    My "Solar" accounts program won't run without "legacy Java SE6 runtime" since I upgraded my iMac desktop to OS x Yosemite but I can't download it, nothing happens when you click on the link to apple support

    Okay, I'm not a Genius, but, I'm smarter than the one I spoke to at the Apple Store.They told me that they couldn't help me with Legacy Java SE6 Runtime. Adobe has the worst support in the industry so don't call them.
    If you have a Time Machine backup, go to one that pre dates your install of Yosemite. Go to the System/Library/Java and drag copy the folder to your internal hard disk. Now you will need the Administrator password. Once copied, drag the old Java folder into your System/Library folder and when asked to replace, click OK. Restart your Mac and you will have use of your software that requires Legacy Java SE6 Runtime.
    I'm totally done with Apple since they are trying to box me into a corner. Have fun kids.

  • Kde 4.1 suddenly won't run properly

    I'm not sure what caused it, but KDE 4.1 suddenly won't run properly on one of my machines. It will start to run and die right at the point when the "splash screen" disappears. If I click the popup to make it go away, the desktop will appear for less than a second before being dropped out of X.
    The error message that I see after that is:
    xprop: unable to connect to display :0
    My main "DE" (Fluxbox) works perfectly, so I don't think that it's a problem with X itself.
    The video card brand is nVidia, if that helps any....

    If you're getting dropped out of X then it's X that's crashing.
    I will assume you have desktop effects enabled and they are causing your graphics driver to die somehow. You can disable desktop effects from the terminal by typing:
    kwriteconfig --file kwinrc --group Compositing --key Enabled --type bool false

  • I have a disk for Photoshop Elements 4.0 marked Windows XP.  My computer is running Windows 8.1. Will the program I have run properly, or do I need to upgrade it? If so, how much will it cost me to upgrade it?

    As I said, I have a CD which is marked Photoshop Elements 4.0, Windows XP.  My operating system is Windows 8.1,  Will the program on the CD run properly?  If not, who will it take to upgrade it?  [email protected]

    It probably won't work, but you can give it a try.
    Upgrade here (although you may be able to find a full version less expensively at an online store or a retail store):
    Buying guide: version comparison | Adobe Photoshop Elements 13

  • Hard drive upgrade...now some programs aren't running properly

    I've recently upgraded my hd...Now my iphoto and photoshop aren't running properly. My photoshop elements tries to boot up then says that it can't boot becuase the disk is not available. My iphoto won't recognize any photos when a camera is trying to import them. Everything else works great but these are the only two issues. Please help

    I don't really use these programs anymore so no worries.

  • Programs won't run after update to 10.6.7

    Hi
    I have just inherited an early 2008 iMac following my Dad's death a few months ago. So I have no Mac experience at all. On receiving it, I booted it up and a list of recommended software updates appeared which I ran, and by all accounts successfully installed. One of them was an update to 10.6.7
    Previous to the update I could access the installed programs. Now I can access barely any of them.
    Error message reads:
    Application name cannot open.
    Check with the developer to ensure this version of application name works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS.
    There aren't any further updates needed. Every time I check, I'm advised everything is uptodate. So last night I reinstalled iTunes, downloading the latest version. That won't run. Same error message.
    I'm unsure what to do now. I don't have any disks etc at the moment as Mum is still trying to locate them (they had more than one property and this has come out of one that has been boxed up and put onto the market).

    This is a typical error report. The section I have bolded out seems to be common in all the errors.
    Process:         iTunes [500]
    Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier:      com.apple.iTunes
    Version:         ??? (???)
    Build Info:      iTunes-10221201~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [105]
    Date/Time:       2011-05-11 06:38:32.490 +0100
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          15167 sec
    Crashes Since Last Report:           305
    Per-App Crashes Since Last Report:   6
    Anonymous UUID:                      DCCD367C-006F-4EEF-8457-3885D045DBBE
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
      Referenced from: /Applications/iTunes.app/Contents/MacOS/iTunes
      Reason: no suitable image found.  Did find:
              /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
              /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: iMac8,1, BootROM IM81.00C1.B00, 2 processors, Intel Core 2 Duo, 2.8 GHz, 4 GB, SMC 1.30f1
    Graphics: ATI Radeon HD 2600 Pro, ATI Radeon HD 2600 Pro, PCIe, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8C), Broadcom BCM43xx 1.0 (5.10.131.36.9)
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HDP725032GLA380, 298.09 GB
    Parallel ATA Device: MATSHITADVD-R   UJ-875
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0xfd400000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x5d100000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1a100000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x820f, 0x1a110000

  • Program won't run

    I am currently reading "Sam's teach yourself Java 2 in 21 days", and I followed the instructions for programming the "VolcanoApplication" (the files can be found here http://www.cadenhead.org/book/java-21-days/chapter.php/1 and are called VolcanoRobot and VolcanoApplication). I compiled the two programs, but VolcanoApplication won't run. I get an error message saying "Exception in thread "main" java.lang.NoClassDefFoundError: volcanoapplication/class"

    I copied the two files, compiled them and had no problem running VolcanoApplication. To try to narrow down your problem, do the following:
    1. Check the names of both files to make sure that they are called VolcanoApplication.java and VolcanoRobot.java. 
    Make sure there are no typos because the file name must exactly match the class name.  This includes case.
    2. Before trying to recompile, first erase the old .class files.  Go to the directory that contains the files
    and issue the command: "javac VolcanoApplication.java".  This should compile both files. 
    The javac command should complete with no errors.  Now check your directory, you should see
    VolcanoApplication.class and VolcanoRobot.class in your directory.
    3. From the same directory, issue the command "java VolcanoApplication".  Again, make sure there are no typos. 
    It should execute the program and print out some stuff.

  • Diasend Uploader program won't run?

    Hi there, I have an  HP Touchsmart 610-1010a, I am trying to run a program called Diasend uploader?
    It will download install and run fine on other peoples PCs but not mine.
    It is a 32 bit program so this may be part of the problem as I am running 64 Bit??
    As soon as I try to open the program it says: the program has stopped working and then nothing happens.
    I have been in touch with the support team for Diasend to no avail.
    When I try to install it seems to go fine until the part of the install in this attachment shown in slide 13, I never see this part it just shows the last part , slide 14??
    https://diasend.zendesk.com/attachments/token/intoyvodr3em8wx/?name=Diasend+-+Uploader+installation....
    Can anyone help please??

    I sorta feel good that I'm not the only one baffled. I would agree with his assessment that something is blocking the install on the machine from being completed. As to what it could be I'm not really sure, usually when something isn't installing properly it's due to a firewall or antivirus program halting the installation. Since you turned off Norton and attempted an installation that should rule that out, unless, Norton still runs even when turned off. I have seen anti virus programs continue to run when disabled to "protect" the end user.
    I'd recommend booting the computer into safe mode (see my previous link) and attempting to install the program that way. This should keep Norton from even starting up on the program so it would guarantee that it's not the issue.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Finished writing amazing code that compiles but won't run properly

    I finished writing this code for someone and it compiles but it does not run properly. Anyone see any problems? Any help would be gladly appreciated.
    /* Program is for the Coconut Grove Palace Building. This program keeps track of the building occupants and the maintenance for each tenant using a simple menu system. */
    import java.util.Scanner;
    public class Grove {
    private static Scanner keyboard = new Scanner(System.in);
    /* Declaring values that will not change throughout the program. The plus one is so that people don't get confused */
    private static final int TOTAL_BUILDING_MAX = 16 + 1;
    private static final int TOTAL_FLOOR_MAX = 8 + 1;
    private static final int APARTMENT_MAX = 4 + 1;
    public static void main (String[] args) {
    // Declare main variable
         int cocoPalace[][] = new int[2][3];
         char menuChoice;
         int aptNumber = 0;
         int floorNumber = 0;
         int totalFloor = 0;
         int totalBuilding = 0;
    //Fill up the array with the original amount of 2 people per apartment
         for (int dex = 0; dex <3; dex++)
                   cocoPalace[0][dex] = 2;
                   cocoPalace[1][dex] = 2;     
         System.out.println("Welcome to the coconut grove palace");
    //Main part of the program that is essentially the menu screen.     
         do
              //method that calculates the maintenance that will be used several times
              double buildingMaintenance = calculateMaintenance(cocoPalace);
              //Menu System using a switch command with nested for loops and other code.
                   System.out.println("(A)partment, (B)uilding, (P)eople, E(x)it");
                   menuChoice = keyboard.nextLine().charAt(0);
                        switch (menuChoice)     
    //FIRST CASE 'A' ASK FOR THE FLOOR AND APARTMENT NUMBER AND DISPLAYS THE MAINTENANCE COST FOR IT
                   case 'a':
                   //Idiot proof 1
                   System.out.println("Please enter floor number :");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 2)
                   System.out.println("Floor number must be between 1 and 2. Try again:");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartmentNumber :");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 3)
                   System.out.println("Apartment number must be between 1 and 3. Try again:");
                   aptNumber = keyboard.nextInt();
                   System.out.println("Floor number" + cocoPalace[floorNumber] + "Apartment number" + cocoPalace[floorNumber][aptNumber] + " : " + buildingMaintenance);
                   break;
    //SECOND CASE 'B' REPORTS THE OCCUPANCY AND MAINTENANCE FOR THE WHOLE BUILDING
                   case 'b':
                   for (int dex2 = 0; dex2 < 3; dex2++)
                   System.out.println("Floor number 1 Apartment number " + cocoPalace[0][dex2] + " : " + buildingMaintenance);                    
                   for (int dex3 = 0; dex3 < 2; dex3++)
                   System.out.println("Floor number 2 Apartment number " + cocoPalace[1][dex3] + " : " + buildingMaintenance);                    
                   break;
    /*THIRD CASE 'P' ALLOWS THE USER TO CHANGE THE AMOUNT OF PEOPLE IN AN APARTMENT AND RECALCULATES THE MAINTENACE. IT IS ALSO "IDIOT PROOFED" SO THAT VALUES DO NOT EXCEED THE REGULATIONS OF THE BUILDING IT SELF */
                   case 'p':
                   //Idiot proof 1
                   System.out.println("Please enter floor number : ");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 3)
                   System.out.println("Floor number must be between 1 and 2. Try again: ");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartment number : ");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 4)
                   System.out.println("Apartment number must be between 1 and 3. Try again: ");
                   aptNumber = keyboard.nextInt();
                   //Idiot proof 3 with the amount of people being added at the same time.
                   System.out.println("How many people will there be : ");
                   int amountPeople = keyboard.nextInt();
                   cocoPalace[floorNumber][aptNumber] = amountPeople;
                   while (amountPeople > APARTMENT_MAX || totalBuilding > TOTAL_BUILDING_MAX || totalFloor > TOTAL_FLOOR_MAX )
              System.out.print("Too many people in building. Please try again : ");
                   amountPeople = keyboard.nextInt();
                        cocoPalace[floorNumber][aptNumber] = amountPeople;
                   break;
         while (menuChoice != 'x'|| menuChoice != 'a' || menuChoice != 'p' || menuChoice != 'b');
    //Method to calculate maintenance.
    private static double calculateMaintenance(int cocoPalace[][])
         int amountPeople = 0;
         for (int dex4 = 0; dex4 < 2; dex4++)
                   amountPeople += cocoPalace[0][dex4];
                   amountPeople += cocoPalace[1][dex4];
                   cocoPalace[0][dex4] = 2;
                   cocoPalace[1][dex4] = 2;     
              double buildingMaintenance = 5000/(amountPeople);
         return(buildingMaintenance);
    }

    ok the array problem is fixed i was having a simple "one off" mistake when accessing the array.
    As for the error that i keep getting. I honestly can't see where the problem with this is in code.
    The it cant be equalt to nothing because this is written so that it has to equal a letter before the program actually runs through everything. Thanks again for the help
    here is the error that i am getting when the program runs.
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:558)
    at Grove.main(Grove.java:46)
    Here is the code with the new corrections.
    /* Program is for the Coconut Grove Palace Building. This program keeps track of the building occupants and the maintenance for each tenant using a simple menu system. */
    import java.util.Scanner;
    public class Grove {
    private static Scanner keyboard = new Scanner(System.in);
    /* Declaring values that will not change throughout the program. The plus one is so that people don't get confused */
    private static final int TOTAL_BUILDING_MAX = 16 + 1;
    private static final int TOTAL_FLOOR_MAX = 8 + 1;
    private static final int APARTMENT_MAX = 4 + 1;
    public static void main (String[] args) {
    // Declare main variable
         int cocoPalace[][] = new int[2][3];
         char menuChoice;
         int totalFloor = 0;
         int totalBuilding = 0;
    //Fill up the array with the original amount of 2 people per apartment
         for (int dex = 0; dex <3; dex++)
                   cocoPalace[0][dex] = 2;
                   cocoPalace[1][dex] = 2;     
         System.out.println("Welcome to the coconut grove palace");
    //Main part of the program that is essentially the menu screen.     
         do
         //Variables intialized
         int aptNumber = 0;
         int floorNumber = 0;
              //method that calculates the maintenance that will be used several times
              double buildingMaintenance = calculateMaintenance(cocoPalace);
              //Menu System using a switch command with nested for loops and other code.
                   System.out.println("(A)partment, (B)uilding, (P)eople, E(x)it");
                   menuChoice = keyboard.nextLine().charAt(0);
                        switch (menuChoice)     
    //FIRST CASE 'A' ASK FOR THE FLOOR AND APARTMENT NUMBER AND DISPLAYS THE MAINTENANCE COST FOR IT
                   case 'a':
                   //Idiot proof 1
                   System.out.println("Please enter floor number     :");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 2)
                   System.out.println("Floor number must be between 1 and 2. Try again:");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartmentNumber  :");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 3)
                   System.out.println("Apartment number must be between 1 and 3. Try again:");
                   aptNumber = keyboard.nextInt();
                   System.out.println("Floor number" + cocoPalace[floorNumber] + "Apartment number" + cocoPalace[floorNumber - 1][aptNumber - 1] + "  :  " + buildingMaintenance);
                   break;
    //SECOND CASE 'B' REPORTS THE OCCUPANCY AND MAINTENANCE FOR THE WHOLE BUILDING
                   case 'b':
                   for (int dex2 = 0; dex2 < 3; dex2++)
                   System.out.println("Floor number 1 Apartment number  " + cocoPalace[0][dex2] + "  :  " + buildingMaintenance);                    
                   for (int dex3 = 0; dex3 < 2; dex3++)
                   System.out.println("Floor number 2 Apartment number  " + cocoPalace[1][dex3] + "  :  " + buildingMaintenance);                    
                   break;
    /*THIRD CASE 'P' ALLOWS THE USER TO CHANGE THE AMOUNT OF PEOPLE IN AN APARTMENT AND RECALCULATES THE MAINTENACE. IT IS ALSO "IDIOT PROOFED" SO THAT VALUES DO NOT EXCEED THE REGULATIONS OF THE BUILDING IT SELF */
                   case 'p':
                   //Idiot proof 1
                   System.out.println("Please enter floor number     : ");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 2)
                   System.out.println("Floor number must be between 1 and 2. Try again: ");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartment number : ");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 3)
                   System.out.println("Apartment number must be between 1 and 3. Try again: ");
                   aptNumber = keyboard.nextInt();
                   //Idiot proof 3 with the amount of people being added at the same time.
                   System.out.println("How many people will there be : ");
                   int amountPeople = keyboard.nextInt();
                   cocoPalace[floorNumber - 1][aptNumber - 1] = amountPeople;
                   while (amountPeople > APARTMENT_MAX || totalBuilding > TOTAL_BUILDING_MAX || totalFloor > TOTAL_FLOOR_MAX  )
                          System.out.print("Too many people in building. Please try again : ");
                               amountPeople = keyboard.nextInt();
                        cocoPalace[floorNumber - 1][aptNumber - 1] = amountPeople;
                   break;
         while (menuChoice != 'x'|| menuChoice != 'a' || menuChoice != 'p' || menuChoice != 'b');
    //Method to calculate maintenance.
    private static double calculateMaintenance(int cocoPalace[][])
         int amountPeople = 0;
         for (int dex4 = 0; dex4 < 2; dex4++)
                   amountPeople += cocoPalace[0][dex4];
                   amountPeople += cocoPalace[1][dex4];
                   cocoPalace[0][dex4] = 2;
                   cocoPalace[1][dex4] = 2;     
              double buildingMaintenance = 5000/(amountPeople);
         return(buildingMaintenance);
    }

  • Downloaded updates but program won't run.

    I'm trying to open student loan information @ FAFSA. They're telling me I need to update my browser. I'm using Firefox so I've walked through prompts and programs still won't run. Any ideas?

    See my answer in this prior post: https://support.mozilla.com/en-US/questions/857254?s=fafsa&as=s
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I've uploaded 4, but Constant Contact won't run properly so how do I get back to 3?

    I updated my Firefox when requested as I should, but now Constant Contact tells me that they don't run properly on Firefox 4 (and it's TRUE!). Where can I download 3 so I can use Constant Contact? Or is there another solution?

    See [[Installing a previous version of Firefox ]] you may also be interested in [https://support.mozilla.com/en-US/questions/801008 these answers].

  • I have Dell XPS (windows 8.1): error: "this program won't run on this pc"

    Greetings, I just purchased a Dell XPS with Windows 8.1. I have tried to load Irfanview, Kompozer, FileZilla, and other software that I have run, most on XP and even on MacOS, but the downloaded software will not run or install on my new Windowx 8.1. This
    is terribly frustrating! I also don't understand why there is no "start" button that leads you to the software you have installed. 
    Please help. Thank you. 

    Press the Windows key on your keyboard.
    To get Start menu press + X
    Further references
    Where is the Start menu?
    If you wish to get the conventional  Start button  then download and install
    Classic Shell
    some older programs might run poorly or not run at all. If an older program doesn't run correctly or doesn't install, start the Program Compatibility Wizard, which simulates an earlier version of Windows. You can :-
    Make older programs compatible with this version of Windows
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • HP Pavilion dv6 notebook crashed, and won't run properly anymore

    A couple of days ago, my notebook froze, whilst I was listening to music, and everything switched to "Not Responding". The first two or three times it started to work again. But one time it just kept saying that, so I had to force shut down it. I run Windows 8 on it. When I restarted it, it went to the Windows 8 screen whilst loading, then a black screen. It remained on that screen for a while, so I force shut down the notebook again. When I restarted it, the notebooks automatically went into System Recovery, and attempted to fix system errors. It went to another black screen, and in some impatience, I force shut down the notebook again. I assume this may have resulted in the corruption of some system files. I restarted it again, but this time left it running overnight, again the notebook was trying to do a System Recovery. The next morning I came back to the notebook, and it was on the login screen. It took a very long time attempting to login, and I was in a rush to leave that morning, so force shut it down again. It worked, but very very slowly. It would take ages to even open My Documents. One problem that occurred sometimes was that when I restarted, it would say "boot device not found", and then a couple more force shut downs and start ups later it would find the hard drive. But it still ran really slowly. I realized that it wasn't just going to work like this, so attempted to copy all of my file onto an external hard drive. I left that running overnight, and when I came back in the morning, the notebook was again on the "boot device not found" screen. After that, it refused to do anything but show that same screen, so my cousin, who works in IT, booted Windows 7 onto it from a USB. He tried to work with getting the notebook running, and spent a whole day on it, it ran so slowly, but found that the system files had been corrupted. And there was no access to my hard drive because both the system files and my personal files were on one C: drive, rather than partitions. He spent the afternoon trying to use a file recovery software, and said it managed to get about 90% done, and the approximate file count he stated sounded similar to how many it stated it had found to copy, when I attempted to copy all of my files. So, I'm assuming it's possible to recover my files, though right now I have no access to them. I have no problem with restoring it to it's factory default settings, installing a new operating system, etc, but I really really need my files. I have spent way too much time collectively creating a massive database of various files, in two or so years of use, and it's very unsettling that I may have just lost everything. So, what the hell happened? And how do I fix it? Will I need to send my laptop to HP, because I have no problem in that either, it's of no use to me right now, anyways?

    Hello Aeonica,
    Welcome to the HP Forums.
    I understand the computer is unable to detect a boot device and run properly. I will do my best to assist you.
    To troubleshoot the issue, HP released a document on this hardware error. If you try these steps, you may be able to resolve the boot device error: Resolve Boot Device not Found Error Message
    I believe these steps will resolve the issue. Unfortunately, the computer should be serviced if the issue is not resolved. To do this, please contact HP phone support. You can utilize this website to learn how to contact HP appropriately, based on your region: Contact HP Worldwide
    Please let me know how it goes. Thanks!
    Mario
    I worked on behalf of HP.

  • HT3680 macbook drive is so full that finder won't run properly in order to delete any files

    MacBook Pro hard disk is so full that it won't start properly.
    Finder stops responding.
    Tried to install OmniDiskSweeper, but there isn't enough disk space to install it.
    Computer sometimes will boot in Safe mode, sometimes it won't
    Disk Utiility finds a couple of minor things and successfully repairs them
    Is there any other way to locate and delete files other than Finder?

    I still haven't figured out how to get the two of them connect so I can transfer files directly. 
    Transfer files between two computers using target disk mode

  • OS X Program Won't Run Without Java 6

    Have a completely fine install of Java 8 (tested and whatnot) however I have a Mac OS program that requires Java. (1.1 or later) Of course, I should have realized that Apple would not let it go easily (ha ha) and is giving me the error message "To open "Program" you need to install the Legacy Java SE 6 runtime". I refuse to downgrade to an older, painful (and not completely working) version of Java just because it won't recognize I have Java 8. This program is compatible with Java 8, by the way. Is there a way to force the program to run on Java 8? This error message isn't the program's, it's an OS X one, which makes me think I just need to bypass it to get the program running. Thanks.

    Okay, I'm not a Genius, but, I'm smarter than the one I spoke to at the Apple Store.They told me that they couldn't help me with Legacy Java SE6 Runtime. Adobe has the worst support in the industry so don't call them.
    If you have a Time Machine backup, go to one that pre dates your install of Yosemite. Go to the System/Library/Java and drag copy the folder to your internal hard disk. Now you will need the Administrator password. Once copied, drag the old Java folder into your System/Library folder and when asked to replace, click OK. Restart your Mac and you will have use of your software that requires Legacy Java SE6 Runtime.
    I'm totally done with Apple since they are trying to box me into a corner. Have fun kids.

Maybe you are looking for

  • Crossgate Canonical Structure

    Hello Experts, Can you please clarify a query regarding Crossgate Canonical XML structure. As per documentation available on internet "Crossgate has standardized their processes into one canonical form for each transaction type" we are currently deal

  • Regarding overall purchase requisition release strategy

    Hi,       For following combination PR release strategy  is not working. 1.Total value of requisition 2.Purchasing Organization 3.Name of Requisitioner/Requeste But when we take any one of them it is working. But when I tried to put together, these f

  • How do I re-download the mpeg 2 playback component that was purchased more than 18 months ago?

    I wanted to check to see if I could re-download the installer for the QT MPEG 2 Playback Component, which I had purchased several years ago, but have since lost since I wiped my hard drive and upgraded my system to Leopard.  I have a copy of the app

  • Keynote for iOS Bullet Alignment Bug?

    Does anyone know how to solve this issue: Image bullets in Keynote for iOS have a bug related to vertical alignment of the image. For the first line of text, the bullet image is correctly aligned in the vertical center of the line. For all other line

  • Regarding Pipeline Services

    Hi, I was trying to find information on Pipeline Services in SAP Help, but I could not find. Could anyone please provide the same. I know the six Pipeline Services. I want the link of the same from SAP Help. Regards, Varun