Problems compiling packages

Hi there! I have problems when I use packages, if someone can help me i will be very thankful. This the code that I am using:
//Stack.java
package DataStructures;
import DSExceptions.*;
public interface Stack
void push( Object x);
void pop() throws Underflow;
Object top() throws Underflow;
Object topAndPop() throws Underflow;
boolean isEmpty();
void makeEmpty();
//StackAr.java
package DataStructures;
import DSExceptions.*;
public class StackAr implements Stack
* Construct the stack.
public StackAr( )
this( DEFAULT_CAPACITY );
Both files are in the same directory DataStructures, I can copile Stack.java but I can not compile StackAr.java, it has the next error:
StackAr.java:24: cannot resolve symbol
symbol : class Stack
location: class DataStructures.StackAr
public class StackAr implements Stack
^
1 error
What am I doing wrong? Thanks a lot for helping me.

When you give a class a package, you need to import that package.
You need to add the bolded text:
package DataStructures;
import DSExceptions.*;
import DataStructures.*;
public class StackAr implements Stack
* Construct the stack.
public StackAr( )
this( DEFAULT_CAPACITY );
Happy programming. :)

Similar Messages

  • 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 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 

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

  • Execution of Immediate SQL in compiled package in two versions of SQL*PLUS

    A peculiar problem has risen in our database.
    Execution of Immediate SQL in compiled package in two versions of SQLPLUS gives different results
    We have a compiled package with two procedures that contain immediate SQL statements, and these are:
    +PROC_DELETE_ROWS+
    +     -- This immediate sql deletes unreferenced Document Types from the DOC_REF_TYPE table+
    +     delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)+
       +     and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)+
       +     and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)+
       +     and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)+
    +PROC_ADD_NEW_ROWS+
    +     -- Drop the temporary table+
    +     drop table TMP_PROARC_DOC_REF_TYPE+
    +     -- Create a temporary table+
    +     create table tmp_PROARC_DOC_REF_TYPE as+
    +     select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC+
    +     from PROARC_DOC_REF_TYPE_VW+
    +     -- Insert document types that do not exist in the DOC_REF_TYPE table+
    +     insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)+
            +     select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s+
            +     where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)+
    I am using the following test script:
    +Exec mypackage.proc_delete_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+
    +Exec mypackage.proc_add_new_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+We have a Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    I am using SQL*Plus: Release 8.1.7.0.0
    The test script is working as expected.
    Count after delete =155
    Count after insert = 511
    but when I use another computer with SQL*Plus: Release 10.x
    The Test script returns the following
    Count after delete =155
    Count after insert =155
    The same is happening when I am running the scripts as a scheduled job.
    QUESTION:
    I believe I have found a fix for the problem though. By changing tmp_PROARC_DOC_REF_TYPE in the insert statement to all upper case, the script is running in both environments apparently. But how is this possible? I am executing a compiled package in the database. The session shell should have no impact on the behaveour of the procedure I am calling. What causes this?
    Edited by: Reon on Jun 16, 2011 4:44 AM

    1) I am using the same user (PANDORA)
    2) (PANDORA) for both
    3) I am actually not handling any errors. Just skipping any error altogether. I'll check to see what exceptions are raised, and come back.
    I have also noticed that SQL/PLUS is not the culprit here. If I use SQLTools 1.5 to run the script, the same thing happens. So it has to do something with the connection or session environment that is inheritet to both clients.
    The CODEZ:_
      procedure add_doc_types IS
      sqlstr     VARCHAR2(2000);
      begin
      BEGIN
           sqlstr := 'drop table TMP_PROARC_DOC_REF_TYPE';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      BEGIN
           sqlstr := 'create table tmp_PROARC_DOC_REF_TYPE as select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC from PROARC_DOC_REF_TYPE_VW';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
        BEGIN
            sqlstr := 'insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)
                    select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from TMP_PROARC_DOC_REF_TYPE s
                    where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
            sqlstr := 'update doc_ref_type t set DOC_REF_TYPE_DESC = (
                    select DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s
                    where t.doc_ref_type = s.doc_ref_type)
                    where exists (select 1 from tmp_PROARC_DOC_REF_TYPE s where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      end add_doc_types;
      procedure delete_doc_types IS
      sqlstr     VARCHAR2(2000);
       BEGIN
            sqlstr := 'delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)
            and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)
            and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)
            and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)';
          EXECUTE IMMEDIATE sqlstr;
         EXCEPTION
           WHEN OTHERS THEN
             null;
      end delete_doc_types;Edited by: Reon on Jun 16, 2011 2:01 AM

  • Compiling packages

    Hi all,
    I have problem on compiling packages.
    Here is the structure of the directory
    1:path is c:\java
    2:Created a directory inside java folder called test1 as parent directory,then I created a new folder calledd test2 inside the test1.(c:\java\test1\test2).
    3. I have created java class called House.java in which I have declared a package
    package  test1.test2;4.I have created the main class HouseMain.java with
    code]package test1.test2;
    5.I have copied all the java class in the folder test2.
    I cant get it compiled even after setting the classpath.
    Can anyone help me please how to compile ?.
    Thank you

    Hi all,
    I have problem on compiling packages.
    Here is the structure of the directory
    1:path is c:\java
    2:Created a directory inside java folder called
    test1 as parent directory,then I created a new
    folder calledd test2 inside the
    test1.(c:\java\test1\test2).
    . I have created java class called House.java in
    which I have declared a package
    package  test1.test2;4.I have created the main class HouseMain.java with
    code]package test1.test2;I have copied all the java class in the folder
    test2.
    I cant get it compiled even after setting the classpath.
    Can anyone help me please how to compile ?.
    Thank youTry this:
    Navigate to c:\java and type exactly this:
    javac -classpath . -d . test1\test2\*.javaNote the "dot" after both -classpath and -d. Read the javac docs to make sure you understand what those mean.
    You should see all the .class files in the same directory as your .java files. (Not the best idea, but easy for now.)
    To run, type this:
    java -classpath . test1.test2.HouseMain%

  • Problem importing packages...

    hello!
    I am learning Java for a while. I have a very strange problem with packages. The problem is the next one:
    When I import the complete package like this:
    import ThePackage.*
    I got the following the next errors:
    main.java:8: cannot resolve symbol
    symbol : constructor Class1 ()
    location: class Class1
    Class1 C1=new Class1();
    ^
    main.java:9: cannot resolve symbol
    symbol : constructor Class2 ()
    location: class Class2
    Class2 C2=new Class2();
    ^
    2 errors
    In order to use this packages, I have to use it this way:
    import ThePackage.Class1;
    import ThePackage.Class2;
    My question is if I have to import every class I am going to use per package? Or why I can�t import using asterisks ('*')
    My other problem is when I use class within the same package, I have to import them too. I have to put the "import ThePackage.*;" in every class within it.
    Thanks,
    Santiago (A Java Newbie)

    You can try to compile with javac -verbose and see what happens. It's because the class you want to compile is not in a package, and you want to import a whole package. But how would the compiler know if you want to use the Class1 and Class2 that is not in a package or those that are in a package?! First it checks if there are those classes which are not in a package. It doesn't find them, but it finds the java source code, so it attempts to use that (which will fail becuase you have package declaration in them). So sudha_mp is right about that you have to remove the source code, then you should be able to compile your code (or the class you want to compile has to be in a package).

  • New programmer- how do i compile package members?

    im learning java using sams teach yourself java in 21 days. its really good compared to other ive tried but i was having a problem on day 6. i couldnt compile package members successfully. i didnt undestand the book instruction so instead of compiling this way:
    C:\noam\java> c:\java\jdk1.5.0_06\bin\javac classname.java
    i did it this way:
    C:\java\noam\org\cadenhead\ecommerce> c:\java\jdk1.5.0_06\bin\javac classname.java
    this worked but other classes inside the package could not recognize this class, though classes outside the package could.
    how do i compile package members?
    thnx!

    I solved the problem...! I have no idea how but it worked this time!
    thnx anyway for everybody who tried to help!

  • 30EA1: PLS-00172 when compiling package body

    Hi there,
    I'm having a strange bug when compiling a package body in SQL Developer 3.0 EA1, while the same package body compiles well in production version (2.1).
    The error code returned is Error: ORA-06550: line 1, column 64: PLS-00172: string literal too long
    Does anyone have the same problems?

    yes: SQL*Developer 3EA1 - Not Compiling package Body
    Hope that helps,
    K.

  • 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

  • [SOLVED] Strange error while compiling packages via AUR

    I've been facing this error while compiling packages via AUR. I'm also posting the output of my /etc/makepkg.conf
    Error
    ==> Starting build()...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether cc supports -O2... yes
    checking for g++... g++
    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... no
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for GSTREAMER... yes
    checking for GSTREAMER_GTK... yes
    checking for XOpenDisplay in -lX11... yes
    checking for ncursesw5-config... /usr/bin/ncursesw5-config
    checking for initscr in -lncurses... yes
    checking whether gcc supports -Wall... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating docs/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    fatal: Not a git repository (or any of the parent directories): .git
    CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /tmp/yaourt-tmp-hellknight/aur-gst123/src/gst123-0.2.0/build-aux/missing --run aclocal-1.11 -Wno-portability
    sh: autom4te: command not found
    aclocal-1.11: autom4te failed with exit status: 127
    make: *** [aclocal.m4] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build gst123.
    ==> Restart building gst123 ? [y/N]
    ==> -------------------------------
    ==>
    /etc/makepkg.conf
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Exclusive: will only run on x86_64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=amdfam10 -mtune=generic -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j8"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    BUILDENV=(fakeroot !distcc color !ccache)
    #-- 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=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) 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
    OPTIONS=(strip docs libtool emptydirs zipman purge)
    #-- 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})
    #-- Directories to be searched for the strip option (if strip is specified)
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    #-- 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
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # 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:
    Last edited by tarun.hellknight (2011-04-12 15:45:26)

    That's strange... it wasn't installed.. although I had never,ever faced a problem while compiling packages via AUR.. maybe, I should be careful when uninstalling orphans.. thanks for the help..

  • Problem with packageing and deploying a sample application

    HI,
    I have tried to download and install the server in my system. I am able to deploy a sample application using autodeploy utility.
    But when i tried to package a new sample application and deploy i am getting 404 error. For application server i have used 7070 port and not the default 8080 port will this a problem to package & deploy sample application provided with this software.
    The error is as below:
    HTTP Status 404 - /hello1
    type Status report
    message /hello1
    description The requested resource (/hello1) is not available.
    Sun-Java-System/Application-Server

    Btw, verify that the url you are trying to access is correct. For instance, assuming you deploy app. without --contextroot option. By default,  the url is http://<host>:<port>/<web module name>/<value of url-pattern in web.xml> if your app contains servlet. If your app has jsp then it's http://<host>:<port>/<web module name>/<value of url-pattern in web.xml>/<name of jsp>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Oracle: Problem creating package via CF

    G'day
    I've got a <cfquery> that creates a package header,
    another that creates
    the body, and then a <cfstoredproc> which calls one of
    the procedures in
    the package.
    I am getting this error, when my code comes to execute the
    procedure:
    [Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1,
    column 7:
    PLS-00905: object myDB.myPkg is invalid ORA-06550: line 1,
    column 7:
    PL/SQL: Statement ignored
    However if I go into Oracle SQL Developer, and examine the
    package, it's
    all present and accounted for, and indeed works fine.
    If I manually recompile the package, I get no errors
    (right-click > compile
    on both the header and the body).
    If having manually recompiled the package, I re-execute my
    <cfstoredproc>
    call, it works fine.
    If I re-run the process, and the simply recompile the header
    before trying
    the <cfstoredproc>, I get this error:
    [Macromedia][Oracle JDBC Driver][Oracle]ORA-04068: existing
    state of
    packages has been discarded ORA-04063: package body
    "myDB.myPkg" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at
    line 1
    If I then recompile the body too, and then call my
    <cfstoredproc>, it all
    runs fine.
    I have added the following two addition <cfquery> calls
    after my first two:
    <cfquery name="qTemp" datasource="#dsn#">
    alter package pkg_tree compile package
    </cfquery>
    <cfquery name="qTemp" datasource="#dsn#">
    alter package pkg_tree compile body
    </cfquery>
    And they execute fine, but do not affect the results (ie: I
    still get the
    same erroing behaviour).
    If I copy and paste my <cfquery> code into Oracle SQL
    Developer and execute
    it, it all works fine.
    Anyone encountered this before, and know what I'm doing wrong
    (or what -
    additionally - I need to do to complete the job)?
    Cheers for any thoughts.
    Adam

    PS: The user I am using to connect to the DB is the same one
    whether via CF
    or Oracle SQL Developer, in both cases, and said user has
    full DBA
    priveleges.
    Adam

  • 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

  • Compiling packages or procedures

    Hello,
    I am compiling a package , procedures etc. The query comes back with invalids. I have show error. How do I retrieve more detail information about why the package/procedure/view are invalid?
    DECLARE
                    v_status       VARCHAR2(10);
                    v_cmd          VARCHAR2(150);
                    Cursor rw_objects
                     IS
                      Select object_name,object_type,status,owner
                      From dba_objects
              WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
              AND owner = UPPER('&&DW_SCHEMA')
                      AND status = 'INVALID';
             BEGIN
                 FOR  t IN rw_objects
                           LOOP
                                  IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
                                      v_cmd  := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';  
                                     execute immediate v_cmd;
                         ELSIF
                                     t.object_type ; = ('PACKAGE') THEN                                 
                                     v_cmd  := 'ALTER  PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';  
                                     execute immediate v_cmd;  
                                  ELSIF                               
                                      t.object_type ; = ('PACKAGE BODY') THEN                                 
                                      v_cmd  := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';  
                                     execute immediate v_cmd;  
                                    dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
                                  END IF;
                    END LOOP;
    END;
    SELECT   object_name, object_type, status                    
                   FROM  dba_objects
                   WHERE STATUS = 'INVALID'     
                   AND UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
                   AND owner = UPPER('&&DW_SCHEMA')
               ORDER by object_type;
    show errors; Here are the results.
    OBJECT_NAME                                                                OBJECT_TYPE         STATUS                            
    PM206                                                                           PACKAGE BODY        INVALID
    DW_BE_DFACT_TB_REFRESH_HANDLER                            PACKAGE BODY        INVALID
    DW_BE_DFACT_TB_INITIAL_HANDLER                               PACKAGE BODY        INVALID
    CHART_HANDLER                                                            PACKAGE BODY        INVALID
    DW_CRS_HANDLER                                                          PACKAGE BODY        INVALID
    DELETE_UPDATE_PROC                                                   PROCEDURE           INVALID
    DW_CBS_PROC                                                              PROCEDURE           INVALID
    DW_GL_DFACT_VW                                                           VIEW                INVALID
    8 rows selected.
    No errors.

    too bad COPY & PASTE are broken for you!
      1  DECLARE
      2                  v_status       VARCHAR2(10);
      3                  v_cmd          VARCHAR2(150);
      4                  Cursor rw_objects
      5                   IS
      6                    Select object_name,object_type,status,owner
      7                    From dba_objects
      8            WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
      9            AND owner = UPPER('&&DW_SCHEMA')
    10                    AND status = 'INVALID';
    11           BEGIN
    12               FOR  t IN rw_objects
    13                         LOOP
    14                                IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
    15                                    v_cmd  := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';
    16                                   execute immediate v_cmd;
    17                       ELSIF
    18                                   t.object_type ; = ('PACKAGE') THEN
    19                                   v_cmd  := 'ALTER  PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';
    20                                   execute immediate v_cmd;
    21                                ELSIF
    22                                    t.object_type ; = ('PACKAGE BODY') THEN
    23                                    v_cmd  := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';
    24                                   execute immediate v_cmd;
    25                                  dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
    26                                END IF;
    27                  END LOOP;
    28* END;
    29  /
    old   9:           AND owner = UPPER('&&DW_SCHEMA')
    new   9:           AND owner = UPPER(' USER1')
                                  IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
    ERROR at line 14:
    ORA-06550: line 14, column 49:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    The symbol ";" was ignored.
    ORA-06550: line 18, column 48:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset
    ORA-06550: line 22, column 49:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset
    SQL>

Maybe you are looking for