Onde estão as classes do JAVA?

Olá,

Estou tentando rodar o MAVEN (seguindo as instruções: maven build).
Uma das mensagens de erro é a seguinte:

9: package javax.media.jai does not exist
import javax.media.jai.ParameterList;

Com esta me ocorreru que nunca encontrei o Package JAVA ou JAVAX. O que está errado aqui? Onde está a biblioteca padrão do Java?

Obrigado,

José.

O JAI eh um download a parte, e eh comum a maior parte do pessoal nao ter o mesmo. Voce tem que pegar em http://jai.dev.java.net

Rafael

Obrigado pela dica. Deu tudo certo.

Estou tentando compilar um programa ( GEOTOOLS) e tenho o seguinte erro relacionado a pacotes. O erro que recebo é:

// Mensagem de erro (parcial)

MapViewer.java:29: package geotools.extension does not exist
import geotools.extension.graph;
                          ^
MapViewer.java:36: cannot resolve symbol
symbol  : class FeatureCollection 
location: class MapViewer
  private FeatureCollection features;

// O código fonte

import javax.swing.*;
import java.util.Collection.*;
import org.apache.log4j.Logger;
import org.apache.log4j.Level;
import org.apache.log4j.BasicConfigurator;
import Graph.*;

public class MapViewer extends javax.swing.JFrame {
    /**
      * The logger for this module.
    */
  private static final Logger LOGGER = Logger.getLogger("org.geotools.j2se-demos");
  private FeatureCollection features;
  private Style style;
  private JLabel status;
  private Map map;
  private MapPane master;
  private AreaOfInterestModel aoi;

  /** Creates a new instance of MapViewer */
   public void MapViewer() {
     initComponents();
   }

  /** This method is called from within the constructor to
    * initialize the form.
  */
  private void initComponents() {
    JMenuBar menuBar = new javax.swing.JMenuBar();
    JMenu fileMenu = new javax.swing.JMenu();
    JMenuItem loadGML = new javax.swing.JMenuItem();
    JMenuItem loadSHP = new javax.swing.JMenuItem();
    JSeparator jSeparator1 = new javax.swing.JSeparator();
    JMenuItem loadSLD = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Map Viewer");
    addWindowListener(new java.awt.event.WindowAdapter() {
      public void windowClosing(java.awt.event.WindowEvent evt) {
        exitForm(evt);
      }
    });

    fileMenu.setMnemonic("F");
    fileMenu.setText("File");
    fileMenu.setToolTipText("null");
    loadGML.setText("Open GML");
    loadGML.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        loadGMLActionPerformed(evt);
      }
    });

    loadSLD.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        loadSLDActionPerformed(evt);
      }
    });
 
    fileMenu.add(loadGML);
    loadSHP.setText("Item");
    loadSHP.setEnabled(false);
    fileMenu.add(loadSHP);
    fileMenu.add(jSeparator1);
    loadSLD.setText("Open SLD");
    fileMenu.add(loadSLD);
    menuBar.add(fileMenu);
    setJMenuBar(menuBar);

    status = new JLabel("[Geometry : False] [Style : False]");
    
    this.getContentPane().add(status,"South");
    map = new DefaultMap();
    aoi = new DefaultAreaOfInterestModel(null,null);
    final MapPane master = new MapPane(map,aoi);
    
    this.getContentPane().add(master.createScrollPane(),"Center");
    
    pack();
    java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    setSize(new java.awt.Dimension(461, 318));
    setLocation((screenSize.width-461)/2,(screenSize.height-318)/2);
}


private void setupMap(){
    updateStatus();
    if(style == null || features == null){
        LOGGER.fine("abort map setup, style or features is null");
        return;
    }
    
    map.addFeatureTable(features,style);
}

private void loadSLDActionPerformed(java.awt.event.ActionEvent evt){
    try{
        JFileChooser fc = new JFileChooser();
        int status = fc.showOpenDialog(this);
        if(status != JFileChooser.APPROVE_OPTION){
            return;
        }
        File f = fc.getSelectedFile();
        style = new BasicPolygonStyle();
        setupMap();
    }
    catch(Exception ioe){
        LOGGER.warning("Unable to load SLD file " + ioe);
    }
}

private void loadGMLActionPerformed(java.awt.event.ActionEvent evt){
    try{
        JFileChooser fc = new JFileChooser();
        int status = fc.showOpenDialog(this);
        if(status != JFileChooser.APPROVE_OPTION){
            return;
        }
        File f = fc.getSelectedFile();
        ShapefileDataSource datasource = new ShapefileDataSource(f.toURL());
        
        features = new FeatureCollectionDefault(datasource);
        Envelope env = datasource.getBbox(false);
        EnvelopeExtent r = new EnvelopeExtent(env);
        features.getFeatures(r);
        features.setExtent(r);
        aoi.setAreaOfInterest(env,null);
        LOGGER.fine("gml data loaded "+features.getFeatures().length + " features loaded");
        setupMap();
    }
    catch(IOException ioe){
        LOGGER.warning("Unable to load GML file" + ioe);
    }
    catch(DataSourceException dse){
        LOGGER.warning("Unable to load GML file" + dse);
    }
}

private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
}

private void updateStatus(){
    status.setText("[Geometry : " + (features != null) + "] " +
                   "[Style : " + (style != null) + "]");
}

/**
 * @param args the command line arguments
 */
  public static void main(String args[]) {
      new MapViewer().show();
  }
}

Olá,

Quando vc for postar codigo, tenha do dos nossos pobres olhinhos e coloque-o entre as tags [ code] e [ /code], assim ele nao vira uma macarronada pos-modernista :wink:

Eu fiz pra você desta vez :wink: