Compiler Error! ***HELP***

I'm trying to compile RTPPlayerApplet.java and DataSource.java(All from Samples of JMF)
WinXP Pro
JMF 2.1.1
But there are some errors:
Even I HAVE LiveStream.class,CLASSPATH is right...
Compile command:java -classpath LiveStream DataSource.java
(They are in the same dir.)
4 errors are all about LiveStream,eg:cannot resolve symbol.
Then I try to compile RTPPlayer.java
the errors are about ParticipantListWindow
Why?
Please reply me soon.

if the sample apps for any API don't compile, the cause is 99% of the time an incorrect classpath.

Similar Messages

  • Can't Export Movie - Unknown Compile Error - Help!

    I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it.  At some point during the export, and it seems to vary, I get an unknown compile error.  I've been trying to export the movie for the past week and all I get is failure despite trying just about everything I've found written about how to solve this.
    I have Win 7 Ultimate SP 1 running on a Lenovo desktop machine with an Intel Core 2 Quad CPU at 2.67 GHz, 4GB of RAM, 32 bit proc.
    Premiere is installed on system C drive with 6 GB of free space.
    Project and scrach disks are on D drive with 165 GB of free space.
    Media files are on 2nd E drive with 50GB of free space.
    Project and most source material is NTSC DV -- there are quite a few photos with motion, plus some iPhone HD video on the timeline, hundreds of clips in all plus narration, a few titles, etc.
    Export destination folder is on D drive.
    Everything will render to green lines atop timeline (sometimes it quits during render and I have to keep hitting Enter to continue rendering, but eventually it's all green)
    So far I've tried:
    - Reinstalling PE 10
    - Reinstalling Quicktime
    - Copying all the photos to their own separate folder
    - Editing each photo slightly (outside of PE 10) and resaving to make sure none of the photos are corrupted
    - Emptying the temp folder
    - Deleting all the renders and cache files and letting them rebuild
    - Exporting small pieces of the timeline to try to identify a bad clip -- this is a maddening process and I did find one clip that would generate the error, but I managed to export that to AVI and reimport and replace on timeline.  It would be awfully nice if PE would just TELL ME which clip it doesn't like if in fact it's a clip error.
    - Turning off the shadow / highlight feature I had on some clips, but this wasn't the issue, smaller sections with these clips exported fine
    - Tried exporting to various formats: Vimeo SD, MPEG DV Standard, iPad Standard High Quality, AVI -- all result in the same error (the format I want by the way is Vimeo SD)
    - Rebooting the machine and turning everything off that might possibly consume memory
    This machine has never had problems exporting in the past.  One thing I did try that worked -- installed PE 10 on another (less capable) Win 7 machine, and fed it all the media via an external drive.  The other machine did the export fine (though it took a while given it is underpowered).  This is nothing more than a work around though as I don't normally have access to this machine and I'm not done editing.
    I'm at my wits' end!  What else can I do to get this movie file to export?
    Appreciate any help or clues you can provide to solve this mystery.

    Oh, that is tragic!
    I never had any issues with mine. Maybe it knew how respectful I was, having come from manual rewinds and a sync block? The Moviola was a godsend, at least for me. I am glad that I got to edit film, and on many setups, as some of that translated well to digital Video. Back when I was in film school, Video was 2" tape, and the only editing was by cutting at a 45 degree angle, and splicing the tape. There was not even deck-to-deck editing, way back then. Also, Video looked like crap, at least to my eyes. We could only use a switcher, to "edit," or do a feed to air. Looked like crap!
    As for the Lexus, I can imagine all sorts of problems. My new LX-570 requires me to "Accept," when I put it into reverse, on the rear-view monitor! At least my wife's MB does not require that, but it is a 2011 model, so maybe the 2013 models will require that the user sign off on all sorts of "stuff."
    Now, I can play Finding Nemo, for my rear-seat passengers, while driving, but the front-seat passengers cannot see it, which is just fine. When driving, I am not even a fan of hands-free calls, and declined most of the streaming stock quotes, etc. for XM/Sirius radio. NOT while I am driving. I will save that for reading the WSJ in the club at the airport.
    Some years ago, our driver in London got a new BMW 7-series, and it allowed the playing of DVD's, even in the front, while driving. Not sure that I would want that, but such is life. At least his seats' ventilation system was "well-chilled," where ours' are just air. He almost froze my bum, showing off his new auto.
    Now, working with PS, or PrE in an auto, or even on a mobile device, is just not something that I can wrap my old head around. I want a fast computer, with a big display, and cannot imagine editing Images, or Video, on any handheld (or auto) device.
    Hunt

  • Procedure created with compilation errors. help?

    SQL> create or replace procedure p_update_audit_log
    2 ( p_audit_id audit_log.audit_id%type
    3 p_grade_update audit_log.grade_update%type
    4 p_grade audit_log.grade%type
    5 sys_date
    6 p_user_id audit_log.user_id%type
    7 is
    8 BEGIN
    9 insert into audit_log (user_id, audit_id, grade, grade_update,
    10 sys_date)
    11 values (p_user_id, p_audit_id, p_grade, p_grade_update, sys_date);
    12 END p_update_audit_log;
    13
    14
    15
    16
    17
    18 /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE P_UPDATE_AUDIT_LOG:
    LINE/COL ERROR
    3/1 PLS-00103: Encountered the symbol "P_GRADE_UPDATE" when expecting
    one of the following:
    := ) , default character
    The symbol "," was substituted for "P_GRADE_UPDATE" to continue.
    4/1 PLS-00103: Encountered the symbol "P_GRADE" when expecting one of
    the following:
    := ) , default character
    The symbol "," was substituted for "P_GRADE" to continue.
    5/1 PLS-00103: Encountered the symbol "SYS_DATE" when expecting one
    LINE/COL ERROR
    of the following:
    := ) , default character
    The symbol ", was inserted before "SYS_DATE" to continue.
    7/1 PLS-00103: Encountered the symbol "IS" when expecting one of the
    following:
    := ) , default character
    The symbol ")" was substituted for "IS" to continue.
    Could anyone help me with this problem?

    These are syntax errors:
    Try this
    create or replace procedure p_update_audit_log
    ( p_audit_id audit_log.audit_id%type,
    p_grade_update audit_log.grade_update%type,
    p_grade audit_log.grade%type,
    sys_date DATE,
    p_user_id audit_log.user_id%type)
    is
    BEGIN
    insert into audit_log (user_id, audit_id, grade, grade_update,
    sys_date)
    values (p_user_id, p_audit_id, p_grade, p_grade_update, sys_date);
    END p_update_audit_log;

  • Compile error help

    hi
    i have the following code which is a retrive method from an array list
    however im getting a compile error i dont understand, it says:
    "non-static method get Firstname() cannot be referenced from a static context"
    if anybody is able to tell me where iv gone wrong id very much appreciate it
    public Player retrievePlayer(String firstname, String surname)
            Player retPlayer = null;
            for (Player player : players)
                if (Player.getFirstname().equals(firstname) ||
                  Player.getSurname().equals(surname))
                    retPlayer = player;
            return retPlayer;
        }

    Don't you mean:
    public Player retrievePlayer(String firstname, String surname)
            Player retPlayer = null;
            for (Player player : players)
                if (player.getFirstname().equals(firstname) ||
                  player.getSurname().equals(surname))
                    retPlayer = player;
            return retPlayer;
        }

  • Compiling error. help!!!!!!

    in .cc file only one statement:
    #include"dmcb.hh"
    in dmcb.hh, just one template class was defined:
    #ifndef DM_CB_h_1
    #define DM_CB_h_1
    #include<DMCBContainer.hh>
    template <class TData,class TObject>
    class DM_CB : public DM_CBContainer<TData>
    public :
    DM_CB(TObject* target_to_store )
       : target(target_to_store)
        target = target_to_store ;
      DM_CB(const DM_CB<TData,TObject>& original) :   target(original.target)
      virtual ~DM_CB()
      TObject* get_target() const {return target.resolve();};
      void* get_CBtarget() const {return target.resolve();}; 
      static os_typespec*     get_os_typespec();
    protected :
       os_Reference<TObject> target ;
    #endif then I compiled it as follow:
    CC -library=rwtools7,iostream -c dmcb.o dmcb.cc
    it report error:
    1.Error: "}" expected instead of "end of file".
    2 Use ";" to terminate declarations
    Does anybody experience such problem ? Please help me !! thank you!!

    Unfortunately, the Forum software sometimes drops things in angle brackets, so the include statement, and possibly some other code, is missing. Types os_Reference and os_typespec are not declared in the sample code. I added typedefs declaring them "int" and the code compiled OK by itself using several Sun compilers. (You don't say which compiler you are using.)
    Maybe the problem is in whatever files you are including.
    But your problem might also be related to the code organization. You are not following the Sun C++ rules for template definition files. The rules are these:
    If you separate template declarations and template definitions, put the declarations in a file T.h and the corresponding definitions in a file T.cc (or T.cpp, T.cxx, T.c). The T.c file must contain the definitions for the templates declared in T.h, and nothing else. No #include directives, no other declarations.
    When the compiler sees a declaration for template X in T.h but not a needed definition, it automatically includes file T.cc if it exists.
    This example is backwards, and runs the risk of recursive file inclusion until the compiler runs out of memory, or exceeds some other system limit.
    Try fixing the code organization first. If that does not eliminate the problem, try posting the code again putting a space before and after each "<" and ">". Also be sure to preview your post to be sure it looks the way you expect.

  • I created my first program-compiling error-help please

    hey there
    i just wanted my first program in java and here it is below with the eroor when i'm compiling it, i cant understand whats wrong:
    public class SquareArea {
         public static void main(String[] args); {
         float length;
         float width;
         float SquareArea;
         System.out.println ("Please enter length"+ length);
         System.out.println ("Please enter width"+ width);
         SquareArea= length*width;
         System.out.println ("The area of the square is" + SquareArea);
    The error is:C:\Documents and Settings\User\Desktop\SquareArea.java:5: missing method body, or declare abstract
         public static void main(String[] args); {
    ^
    1 error
    Tool completed with exit code 1

    There shouldn't be a semicolon between the ")" and the "{" near the end of that line.
    With that semicolon, you're basically defining an empty, zero-size main method, and then throwing a bunch of garbage after it. That's what the compiler thinks anyway. Remove that semicolon and it should compile OK.
    But it won't work super well, because you're not actually getting any input for length and width. It's just going to output this:
    Please enter length0
    Please enter width0
    The area of the square is0

  • Compile error help please ...

    I was reading the article on RE (http://developer.java.sun.com/developer/technicalArticles/releases/1.4regex/) to try to get a better understanding of regular expression use in Java. When I try to compile
    the following:
    * Prints out the comments found in a .java file.
    import java.util.regex.*;
    import java.io.*;
    import java.nio.*;
    import java.nio.charset.*;
    import java.nio.channels.*;
    public class CharBufferEx {
        public static void main(String[] args) throws Exception {
            // Create a pattern to match comments
            Pattern p =
                Pattern.compile("//.*$", Pattern.MULTILINE);
            // Get a Channel for the source file
            File f = new File(" Replacement.java ");
            FileInputStream fis = new FileInputStream(f);
            FileChannel fc = fis.getChannel();
            // Get a CharBuffer from the source file
            ByteBuffer bb =
                fc.map(FileChannel.MAP_RO, 0, (int)fc.size());
            Charset cs = Charset.forName("8859_1");
            CharsetDecoder cd = cs.newDecoder();
            CharBuffer cb = cd.decode(bb);
            // Run some matches
            Matcher m = p.matcher(cb);
            while (m.find())
                System.out.println("Found comment: "+m.group());
    } I get the following error:
    CharBufferEx.java:23: cannot resolve symbol
    symbol  : variable MAP_RO
    location: class java.nio.channels.FileChannel
                fc.map(FileChannel.MAP_RO, 0, (int)fc.size());
                                  ^
    1 errorAny ideas on what is wrong?
    Thanks.
    SA
    :)

    Let me be more clear. Don't guess at what it means, tell me what its data type is. Post some documentation about it. The compiler is telling you there's no such thing, so what you need to do is figure out why it thinks so. Think like the compiler. If you had to go open up a class file to find FileChannel.MAP_RO, what class file would it be, and what would you find? Or, does it exist at all?

  • Help with Data Block Based on Procedure--getting compilation error

    I am trying to create a datablock based on a procedure , but im getting errors in compilation:
    Errors are :
    1) identifier 'HSM_WSH_DEL_UTIL.DEL_TBL' must be declared
    2)PL/SQL ERROR 320 at line 7, column 27
    the declaration of the type of this expression is incomplete or malformed
    ANy Help would be appreciated !
    Heres my pkg spec and body for the data block:
    CREATE OR REPLACE PACKAGE hsm_wsh_del_util IS
    TYPE del_record is record
    (delivery_id number);
    TYPE del_tbl is table of del_record INDEX BY BINARY_INTEGER;
    procedure do_query(p_del IN OUT del_tbl);
    END hsm_wsh_del_util ;
    CREATE OR REPLACE PACKAGE BODY hsm_wsh_del_util IS
    procedure do_query(p_del IN OUT del_tbl)
    IS
    idx number :=1;
    CURSOR DELIVERY IS
    SELECT DELIVERY_ID
    FROM abc_deliveries;
    begin
    FOR CUR IN DELIVERY LOOP
    p_del(idx).delivery_id :=cur.delivery_id;
    idx:= idx+1;
    END LOOP;
    end do_query;
    END hsm_wsh_del_util;
    Edited by: 981170 on Mar 13, 2013 1:08 PM

    Hi,
    Yes I did use the wizard,
    I agve it the package.proc name for query.
    it pulled up the field delivery ID,
    Hit finish, because I do not need update/delete/inserts.
    the query data source columns and arguments was defaulted correctly.
    THe QUERY-PROCEDURE was built by default.
    It is giving me an error though: wrong number or types of arguments in call to POPULATE_BLOCK..
    DECLARE
    bk_data HSM_WSH_DEL_UTIL.DEL_TBL;
    BEGIN
    hsm_wsh_del_util.do_query(bk_data);
    PLSQL_TABLE.POPULATE_BLOCK(bk_data, 'NEW_DELIVERIES');
    END;

  • Help! Compiling error

    Hello guys!
    I',m having this bizare compiling error in the following code:
    Stirng test = "Test ; test ; test";
    String[] tests = test.split(";");
    System.out.printLine(tests.lengh());First off it highlights tests.length() and says in cannot find symbol, second When I compile it anyways it says ERROR, incompatible source code.... Thanks alot for your help
    best regards
    Michel

    mbehlok wrote:
    Hello guys!
    I',m having this bizare compiling error in the following code:
    Stirng test = "Test ; test ; test";
    String[] tests = test.split(";");
    System.out.printLine(tests.lengh());First off it highlights tests.length() and says in cannot find symbol, second When I compile it anyways it says ERROR, incompatible source code.... Thanks alot for your help
    best regards
    Michel
    String test = "Test ; test ; test";
      String[] tests = test.split(";");
      System.out.println(tests.length);
    In Java, there is no length() method i Array Class. It is a property. So, use like this.....
    Edited by:Mrityunjay Kumar on Oct 31, 2009 4:15 PM

  • Warning: View altered with compilation errors. : Please help.

    Hi All,
    Found few views invalid, tried to compile them, but got the following error. It looks like synonyms are calling each other.
    Please help to compile the view.
    =======================
    SQL> alter view APPS.PER_ADDRESSES_AV12 compile;
    Warning: View altered with compilation errors.
    Checked error:
    SQL> SHOW errors VIEW APPS.PER_ADDRESSES_AV12;
    Errors for VIEW APPS.PER_ADDRESSES_AV12:
    LINE/COL ERROR
    0/0 ORA-01775: looping chain of synonyms
    Extracted DDL:
    ==========
    CREATE OR REPLACE FORCE VIEW "APPS"."PER_ADDRESSES_AV12" ("ROW_KEY", "ADDRESS_
    ID", "TOWN_OR_CITY") AS
    SELECT ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES_A WHERE TOWN_OR_CI
    TY IS NOT NULL OR SUBSTR(AUDIT_TRUE_NULLS,12,1)='Y' UNION ALL SELECT 99991231235
    9591111122222 ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES
    Checked synonyms for the base table:
    =======================
    OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME
    PUBLIC PER_ADDRESSES HR PER_ADDRESSES
    APPS PER_ADDRESSES HR PER_ADDRESSES
    XXHRC PER_ADDRESSES APPS PER_ADDRESSES
    Edited by: 784786 on Dec 22, 2011 7:27 AM

    784786 wrote:
    Found few views invalid, tried to compile them, but got the following error. It looks like synonyms are calling each other.
    Please help to compile the view.
    SQL> alter view APPS.PER_ADDRESSES_AV12 compile;
    Warning: View altered with compilation errors.
    SQL> SHOW errors VIEW APPS.PER_ADDRESSES_AV12;
    Errors for VIEW APPS.PER_ADDRESSES_AV12:
    LINE/COL ERROR
    0/0 ORA-01775: looping chain of synonyms
    CREATE OR REPLACE FORCE VIEW "APPS"."PER_ADDRESSES_AV12" ("ROW_KEY", "ADDRESS_
    ID", "TOWN_OR_CITY") AS
    SELECT ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES_A WHERE TOWN_OR_CI
    TY IS NOT NULL OR SUBSTR(AUDIT_TRUE_NULLS,12,1)='Y' UNION ALL SELECT 99991231235
    9591111122222 ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES
    OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME
    PUBLIC PER_ADDRESSES HR PER_ADDRESSES
    APPS PER_ADDRESSES HR PER_ADDRESSES
    XXHRC PER_ADDRESSES APPS PER_ADDRESSESso break the chain by dropping one or of them

  • Help with compilation error

    Hello
    I have a problem with my jsp developement. When i create a jsp (with no beans) i test it and it runs fine (not good but fine), then when I test it with multiple users at time, it generate a jsp compilation error ie. "missing term }" and I can not figure out why it is getting that error, it has been compilated before! so it should not generate a compilation error, becouse i'm not editing the jsp source. I think that every time the jsp is requested the virtual machine is re-compiling it, but is only what i thing and i don't know why... can any body help me? please.
    I apologize for my bad english
    Thank you for your time reading this.

    Sorry becouse i can't be more espesific with the error that i get, that error is complete apears in a complete randomic way, I mean taht it apears when nerver is expected or doesn't apear when is expected, only thing that i got of that error is that the compiler some time says that are mising semi-colon (;), some time says that are mising quotation marks (") or are mising }, the error is no the same allways no mater the situation, I can run the jsp in my pc but the error doesn't apear, thats very strange becouse the compilation error apear after the jsp was executed with no errors.
    this is my jsp:
    <%@ page import="java.util.Calendar,java.text.SimpleDateFormat,java.util.Date,java.util.Stack,java.util.Enumeration, java.util.Hashtable,java.sql.*, java.util.Vector" %>
    <%@ include file="../incs/dbpool_inc.jsp" %>
    <%@ include file="funciones.jsp"%><html>
    <head>
    <title>Resolver preguntas</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="../css/0001.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <% //to get user data from the session.
         String userid = session.getAttribute("idu") != null ? (String)session.getAttribute("idu") : "";
         String asign = session.getAttribute("idHomeAssignatura") != null ? (String)session.getAttribute("idHomeAssignatura"): "";
         String idcuest = session.getAttribute("idcuest") != null ? (String)session.getAttribute("idcuest") : "";
         String secuenc = session.getAttribute("secuenc") != null ? (String)session.getAttribute("secuenc") : "";     
         String secuens = request.getParameter("secuens") != null ? request.getParameter("secuens") : "0";
         //to know if it's aloww to save cahnges in the database
         boolean guardar = request.getParameter("guardar") != null ? (request.getParameter("guardar")).equals("si")? true: false :false;
         if(userid.equals("")|| asign.equals("")){//if 1          
              out.println("</head><body><font face=\"Arial\" size=\"2\" color=\"#000000\"><b>El tiempo de conexi&oacute;n ha expirado. Para ingresar de nuevo al sistema haga click aqu&iacute;.</b></font></body></html>");
         }//fin if 1
         else{//else de if 1          
              try{// try 1
                   Connection conn = dbpool.getConnection();
                   Statement stmtt = conn.createStatement();
                   Statement stmtmod = conn.createStatement();
                   Statement stmtresp = conn.createStatement();
                   ResultSet rsmodul = stmtmod.executeQuery("select id_modulo from eit_cuestxmat where id_cuestionario="+idcuest);
                   String modulo = rsmodul.next()? rsmodul.getString("id_modulo"): "";
                   rsmodul.close();
                   stmtmod.close();
                   int secuencia1 = Integer.parseInt(secuens);
                   int secuencia2 = Integer.parseInt(secuenc)+1;
                   secuenc = (secuencia1 == secuencia2)? String.valueOf((Integer.parseInt(secuenc)+1)): secuenc;
                   session.setAttribute("secuenc", secuenc);               
                   if(esAlumno(userid, stmtt, asign)){//if 2
                   if(guardar){//if 2.0
                             String idpreg1 = request.getParameter("idpregunta") != null ? request.getParameter("idpregunta") : "";
                             ResultSet rstipop = stmtt.executeQuery("select tipo from eit_pregunta where id_pregunta="+idpreg1);                         
                             String tipop1 = rstipop.next()? rstipop.getString("tipo") : "";
                             rstipop.close();
                             String respuesta = "N/A", correspondencia ="";                         
                             String restado="n";
                             String rcorrecta = "n";
                             if(tipop1.equals("selec")){
                                  correspondencia = request.getParameter("rprevia") != null? request.getParameter("rprevia") : "-1";
                                  ResultSet rscorrecta = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                           idpreg1+" and id_opcion="+correspondencia+" and escorrecta like 's'");
                                  if(rscorrecta.next()){
                                       rcorrecta = "s";
                                  rscorrecta.close();
                             else{
                                  if(tipop1.equals("empar")){
                                       ResultSet rsempar = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                                idpreg1+ "order by orden");
                                       int corres = 0;
                                       int correctas = 0;
                                       while(rsempar.next()){                                   
                                                 String resp = request.getParameter("selopc"+String.valueOf(corres+1)) != null? request.getParameter("selopc"+String.valueOf(corres+1)) : "";
                                                 correspondencia=correspondencia+((corres == 0)? "":",")+resp;
                                                 correctas = correctas + (resp.equals(rsempar.getString("escorrecta"))? 1 : 0);
                                                 corres++;
                                       rcorrecta = String.valueOf(correctas);
                                       rsempar.close();
                                  else{
                                       if(tipop1.equals("complet")){
                                            ResultSet rscomplet= stmtt.executeQuery("select correspondencia from eit_opciones where id_pregunta="+idpreg1);
                                            String complet = rscomplet.next()? rscomplet.getString("correspondencia"):"";
                                            rscomplet.close();
                                            String complet1 = "";
                                            int idxcar = complet.indexOf("$");
                                            respuesta = request.getParameter("comp0") != null ? request.getParameter("comp0") : "";
                                            correspondencia = request.getParameter("comp1") != null ? request.getParameter("comp1") : "";
                                            int corrc =0;
                                            if(idxcar>=0){
                                                 complet1 = complet.substring((idxcar+1),complet.length());
                                                 complet = complet.substring(0, idxcar);
                                                 corrc = (respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 corrc = (correspondencia.equalsIgnoreCase(complet1))? (corrc+1) : corrc;
                                                 rcorrecta = (corrc==2)? "s": (corrc==1)? "m": "n";
                                            }else{
                                                 corrc=(respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 rcorrecta = (corrc==1)? "s": "n";
                                       else{
                                            if(tipop1.equals("abierta")){
                                                 respuesta = request.getParameter("respuesta") != null? request.getParameter("respuesta") : "";
                             String guardarResp = "insert into eit_respuesta(id_pregunta, id_cuestionario, id_materia, id_modulo"+
                                                      ", respuesta, correspondencia, rcorrecta, restado, sec_pregunta, codest)"+
                                                      " values ("+idpreg1+", "+idcuest+", '"+asign+"', "+modulo+", '"+respuesta+"', '"+correspondencia+"', '"+rcorrecta+"', '"+restado+"', "+
                                                      String.valueOf((Integer.parseInt(secuenc)-1))+", "+userid+")";
                             String sqlexistencia = "select id_pregunta from eit_respuesta where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia="+
                                                           asign+" and id_modulo="+modulo+" and id_pregunta="+idpreg1;                         
                             boolean existeResp = (stmtt.executeQuery(sqlexistencia)).next();
                             String editarResp = "update eit_respuesta set respuesta='"+respuesta+"', correspondencia='"+correspondencia+"', "+
                                                      "rcorrecta='"+rcorrecta+"', restado='"+restado+
                                                      "' where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia like '"+
                                                      asign+"' and id_modulo="+modulo+" and id_pregunta="+idpreg1;
                             //if the page is editing execute string editarResp else execute string guardarResp
                             stmtt.executeUpdate(existeResp? editarResp:guardarResp);
                        String sqlbpu="select p.enunciado, p.tipo, p.titulo, p.id_pregunta from eit_pregunta p, eit_prexcuest pxc where pxc.id_cuestionario="+idcuest+" and pxc.id_pregunta = p.id_pregunta and pxc.secuenc= "+String.valueOf(secuenc);//bupu: buscar pregunta cuestionario
                        //System.out.println("resolvpreg.jsp "+sqlbpu);
                        ResultSet rsbpu = stmtt.executeQuery(sqlbpu);
                        if(rsbpu.next()){ // if 2.1
                             String enunciado = rsbpu.getString("enunciado");
                             String tipo = rsbpu.getString("tipo");
                             String titulo = rsbpu.getString("titulo");
                             String idpreg = rsbpu.getString("id_pregunta");
    %>
    <h1 align="center"><font color="#0033CC" face="Arial, Helvetica, sans-serif"><%=titulo%></font></h1><br>
    <p align="left"><font face="Arial, Helvetica, sans-serif">
    <strong>Enunciado:</strong> <%=enunciado%>. </font><br>
    <%
         String sqlrespuesta = "select respuesta, correspondencia from eit_respuesta where id_pregunta="+idpreg+
    " and id_cuestionario = "+idcuest+" and id_materia like '"+asign+"' and id_modulo="+modulo+" and codest= "+userid;     
         ResultSet rsrespuesta = stmtresp.executeQuery(sqlrespuesta);     
         String sqlopcs= "select opcion, escorrecta, correspondencia, orden from eit_opciones where id_pregunta ="+idpreg+"order by orden";
         ResultSet rsops = stmtt.executeQuery(sqlopcs);          
    %>
    <%String letras = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
         Vector opciones = new Vector();
         Object obj[] = new Object[4];
         while(rsops.next()){
              obj[0] = rsops.getString("opcion");
              obj[1] = "";
              obj[2] = rsops.getString("correspondencia");
              obj[3] = rsops.getString("orden");
              opciones.addElement(obj.clone());
         rsops.close();
    %>
    <form action="resolverpreg.jsp" method="post" name="Correspondencias">
    <%
         String respEmpar = "";
         String respuestap="";
         String respcorres[] = {"",""};
         if(rsrespuesta.next()){     
              respuestap = rsrespuesta.getString("respuesta");
              respEmpar = rsrespuesta.getString("correspondencia");
              respcorres[0]= respuestap;
              respcorres[1]= respEmpar;
         rsrespuesta.close();
         if (tipo.equals("empar")){
    %>
    <%@ include file="resolvempar.jsp"%>
    <%}//fin if tipoPreg = 'emapar'
         else{
         if(tipo.equals("selec")){
    %> <%@ include file="reslovselec.jsp"%>
         <%}//fin if tipopreg = 'select'
         else{
              if(tipo.equals("complet")){%>
              <%@include file="resolvcomplet.jsp"%>
         <%}//fin if tipopreg='complet'
         else{
              if(tipo.equals("abierta")){%>
              <%@include file="resolvabierta.html"%>
              <%}//fin if tipopreg='abierta'
              else{%>
                   <span class="titolForum">Error: no se ingres&oacute; ning&uacute;n tipo de pregunta
                   o se est� accediendo en forma err&oacute;nea a este sitio.</span>
              <%}//fin else de tipopregunta = 'abierta'%>          
         <%}//fin else tipopreg='complet'%>                    
         <%}// fin else de tipopreg = 'select'%>     
    <%}//fin else de tipoPreg = 'emapar'%>
    <br>
    <input name="idpregunta" type="hidden" value="<%=idpreg%>">
    <input name="guardar" type="hidden" value="si">
    <input name="secuens" type="hidden" value="<%=(1+(Integer.parseInt(secuenc)))%>">
    <input type="submit" name="continuar" value="Continuar">
    </form>
    <%                    rsbpu.close();
                        }//fin 2.1                    
                        else{%>
    Ha terminado de realizar la prueba<br>
    <a href="elejCuestion.jsp">Continuar</a>
    <%}
                   }// fin if 2
                   stmtt.close();
                   stmtresp.close();
                   conn.close();
              }// fin try 1
              catch(Exception expt){
                   out.println("Error: "+expt);
         }//fin eles de if 1
    %>
    </body>
    </html>

  • Please help suggestions for solving built-only compiler error: 'The VI is not executable. The full development version of LabView is required tofix this error.'

    We have develoepd a software tool and build it on regular basis. It currently runs error free when compiled in the editor, but when we built it and run the executable stand alone we get the error.
    'The VI is not executable. The full development version of LabView is required tofix this error.' plus a broeken error.
    This menas an compiler error that is not present in the editor but in the stand alone version. We tried to identify errors as suggested in several posts in this forum, but so far unsuccesfull.
    As the editor and its compiler do not see the error  and are running fine and the stand alone version just syas 'find the error in the editor' in this case LabView is of no help.
    Can anyone suggest a sensible or 'good practice ' way of searching for the source of this error?
    Our project  comprises hundreds of Vis over several libraries.
    Thanks,
    Chris

    Thanks Craig for all your suggestions.
    We seem to have located the problem in a new vi just added to the package causing conflicts by using the same vi names as other vis already present in the package. Excluding this vi removed the error.
    It seems related to a conflict by having two vis with the same name, which was mentioned by LabView and interactively resolved when running the main vi from the editor. When successfully building the main vi the builder did not mention this conflict and reported a successful build, but when trying to run the executable it gave the cryptic error. The error caused us problems because there was no hint for the cause, just the suggestion to solve this in the editor, while at the same time in the editor the VI was running fine.
    We will post about this in detail after we have positively proven that this actually was the case.
    The .net version issue was already checked.
    Performance was the same on all machines we tested on including the dev machine.
    Debugging was tried nut did not help as the vi could not run (broken arrow). We assumed that debugging only helps in running faulty functioning vi''s. We did not check for broken arrows in sub-vis (after connecting), that could have helped, although our application has hundreds of our own vis.
    In relation to your remark: 
    'Are you using many classes? Have you verified that the proper access scopes are set for functions calling those vis?'
    Could you elaborate on setting access scopes. We were not aware of this option in LabView, although we realize this is a basic element of the underlying c code.
    Ragrds,
    Chris

  • Help needed for compiling error  URGENT

    Hello,
    I have been looking at this compilation error for a while and I cannot figure it out.
    I am compiling with this command:
    javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
    The error is:
    C:\java\hw5>javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
    src\pshah3\library\gui\GraphicalGui.java:32: error while writing <anonymous pshah3.library.gui.GraphicalGui$1>:classes\pshah\library\gui\GraphicalGui$1.class
    (The system cannot find the path specified)
    public void actionPerformed(ActionEvent e) { System.exit
    (0); }
    Why is it telling me that it cannot find the path, when it has to create the .class file itself?
    I would appreciate some insight into this problem?
    Thanks,
    Premal

    Thank you for you help, but i'am still a bit confused. The "pshah" was a typo, it should have been pshah3, so that's not the problem. Here's a more detailed explanation of what i'am trying.
    I am declaring the exitlister class in the following path:
    c:\java\hw5\src\pshah3\library\gui
    The file is fairly simple, it looks like this.
    package pshah3.library.gui;
    import java.awt.*;
    import java.awt.event.*;
    public class ExitListener extends WindowAdapter{
         public void windowClosing(WindowEvent event) {
              System.exit(0);
    The other file that i'am including is in the same location...it starts out like this.
    package pshah3.library.gui;
    import pshah3.library.*;
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class GraphicalGui {
              public static void main (String[] args){     
              JFrame backGround = new JFrame("Tech Library");
              backGround.setSize(400,150);
              backGround.addWindowListener (new ExitListener());
              Container content = backGround.getContentPane();
    I am compiling from the c:\java\hw5 directory with the command
    javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
    I am doing this so all the classes go in a "classes" directory with the same heirarchy as the source.
    Do you think i'am doing something funky with the packages??
    Again the error is:
    src\pshah3\library\gui\GraphicalGui.java:39: error while writing <anonymous pshah3.library.gui.GraphicalGui$1>: classes\pshah3\library\gui\GraphicalGui$1.class
    (The system cannot find the path specified)
    public void actionPerformed(ActionEvent e) { System.exit
    (0); }
    THANKS A LOT!!!

  • Need help determining compiling error

    Good morning,
    I need help finding the cause of a compiling error I receive. I have reviewed my code numerous times without any luck. I hope you guys might see something I am not! The entire file exceeds the limit I can post, so I am attaching it in 2 posts. Sorry for the inconvenience. The error and my code are posted below. Thank you for your help!
    C:\StockTrackerDB.java:382: cannot find symbol
    symbol : method add(java.lang.Boolean)
    location: class java.util.ArrayList<java.lang.String>
                   aList.add(new Boolean(rs.getBoolean("admin")));
    ^
    1 error
    Tool completed with exit code 1
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class StockTrackerDB
         private Connection con = null;
         //Constructor; makes database connection
         public StockTrackerDB() throws ClassNotFoundException,SQLException
              if(con == null)
                   String url = "jdbc:odbc:StockTracker";
                   try
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   catch(ClassNotFoundException ex)
                        throw new ClassNotFoundException(ex.getMessage() +
                                    "\nCannot locate sun.jdbc.odbc.JdbcOdbcDriver");
                   try
                        con = DriverManager.getConnection(url);
                   catch(SQLException ex)
                        throw new SQLException(ex.getMessage()+
                                    "\nCannot open database connection for "+url);
         // Close makes database connection; null reference to connection
         public void close() throws SQLException,IOException,ClassNotFoundException
              con.close();
              con = null;
         // Method to serialize object to byte array
         private byte[] serializeObj(Object obj) throws IOException
              ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
              ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
              objOStream.writeObject(obj); // object must be Serializable
              objOStream.flush();
              objOStream.close();
              return baOStream.toByteArray(); // returns stream as byte array
         // Method to deserialize bytes from a byte array into an object
         private Object deserializeObj(byte[] buf) throws IOException, ClassNotFoundException
              Object obj = null;
              if(buf != null)
                   ObjectInputStream objIStream = new ObjectInputStream(new ByteArrayInputStream(buf));
                   obj = objIStream.readObject(); //IOException, ClassNotFoundException
              return obj;
         // Methods for adding a record to a table
         // add to the Stocks Table
         public void addStock(String stockSymbol, String stockDesc) throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("INSERT INTO Stocks VALUES ('"
                                    +stockSymbol+"'"
                                    +",'"+stockDesc+"')");
              stmt.close();
         // add to the Users table
         public boolean addUser(User user) throws SQLException,IOException,ClassNotFoundException
              boolean result = false;
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              dbUserID = user.getUserID();
              if(getUser(dbUserID) == null)
                   dbLastName = user.getLastName();
                   dbFirstName = user.getFirstName();
                   Password pswd = user.getPassword();
                   isAdmin = user.isAdmin();
                   PreparedStatement pStmt = con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?)");
                   pStmt.setString(1, dbUserID);
                   pStmt.setString(2, dbLastName);
                   pStmt.setString(3, dbFirstName);
                   pStmt.setBytes(4, serializeObj(pswd));
                   pStmt.setBoolean(5, isAdmin);
                   pStmt.executeUpdate();
                   pStmt.close();
                   result = true;
              else
                   throw new IOException("User exists - cannot add.");
              return result;
         // add to the UserStocks table
         public void addUserStocks(String userID, String stockSymbol)
                        throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("INSERT INTO UserStocks VALUES ('"
                                    +userID+"'"
                                    +",'"+stockSymbol+"')");
              stmt.close();
         // Methods for updating a record in a table
         // updating the Users table
         public boolean updUser(User user) throws SQLException, IOException, ClassNotFoundException
              boolean result = false;
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              dbUserID = user.getUserID();
              if(getUser(dbUserID) != null)
                   dbLastName = user.getLastName();
                   dbFirstName = user.getFirstName();
                   Password pswd = user.getPassword();
                   isAdmin = user.isAdmin();
                   PreparedStatement pStmt = con.prepareStatement("UPDATE Users SET lastName = ?," + " firstName = ?, pswd = ?, admin = ? WHERE userID = ?");
                   pStmt.setString(1, dbLastName);
                   pStmt.setString(2, dbFirstName);
                   pStmt.setBytes(3, serializeObj(pswd));
                   pStmt.setBoolean(4, isAdmin);
                   pStmt.setString(5, dbUserID);
                   pStmt.executeUpdate();
                   pStmt.close();
                   result = true;
              else
                   throw new IOException("User does not exist - cannot update.");
              return result;
         }

         // Methods for deleting a record from a table
         // delete a record from the Stocks table
         private void delStock(String stockSymbol) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("DELETE FROM Stocks WHERE "
                                    +"symbol = '"+stockSymbol+"'");
              stmt.close();
         // delete a record from the Users table
         public void delUser(User user) throws SQLException,IOException,ClassNotFoundException
              String dbUserID;
              String stockSymbol;
              Statement stmt = con.createStatement();
              try
                   con.setAutoCommit(false);
                   dbUserID = user.getUserID();
                   if(getUser(dbUserID) != null) // verify user exists in database
                        ResultSet rs1 = stmt.executeQuery("SELECT userID, symbol "
                                              +"FROM UserStocks WHERE userID = '"+dbUserID+"'");
                        while(rs1.next())
                             try
                                  stockSymbol = rs1.getString("symbol");
                                  delUserStocks(dbUserID, stockSymbol);
                             catch(SQLException ex)
                                  throw new SQLException("Deletion of user stock holding failed: " +ex.getMessage());
                        } // end of loop thru UserStocks
                        try
                        {  // holdings deleted, now delete user
                             stmt.executeUpdate("DELETE FROM Users WHERE "
                                              +"userID = '"+dbUserID+"'");
                        catch(SQLException ex)
                             throw new SQLException("User deletion failed: "+ex.getMessage());
                   else
                        throw new IOException("User not found in database - cannot delete.");
                   try
                        con.commit();
                   catch(SQLException ex)
                        throw new SQLException("Transaction commit failed: "+ex.getMessage());
              catch (SQLException ex)
                   try
                        con.rollback();
                   catch (SQLException sqx)
                        throw new SQLException("Transaction failed then rollback failed: " +sqx.getMessage());
                   // Transaction failed, was rolled back
                   throw new SQLException("Transaction failed; was rolled back: " +ex.getMessage());
              stmt.close();
         // delete a record from the UserStocks table
         public void delUserStocks(String userID, String stockSymbol) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              ResultSet rs;
              stmt.executeUpdate("DELETE FROM UserStocks WHERE "
                                    +"userID = '"+userID+"'"
                                    +"AND symbol = '"+stockSymbol+"'");
              rs = stmt.executeQuery("SELECT symbol FROM UserStocks "
                                         +"WHERE symbol = '"+stockSymbol+"'");
              if(!rs.next()) // no users have this stock
                   delStock(stockSymbol);
              stmt.close();
         // Methods for listing record data from a table
         // Ordered by:
         //          methods that obtain individual field(s),
         //          methods that obtain a complete record, and
         //          methods that obtain multiple records
         // Methods to access one or more individual fields
         // get a stock description from the Stocks table
         public String getStockDesc(String stockSymbol) throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
              String stockDesc = null;
              ResultSet rs = stmt.executeQuery("SELECT symbol, name FROM Stocks "
                                                      +"WHERE symbol = '"+stockSymbol+"'");
              if(rs.next())
                   stockDesc = rs.getString("name");
              rs.close();
              stmt.close();
              return stockDesc;
         // Methods to access a complete record
         // get User data from the Users table
         public User getUser(String userID) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              byte[] buf = null;
              User user = null;
              ResultSet rs = stmt.executeQuery("SELECT * FROM Users WHERE userID = '" +userID+"'");
              if(rs.next())
                   dbUserID = rs.getString("userID");
                   dbLastName = rs.getString("lastName");
                   dbFirstName = rs.getString("firstName");
                   // Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
                   // SQL NULL data value is not handled correctly.
                   buf = rs.getBytes("pswd");
                   dbPswd=(Password)deserializeObj(buf);
                   isAdmin = rs.getBoolean("admin");
                   user = new User(dbUserID,dbFirstName,dbLastName,dbPswd,isAdmin);
              rs.close();
              stmt.close();
              return user; // User object created for userID
         // Methods to access a list of records
         // get a list of selected fields for all records from the Users Table
         public ArrayList listUsers() throws SQLException,IOException,ClassNotFoundException
              ArrayList<String> aList = new ArrayList<String>();
              Statement stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT userID, firstName, lastName, admin "
                                                 +"FROM Users ORDER BY userID");
              while(rs.next())
                   aList.add(rs.getString("userID"));
                   aList.add(rs.getString("firstName"));
                   aList.add(rs.getString("lastName"));
                   aList.add(new Boolean(rs.getBoolean("admin")));
              rs.close();
              stmt.close();
              return aList;
         // get all fields in all records for a given user from the UserStocks table
         public ArrayList listUserStocks(String userID) throws SQLException, IOException, ClassNotFoundException
              ArrayList<String> aList = new ArrayList<String>();
              Statement stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT * FROM UserStocks "
                                                      +"WHERE userID = '"+userID+"' ORDER BY symbol");
              while(rs.next())
                   aList.add(rs.getString("symbol"));
              rs.close();
              stmt.close();
              return aList;
    }

  • Urgent: Form Compilation Error using frmcmp.sh on OAS 10.1.2, pls help..

    Hi All,
    I am upgrading from OAS 9.0.4 to 10.1.2 where Forms 10g application is deployed.
    When I try to recompile with frmcmp.sh :
    frmcmp.sh userid=system/oracle123@odb module_type=FORM module=menu1.fmb
    I get errors :
    Compiling Procedure GET_PATH...
    Compilation error on procedure GET_PATH:
    PL/SQL ERROR 201 at line 4, column 32
    Identifier 'APPS_MENU1_DET' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    SQL Statement ignored
    Compilation error have occured.
    Form not created
    What cause this error ?
    FYI, on the above compilation I connect to different database/schema, not the one
    which is used by the Form, is this the reason of th error ?
    During compilation, Do I have to connect to the database/schema I used when develop the form ?
    DO I have to create all tables in the schema first before compilation ?
    Tnank you for your hwlp,
    xtanto
    PS. When I compile the same Form with F90genm.sh on OAS 9.0.4, NO ERROR.

    From my experience it's a really bad idea to install OCS into a AS IM. When it comes to upgrades and patches you'll pull your hair out!
    Why not install OCS first and then install the BI into the OCS AS server... I have not checked the certification matrix but that might be a better solution to look into.

  • Help please for compilation error

    I have made an utility app.
    I have used CFHTTPMessageRef class from CoreServices.h
    This works fine with me for Simulator.
    Now when i change Active SDK to Device it gives compilation error :
    1) No such file or directory : <CoreServices/CoreServices.h>
    2) Syntax error before CFHTTPMessageRef.
    While reading i came to know that CoreServices is available only for Simulator and not for device(Correct me if wrong).
    I also added CFNetwork framework for linking in build settings.
    Can anybody suggest something on this...

    Hi, i've used some types like CFHostRef in one of my apps, so it should work. I will look into the sourcecode to see what headerfiles i've included.
    i'll be back later this day.

Maybe you are looking for