Problems compiling program

hello.
this is james mcfadden. i'm having problems compiling the Demo.java program. the Demo.java program is shown below along with the MediaPanel.java and MediaTest.java programs. when i compile the Demo.java program i get the following errors. i really need help in getting rid of these errors.
----jGRASP exec: javac -g X:\CP4B Project\Demo.java
Demo.java:297: cannot find symbol
symbol : class Media
location: class Demo
MediaTest media=new Media();
^
Demo.java:301: cannot find symbol
symbol : class Media
location: class Demo
MediaTest media=new Media();
^
Demo.java:305: cannot find symbol
symbol : class Media
location: class Demo
MediaTest media=new Media();
^
3 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
//Written by:Seamus McFadden
//Class:CP4B
//Program Number:1
//Program Name:Demo.java
//Description:
//Supervisor:Gerard McCloskey
import java.awt.*;//Contains all of the classes for creating user interfaces and for painting graphics and images
import java.awt.event.*;//Provides interfaces and classes for dealing with different types of events fired by AWT components
import javax.swing.*;//Provides a set of lightweight components that, to the maximum degree possible, work the same on all platforms
public class Demo extends JFrame{
    public static void main(String[] args){
        int choice=-1;//a variable of type int that is set to -1
        choice=getChoice();//invokes the method getChoice()
        if(choice!=0){
           getSelected(choice);//invokes the method getSelected(choice)
        }//end if
    }//end main
    public static int getChoice(){
        String choice;//a variable of type string
        int ch;//a variable of type int
        choice=JOptionPane.showInputDialog(null,
                "1. Product Menu\n" +
                "2. Member Menu\n" +
                "3. Rental Menu\n" +
                      "4. Media Menu\n" +
                "5. Log Off\n\n" +
                "Enter your choice");//asks the user for some input
        ch=Integer.parseInt(choice);//a class that wraps a value of the primitive type int in an object
        return ch;//a method that returns an integer value
    }//end getChoice
    public static void getSelected(int choice){
        if(choice == 1) {
               product();
        }//end if
        if(choice==2){
           member();
        }//end if
        if(choice==3){
           rental();
        }//end if
            if(choice==4){
           media();
        }//end if
            if(choice==5){
               LogOff logoff=new LogOff();
            }//end if
            else{
               ErrorMessage error=new ErrorMessage();
    }//end getSelected
    public static void product(){
         int productChoice=-1;//a variable of type int that is set to -1
       productChoice=getProductChoice();//invokes the method getChoice()
       if(productChoice!=0){
          getProductSelected(productChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice(); 
    public static void member(){
       int memberChoice=-1;//a variable of type int that is set to -1
       memberChoice=getMemberChoice();//invokes the method getChoice()
       if(memberChoice!=0){
          getMemberSelected(memberChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice(); 
    public static void rental(){
       int rentalChoice=-1;//a variable of type int that is set to -1
       rentalChoice=getRentalChoice();//invokes the method getChoice()
       if(rentalChoice!=0){
          getRentalSelected(rentalChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice();
      public static void media(){
       int mediaChoice=-1;//a variable of type int that is set to -1
       mediaChoice=getMediaChoice();//invokes the method getChoice()
       if(mediaChoice!=0){
          getMediaSelected(mediaChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice(); 
      public static int getProductChoice(){
       String productChoice;//a variable of type string
       int pch;//a variable of type int
       productChoice=JOptionPane.showInputDialog(null,
               "1. Add product details\n" +
               "2. View product details\n" +
               "3. Edit product details\n" +
                     "4. Delete product details\n" +
               "5. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       pch=Integer.parseInt(productChoice);//a class that wraps a value of the primitive type int in an object
       return pch;//a method that returns an integer value
    }//end getProductChoice
      public static int getMemberChoice(){
       String memberChoice;//a variable of type string
       int mch;//a variable of type int
       memberChoice=JOptionPane.showInputDialog(null,
               "1. Add member details\n" +
               "2. View member details\n" +
               "3. Edit member details\n" +
                         "4. Delete member details\n" +
               "5. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       mch=Integer.parseInt(memberChoice);//a class that wraps a value of the primitive type int in an object
       return mch;//a method that returns an integer value
    }//end getMemberChoice
      public static int getRentalChoice(){
       String rentalChoice;//a variable of type string
       int rch;//a variable of type int
       rentalChoice=JOptionPane.showInputDialog(null,
               "1. Add rental details\n" +
               "2. View rental details\n" +
               "3. Edit rental details\n" +
                         "4. Delete rental details\n" +
               "5. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       rch=Integer.parseInt(rentalChoice);//a class that wraps a value of the primitive type int in an object
       return rch;//a method that returns an integer value
    }//end getRentalChoice
      public static int getMediaChoice(){
       String mediaChoice;//a variable of type string
       int mtch;//a variable of type int
       mediaChoice=JOptionPane.showInputDialog(null,
               "1. Listen to songs\n" +
                         "2. View movie previews\n" +
                         "3. View game previews\n" +
               "4. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       mtch=Integer.parseInt(mediaChoice);//a class that wraps a value of the primitive type int in an object
       return mtch;//a method that returns an integer value
    }//end getMediaChoice
      public static void getProductSelected(int productChoice){
       if(productChoice==1){
              addProducts();
       }//end if
       if(productChoice==2){
          viewProducts();
       }//end if
       if(productChoice==3){
          editProducts();
       }//end if
           if(productChoice==4){
          deleteProducts();
       }//end if
           else{
               ErrorMessage error=new ErrorMessage();
    }//end getProductSelected
      public static void getMemberSelected(int memberChoice){
       if(memberChoice==1){
              addMembers();
       }//end if
       if(memberChoice==2){
          viewMembers();
       }//end if
       if(memberChoice==3){
          editMembers();
       }//end if
           if(memberChoice==4){
          deleteMembers();
       }//end if
           else{
               ErrorMessage error=new ErrorMessage();
    }//end getMemberSelected
      public static void getRentalSelected(int rentalChoice){
       if(rentalChoice==1){
              addRentals();
       }//end if
       if(rentalChoice==2){
          viewRentals();
       }//end if
       if(rentalChoice==3){
          editRentals();
       }//end if
           if(rentalChoice==4){
          deleteRentals();
       }//end if
           else{
               ErrorMessage error=new ErrorMessage();
    }//end getRentalSelected
      public static void getMediaSelected(int mediaChoice){
       if(mediaChoice==1){
              hearSongs();
       }//end if
       if(mediaChoice==2){
          viewMovies();
       }//end if
       if(mediaChoice==3){
          viewGames();
       }//end if
           else{
               ErrorMessage error=new ErrorMessage();
    }//end getMediaSelected
      public static void addProducts(){
       ProductForm product=new ProductForm();
       product.getInput();
           product.setVisible(true);
      public static void viewProducts(){
       DatabaseTest tt=new DatabaseTest();
           tt.setVisible(true);
      public static void editProducts(){
       ProductForm product=new ProductForm();
           product.getInput();
           product.setVisible(true);
      public static void deleteProducts(){
       ProductForm product=new ProductForm();
           product.setVisible(true);
      public static void addMembers(){
       MemberForm member=new MemberForm();
           member.getInput();
           member.setVisible(true);
      public static void viewMembers(){
       DatabaseTest tt=new DatabaseTest();
           tt.setVisible(true);
      public static void editMembers(){
       MemberForm member=new MemberForm();
           member.getInput();
           member.setVisible(true);
      public static void deleteMembers(){
       MemberForm member=new MemberForm();
           member.setVisible(true);
      public static void addRentals(){
       RentalForm rental=new RentalForm();
           rental.getInput();
           rental.setVisible(true);
      public static void viewRentals(){
       DatabaseTest tt=new DatabaseTest();
           tt.setVisible(true);
      public static void editRentals(){
       RentalForm rental=new RentalForm();
           rental.getInput();
           rental.setVisible(true);
      public static void deleteRentals(){
       RentalForm rental=new RentalForm();
           rental.setVisible(true);
    public static void hearSongs(){
       MediaTest media=new Media(); 
    public static void viewMovies(){
       MediaTest media=new Media();   
    public static void viewGames(){
       MediaTest media=new Media();   
}//end class Demo
import java.awt.BorderLayout;
import java.awt.Component;
import java.io.IOException;
import java.net.URL;
import javax.media.CannotRealizeException;
import javax.media.Manager;
import javax.media.NoPlayerException;
import javax.media.Player;
import javax.swing.JPanel;
public class MediaPanel extends JPanel{
   public MediaPanel(URL mediaURL){
      setLayout(new BorderLayout());//use a BorderLayout
      //Use lightweight components for Swing compatibility
      Manager.setHint(Manager.LIGHTWEIGHT_RENDERER,true);
      try{
         //create a player to play the media specified in the URL
         Player mediaPlayer=Manager.createRealizedPlayer(mediaURL);
         //get the components for the video and the playback controls
         Component video=mediaPlayer.getVisualComponent();
         Component controls=mediaPlayer.getControlPanelComponent();
         if(video!=null)
            add(video,BorderLayout.CENTER);//add video component
         if(controls!=null)
            add(controls,BorderLayout.SOUTH);//add controls
         mediaPlayer.start();//start playing the media clip
      }//end try
      catch(NoPlayerException noPlayerException){
         System.err.println("No media player found");
      }//end catch
      catch(CannotRealizeException cannotRealizeException){
         System.err.println("Could not realize media player");
      }//end catch
      catch(IOException iOException){
         System.err.println("Error reading from the source");
      }//end catch
   }//end MediaPanel constructor
}//end class MediaPanel
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
public class MediaTest{
   //launch the application
   public static void main(String args[]){
      //create a file chooser
      JFileChooser fileChooser=new JFileChooser();
      //show open file dialog
      int result=fileChooser.showOpenDialog(null);
      if(result==JFileChooser.APPROVE_OPTION){//user chose a file
         URL mediaURL=null;
         try{
            //get the file as URL
            mediaURL=fileChooser.getSelectedFile().toURL();
         }//end try
         catch(MalformedURLException malformedURLException){
            System.err.println("Could not create URL for the file");
         }//end catch
         if(mediaURL!=null) {//only display if there is a valid URL
            JFrame mediaTest=new JFrame("Media Tester");
            mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            MediaPanel mediaPanel=new MediaPanel(mediaURL);
            mediaTest.add(mediaPanel);
            mediaTest.setSize(300,300);
            mediaTest.setVisible(true);
         }//end inner if
      }//end outer if
   }//end main
}//end class MediaTest

hello.
this is james mcfadden. thanks for the reply. i did what you told me to do, but i am still having trouble trying to use the 2 JMF programs (MediaPanel.java and MediaTest.java) with the Demo.java program. the Demo.java program compiles and runs ok, but when i press 1 (for listening to songs) in the media menu i get a JOptionPane (An Error Message) displayed on screen. how can i fix this problem?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Demo extends JFrame{
    public static void main(String[] args){
        int choice=-1;//a variable of type int that is set to -1
        choice=getChoice();//invokes the method getChoice()
        if(choice!=0){
           getSelected(choice);//invokes the method getSelected(choice)
        }//end if
    }//end main
    public static int getChoice(){
        String choice;//a variable of type string
        int ch;//a variable of type int
        choice=JOptionPane.showInputDialog(null,
                "1. Product Menu\n" +
                "2. Member Menu\n" +
                "3. Rental Menu\n" +
                      "4. Media Menu\n" +
                "5. Log Off\n\n" +
                "Enter your choice");//asks the user for some input
        ch=Integer.parseInt(choice);//a class that wraps a value of the primitive type int in an object
        return ch;//a method that returns an integer value
    }//end getChoice
    public static void getSelected(int choice){
        if(choice == 1) {
               product();
        }//end if
        if(choice==2){
           member();
        }//end if
        if(choice==3){
           rental();
        }//end if
            if(choice==4){
           media();
        }//end if
            if(choice==5){
               LogOff logoff=new LogOff();
            }//end if
            else{
               JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
               System.exit(0);
    }//end getSelected
    public static void product(){
         int productChoice=-1;//a variable of type int that is set to -1
       productChoice=getProductChoice();//invokes the method getChoice()
       if(productChoice!=0){
          getProductSelected(productChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice(); 
    public static void member(){
       int memberChoice=-1;//a variable of type int that is set to -1
       memberChoice=getMemberChoice();//invokes the method getChoice()
       if(memberChoice!=0){
          getMemberSelected(memberChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice(); 
    public static void rental(){
       int rentalChoice=-1;//a variable of type int that is set to -1
       rentalChoice=getRentalChoice();//invokes the method getChoice()
       if(rentalChoice!=0){
          getRentalSelected(rentalChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice();
      public static void media(){
       int mediaChoice=-1;//a variable of type int that is set to -1
       mediaChoice=getMediaChoice();//invokes the method getChoice()
       if(mediaChoice!=0){
          getMediaSelected(mediaChoice);//invokes the method getSelected(choice)
       }//end if
       getChoice(); 
      public static int getProductChoice(){
       String productChoice;//a variable of type string
       int pch;//a variable of type int
       productChoice=JOptionPane.showInputDialog(null,
               "1. Add product details\n" +
               "2. View product details\n" +
               "3. Edit product details\n" +
                     "4. Delete product details\n" +
               "5. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       pch=Integer.parseInt(productChoice);//a class that wraps a value of the primitive type int in an object
       return pch;//a method that returns an integer value
    }//end getProductChoice
      public static int getMemberChoice(){
       String memberChoice;//a variable of type string
       int mch;//a variable of type int
       memberChoice=JOptionPane.showInputDialog(null,
               "1. Add member details\n" +
               "2. View member details\n" +
               "3. Edit member details\n" +
                         "4. Delete member details\n" +
               "5. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       mch=Integer.parseInt(memberChoice);//a class that wraps a value of the primitive type int in an object
       return mch;//a method that returns an integer value
    }//end getMemberChoice
      public static int getRentalChoice(){
       String rentalChoice;//a variable of type string
       int rch;//a variable of type int
       rentalChoice=JOptionPane.showInputDialog(null,
               "1. Add rental details\n" +
               "2. View rental details\n" +
               "3. Edit rental details\n" +
                         "4. Delete rental details\n" +
               "5. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       rch=Integer.parseInt(rentalChoice);//a class that wraps a value of the primitive type int in an object
       return rch;//a method that returns an integer value
    }//end getRentalChoice
      public static int getMediaChoice(){
       String mediaChoice;//a variable of type string
       int mtch;//a variable of type int
       mediaChoice=JOptionPane.showInputDialog(null,
               "1. Listen to songs\n" +
                         "2. View movie previews\n" +
                         "3. View game previews\n" +
               "4. Return to main menu\n\n" +
               "Enter your choice");//asks the user for some input
       mtch=Integer.parseInt(mediaChoice);//a class that wraps a value of the primitive type int in an object
       return mtch;//a method that returns an integer value
    }//end getMediaChoice
      public static void getProductSelected(int productChoice){
       if(productChoice==1){
              addProducts();
       }//end if
       if(productChoice==2){
          viewProducts();
       }//end if
       if(productChoice==3){
          editProducts();
       }//end if
           if(productChoice==4){
          deleteProducts();
       }//end if
           else{
               JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
               System.exit(0);
    }//end getProductSelected
      public static void getMemberSelected(int memberChoice){
       if(memberChoice==1){
              addMembers();
       }//end if
       if(memberChoice==2){
          viewMembers();
       }//end if
       if(memberChoice==3){
          editMembers();
       }//end if
           if(memberChoice==4){
          deleteMembers();
       }//end if
           else{
               JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
               System.exit(0);
    }//end getMemberSelected
      public static void getRentalSelected(int rentalChoice){
       if(rentalChoice==1){
              addRentals();
       }//end if
       if(rentalChoice==2){
          viewRentals();
       }//end if
       if(rentalChoice==3){
          editRentals();
       }//end if
           if(rentalChoice==4){
          deleteRentals();
       }//end if
           else{
               JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
               System.exit(0);
    }//end getRentalSelected
      public static void getMediaSelected(int mediaChoice){
       if(mediaChoice==1){
              hearSongs();
       }//end if
       if(mediaChoice==2){
          viewMovies();
       }//end if
       if(mediaChoice==3){
          viewGames();
       }//end if
           else{
               JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
               System.exit(0);
    }//end getMediaSelected
      public static void addProducts(){
       ProductForm product=new ProductForm();
       product.getInput();
           product.setVisible(true);
      public static void viewProducts(){
       DatabaseTest tt=new DatabaseTest();
           tt.setVisible(true);
      public static void editProducts(){
       ProductForm product=new ProductForm();
           product.getInput();
           product.setVisible(true);
      public static void deleteProducts(){
       ProductForm product=new ProductForm();
           product.setVisible(true);
      public static void addMembers(){
       MemberForm member=new MemberForm();
           member.getInput();
           member.setVisible(true);
      public static void viewMembers(){
       DatabaseTest tt=new DatabaseTest();
           tt.setVisible(true);
      public static void editMembers(){
       MemberForm member=new MemberForm();
           member.getInput();
           member.setVisible(true);
      public static void deleteMembers(){
       MemberForm member=new MemberForm();
           member.setVisible(true);
      public static void addRentals(){
       RentalForm rental=new RentalForm();
           rental.getInput();
           rental.setVisible(true);
      public static void viewRentals(){
       DatabaseTest tt=new DatabaseTest();
           tt.setVisible(true);
      public static void editRentals(){
       RentalForm rental=new RentalForm();
           rental.getInput();
           rental.setVisible(true);
      public static void deleteRentals(){
       RentalForm rental=new RentalForm();
           rental.setVisible(true);
    public static void hearSongs(){
       MediaTest media=new MediaTest(); 
    public static void viewMovies(){
       MediaTest media=new MediaTest();   
    public static void viewGames(){
       MediaTest media=new MediaTest();   
}//end class Demo
import java.awt.BorderLayout;
import java.awt.Component;
import java.io.IOException;
import java.net.URL;
import javax.media.CannotRealizeException;
import javax.media.Manager;
import javax.media.NoPlayerException;
import javax.media.Player;
import javax.swing.JPanel;
public class MediaPanel extends JPanel{
   public MediaPanel(URL mediaURL){
      setLayout(new BorderLayout());//use a BorderLayout
      //Use lightweight components for Swing compatibility
      Manager.setHint(Manager.LIGHTWEIGHT_RENDERER,true);
      try{
         //create a player to play the media specified in the URL
         Player mediaPlayer=Manager.createRealizedPlayer(mediaURL);
         //get the components for the video and the playback controls
         Component video=mediaPlayer.getVisualComponent();
         Component controls=mediaPlayer.getControlPanelComponent();
         if(video!=null)
            add(video,BorderLayout.CENTER);//add video component
         if(controls!=null)
            add(controls,BorderLayout.SOUTH);//add controls
         mediaPlayer.start();//start playing the media clip
      }//end try
      catch(NoPlayerException noPlayerException){
         System.err.println("No media player found");
      }//end catch
      catch(CannotRealizeException cannotRealizeException){
         System.err.println("Could not realize media player");
      }//end catch
      catch(IOException iOException){
         System.err.println("Error reading from the source");
      }//end catch
   }//end MediaPanel constructor
}//end class MediaPanel
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
public class MediaTest{
   //launch the application
   public static void main(String args[]){
      //create a file chooser
      JFileChooser fileChooser=new JFileChooser();
      //show open file dialog
      int result=fileChooser.showOpenDialog(null);
      if(result==JFileChooser.APPROVE_OPTION){//user chose a file
         URL mediaURL=null;
         try{
            //get the file as URL
            mediaURL=fileChooser.getSelectedFile().toURL();
         }//end try
         catch(MalformedURLException malformedURLException){
            System.err.println("Could not create URL for the file");
         }//end catch
         if(mediaURL!=null) {//only display if there is a valid URL
            JFrame mediaTest=new JFrame("Media Tester");
            mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            MediaPanel mediaPanel=new MediaPanel(mediaURL);
            mediaTest.add(mediaPanel);
            mediaTest.setSize(300,300);
            mediaTest.setVisible(true);
         }//end inner if
      }//end outer if
   }//end main
}//end class MediaTest

Similar Messages

  • Problem compiling program

    Hey guys I'm new to programming so please be tolerant to my questions for a little.
    Anyway..... I was writing a basic hello world program and it compiled fine. However, I can not run it.
    It comes up with this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloApp
    Caused by: java.lang.ClassNotFoundException: HelloApp
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    The program I wrote was:
    public class HelloApp
    public static void main(String[] args)
    helloMessage = "Hello, World!";
    System.out.println(helloMessage);
    static String helloMessage;
    }

    You would use code tags for your code to retain its formatting and be readable. To do this, you will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag [code] at the top of your block of code and the tag [/code] at the bottom, like so:
    [code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    [/code]

  • Problem compiling program... Should be a simple fix!!!

    Exception in thread "main" java.lang.NoClassDefFoundError: Paint
    While trying to compile with the command 'java Paint fig.svg 300' (the following two are parameters) I get the error above.
    Paint is a user defined class with an empty constuct.
    The code compiles and works properly in Eclipse.
    import java.io.FileWriter;
    import java.util.Random;
    import java.io.PrintWriter;
    class Paint{
               static String fileWrite = "";
              private String setColor;
             public Paint( )
             private void open(int dimen, int dimen2)
                    fileWrite = "<svg xmlns=\"http://www.w3.org/2000/svg\"" +
                                   "xmlns:xlink=\"http://www.w3.org/1999/xlink\"" +
                                   "width=\"" + dimen + "%\"" +
                                   "height=\"" + dimen2 + "%\"" +
                                   "viewBox=\"0 0 150 150\"" +
                                   "version=\"1.0\">" +
                                   "<g>";
              private static String random255()
                   Random generator = new Random();
                   int s = generator.nextInt(256);
                   String s1 = Integer.toHexString(s);
                   return s1;
              private void setColor(String string)
                   this.setColor = string;
              private void rect(int i, int j, int k, int l)
                   fileWrite = fileWrite + "<rect x=\"" + i + "\"  y=\"" + j +
                   "\"  height=\"" + k + "\" width=\"" + l + "\" fill=\"" +
                   setColor + "/>";
              private void close()
                   fileWrite = fileWrite +  "</g>" + "</svg>";
        public static void main(String [] args)throws Exception{
            FileWriter fileWriter = new FileWriter( args[0] );
            PrintWriter out = new PrintWriter( fileWriter );
            int dimen = Integer.parseInt( args[1] );
            Paint paint = new Paint();
            paint.open(dimen,dimen);
            dimen = dimen / 2;
            int originX = dimen, originY = dimen;
            for(; dimen > 0; dimen = dimen - 3){
               String red = random255();
               String green = random255();
               String blue = random255();
               paint.setColor( "#" + red + green + blue );
               paint.rect(originX-dimen,originY-dimen,dimen*2,dimen*2);
            paint.close();
            out.print(fileWrite);
            out.close();
         }{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I like that reaction Edward :-) But it is strange that someone can write that many lines of Java code without knowing that you need to compile first before trying to execute.

  • Problem with a compiled program

    Hello,
    I have a problem with a compiled program on labview 6i.
    This program used a serial port (COM1 or COM2).
    During the launching of the ".exe ", a fatal error occurs.
    Here this error:
    => APPLICATION caused an invalid page fault in
    => module LVRT.DLL at 0167:30164426.
    Can somebody help me?
    Regards
    Cedric

    Cedric,
    This problem was fixed in the LabVIEW 6.0.2 update. You can download this update (along with the updated runtime engine) from our website.
    Good luck with your application, and have a pleasant day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • LV 8 problem with New Report.vi in compiled program

    I'm a novice LV programmer trying to finish my first project.  The project is the automation of an air flow stand using field point for acquisition/control.  Have the code written and everything seems to work fine until I compile.  Specifically, I get an error when I attempt to open an Excel template (XLT) using the New Report.vi included in the report generation add on.  When the compiled executable run I get a message with the header "Error 7 occured at Open VI reference in New Report vi>report2.vi>auto air flow testing.vi .   And then in the body of the message is says:
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux.
    NI-488:  Non-existent board.
    VI Path: C:\builds\auto air flow\My Application\auto air flow 1a.exe\Excel_Open.vi
    Built Application or Shared Library (DLL): Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared libr
    The input to the New Report.vi template connector is C:\Air Flow Data Files\templates\psc.xlt.  Again this works in design so I believe the formatting is correct and the file does exist.
    Why would this work in design environment but not the compiled program?  I recompiled several times and even tried reinstalling the report generation tool kit. Any help or pointers would be greatly appreciated. I will be happy to supply more info if necessary.   thanks. 

    Okay, I found the solution by doing a search here on 'Error 7".  My thanks to those who have posted the solution in the past.  Regards

  • Problem compiling Java on XP

    i'm new to java, just went through the tutorial just now..
    tried compilling my program the first time on XP, but the system doesn't recognise the command JAVAC,
    i've installed the java compiler (j2re-1_4_1_01-windows-i586.exe)
    but it still isn't working.. any help?
    thanks!

    then again.. i'm still having problems compiling..
    i managed to install the right sdk, but.. i have to run the command javac from the bin directory.. else the command prompt won't recognise it..
    anyway to get around this?
    also.. because of this.. i can't compile my program.. :(

  • Execution of one CLASS file ( a compiled program)

    this is a ambiguse problem for me !!!!
    i working with jsdk1.4.1 .
    i can compile programs but can't perform them with "java" !!
    this is error of it :
    (( Exception in thread "main" java.lang.NoclassDefFoundError : file name ))
    anyone can lead & help me !!!
    Thank you for your responses .
    F.Heidary

    Set your classpath.

  • My compiled program crashes after first run (LabVIEW 2009)

    I have a compiled program created with LabVIEW 2009 that on the first run after the computer is re-booted will work fine but after shutting down the program it will not run properly. 
    The program uses a compiled launcher to dynamically activate a set of VI's containing Queue Driven State Machines (QDSM).  On subsequent program starts the launcher module comes up fine and its progress bar shows that it is launching each of the VI's.  Once the launcher is complete it removes itself from memory leaving the dynamically launched VI's running.  The subsequent launches which fail the main user interface VI pops up barely long enough for the observer to see (if at all) then shuts down.  The program is then gone from memory as far as I can tell.  There are no processes in memory or anything.
    Additionally, the when I try to run the installed version of the exe on a computer that has the 2009 development environment installed I get this behavior consistently with a successful run even once.
    In both cases my program does not throw any errors (which are logged) nor does the runtime engine generate any that I can see.  Also, when I run my program in the development environment the program does not behave this way.  It has no problems at all.
    I have used this style of architecture before in LV8.6 with out any problems.  Can anyone suggest some possible solutions or even some debugging tips?  I have never had a problem that I could not duplicate in the development environment so I am unsure how begin attacking my issue.
    Thanks for any help.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!
    Solved!
    Go to Solution.

    I have solved the problem I think (at least as far as testing to this point has revealed).   After I added in the ability to log the states passed to the QDSM's, I was able to determine that the program was "crashing" after I dynamically closed the front panel of the launcher.  My program was designed to close the front panel of the launcher then pop-up the front panel of the main UI.   My EXE is built on to contain the launcher with my other QDSM files being maintained externally in specific directories.  What appeared to be happening is that when the launcher closed its front panel and before the UI opened up the run-time engine would decide since there were no windows open it would close itself down.  This is my supposition about what may be happening any way.  I modified my code to changed the launcher window to hidden and delay for 1/2 a second to give the main UI a chance to start fully running.  This fixed the problem, or at least worked around it.  If someone out there can explain to me exactly what is happening I sure would appreciate it.
    Thanks for all the help those of you who responded.  Your advice was very beneficial and certainly led me to a resolution faster.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • [SOLVED] configure: error: cannot run C compiled programs

    I'm trying to build lib32-libxkbcommon 0.5.0-1 from AUR with makepkg. I already tried installing pacman (setting the default makepkg.conf) and multilib-devel with no luck.
    makepkg messages:
    ==> Making package: lib32-libxkbcommon 0.5.0-1 (Mon May 11 00:17:05 EEST 2015)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Found libxkbcommon-0.5.0.tar.xz
    ==> Validating source files with sha256sums...
    libxkbcommon-0.5.0.tar.xz ... Passed
    ==> Extracting sources...
    -> Extracting libxkbcommon-0.5.0.tar.xz with bsdtar
    bsdtar: Failed to set default locale
    ==> Starting prepare()...
    ==> Removing existing $pkgdir/ directory...
    ==> Starting build()...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc -m32
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... configure: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    ==> ERROR: A failure occurred in build().
    Aborting...
    makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync --no-motd -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    #-- The package required by makepkg to download VCS sources
    # Format: 'protocol::package'
    VCSCLIENTS=('bzr::bzr'
    'git::git'
    'hg::mercurial'
    'svn::subversion')
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j5"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(!distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(!distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    #-- debug: Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    config.log:
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    It was created by libxkbcommon configure 0.5.0, which was
    generated by GNU Autoconf 2.69. Invocation command line was
    $ ./configure --prefix=/usr --libdir=/usr/lib32 --disable-docs --disable-static
    ## Platform. ##
    hostname = Arch
    uname -m = x86_64
    uname -r = 4.0.1-1-ARCH
    uname -s = Linux
    uname -v = #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015
    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown
    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/bin
    PATH: /usr/lib/jvm/default/bin
    PATH: /usr/bin/site_perl
    PATH: /usr/bin/vendor_perl
    PATH: /usr/bin/core_perl
    ## Core tests. ##
    configure:2424: checking for a BSD-compatible install
    configure:2492: result: /usr/bin/install -c
    configure:2503: checking whether build environment is sane
    configure:2558: result: yes
    configure:2709: checking for a thread-safe mkdir -p
    configure:2748: result: /usr/bin/mkdir -p
    configure:2755: checking for gawk
    configure:2771: found /usr/bin/gawk
    configure:2782: result: gawk
    configure:2793: checking whether make sets $(MAKE)
    configure:2815: result: yes
    configure:2844: checking whether make supports nested variables
    configure:2861: result: yes
    configure:2987: checking whether to enable maintainer-specific portions of Makefiles
    configure:2996: result: yes
    configure:3023: checking for style of include used by make
    configure:3051: result: GNU
    configure:3122: checking for gcc
    configure:3149: result: gcc -m32
    configure:3378: checking for C compiler version
    configure:3387: gcc -m32 --version >&5
    gcc (GCC) 5.1.0
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    configure:3398: $? = 0
    configure:3387: gcc -m32 -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/gcc-multilib/src/gcc-5-20150505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98
    Thread model: posix
    gcc version 5.1.0 (GCC)
    configure:3398: $? = 0
    configure:3387: gcc -m32 -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3398: $? = 1
    configure:3387: gcc -m32 -qversion >&5
    gcc: error: unrecognized command line option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3398: $? = 1
    configure:3418: checking whether the C compiler works
    configure:3440: gcc -m32 -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    configure:3444: $? = 0
    configure:3492: result: yes
    configure:3495: checking for C compiler default output file name
    configure:3497: result: a.out
    configure:3503: checking for suffix of executables
    configure:3510: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    configure:3514: $? = 0
    configure:3536: result:
    configure:3558: checking whether we are cross compiling
    configure:3566: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    In file included from /usr/include/stdio.h:27:0,
    from conftest.c:11:
    /usr/include/features.h:365:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.
    configure:3570: $? = 1
    configure:3577: ./conftest
    ./configure: line 3579: ./conftest: No such file or directory
    configure:3581: $? = 127
    configure:3588: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
    configure:3590: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    ## Cache variables. ##
    ac_cv_env_CC_set=set
    ac_cv_env_CC_value='gcc -m32'
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
    ac_cv_env_CPPFLAGS_set=set
    ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_DOT_set=
    ac_cv_env_DOT_value=
    ac_cv_env_DOXYGEN_set=
    ac_cv_env_DOXYGEN_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_PKG_CONFIG_LIBDIR_set=
    ac_cv_env_PKG_CONFIG_LIBDIR_value=
    ac_cv_env_PKG_CONFIG_PATH_set=set
    ac_cv_env_PKG_CONFIG_PATH_value=/usr/lib32/pkgconfig
    ac_cv_env_PKG_CONFIG_set=
    ac_cv_env_PKG_CONFIG_value=
    ac_cv_env_XCB_XKB_CFLAGS_set=
    ac_cv_env_XCB_XKB_CFLAGS_value=
    ac_cv_env_XCB_XKB_LIBS_set=
    ac_cv_env_XCB_XKB_LIBS_value=
    ac_cv_env_XORG_MALLOC_DEBUG_ENV_set=
    ac_cv_env_XORG_MALLOC_DEBUG_ENV_value=
    ac_cv_env_YACC_set=
    ac_cv_env_YACC_value=
    ac_cv_env_YFLAGS_set=
    ac_cv_env_YFLAGS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/usr/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CC='gcc -m32'
    ac_cv_prog_make_make_set=yes
    am_cv_make_support_nested_variables=yes
    ## Output variables. ##
    ACLOCAL='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing aclocal-1.14'
    ADMIN_MAN_DIR=''
    ADMIN_MAN_SUFFIX=''
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='$${TAR-tar}'
    AM_BACKSLASH='\'
    AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
    AM_DEFAULT_VERBOSITY='1'
    AM_V='$(V)'
    APP_MAN_DIR=''
    APP_MAN_SUFFIX=''
    AR=''
    AUTOCONF='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoconf'
    AUTOHEADER='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoheader'
    AUTOMAKE='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing automake-1.14'
    AWK='gawk'
    BASE_CFLAGS=''
    BUILD_LINUX_TESTS_FALSE=''
    BUILD_LINUX_TESTS_TRUE=''
    CC='gcc -m32'
    CCDEPMODE=''
    CFLAGS='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
    CHANGELOG_CMD=''
    CPP=''
    CPPFLAGS='-D_FORTIFY_SOURCE=2'
    CWARNFLAGS=''
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR='.deps'
    DLLTOOL=''
    DOT=''
    DOXYGEN=''
    DRIVER_MAN_DIR=''
    DRIVER_MAN_SUFFIX=''
    DSYMUTIL=''
    DUMPBIN=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_DOCS_FALSE=''
    ENABLE_DOCS_TRUE=''
    ENABLE_X11_FALSE=''
    ENABLE_X11_TRUE=''
    EXEEXT=''
    FGREP=''
    FILE_MAN_DIR=''
    FILE_MAN_SUFFIX=''
    GREP=''
    HAVE_DOT=''
    HAVE_DOT_FALSE=''
    HAVE_DOT_TRUE=''
    HAVE_DOXYGEN_FALSE=''
    HAVE_DOXYGEN_TRUE=''
    HAVE_NO_UNDEFINED_FALSE=''
    HAVE_NO_UNDEFINED_TRUE=''
    INSTALL_CMD=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LD=''
    LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LIB_MAN_DIR=''
    LIB_MAN_SUFFIX=''
    LIPO=''
    LN_S=''
    LTLIBOBJS=''
    MAINT=''
    MAINTAINER_MODE_FALSE='#'
    MAINTAINER_MODE_TRUE=''
    MAKEINFO='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing makeinfo'
    MANIFEST_TOOL=''
    MAN_SUBSTS=''
    MISC_MAN_DIR=''
    MISC_MAN_SUFFIX=''
    MKDIR_P='/usr/bin/mkdir -p'
    NM=''
    NMEDIT=''
    OBJDUMP=''
    OBJEXT=''
    OTOOL64=''
    OTOOL=''
    PACKAGE='libxkbcommon'
    PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon'
    PACKAGE_NAME='libxkbcommon'
    PACKAGE_STRING='libxkbcommon 0.5.0'
    PACKAGE_TARNAME='libxkbcommon'
    PACKAGE_URL='http://xkbcommon.org'
    PACKAGE_VERSION='0.5.0'
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PKG_CONFIG_LIBDIR=''
    PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
    RANLIB=''
    RT_LIBS=''
    SED=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STRICT_CFLAGS=''
    STRIP=''
    VERSION='0.5.0'
    XCB_XKB_CFLAGS=''
    XCB_XKB_LIBS=''
    XKBCONFIGROOT=''
    XLOCALEDIR=''
    XORG_MALLOC_DEBUG_ENV=''
    XORG_MAN_PAGE=''
    YACC=''
    YACC_INST=''
    YFLAGS=''
    ac_ct_AR=''
    ac_ct_CC='gcc -m32'
    ac_ct_DUMPBIN=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__include='include'
    am__isrc=''
    am__leading_dot='.'
    am__nodep='_no'
    am__quote=''
    am__tar='$${TAR-tar} chof - "$$tardir"'
    am__untar='$${TAR-tar} xf -'
    bindir='${exec_prefix}/bin'
    build=''
    build_alias=''
    build_cpu=''
    build_os=''
    build_vendor=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/install-sh'
    libdir='/usr/lib32'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='$(MKDIR_P)'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/usr'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
    ## confdefs.h. ##
    /* confdefs.h */
    #define PACKAGE_NAME "libxkbcommon"
    #define PACKAGE_TARNAME "libxkbcommon"
    #define PACKAGE_VERSION "0.5.0"
    #define PACKAGE_STRING "libxkbcommon 0.5.0"
    #define PACKAGE_BUGREPORT "[url]https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon[/url]"
    #define PACKAGE_URL "[url]http://xkbcommon.org[/url]"
    #define PACKAGE "libxkbcommon"
    #define VERSION "0.5.0"
    configure: exit 1
    other info:
    core/pacman 4.2.1-1
    multilib/gcc-multilib 4.9.2-4 (multilib-devel) [installed]
        The GNU Compiler Collection - C and C++ frontends for multilib
    multilib/lib32-fakeroot 1.20.2-1 (multilib-devel) [installed]
        Tool for simulating superuser privileges (32-bit)
    multilib/lib32-libltdl 2.4.5-1 (multilib-devel) [installed]
        A generic library support script (32-bit)
    Last edited by tsester (2015-05-10 22:10:28)

    tsester wrote:P.S.: I recently transfered the linux system between failing disks
    In that case you should probably check that no other packages are missing files with
    pacman -Qkk 2>&1 | grep "No such file or directory"
    Any packages that report that they're missing files, you should reinstall.

  • Problem with program hanging randomly on certain commands from win 7 pro client to SB Server

    Having a problem with program hanging randomly on certain commands from Win-7 Pro Client to SB Server Both 64-Bit
    Five other slower XP-Pro 32 Bit systems though they are older and slower systems do not seem to hang as readily if at all.
    It has been very frustrating as the Client-System, SB-Server and Program should work w/o any hitches, but this seems to work fine @ times and then hang randomly.
    Would appreciate any and all suggestions in assisting.... JimBAgde-MSS  

    You can try this, as I have had similar problems with another MS Access .MDB file and slow access before. This fixed my problem for me. On the slow computer, make sure the program is set to see the .mdb file via UNC path, not a mapped drive letter. ex.
    USE:  \\yourserver\shared\dental\file.mdb
    DO NOT: S:\\shared\dental\file.mdb
    hope this helps

  • Problem compiling Abstract class

    Hi
    I have writting an abstract class Sort.java and another class BubbleSort.java. I am having problems compiling BubbleSort.java class.
    The following is the error message
    BubbleSort.java:8: missing method body, or declare abstract
         public int doSorting(int[] array);
    ^
    BubbleSort.java:11: return outside method
              return num;
    ^
    The following is the code
    public abstract class Sort
    public abstract int doSorting(int[] array);
    }// End of class
    public class BubbleSort extends Sort
    private int num = 2;
    public int doSorting(int[] array);
    num = num + 2;
    return num;
    } // end of class

    Remove the semi-colon.
    public int doSorting(int[] array); // <------- there

  • Storing integers in a compiled program

    I would am wriitng a program and I would like to generate a unique number for each time a users uses the compiled program, is it possible to store previously incremented numbers i.e. the last person who used this program got a print out number of 5. The next person to use this program would then get the number 6 etc etc? At the moment I have only been made familiar to coding in Java in a sort of runtime environment only.
    An example of my thinking could be like so:
    private int mynumber=1;
    I woould then like to be able to set a new number most probably by creating a set method like so:
    public int setMyNumber(int mynumber){
    mynewnumber = mynumber+1;
    return mynewnumber;
    ...... then in my main method I would like to return this new number. Please note this may not actually work but just giving you an idea of my thinking.
    : )

    Kayaman wrote:
    cyber_frog wrote:
    Hi EJP,
    Not sure what you mean by a preference? Do you have any info?See the Preferences class.Additional > [url http://download.oracle.com/javase/6/docs/api/]API Doco
    Additional > [url http://download.oracle.com/javase/1.4.2/docs/guide/lang/preferences.html]Tutorial 

  • I have ipad 2 and facing problem with programs swtching off

    I have ipad 2 and facing problem with programs it's swtching off while working and turn to home page. Am using ios 5

    If it's happening on all the apps that you've downloaded from the App Store, but not the Apple built-in ones, then try downloading any free app from the store (as that appears to reset something) and then re-try them - the free app can then be deleted.
    If it's happening on all apps then try closing them all completely and then see if they work when you re-open them : from the home screen (i.e.not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Having problems compiling *.java with import javax.servlet.jsp......

    I've been trying to do the tutorials in a book titled Apache Jakarta-Tomcat as part of my introduction to JSP. I'm new to Java but do know the basics. I have on my machine Java 1.3, Java 1.4, Java FrameWorks 2.1 and Jython 2.1 on Win2000 Pro. So enough about my configuration. I have never worked with packages also.
    I downloaded the files from the books site due to the fact I make a lot of typos when hand coding Java (I've become a pretty good debugger of my own code). But everytime I go to compile the *.java I get error messages. So below you will find HelloTag.java and beneath that the error messages that are thrown when I try and compile it. I tested other bits of *.java and have had no problem compiling them. Is there a JSP module I'm missing?
    Am I doing something wrong or am I missing something from my configuration.
    Marijan Madunic
    package chapter2;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class HelloTag extends TagSupport
    public void HelloTag() {
    // Method called when the closing hello tag is encountered
    public int doEndTag() throws JspException {
    try {
    // We use the pageContext to get a Writer
    // We then print the text string Hello
    pageContext.getOut().print("Hello");
    catch (Exception e) {
    throw new JspTagException(e.getMessage());
    // We want to return SKIP_BODY because this Tag does not support
    // a Tag Body
    return SKIP_BODY;
    public void release() {
    // Call the parent's release to release any resources
    // used by the parent tag.
    // This is just good practice for when you start creating
    // hierarchies of tags.
    super.release();
    D:\Java\JDK 1.3\bin>javac HelloTag.java
    HelloTag.java:3: cannot resolve symbol
    symbol : class JspException
    location: package jsp
    import javax.servlet.jsp.JspException;
    ^
    HelloTag.java:4: cannot resolve symbol
    symbol : class JspTagException
    location: package jsp
    import javax.servlet.jsp.JspTagException;
    ^
    HelloTag.java:5: cannot resolve symbol
    symbol : class TagSupport
    location: package tagext
    import javax.servlet.jsp.tagext.TagSupport;
    ^
    HelloTag.java:7: cannot resolve symbol
    symbol : class TagSupport
    location: class chapter2.HelloTag
    public class HelloTag extends TagSupport
    ^
    HelloTag.java:14: cannot resolve symbol
    symbol : class JspException
    location: class chapter2.HelloTag
    public int doEndTag() throws JspException {
    ^
    HelloTag.java:20: cannot resolve symbol
    symbol : variable pageContext
    location: class chapter2.HelloTag
    pageContext.getOut().print("Hello");
    ^
    HelloTag.java:24: cannot resolve symbol
    symbol : class JspTagException
    location: class chapter2.HelloTag
    throw new JspTagException(e.getMessage());
    ^
    HelloTag.java:28: cannot resolve symbol
    symbol : variable SKIP_BODY
    location: class chapter2.HelloTag
    return SKIP_BODY;
    ^
    HelloTag.java:37: cannot resolve symbol
    symbol : variable super
    location: class chapter2.HelloTag
    super.release();
    ^
    9 errors

    Well, it looks like you've not got the servlet development kit JAR on your classpath. I think it'll probably be called servlet.jar on your system. Add that to the classpath if it's not already there.
    Incidentally, you've bumped into one of the areas Java's slightly lenient - declaring a method that looks like a constructor:
    public HelloTag() { }
    public void HelloTag() { }The first is a constructor, the second is a normal method. I'm assuming you intended to have the former instead of the latter.
    Anyway, hope this helps.

  • Problems compiling Zaptel package [SOLVED-ISH]

    Hey guys, I'm on an Arch64 system and I'm having problems compiling Zaptel (a dependancy for Asterisk).
    Here's the pastebin of the errors I get from the Zaptel makefile: http://pastebin.com/776475
    Here's my analysis so far:
    There's a line in the Makefile for the zaptel driver that goes like this:
    make -C /lib/modules/2.6.17-ARCH/build/ SUBDIRS=/home/woogie/zaptel/src/zaptel-1.2.8 modules
    This line activates the kernel's makefile in order to build modules, but specifies that the source directory for zaptel should be included in the make process.
    Then things go down the proverbial drain - linux/err_kernel_only.h gets included in the build process, which is designed to do one thing only - stop the build process. So I'm not entirely too sure what's going on here. Is there something misconfigured on my system, or is the Zaptel build system flawed somehow, such that I need to compensate for it?

    Further information:
    I've manually run the problematic make command from /lib/modules/2.6.17-ARCH/build on my own. After reading the kernel makefile documentation, I've learned of the V=1 flag to show me exactly what's going on. The failing command is this one:
    gcc -Wp,-MD,/home/cestus/zaptel/src/zaptel-1.2.8/.zaptel.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/include -D__
    KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2
    -fomit-frame-pointer -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -fun
    it-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -I. -Iinclude -O4 -g -Wall -DBUILDING_T
    ONEZONE -m64 -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -I/home/cestus/zaptel/src/zaptel-1.2.8//include
    -I/home/cestus/zaptel/src/zaptel-1.2.8//include/oct6100api -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(zaptel)" -D"KBUIL
    D_MODNAME=KBUILD_STR(zaptel)" -c -o /home/cestus/zaptel/src/zaptel-1.2.8/zaptel.o /home/cestus/zaptel/src/zaptel-1.2.8/zaptel.c
    I've figured out that the bit which causes the failure is "-include include/linux/autoconf.h", because autoconf.h just includes the "err_kernel_only" header automatically, which then slays the build process. And I've also discovered that the Zaptel devs are uber-leet. They've found the magical -O4 level in gcc. You know, the one above 3, where the supported optimization levels in gcc are -O, -Os, -O2 and -O3 

Maybe you are looking for