Que erro é esse?

Ola Galera,
to precisando de uma ajuda aki…to compilando o programa e dai vem esses erros:

“Converter.java”: constant expression required at line 233, column 48
“Converter.java”: constant expression required at line 249, column 50
“Converter.java”: constant expression required at line 267, column 50
“Converter.java”: constant expression required at line 306, column 48
“Converter.java”: constant expression required at line 309, column 50
“Converter.java”: constant expression required at line 312, column 50

Que q é isso??Alguem pode me ajudar??
Obrigado.
Tiago

Droga, bem que minha mãe falou para eu comprar aquela bola de cristal! Se eu a tivesse aqui, poderia com ela ver o seu código e, daí, saber quais são os erros que você está cometendo.

Bem,essas sao as linhas onde contem o erro…

    VdbOutputType temp_type;
    double temp_scale;

    switch (m_outputData.getTypeNumber()) {
      case temp_type.Vbd_Type_Int.getTypeNumber():

        int out_int;
        for (int y = 0; y < n_rows; y++) {
          for (int x = 0; x < n_cols; x++) {
            try {
              out_int = (int) m_outputData.getValue(x, y);
              data2.writeInt(out_int);
            }
            catch (IOException ioe) {
              JOptionPane.showMessageDialog(null,
                  "Achtung,problems with writing data" + ioe.getMessage());
            }
          }
        }
        break;
      case temp_type.Vbd_Type_Float.getTypeNumber():
        float out_float;

        for (int y = 0; y < n_rows; y++) {
          for (int x = 0; x < n_cols; x++) {
            try {

              out_float = (float) m_outputData.getValue(x, y);
              data2.writeFloat(out_float);
            }
            catch (IOException ioe) {
              JOptionPane.showMessageDialog(null,
                  "Achtung,problems with writing data" + ioe.getMessage());
            }
          }
        }

        break;
      case temp_type.Vbd_Type_Short.getTypeNumber():
        int out_short;
        for (int y = 0; y < n_rows; y++) {
          for (int x = 0; x < n_cols; x++) {
            try {
              out_short = (int) m_outputData.getValue(x, y);
              data2.writeInt(out_short);
            }
            catch (IOException ioe) {
              JOptionPane.showMessageDialog(null,
                  "Achtung,problems with writing data" + ioe.getMessage());
            }
          }
        }

        break;
      default:
        break;

    }

    return 0;
  }

  /**
   * manipulateData
   */
  private void convertDataEsriToVbd() {

    String TYPE_str;
    int type_i;
    TYPE_str = JOptionPane.showInputDialog(null,
        "** CHOOSE FORMAT OF THE EXIT FILE(1,2,3) **
" +
        " Type 1 - Integer 
 Type 2 - Float 
 Type 3 - Short ");
    type_i = Integer.valueOf(TYPE_str).intValue();

    VdbOutputType temp_type;

    switch (type_i) {
      case temp_type.Vbd_Type_Int.getTypeNumber():
        m_outputData.setTypeInt();
        break;
      case temp_type.Vbd_Type_Float.getTypeNumber():
        m_outputData.setTypeFloat();
        break;
      case temp_type.Vbd_Type_Short.getTypeNumber():
 case temp_type.Vbd_Type_Int.getTypeNumber(): 

O carainha testado no case deve ser constante ( no caso do java, deve ser declardo como final)

Ola Galera…
ok cara,valew.
O erro ja foi consertado.O programa ta rodando blz…
Obrigado
Tiago

Uma dica :wink: