Problems compiling KontrollerLab

Hi,
I am trying to compile KontrollerLab from the AUR but I have some problems.
First I got an error during execution of the configure script saying that mcopdil is missing and I should check if aRts is properly installed. I was able to bypass this with a --without-arts switch in PKGBUILD but I don't know if that is an error-free solution.
Anyway, the script started building KontrollerLab with tons of warnings. Compilation succeeded but there were errors in linking:
/usr/bin/ld: warning: libkio.so.5, needed by /usr/lib/libktexteditor.so, may conflict with libkio.so.4
/usr/bin/ld: warning: libkdecore.so.5, needed by /usr/lib/libktexteditor.so, may conflict with libkdecore.so.4
kldocument.o: In function `KLDocument::KLDocument(KontrollerLab*)':
kldocument.cpp:(.text+0x3d4): undefined reference to `KTextEditor::createDocument(char const*, QObject*, char const*)'
kldocument.cpp:(.text+0x3fa): undefined reference to `KTextEditor::editInterface(KTextEditor::Document*)'
kldocument.cpp:(.text+0x415): undefined reference to `typeinfo for KTextEditor::EditInterface'
kldocument.cpp:(.text+0x439): undefined reference to `typeinfo for KTextEditor::EditInterfaceExt'
kldocument.cpp:(.text+0x45d): undefined reference to `typeinfo for KTextEditor::EncodingInterface'
kldocument.cpp:(.text+0x481): undefined reference to `typeinfo for KTextEditor::SelectionInterface'
kldocument.cpp:(.text+0x4a4): undefined reference to `typeinfo for KTextEditor::SelectionInterfaceExt'
kldocument.o: In function `KLDocument::KLDocument(KontrollerLab*)':
kldocument.cpp:(.text+0x5e4): undefined reference to `KTextEditor::createDocument(char const*, QObject*, char const*)'
kldocument.cpp:(.text+0x60a): undefined reference to `KTextEditor::editInterface(KTextEditor::Document*)'
kldocument.cpp:(.text+0x625): undefined reference to `typeinfo for KTextEditor::EditInterface'
kldocument.cpp:(.text+0x649): undefined reference to `typeinfo for KTextEditor::EditInterfaceExt'
kldocument.cpp:(.text+0x66d): undefined reference to `typeinfo for KTextEditor::EncodingInterface'
kldocument.cpp:(.text+0x691): undefined reference to `typeinfo for KTextEditor::SelectionInterface'
kldocument.cpp:(.text+0x6b4): undefined reference to `typeinfo for KTextEditor::SelectionInterfaceExt'
kldocument.o: In function `KLDocument::activateCHighlighting()':
kldocument.cpp:(.text+0xb3a): undefined reference to `KTextEditor::highlightingInterface(KTextEditor::Document*)'
collect2: ld returned 1 exit status
It is very important that I make this program work because I use it in my university project. Any ideas? Has anyone else succeeded in building KontrollerLab preferably for x86_64?
Thank you in advance.

I use KDEmod 4.1 and I found that kdemod-kdesdk is installed, but not all of its packages, but still the same error comes up. Indeed it seems like a missing dependency.
How can I tell pacman to install the rest of the missing kdesdk packages without having to point them out one-by-one? It doesn't recognize kdemod-kdesdk as a group...

Similar Messages

  • 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

  • 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 

  • 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.. :(

  • Having problems compiling script

    I am rather new to java an started a couple of days ago and I ran into a problem compiling this script in the command line
    class VariableDemo {
    public static void main (String args[]) {
    int num = 1000;
    System.out.println (num + " is the value of num") ;
    At first I forgot to capitolize the 'S' in System (which is why I was getting errors) but after I had corrected it , I still could not get it to compile in a command prompt
    even after I corrected my mistakes, I still get this error:
    error: cannot read: VariableDemo.java
    1 error
    When I ran it through JCreator it compiled it just fine and found no errors. SO I just want to know if it is some thing that has to do with the command line or is there an error I am not seeing?
    I am running Windows XP Pro with service pack 2 and using JCreator 3.50.010

    Sorry, I am new to this I just called it script out of ignorance, but, yes it is in the same directory. I even Pathed it out again to be sure.

  • 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

  • Problems compiling at91 driver for samutils-0.2.1

    Hello All!
    I'm having problems compiling the usb driver for sam7 tools. I am receiving the following errors:
    make -C /lib/modules/2.6.39-ARCH/build SUBDIRS=/home/bailey/Source/sam7utils-0.2.1/driver modules
    make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
    CC [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.o
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_write_bulk_callbackâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:154:2: error: implicit declaration of function âusb_buffer_freeâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:140:19: warning: variable âdevâ set but not used [-Wunused-but-set-variable]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_writeâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:2: error: implicit declaration of function âusb_buffer_allocâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:6: warning: assignment makes pointer from integer without a cast [enabled by default]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:192:6: warning: passing argument 6 of âusb_fill_bulk_urbâ from incompatible pointer type [enabled by default]
    include/linux/usb.h:1266:20: note: expected âusb_complete_tâ but argument is of type âvoid (*)(struct urb *, struct pt_regs *)â
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_probeâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:305:2: error: implicit declaration of function âinfoâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_disconnectâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:320:2: error: implicit declaration of function âlock_kernelâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:328:2: error: implicit declaration of function âunlock_kernelâ [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[2]: *** [/home/bailey/Source/sam7utils-0.2.1/driver/at91.o] Error 1
    make[1]: *** [_module_/home/bailey/Source/sam7utils-0.2.1/driver] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    make: *** [default] Error 2
    output of uname -a
    2.6.39-ARCH #1 SMP PREEMPT Mon Jun 27 22:01:13 CEST 2011 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz GenuineIntel GNU/Linux
    I am running gcc 4.6.1-1 and have installed kernel26headers. If there is any info I'm missing plz let me know.
    Thanks for your help in advance

    Thank you for the reply, I noticed that the post below (its for Ubuntu) shows the gcc version to be 4.0.3
    [link]http://www.makingthings.com/documentati … -sam7utils[/link]
    I poked around the Makefile in /usr/src/linux-2.6.39 and got rid of "-Wall" and "-Wno-implicit-function-declaration"
    it compiled with the following warnings:
    make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
    Building modules, stage 2.
    MODPOST 1 modules
    WARNING: "info" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "unlock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "lock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "usb_buffer_alloc" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "usb_buffer_free" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    CC /home/bailey/Source/sam7utils-0.2.1/driver/at91.mod.o
    LD [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    but when I tried to install, the output was
    insmod: error inserting 'at91.ko': -1 Unknown symbol in module
    Unfortunately, I tried grabbing the package from the AUR, but I ran into the same issues. Seems the only common factor in this process is gcc.
    Thanks for the help

  • Problems compiling with packages

    Hi,
    I wonder if anyone could help me.
    I have had problems compiling using a package. I have altered the classpath in autoexec.bat with:
    SET CLASSPATH=%classpath%;C:\jdk1.3.1_02\classes;.
    the package class files are stored in C:\jdk1.3.1_02\classes\helliker\id3
    and I have imported the class with:
    import helliker.id3.*;
    I am getting the following error:
    C:\My Documents\Uni work\mp3 project\test\Driver.java:1: package helliker.id3 does not exist
    import helliker.id3.*;
    ^
    Can anybody help?
    Thanks,
    Dave

    Perhaps the version of Windows you are using does not use autoexec.bat. For example, in NT and XP, you set Classpath using ControlPanel/System/Advanced/Environment Variables.
    Perhaps there is a typo in your Classpath, for example an extra space.
    On a command line, try this:
    javac -classpath C:\jdk1.3.1_02\classes C:\My Documents\Uni work\mp3 project\test\Driver.java
    If that works, then definitely Classpath is not set as you think it is.

  • Problems compiling

    Hi all,
    I'm new with JSP, actually I don't know wether it's a TOMCAT ESPECIFIC issue or if your can help me here. I get the following error while executing a simple script (gateway.jgp) on the browser:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    I have a simple JSP script:
    gateway.jsp
    <%
    String commando = request.getParameter("comando");
    if (commando.equals("lista")) {
    %>
         <%@ include file="servicosXML/consulta.jsp" %>
    <%
    }else{
    %>
         <%@ page contentType="text/xml;charset=ISO-8859-1" %>
         <resultado>
         commando desconhecido
         </resultado>
    <%
    %>
    servicosXML/consulta.jsp
    <%@ page language="java" import="servicos.BoletaDAO,java.util.*,"%>
    <%
    String subcomando = request.getParameter("subcomando");
    String buffer = new String();
    HashMap map = new HashMap();
    if (subcomando.equals("carteira")) {
         buffer = BoletaDAO.listaCarteira();
    } else if(subcomando.equals("classe")){
         buffer = BoletaDAO.listaClasse();
    } else if(subcomando.equals("grupo")){
         buffer = BoletaDAO.listaGrupo();     
    } else if(subcomando.equals("operacao")){
         map.put("Operador",request.getParameter("Operador"));
         map.put("Dt",request.getParameter("Dt"));
         buffer = BoletaDAO.listaOperacao(map);     
    } else if(subcomando.equals("produto")){
         map.put("CLSId",request.getParameter("CLSId"));
         map.put("Sinal",request.getParameter("Sinal"));
         buffer = BoletaDAO.listaProduto(map);     
    out.print(buffer);
    %>WHATS THE PROBLEM???
    THANKS IN ADVANCE

    Need a bit more on the error message/stack trace.
    Specifically the bit that tells you the root cause of the issue.
    Its good that you tried to keep the stack trace short, unfortunately the bit you removed is the bit that contains the actual error message of interest ;-)

  • Problem compiling on my C:

    Please can someone advise: This is a real pain.
    I have the JRE 1.4.1 and SDK 1.4.1 installed on my Work PC, when I try to compile it gives me the following:
    "javac: invalid flag:
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -help Print a synopsis of standard options
    Process completed."
    Yet, if I compile the same file from the network server it's fine. I really dont get it. I have tried re-installing my JRE and SDK and I created several test programs to make sure it was not corrupt or something. I have checked the classpath and it looks good, I looked at the following to ensure I got it right. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html
    I'm running windows 2000 and I dont have these problems at home where I'm running XP, I have no idea where to look now, any help would be very much appreciated, I'm no Java guru and I have a project I got to get sorted, feel that this is slowing me down as have to compile everything on the server right now. Also I tried copying the class files over from the server to the local c: and it still would not run, the message I get is as follows:
    Exception in thread "main" java.lang.NoClassDefFoundError: check
    please help.

    Hi ya, I just got this answerd by a colleague, it was a new one on me though. the answer was:
    set the path to c:\j2sdk1.4.1\bin
    and the classpath to C:\j2sdk1.4.1\bin;.;
    I did not know about the ;.; on the end.
    I will learn one day.....I hope...
    Sorry for wasting your time dude, and thanks for getting back so quick, your cool !

  • Problem compiling source file in package

    Hi, I have 5 source files which I have just packaged together and put in the same sub-directory, the problem is that when I try to compile the file with the main method I get the error message:"cannot read" then the name of the source file. I am compiling from the command line and setting the classpath as I compile with the statement:
    c:\j2sdk1.4.1\bin>javac -classpath c:\directory\package directory source file.java
    I'm not sure what I am doing wrong and the source files all compiled fine before I added the package statement to the files. Please any help would really be appreciated.

    It sounds like the java file your are trying to compile is not in the directory you are compiling from.
    Is this basically what you are doing?:
    Say the package name is mypackage.
    Assume we are O.K. with keeping source and class files together.
    Create a directory named 'mypackage' somewhere...C:\mypackage\.
    Put all the .java files in it (these .java files indicate that they are a member of the 'mypackage' package).
    At a command prompt, cd to the directory containing the 'mypackage' directory...'cd C:\'
    Compile the source files: C:\j2sdk1.4.1\bin\javac mypackage\*.java
    run the main class: C:\j2sdk1.4.1\bin\java mypackage.TheMainClass
    Basically, this says keep the files where you want them and point to javac, instead of moving everything under java/bin. btw it will save a lot of typing if you add java/bin to your PATH.
    Hope this helps.

  • Problem compiling a project with FORTE

    Hi, thanks in advance ,
    I've installed FORTE 6 update 2 and all has gone ok .
    I've built two projects without problems.
    But building a big project i've found nexts problems :
    bash-2.03# /opt/SUNWspro/bin/makeprd myproject_file.prd
    ild: (undefined symbol) st_key_create -- referenced in the text segment of output/b.o
    ild: (undefined symbol) st_key_create -- referenced in the text segment of output/a.o
    ild: (undefined symbol) mysql_store_result -- referenced in the text segment of output/a .o
    ild: (undefined symbol) mysql_num_rows -- referenced in the text segment of output/b.o
    *** Error code 5
    dmake: Fatal error: Command failed for target `output/final_file'
    All the files has compiled ok less files makes calls to a MYSQL and ST library .
    I've already tell to my prd where found a library in mysql ( /usr/local/mysql/lib and include ) and ST library ( $HOME/st.h and st.a" ), but i don't understand why ild can't found this symbols ...
    In mysql.h you can find :
    mysql_store_result , mysql_num_rows
    and in the st.h the other functions ...
    I've found declarations( in .h) and functions ( in .a )
    What's the problem ?, anybody can help me ?
    Thanks

    I'm sorry Mike, but I want to be clear on what you are saying.  Are you saying NOT to include it in my project but rather include it in the "always included" box in the application builder? 
    What do you mean by "You shouldn't do it, because your fixed path would be wrong."  What shouldn't I do?  Add it to my project?  I asked a lot of questions and am not sure to what you are referring.
    Thanks again for the reply.
    Reese
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • XML Schema Class Generator Problem compiling generated java programs

    Hi,
    I ran oracg on the po.xsd schema from X3Cs XML Schema Part 0: Primer which successfully generated the java codes. I ran into problems when I compile the generated classes. Here's what I'm getting:
    C:\oracle\xml\xdk\demo\java\classgen\Po2>javac -classpath ".;C:\oracle\xml/lib/xmlparserv2.jar;C:\oracle\xml/lib/xschema.jar;C:\oracle\xml/l
    ib/classgen.jar;.;C:\Program Files\VicunaJ521\java\lib\collections.jar;C:\Program Files\VicunaJ521\java\lib\vicunalite.jar;C:\Program Files\
    XConverter\XConverter.jar;C:\Program Files\XConverter\IDLGenerator.jar; c:\jdk1.2.2\lib\dt.jar;c:\jdk1.2.2\lib\jvm.jar;c:\jdk1.2.2\lib\tools
    .jar;c:\oracle\ora81\jdbc\lib\classes12.zip;c:\oracle\ora81\jdbc\nls_charset12.zip;C:\oracle\xml\lib\classgen.jar;C:\oracle\xml\lib\xmlparse
    rv2.jar" *.java
    .\types\PurchaseOrderType.java:75: Type expected.
    public void addComment(null.Comment thecomment)
    ^
    .\types\Items.java:141: Type expected.
    public void addComment(null.Comment thecomment)
    ^
    2 errors
    Running the demo which comes with oracles version of po.xsd was OK. What's the difference between the po.xsd from oracle and the po.xsd from W3C? Are there any W3C recommendation for XML Schema not supported by Oracle's class generator?

    Which po.xsd do you use? Would you post it?
    Thanks. Here's the copy of the po.xsd from the W3C website. (http://www.w3.org/TR/xmlschema-0/#po.xsd)
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
    <xsd:documentation xml:lang="en">
    Purchase order schema for Example.com.
    Copyright 2000 Example.com. All rights reserved.
    </xsd:documentation>
    </xsd:annotation>
    <xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
    <xsd:element name="comment" type="xsd:string"/>
    <xsd:complexType name="PurchaseOrderType">
    <xsd:sequence>
    <xsd:element name="shipTo" type="USAddress"/>
    <xsd:element name="billTo" type="USAddress"/>
    <xsd:element ref="comment" minOccurs="0"/>
    <xsd:element name="items" type="Items"/>
    </xsd:sequence>
    <xsd:attribute name="orderDate" type="xsd:date"/>
    </xsd:complexType>
    <xsd:complexType name="USAddress">
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="street" type="xsd:string"/>
    <xsd:element name="city" type="xsd:string"/>
    <xsd:element name="state" type="xsd:string"/>
    <xsd:element name="zip" type="xsd:decimal"/>
    </xsd:sequence>
    <xsd:attribute name="country" type="xsd:NMTOKEN"
    fixed="US"/>
    </xsd:complexType>
    <xsd:complexType name="Items">
    <xsd:sequence>
    <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="productName" type="xsd:string"/>
    <xsd:element name="quantity">
    <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
    <xsd:maxExclusive value="100"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="USPrice" type="xsd:decimal"/>
    <xsd:element ref="comment" minOccurs="0"/>
    <xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="partNum" type="SKU" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <!-- Stock Keeping Unit, a code for identifying products -->
    <xsd:simpleType name="SKU">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="\d{3}-[A-Z]{2}"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>

  • Problem compiling APK with flash

    Hi
    I wrote an app for iPhone and wanted to put it on android, changing the settings in flash.But when I compile to get an APK the compilation stop just 10 or 9 second before the end I hear the warning sound of my mac and then nothing.
    When I compile other "test app" it goes all  the way  !!!
    Do someone have this issue ?

    Yes, after I faced this problem with my project I simply tested the component with a new blank file - and I get these problems.
    I personally downgraded to Flash CS4 as I count CS5 a complete crap - I waste too much time on its problems and infinite crashes. So this topic is not relevant for me anymore as with CS4 there is no such problem.

Maybe you are looking for