ADI Blackfin BF561 Examples can't compile in LV2009 Blackfin

I'm trying to evaluate a BF561 EZ-KIT with the examples in Labview 2009 Blackfin, but I can't get any of the BF561 examples to compile. Every time I try to compile the (Core A) Target, I get a "Failed to Generate C Code for '..... .vi'". When I click on Details, there is no error text in the text box. If I try to build the Core B target, C code is generated for the VIs, but the build fails with an error message informing me that Core A must be built first.
Oddly enough, the examples for the other single core Blackfin boards build just fine. 
Is this a known bug?  Any thoughts? 
Thanks!

aser01,
          R&D was able to track down the issue to an incorrect support file. If you place the attached xml file at this location ( <LabVIEW>\Targets\ADI\Embedded\vdk\bf561\) on your computer and restart LabVIEW, you should be good. This will replace the xml file that is currently in that folder but that is okay because this xml file solves the issue. Give it a shot and try building the BF561 examlpes and let me know if that works (it fixes it for me on my computer after I restarted LabVIEW and configured the target with the silicon revision I was using). Good luck and thanks for pointing out this issue to us!
Grant H. 
Message Edited by G-Money on 04-15-2010 03:57 PM
Message Edited by G-Money on 04-15-2010 03:58 PM
Grant H.
National Instruments
LabVIEW Product Marketing Manager

Similar Messages

  • I can' t compile Stratus example from Adobe sample...

    Hey guys !
    First, please sorry for my bad english, I'm french and it's a pain to explain this kind of problem in foreign language...
    I 'm trying to compile the example code found in Stratus sample (the audio/video chat), but I think some package are missed because Flex found a lot of error. Flex tell me that I'm trying to use some class or properties that doesn't exist...
    Here the list of the missing elements :
    - NetStreamInfo
    - Microphone.codec
    - NetStream.DIRECT_CONNECTIONS
    - Microphone.encodeQuality
    - NetStream.farId
    - Microphone.framesPerPacket
    - NetStream.info
    - NetConnection.nearId
    - NetStream.peerStream
    - SoundCodec
    I 'm using Flex Builder 3.02 (downloaded from the link at the bottom of the stratus' presentation page).I have my Stratus Key, but the problem is not here because I'm unable to launch the compilation...
    Where can I find the class / package I need ?
    In other terms, how can I compile the stratus example with no error.
    Thanks a lot !

    you probably forgot to set the minimum Flash Player version to 10.0.0 in the Flex build settings.  open the Properties for your Flex project, go to the "Flex Compiler" property, and in the "HTML wrapper" section's "Require Flash Player version" enter 10.0.0 in the boxes.  that will enable the compiler to recognize Flash Player 10 APIs.
    -mike

  • I can't compile applets

    Hi. I am very new to JAVA. (I just downloaded the compiler last night.)
    I really need help. It seems anything that is suposed to be an applet, I can't compile. I can't even compile the example applet for the "Hello World!" program in the "First Cup of Java" section!!!
    I've followed the instructions as I'm told, and keep getting this:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    I can however compile applications. WHAT IS GOING ON!
    Please help me.
    ~Bewildered

    Hi - I just learning Java and think I can help (at least i'll try).
    Save all you work on your desktop:
    Start Notepad
    type the following:
    Programmer: Type Your Name
    Date: Type whatever date it is
    Program: Simply Type the item in between brackets, without brackets: (Test1)
    import java.applet.*;
    import java.awt.*;
    public class Test1Applet extends Applet
    public void paint(Graphics g)
    g.drawString("I hope I get an applet on my screen!",15, 30);
    ...And Save As: Test1Applet.java - MAKE SURE YOUR ON YOUR DESKTOP
    Then go to File, New (Still using the Notepad application).
    Type:
    <Applet Code = "Test1Applet.java" Width = 400 Height = 200>
    </Applet>
    Then Save As: Test1Applet.html - MAKE SURE YOUR ON YOUR DESKTOP
    Finally go to the console mode... otherwise known as the Command Prompt. You can go to Start Button on the statusbar click on "Run", type cmd and hit enter.
    Once there you need to type: path = OK...At this time you must locate the complete path/drive where you downloaded the Java packages. Once you locate the entire drive (exam: c:\jbuilder3\java\bin) you must type in: path = drive you put the jbuilder,etc, etc in and hit enter.
    You shouldn't see anything, but just another line waiting for you to enter something. That something you must type is: javac
    Javac tell the os to call on Java language. You know get ready to compile. You'll then see a whole bunch of stuff, don't worry it simply computer veribage.
    If no errors have occurred you then type:cd and drag and drop one of the files you saved to the desktop. Before you hit the enter key make sure to remove the file name and then hit enter.
    Then you must type: javac Test1Applet.java and hit enter
    Finally you must type: appletviewer Test1Applet.html and hit enter.
    You should get an applet on your computer. Let me know how it turns out or whether I confused you even more.

  • Can't compile hlp

    I just tried to compile my project (using RH 4x)... and i'm
    getting a list of errors:
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Warnock Pro Light Caption Baltic" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Warnock Pro Light Display Baltic" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Warnock Pro Light Subhead Baltic" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Caflisch Script Pro Regular Greek" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Caflisch Script Pro Regular Baltic" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Microsoft Sans Serif (Vietnamese)" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Franklin Gothic Demi Cond Baltic" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Franklin Gothic Medium Cond Greek" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Franklin Gothic Medium Cond Baltic" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Gill Sans MT Ext Condensed Bold CE" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Gill Sans Ultra Bold Condensed CE" is longer
    than 31 characters.
    HC3096: Warning: topic #1 of vmmi_online help.rtf :
    The font name "Tw Cen MT Condensed Extra Bold CE" is longer
    than 31 characters.
    I assume these are why i can't compile... I don't find these
    fonts in the list of styles i have used... how do i find if these
    have been utilized? What are my options for fixing this issue? and
    why suddenly is this happening... I had no such problem last year
    when I compiled this same file.
    Thanks,
    kb

    Today, I discovered that creating a whole new RH for Word
    project is an unnecessary step. I did the following, and it fixed
    the error of any fonts being marked as "longer than 31 characters"
    by the WinHelp compiler.
    1. Just in case, I made a backup copy of the offending source
    doc(s) somewhere else on my PC.
    2. In the RH Explorer window, I deleted the offending source
    doc(s) from the RH for Word project.
    3. I performed
    File > Import > Document
    to reimport the offending source doc(s).
    4. I made a change to the reimported source doc(s), and then
    I saved this change. If I later want to back out this change, it
    must be deleted out, NOT backspaced out. This means your cursor
    must be moved to another location in the source doc before you
    remove the change.
    For example, I add my own initials somewhere in the source
    doc, save the source doc, and then I move my cursor to the
    beginning of my initials, and use the Delete key (NOT the Backspace
    key) to remove my initials from the source doc. Of course, at this
    point, I save once more.
    5. I recompiled, and checked the Error Wizard log to be sure
    the problem is fixed.

  • Can I compiler servlet with java compiler?

    Can I compiler servlet with java compiler?
    Here is an example of it:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet
              protected void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException , IOException
                        response.setContentType("text/html");
                        PrintWriter out = response.getWriter();
                        StringBuffer sb = new StringBuffer();
                        sb.append("<html><body><h1>");
                        sb.append("Hello World");
                        sb.append("</h1></body></html>");
                        out.print(sb.toString());
                        out.close();
         }

    Can I compiler servlet with java compiler?
    yes.
    just include the correct jarfiles in your classpath.

  • Can't compile with QT4 anymore

    Hi,
    Since last upgrade I can't compile my qt4 apps with KDevelop or QDevelop. It says something like :
    make: *** No rules to build target « /opt/qt4/mkspecs/linux-g++/qmake.conf », required by « Makefile ». Stopping.
    The qt-config tool does not exist anymore. There is a qtconfig one but, doesn't seem to be helping.
    I know that the files in the the qt4 package have been moved from /opt/qt4 to /usr/, but still I don't know what to do.
    I'm stuck !

    The fact is I cannot compile ANYTHING in QT4 !
    Let's take an example. I want to compile QPaddy (you can find it on qt-apps.org).
    I set the vars (which doesn't seem to have any effect):
    export QTDIR=/usr/share/qt4
    export QMAKESPEC=/usr/share/qt4/mkspecs/linux-g++
    export QT_LIBRARY_PATH=/usr/include/Qt
    I try to compile QPAddy :
    qmake qpaddy.pro
    make
    Here is what I get :
    cd src/ && make -f Makefile
    make[1]: entrant dans le répertoire « /root/docs/qpaddy0876/src »
    make[1]: *** Pas de règle pour fabriquer la cible « /usr/lib/qt-3.3/mkspecs/default/qmake.conf », nécessaire pour « Makefile ». Arrêt.
    make[1]: quittant le répertoire « /root/docs/qpaddy0876/src »
    make: *** [sub-src-make_default] Erreur 2
    And now the MakeFile :
    # Makefile for building: qpaddy
    # Generated by qmake (2.01a) (Qt 4.3.2) on: mar. nov. 6 17:49:17 2007
    # Project:  qpaddy.pro
    # Template: subdirs
    # Command: /usr/bin/qmake -unix -o Makefile qpaddy.pro
    first: make_default
    MAKEFILE      = Makefile
    QMAKE         = /usr/bin/qmake
    DEL_FILE      = rm -f
    CHK_DIR_EXISTS= test -d
    MKDIR         = mkdir -p
    COPY          = cp -f
    COPY_FILE     = $(COPY)
    COPY_DIR      = $(COPY) -r
    INSTALL_FILE  = install -m 644 -p
    INSTALL_PROGRAM = install -m 755 -p
    INSTALL_DIR   = $(COPY_DIR)
    DEL_FILE      = rm -f
    SYMLINK       = ln -sf
    DEL_DIR       = rmdir
    MOVE          = mv -f
    CHK_DIR_EXISTS= test -d
    MKDIR         = mkdir -p
    SUBTARGETS    =  \
            sub-src
    src//$(MAKEFILE):
        @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/
        cd src/ && $(QMAKE) src.pro -unix -o $(MAKEFILE)
    sub-src-qmake_all:  FORCE
        @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/
        cd src/ && $(QMAKE) src.pro -unix -o $(MAKEFILE)
    sub-src: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE)
    sub-src-make_default: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE)
    sub-src-make_first: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) first
    sub-src-all: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) all
    sub-src-clean: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) clean
    sub-src-distclean: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) distclean
    sub-src-install_subtargets: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) install
    sub-src-uninstall_subtargets: src//$(MAKEFILE) FORCE
        cd src/ && $(MAKE) -f $(MAKEFILE) uninstall
    Makefile: qpaddy.pro  /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
            /usr/share/qt4/mkspecs/common/unix.conf \
            /usr/share/qt4/mkspecs/common/linux.conf \
            /usr/share/qt4/mkspecs/qconfig.pri \
            /usr/share/qt4/mkspecs/features/qt_functions.prf \
            /usr/share/qt4/mkspecs/features/qt_config.prf \
            /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
            /usr/share/qt4/mkspecs/features/default_pre.prf \
            /usr/share/qt4/mkspecs/features/release.prf \
            /usr/share/qt4/mkspecs/features/default_post.prf \
            /usr/share/qt4/mkspecs/features/qt.prf \
            /usr/share/qt4/mkspecs/features/unix/thread.prf \
            /usr/share/qt4/mkspecs/features/moc.prf \
            /usr/share/qt4/mkspecs/features/warn_on.prf \
            /usr/share/qt4/mkspecs/features/resources.prf \
            /usr/share/qt4/mkspecs/features/uic.prf \
            /usr/share/qt4/mkspecs/features/yacc.prf \
            /usr/share/qt4/mkspecs/features/lex.prf
        $(QMAKE) -unix -o Makefile qpaddy.pro
    /usr/share/qt4/mkspecs/common/g++.conf:
    /usr/share/qt4/mkspecs/common/unix.conf:
    /usr/share/qt4/mkspecs/common/linux.conf:
    /usr/share/qt4/mkspecs/qconfig.pri:
    /usr/share/qt4/mkspecs/features/qt_functions.prf:
    /usr/share/qt4/mkspecs/features/qt_config.prf:
    /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
    /usr/share/qt4/mkspecs/features/default_pre.prf:
    /usr/share/qt4/mkspecs/features/release.prf:
    /usr/share/qt4/mkspecs/features/default_post.prf:
    /usr/share/qt4/mkspecs/features/qt.prf:
    /usr/share/qt4/mkspecs/features/unix/thread.prf:
    /usr/share/qt4/mkspecs/features/moc.prf:
    /usr/share/qt4/mkspecs/features/warn_on.prf:
    /usr/share/qt4/mkspecs/features/resources.prf:
    /usr/share/qt4/mkspecs/features/uic.prf:
    /usr/share/qt4/mkspecs/features/yacc.prf:
    /usr/share/qt4/mkspecs/features/lex.prf:
    qmake: qmake_all FORCE
        @$(QMAKE) -unix -o Makefile qpaddy.pro
    qmake_all: sub-src-qmake_all FORCE
    make_default: sub-src-make_default FORCE
    make_first: sub-src-make_first FORCE
    all: sub-src-all FORCE
    clean: sub-src-clean FORCE
    distclean: sub-src-distclean FORCE
        -$(DEL_FILE) Makefile
    install_subtargets: sub-src-install_subtargets FORCE
    uninstall_subtargets: sub-src-uninstall_subtargets FORCE
    mocclean: compiler_moc_header_clean compiler_moc_source_clean
    mocables: compiler_moc_header_make_all compiler_moc_source_make_all
    install: install_subtargets  FORCE
    uninstall:  uninstall_subtargets FORCE
    FORCE:
    Any idea ?

  • Can's compile the gdbm program ?(SOLVED)

    Here is an example comes from Beginning Linux Programming 3rd ,and I can't compile it on my machine. I don't know why?? And the gdbm package is always in the base. Please help me.
    try compile 1:
    $gcc dbm1.c -o gdbm1 -lgdbm
    错误信息:
    /tmp/cc2vMknU.o: In function `main':
    dbm1.c: (.text+0x2d): undefined reference to `dbm_open'
    dbm1.c: (.text+0x244): undefined reference to `dbm_store'
    dbm1.c: (.text+0x2ee): undefined reference to `dbm_fetch'
    dbm1.c: (.text+0x379): undefined reference to `dbm_close'
    collect2: ld returned 1 exit status
    try compile 2:
    $ gcc dbm1.c -o gdbm1 -lndbm -L/usr/lib
    错误信息:
    /usr/bin/ld: cannot find -lndbm
    collect2: ld returned 1 exit status
    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <fcntl.h>
    #include <ndbm.h>
    #include <string.h>
    #define TEST_DB_FILE "/tmp/dbm1_test"
    #define ITEMS_USED 3
    /* A struct to use to test dbm */
    struct test_data {
    char misc_chars[15];
    int any_integer;
    char more_chars[21];
    int main() {
    struct test_data items_to_store[ITEMS_USED];
    struct test_data item_retrieved;
    char key_to_use[20];
    int i, result;
    datum key_datum;
    datum data_datum;
    DBM *dbm_ptr;
    dbm_ptr = dbm_open(TEST_DB_FILE, O_RDWR | O_CREAT, 0666);
    if (!dbm_ptr) {
    fprintf(stderr, "Failed to open database\n");
    exit(EXIT_FAILURE);
    /* put some data in the structures */
    memset(items_to_store, '\0', sizeof(items_to_store));
    strcpy(items_to_store[0].misc_chars, "First!");
    items_to_store[0].any_integer = 47;
    strcpy(items_to_store[0].more_chars, "foo");
    strcpy(items_to_store[1].misc_chars, "bar");
    items_to_store[1].any_integer = 13;
    strcpy(items_to_store[1].more_chars, "unlucky?");
    strcpy(items_to_store[2].misc_chars, "Third");
    items_to_store[2].any_integer = 3;
    strcpy(items_to_store[2].more_chars, "baz");
    for (i = 0; i < ITEMS_USED; i++) {
    /* build a key to use */
    sprintf(key_to_use, "%c%c%d",
    items_to_store[i].misc_chars[0],
    items_to_store[i].more_chars[0],
    items_to_store[i].any_integer);
    /* build the key datum strcture */
    key_datum.dptr = (void *)key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum.dptr = (void *)&items_to_store[i];
    data_datum.dsize = sizeof(struct test_data);
    result = dbm_store(dbm_ptr, key_datum, data_datum, DBM_REPLACE);
    if (result != 0) {
    fprintf(stderr, "dbm_store failed on key %s\n", key_to_use);
    exit(2);
    } /* for */
    /* now try and retrieve some data */
    sprintf(key_to_use, "bu%d", 13); /* this is the key for the second item */
    key_datum.dptr = key_to_use;
    key_datum.dsize = strlen(key_to_use);
    data_datum = dbm_fetch(dbm_ptr, key_datum);
    if (data_datum.dptr) {
    printf("Data retrieved\n");
    memcpy(&item_retrieved, data_datum.dptr, data_datum.dsize);
    printf("Retrieved item - %s %d %s\n",
    item_retrieved.misc_chars,
    item_retrieved.any_integer,
    item_retrieved.more_chars);
    else {
    printf("No data found for key %s\n", key_to_use);
    dbm_close(dbm_ptr);
    exit(EXIT_SUCCESS);
    Last edited by 009lin (2007-08-19 02:29:54)

    GDBM includes dbm and ndbm compatability.
    I found the solution from the man page, it said:
    If you wish to use the dbm or ndbm  compatibility  routines,  you  must
           link in the gdbm_compat library as well.  For example:
                gcc -o prog proc.c -lgdbm -lgdbm_compat
    Last edited by 009lin (2007-08-19 02:29:27)

  • HT1657 Once a rented movie is downloaded do I need an Internet connection to view it?  For example can I download a movie and watch it on a flight?

    Once a rented movie is downloaded do I need an Internet connection to view it?  For example can I download a movie and watch it on a flight?

    Please be aware of the movie rental's time limitation that you have 30 days from the time of rental to watch your movie, and once you start watching it, you have 24 hours to finish watching it. You may watch it as many times as you like during those 24 hours. It may be helpful to make sure the download completes successfully before you begin watching the movie.
    Once the download is complete you can watch it without an Internet connection. However, an Internet connection to the iTunes Store is required to authorize playback or activate the 24 hours time-limit of movie rentals. This means, only during the starting of the movie. Once you have started playing the movie rental, internet connection is not required. You can play anywhere without internet connection.
    For more information on movie rentals, you can visit:
    iTunes Store: Movie rental frequently asked questions (FAQ)
    http://support.apple.com/kb/HT1657
    Note: 24 hours time limit is for United States customer only, while 48 hours for other countries.

  • Can't compile.

    Hi,
    I was a VB developer and started to develop using java recently.
    I had to do some modification in a existing java project uses tomcat as the web server. I'm using Jbuilder 9 toas my editor. what I'm doing is open files using jbuilder and do the modification. I did couple of changes in my jsp files and those changes are working fine. Recently I had to do a modification in one of .java file. So I opened the file using Jbuilder and did the modification. then when I tried to compile the file It gave a lot of errors. when i run the site without the change i did to .java file it's working perfectly.
    most of the error like.
    <file name>.package <path> doesnot exist at line <line number>, column<column number>
    but those files exist in relavant folders reffered and i think when i'm compiling the .java file it can't refer those files.
    How can I compile my .java file and make the .class file.
    Thanks in advance.

    hi arijit_datta,
    Here I list down couple of errors I got when trying to compile.
    "LeaveApplication.java": package com.HRM.eLeave.dbhandle does not exist at line 3, column 35
    "LeaveApplication.java": package com.HRM.eLeave.util does not exist at line 11, column 1
    "LeaveApplication.java": cannot resolve symbol: class Environment in class com.HRM.eLeave.leaveApplication.LeaveApplication at line 31, column 72
    "LeaveApplication.java": cannot resolve symbol: class Environment in class com.HRM.eLeave.leaveApplication.LeaveApplication at line 397, column 19

  • (I can't compile it .I don't know how to write constructor in Initial Class

    All class and main program is OK except the inital class.
    Author Class
    class Author {
    private String authorName;
    private Initials inits;
    private int numTitles = 0;
    // PRE True POST Prompts user for details
    // and RETURNS new Author constructed from details
    public Author(BufferedReader in) {
    System.out.print("\nSurname ==> ");
    authorName = Text.ReadString(in);
    inits = new Initials(in);
    numTitles = 0;
    // PRE TRUE
    // POST RETURNS String representation of Author
    public String toString() {
    String result;
    result = "NAME : " + authorName + " " + inits.toString() + "\n";
    result = result + "Number of titles is " + numTitles;
    return(result);
    // PRE TRUE
    // POST Increments number of titles
    public void incTitles() {
    numTitles++;
    Book Class
    public class Book {
    private String title;
    private Author author;
    // PRE TRUE // POST Prompts user for details
    // and RETURNS new Author constructed from details
    public Book(Author author, BufferedReader in) {
    System.out.print("\nTitle ==> ");
    title = Text.ReadString(in);
    this.author = author;
    author.incTitles();
    // PRE TRUE
    // POST RETURNS String representation of Book
    public String toString() {
    String result;
    result = "TITLE : " + title + "\n";
    result = result + "AUTHOR\n" + author.toString() + "\n";
    return(result);
    *****Initial Class (I can't compile it . I don't know how to write constructor
    class Initials
    {   private char[] inits;
         public Initials(BufferedReader in)
         System.out.print("\nInitails Testing ==> ");
         inits = Text.ReadString(in);
         public String toString()
              String result;
              result="Testing";
              return(result);
    Main program
    public class BookMain {
    static private BufferedReader in = new BufferedReader(new                                    InputStreamReader(System.in));
    public static void main(String[] args) {
    Author authorRec1, authorRec2;
    Book bookRec1, bookRec2;
    System.out.println("\n\n****** First author input");
    authorRec1 = new Author(in);
    System.out.println("\n\n****** First author output\n" + authorRec1.toString());
    System.out.println("\n\n****** Second author input");
    authorRec2 = new Author(in);
    System.out.println("\n\n****** Second author output\n" + authorRec2.toString());
         System.out.println("\n\n****** First book input");
    bookRec1 = new Book(authorRec2, in);
    System.out.println("\n\n****** First book output\n" + bookRec1.toString());
    System.out.println("\n\n****** Second book input");
    bookRec2 = new Book(authorRec2, in);
    System.out.println("\n\n****** Second book output\n" + bookRec2.toString());
    System.out.println("\n\n****** First book output\n" + bookRec1.toString());

    Change this
    class Initials {
    private char[] inits;
    to this
    class Initials {
    private String inits;
    import java.io.*;
    public class BookTest {
      static private BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      public static void main(String[] args) {
        Author authorRec1, authorRec2;
        Book bookRec1, bookRec2;
        System.out.println("\n\n****** First author input");
        authorRec1 = new Author(in);
        System.out.println("\n\n****** First author output\n" + authorRec1.toString());
        System.out.println("\n\n****** Second author input");
        authorRec2 = new Author(in);
        System.out.println("\n\n****** Second author output\n" + authorRec2.toString());
        System.out.println("\n\n****** First book input");
        bookRec1 = new Book(authorRec2, in);
        System.out.println("\n\n****** First book output\n" + bookRec1.toString());
        System.out.println("\n\n****** Second book input");
        bookRec2 = new Book(authorRec2, in);
        System.out.println("\n\n****** Second book output\n" + bookRec2.toString());
        System.out.println("\n\n****** First book output\n" + bookRec1.toString());
    class Author {
      private String authorName;
      private Initials inits;
      private int numTitles = 0;
      // PRE True POST Prompts user for details
      // and RETURNS new Author constructed from details
      public Author(BufferedReader in) {
        System.out.print("\nSurname ==> ");
        authorName = Text.ReadString(in);
        inits = new Initials(in);
        numTitles = 0;
      // PRE TRUE
      // POST RETURNS String representation of Author
      public String toString() {
        String result;
        result = "NAME : " + authorName + " " + inits.toString() + "\n";
        result = result + "Number of titles is " + numTitles;
        return(result);
      // PRE TRUE
      // POST Increments number of titles
      public void incTitles() {
        numTitles++;
    class Book {
      private String title;
      private Author author;
      // PRE TRUE // POST Prompts user for details
      // and RETURNS new Author constructed from details
      public Book(Author author, BufferedReader in) {
        System.out.print("\nTitle ==> ");
        title = Text.ReadString(in);
        this.author = author;
        author.incTitles();
      // PRE TRUE
      // POST RETURNS String representation of Book
      public String toString() {
        String result;
        result = "TITLE : " + title + "\n";
        result = result + "AUTHOR\n" + author.toString() + "\n";
        return(result);
    class Initials {
      private String inits;
      public Initials(BufferedReader in) {
        System.out.print("\nInitails Testing ==> ");
        inits = Text.ReadString(in);
      public String toString() {
        String result;
        result = inits;
        return(result);
    class Text {
      static String ReadString(BufferedReader in) {
        String text = "";
        try {
          text = in.readLine();
        catch (IOException e) {
          System.out.println(e.getMessage());
          System.exit(0);
        return text;
    }

  • (short)a=1 can't compiled??

    Deal all:
    I am new to java.
    If i type as below:
    short a=1;b=2; ->can compiled
    short a,b; a=1;b=2 -> can't compiled
    short a,b;a=(short)(1);->can't compiled
    can anyboby tell me Why?
    Thanks!!!

    hi,
    i was able to compile the below statements below with jdk 1.3.
    short a=1,b=2; //->can compiled
    short a,b; a=1;b=2;// -> can't compiled
    short a,b;a=(short)(1);//->can't compiled
    if these does not work with ur version, please do send us ur error.
    regards,
    shiva

  • Can i compile new procedures/packages on my snapshot standby?

    Hi
    can i compile new procedures/packages on my snapshot standby?
    I need to test the new release of the application, which include some changes to current packages
    thanks

    yes you can do it, just that it will be flashbed back to the restore point when it was standby first, do anything on it, but be aware that later you convert from snapshot standby to physical standby, more time it would take for redo to be applied and also it is mandatory to open the snapshot at least once in read-write mode before it can be converted into a physical standby database.
    Regards
    Karan

  • I have jsdk2, but I can't compile servlet program

    I have jsdk2 version. which create in my c:\ dirve a folder jdk1.3. I do all the program from that. But I found that some of the class files of Servlet (servletRespose etc ) is missing. What I do to recover that. Even I can't compile any servlet program from that. Pls reply to my problems.
    Regards.
    Ranjan

    The Servlet API is part of J2EE (Java 2 Enterprise Edition). It is not included in the Standard Edition.
    So you need to download and install the J2EE reference implementation or another servlet engine such as Apache Tomcat ( http://jakarta.apache.org/tomcat ). Don't forget to put the Tomcat JAR files in your CLASSPATH when compiling your servlet program.
    Jesper

  • I can't compile this, why?

    I do not possess any means of compiling any .java file that imports javax.* or anything J2SE-related, thus, I have to compile it remotely on a remote host (www.myjavaserver.com), however, for some reason this file will not compile but will not produce any errors, warnings, or any display of any kind - but no .class file is ever found.
    import java.io.*, java.util.*, javax.servlet.*, javax.servlet.http.*;
    * Borrowed from http://forum.java.sun.com/thread.jspa?threadID=703076
    * @access public
    * @author Phil Powell
    public class RequestParameterResetter extends HttpServletRequestWrapper {
        private HttpservletRequest origRequest;
        private Map<String, String> parameterMap;
        public RequestParameterResetter(HttpServletRequest request) {
            super(request);
            origRequest = request;
            parameterMap = new HashMap<String,String>();
        public String setParameter(String key, String value) {
            String oldValue = parameterMap.put(key,value);
            if (oldValue == null) oldValue = origRequest.getParameter(key);
            return oldValue;
        public String getParameter(String key) {
            String value = parameterMap.get(key);
            if (value == null) value = origRequest.getParameter(key);
            return value;
    }Could someone tell me what I'm missing in order for this to properly compile?
    Thanx
    Phil

    Sorry I can't do that, as much as I want to. My
    computer is very ancient and has too little memory to
    run any kind of server program, especially a
    Java-related one. I tried with Eclipse a while back
    (2 years ago and never figured it out, way too hard
    in spite of my PC's inability to interact with it)
    nearly destroyed my machine with it.You actually don't need to run any server. You just need to get the .JAR files (you should try to get the same server and version that you deploy on ... but that may not be possible). Then you put them in your Java Classpath, and you will be able to compile (from command line, or whatever). You could then un-install the server if you wanted to...
    >
    That means I can only compile J2SE formatted classes
    remotelyThat would be J2EE. J2SE is the standard edition, where you get the compiler, java.lang.String, java.util.Date, and all the rest of the core stuff. J2EE is the enterprise edition for getting the javax.servlet packages (among others).
    More comments on how you might change added as comments in the code...
    on www.myjavaserver.com - provided it is
    working.
    I made the changes necessary and still can't compile
    it!
    package ppowell;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * Borrowed from
    m
    http://forum.java.sun.com/thread.jspa?threadID=703076
    * @version JSDK 1.2
    The class is a Java 5.0 class, it won't compile to JSDK 1.2.
    Ask myjavaserver.com to see how you can get ahold of the error logs so you can see what messages are generated.
    * @author Phil Powell
    * @package PPOWELL
    public class RequestParameterResetter extends
    HttpServletRequestWrapper {
    private HttpServletRequest origRequest;
    private Map<String, String> parameterMap;//if you want to use non JSE 5.0, then this line should be:
    //        private Map parameterMap;
    >
    public
    blic RequestParameterResetter(HttpServletRequest
    request) {
    super(request);
    origRequest = request;
    parameterMap = new HashMap<String,String>();//if you want to use non JSE 5.0, then this line should be:
    //            parameterMap = new HashMap();
    public String setParameter(String key, String
    ring value) {
    String oldValue = parameterMap.put(key,value);//if you want to use non JSE 5.0, then this line should be:
    //        String oldValue = (String) parameterMap.put(key,value);
    if (oldValue == null) oldValue = origRequest.getParameter(key);
    return oldValue;
    public String getParameter(String key) {
    String value = parameterMap.get(key);//if you want to use non JSE 5.0, then this line should be:
    //            String value = (String)parameterMap.get(key);
    if (value == null) value =
    value = origRequest.getParameter(key);
    return value;

  • I can't compile in WindowsXP? =(

    Hello everyone,
    I upgraded my PC to WindowsXP, but when I try to compile my java progs in the command prompt, I get the following error:
    ' javac' is not recognized as an internal or external command, operable program or batch file.
    Can anyone help me with this problem, cause I can't compile java programs anymore =(

    Because I'm new to Java, does anyone happen to know where I can get a bytecode compiler so I can make programs that run with .exe (Like every commercial program out there? Or is there no solution to that?<You got your terminology wrong. "javac" is a bytecode compiler. It converts java source into "bytecodes" that run on a "Virtual Machine". To create an "exe" you must have a "native" compiler. There are a few available, the good ones are commercial and cost a lot of money. It also turns out that Sun's server VM (default in 1.4 now) is faster then some of these pricey native compilers in many situations. This is because modern VM's use JIT's or "Just In Time" compilers to create native code on the fly.
    My advice to you is this. Use one of the many nice deployment methods available for java before you start to worry about native compilation. "executable jars", Java Web Start, bootstrap launching programs... all are good options.

Maybe you are looking for