C code compiling in osx

I have written a buch of applications in C, OpenGL, and GLSL on a linux box. I want to be able to compile and run them on my mac. Is there any way I can do that from a command line or do I have to learn Cocoa? There has to be an easier way than using xcode.
Thanks for the help.
macbook pro   Mac OS X (10.4.8)  

It's closer. Thanks for the tip. I got it to compile
but it said glut had an internal error when I run it.
I'll keep working on it.
How are you trying to run it? I have to run it from the command line:
<pre class="command">./mytest</pre>But it definitely launches with a window and everything. Double-clicking in the Finder doesn't work, even if I give the usual .app extension and change the permissions.
I do get three errors when it compiles:
<pre class="command">glutBasics.c:110: warning: initialization makes integer from pointer without a cast
glutBasics.c:111: warning: initialization makes integer from pointer without a cast
glutBasics.c:112: warning: initialization makes integer from pointer without a cast</pre>But they don't seem to affect it...
Thanks again.
You're welcome.
charlie

Similar Messages

  • Can anyone explain why the code compiles on one database but not another?

    I have two databases, both running 10.2.0.4, same hardware/OS platform.
    On one database, this code compiles just fine, on the second database, I get errors as shown below:
    SQL> SET SERVEROUTPUT ON SIZE 1000000;
    SQL>
    SQL> create or replace procedure testproc as
    2 vCount number;
    3 vCmd varchar2(2048);
    4 vLastName varchar2(30);
    5 vFirstName varchar2(30);
    6 vPK integer := 0;
    7 vSortLN varchar2(30);
    8 vSortFN varchar2(30);
    9 cursor cPERSON is
    10 select LastName,
    11 FirstName
    12 from GENERIC.PERSON
    13 order by LastName, FirstName;
    14 BEGIN
    15 select count(*) into vCount from USER_OBJECTS where object_name = 'ML4TEMPPERSON';
    16
    17 IF (vCount = 0) THEN
    18 /* NOTE: Omit semi-colon from command. */
    19 vCmd := 'create table ML4TEMPPERSON (PK integer not null, LastName varchar2(30), SortLN varchar2(30), FirstName varchar2(30), SortFN varchar2(30))';
    20 Execute Immediate vCmd;
    21 vCmd := 'alter table ML4TEMPPERSON add (constraint XPKML4TEMPPERSON PRIMARY KEY (PK))';
    22 Execute Immediate vCmd;
    23 END IF;
    24
    25 delete from ML4TEMPPERSON;
    26
    27 for P in cPERSON
    28 loop
    29 vLastName := rpad(P.LastName, 30, ' ');
    30 vFirstName := rpad(P.FirstName, 30, ' ');
    31 vSortLN := vLastName;
    32 vSortFN := vFirstName;
    33 DBMS_OUTPUT.PUT_LINE(vLastName || ', ' || vFirstName);
    34 vPK := vPK+1;
    35 INSERT into ML4TEMPPERSON
    36 ( PK, LastName, SortLN, FirstName, SortFN)
    37 values
    38 (vPK, vLastName, vSortLN, vFirstName, vSortFN);
    39 end loop;
    40 IF (vPK > 0) THEN
    41 COMMIT;
    42 END IF;
    43 END;
    44 /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE TESTPROC:
    LINE/COL ERROR
    25/3 PL/SQL: SQL Statement ignored
    25/15 PL/SQL: ORA-00942: table or view does not exist
    35/7 PL/SQL: SQL Statement ignored
    35/19 PL/SQL: ORA-00942: table or view does not exist
    SQL>

    Your table ML4TEMPPERSON doesn't exist in your second database, and you want do delete ans insert, may be in first database the table ML4TEMPPERSON exist
    Try this code. /* Formatted on 2009/05/21 09:10 (Formatter Plus v4.8.8) */
    SET SERVEROUTPUT ON SIZE 1000000;
    CREATE OR REPLACE PROCEDURE testproc
    AS
       vcount       NUMBER;
       vcmd         VARCHAR2 (2048);
       vlastname    VARCHAR2 (30);
       vfirstname   VARCHAR2 (30);
       vpk          INTEGER         := 0;
       vsortln      VARCHAR2 (30);
       vsortfn      VARCHAR2 (30);
       CURSOR cperson
       IS
          SELECT   lastname, firstname
              FROM generic.person
          ORDER BY lastname, firstname;
    BEGIN
       SELECT COUNT (*)
         INTO vcount
         FROM user_objects
        WHERE object_name = 'ML4TEMPPERSON';
       IF (vcount = 0)
       THEN
    /* NOTE: Omit semi-colon from command. */
          vcmd :=
             'create table ML4TEMPPERSON (PK integer not null, LastName varchar2(30), SortLN varchar2(30), FirstName varchar2(30), SortFN varchar2(30))';
          EXECUTE IMMEDIATE vcmd;
          vcmd :=
             'alter table ML4TEMPPERSON add (constraint XPKML4TEMPPERSON PRIMARY KEY (PK))';
          EXECUTE IMMEDIATE vcmd;
       END IF;
       vcmd := 'delete from ML4TEMPPERSON';
       EXECUTE IMMEDIATE vcmd;
       FOR p IN cperson
       LOOP
          vlastname := RPAD (p.lastname, 30, ' ');
          vfirstname := RPAD (p.firstname, 30, ' ');
          vsortln := vlastname;
          vsortfn := vfirstname;
          DBMS_OUTPUT.put_line (vlastname || ', ' || vfirstname);
          vpk := vpk + 1;
          vcmd :=
                'INSERT into ML4TEMPPERSON
    ( PK, LastName, SortLN, FirstName, SortFN)
    values
             || vpk
             || ', '
             || vlastname
             || ','
             || vsortln
             || ','
             || vfirstname
             || ','
             || vsortfn
             || ')';
          EXECUTE IMMEDIATE vcmd;
       END LOOP;
       IF (vpk > 0)
       THEN
          COMMIT;
       END IF;
    END;
    /Edited by: Salim Chelabi on 2009-05-21 06:12

  • Error Code: 34 Mac OSX 10.8.4 for Photoshop CC, Bridge CC, After Effects CC, and Flash CC

    Hello,
    So I am installing all the CC versions of the software and all but Photoshop, Bridge, After Effects, and Flash installed without a hitch. On those 4 programs I get the same error code: 34. I am able to install the CS6 variants of them without any problem and run it. Here is the error code:
    Exit Code: 34
    Please see specific errors below for troubleshooting. For example,  ERROR:
    -------------------------------------- Summary --------------------------------------
    - 1 fatal error(s), 0 error(s)
    FATAL: Payload 'Camera Profiles Installer_8.1_AdobeCameraRawProfile8.0All 7.0.0.108 {D5BBDFC0-C716-46B1-8908-85B0EA49FFA1}' information not found in Media_db.
    I have been unable to fix this on my own and with what I've found online. I'll list what I have done so far to try to fix this issue. I have tried to use the Adobe Creative Cloud Cleaner Tool but the issue is since PS, BR, AE, and FL won't install I can't clean them to try a fresh install. I tried installing the CS6 versions to see if it would dowload the 'Camera Profiles Installer_8.1".
    Any help on fixing this ASAP would be much appreciated!
    Thanks,
    NB

    Hey Guys I am experiencing the exact same iusse I spoke with adobe and they weren't able to solve the issue here's  log.
    I'm pasting the fatal errors from photoshop hope this helpful
    06/18/13 12:02:45:614 | [FATAL] |  | OOBE | DE |  |  |  | 19669 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 12:02:46:615 | [INFO] |  | OOBE | DE |  |  |  | 19669 |  - 1 fatal error(s), 0 error(s)
    06/18/13 12:02:46:615 | [INFO] |  | OOBE | DE |  |  |  | 19669 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 12:13:17:103 | [FATAL] |  | OOBE | DE |  |  |  | 26756 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 12:13:18:104 | [INFO] |  | OOBE | DE |  |  |  | 26756 |  - 1 fatal error(s), 0 error(s)
    06/18/13 12:13:18:104 | [INFO] |  | OOBE | DE |  |  |  | 26756 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 12:20:13:772 | [FATAL] |  | OOBE | DE |  |  |  | 31392 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 12:20:14:774 | [INFO] |  | OOBE | DE |  |  |  | 31392 |  - 1 fatal error(s), 0 error(s)
    06/18/13 12:20:14:774 | [INFO] |  | OOBE | DE |  |  |  | 31392 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:07:14:983 | [FATAL] |  | OOBE | DE |  |  |  | 16841 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:07:15:984 | [INFO] |  | OOBE | DE |  |  |  | 16841 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:07:15:984 | [INFO] |  | OOBE | DE |  |  |  | 16841 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:19:33:315 | [FATAL] |  | OOBE | DE |  |  |  | 24315 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:19:34:316 | [INFO] |  | OOBE | DE |  |  |  | 24315 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:19:34:316 | [INFO] |  | OOBE | DE |  |  |  | 24315 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:21:06:794 | [FATAL] |  | OOBE | DE |  |  |  | 25240 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:21:07:796 | [INFO] |  | OOBE | DE |  |  |  | 25240 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:21:07:796 | [INFO] |  | OOBE | DE |  |  |  | 25240 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:21:30:440 | [FATAL] |  | OOBE | DE |  |  |  | 25537 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:21:31:441 | [INFO] |  | OOBE | DE |  |  |  | 25537 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:21:31:441 | [INFO] |  | OOBE | DE |  |  |  | 25537 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:47:18:185 | [FATAL] |  | OOBE | DE |  |  |  | 9822 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:47:19:186 | [INFO] |  | OOBE | DE |  |  |  | 9822 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:47:19:186 | [INFO] |  | OOBE | DE |  |  |  | 9822 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:47:58:563 | [FATAL] |  | OOBE | DE |  |  |  | 10207 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:47:59:565 | [INFO] |  | OOBE | DE |  |  |  | 10207 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:47:59:565 | [INFO] |  | OOBE | DE |  |  |  | 10207 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:48:24:091 | [FATAL] |  | OOBE | DE |  |  |  | 10483 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:48:25:092 | [INFO] |  | OOBE | DE |  |  |  | 10483 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:48:25:092 | [INFO] |  | OOBE | DE |  |  |  | 10483 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:54:20:032 | [FATAL] |  | OOBE | DE |  |  |  | 14779 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 13:54:21:034 | [INFO] |  | OOBE | DE |  |  |  | 14779 |  - 1 fatal error(s), 0 error(s)
    06/18/13 13:54:21:034 | [INFO] |  | OOBE | DE |  |  |  | 14779 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 14:15:39:774 | [FATAL] |  | OOBE | DE |  |  |  | 28845 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 14:15:40:775 | [INFO] |  | OOBE | DE |  |  |  | 28845 |  - 1 fatal error(s), 0 error(s)
    06/18/13 14:15:40:775 | [INFO] |  | OOBE | DE |  |  |  | 28845 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 14:27:33:665 | [FATAL] |  | OOBE | DE |  |  |  | 37134 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 14:27:34:666 | [INFO] |  | OOBE | DE |  |  |  | 37134 |  - 1 fatal error(s), 0 error(s)
    06/18/13 14:27:34:666 | [INFO] |  | OOBE | DE |  |  |  | 37134 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 14:49:31:860 | [FATAL] |  | OOBE | DE |  |  |  | 48667 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 14:49:32:862 | [INFO] |  | OOBE | DE |  |  |  | 48667 |  - 1 fatal error(s), 0 error(s)
    06/18/13 14:49:32:862 | [INFO] |  | OOBE | DE |  |  |  | 48667 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 16:05:56:669 | [INFO] |  | OOBE | DE |  |  |  | 16619 |  - 0 fatal error(s), 2 error(s)
    06/18/13 16:09:05:111 | [INFO] |  | OOBE | DE |  |  |  | 19310 |  - 0 fatal error(s), 2 error(s)
    06/18/13 16:29:47:953 | [FATAL] |  | OOBE | DE |  |  |  | 11765 | Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    06/18/13 16:29:48:954 | [INFO] |  | OOBE | DE |  |  |  | 11765 |  - 1 fatal error(s), 0 error(s)
    06/18/13 16:29:48:955 | [INFO] |  | OOBE | DE |  |  |  | 11765 | FATAL: Payload 'Camera Profiles Installer 7.0.0.108 {539AEF15-3A2B-4A31-A587-7E90F7D9C700}' information not found in Media_db.
    Error Code: 34 Mac OSX 10.8.4 for Photoshop CC, Bridge CC, After Effects CC, and Flash CC

  • How can I allow user to customize the functionality of program at runtime? (not using runtime code compilation)

    Using .NET Framework 4.0 what features are available that would allow to accomplish something very modular and user customizable, like depicted in this XML.  Where I define specific base operations like Get() and Put() methods that operate on strings. 
    And allow the user to add and remove those or mix and match them in a way that they basically design their own run time functionality that suits them.  So they just create their own 'Operation' and fill it with the operations they want to perform on some
    incoming data type, in this case it is a string - with substring and insert methods. 
    EDIT - Assuming end user is non programmer and Dynamic Code compilation is not an option.  I have an idea maybe using dynamic keyword, but not sure if it makes what i suggest possible.
    <Operation Name="GetValues">
      <Get id=123"  FromIndex="2" ToIndex="23"/>
      <Get id="234"  FromIndex="3" ToIndex="5"/>
       <Output Path="C:\" Filename="testOut.txt" Append="true">
         <Format>
              <Result id="123"/> , <Result id="234"/>
         </Format>
       </Output>
    </Operation>
    <Operation Name="InsertValue">
      <Put AtIndex="5">stringtoinsert</Put>
      <Put AtIndex="36">anotherstringtoinsert</Put>
    </Operation>

    Hi sjs1978,
    I am not familiar with dynamic code, and I made a research about it.
    >> I'm aware of dynamic code compilation, but that requires user to input pieces of code.
    Did you try to store the pieces of code into a file and call the code when the dynamic code compilation requires user to input code?
    In addition, I found links about using code provider to compile a source file, and the links below might be useful to you.
    # Dynamic Source Code Generation and Compilation
    https://msdn.microsoft.com/en-us/library/650ax5cx(v=vs.110).aspx
    # CSharpCodeProvider Class
    https://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(v=vs.110).aspx
    # Is it possible to dynamically compile and execute C# code fragments?
    http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments
    Best Regards,
    Tony
    Help each other

  • Same float code compiled differently on different machines

    Hi,
    Scenario:   same project build on different machines. and then both the  application executed on
    same machine .. giving  slightly different results..(like 23.07499   to 23.07500)
    project involves many float operations.  project build on vs2013. c++
    there is difference oberved in the final value of float calculations..  like 23.07499   to 23.07500
    seems , Same float code compiled differently on different machines,  any input
    Regards,
    james

    >Scenario:   same project build on different machines. and then both the  application executed on same machine ..
    giving  slightly different results..(like 23.07499   to 23.07500)
    Do you get consistent results with the same executable each time you
    run it?
    Assuming you do, and the only difference is the EXEs, what's the
    difference between them - there must be something. Have a look at "How
    to compare binary images of the same project builds"
    https://support.microsoft.com/en-us/kb/164151/ and see if that sheds
    any light onto the issue.
    Dave

  • Code compiles - throws java.lang.NullPointerException

    This program is intended to build an array and populate it with inventory, then print out the inventory line item by line item. The code compiles but throws the NullPointerException error when the program is run. Here is the main method with 2 classes, as well as the text from the error and a pointer to the specific place in the code the error is from...
    main method
    import java.util.Scanner;
    import static java.lang.System.out;
    import java.io.*;
    public class Inventory1
        private static void Exit() //set ability for program to exit on each loop
        { out.println("We hope this inventory program was " +
                           "helpful. Thank you for using our program.");
          System.exit(0);
      public static void main (String [] args)
          boolean validNumber;
          boolean validCount;
          boolean validDollars;
          //initialize scanner
      Scanner sc = new Scanner(System.in);        
      Music info = new Music();
      //declare and initialize variables
      int[] itemNumber = new int [5];
      String[] productName = new String[5];
      int[] stockAmount = new int[5];
      double[] productCost = new double[5];
      double[] totalValue = new double[5];
      while (true)
          for (int i=0; i<5; i++)
            out.println( "Enter CD name/description or 'exit' to stop the" +
                    " program: "); //prompt - product name
               info.productName[i] = sc.next(); // input
               if (info.productName.equalsIgnoreCase("exit"))
    out.println("Exit entered. ");
    Exit();
    else
    do
    out.println("Please enter CD number: "); //prompt - item number
    info.itemNumber[i] = sc.nextInt();
    validNumber = true;
    if( (info.itemNumber[i] <1 ) )
    {//make sure product number is positive number
    validNumber = false;
    out.println("All CDs have positive numbers and no other " +
    "characters. Please enter a valid CD number.");
    }while (!validNumber);
    do
    out.println("Quantity in stock: "); // prompt - quantity
    info.stockAmount [i] = (sc.nextInt()); // capture temp number to verify
    validCount = true;
    if(( info.stockAmount[i] <1 ))
    { // ensure stock amount is positive number
    validCount = false;
    out.println( "Inventory numbers must be positive. Please " +
    "enter a correct value." ); // prompt for correct #
    } while (!validCount);
    do
    out.println("What is the product cost for each unit? "); // prompt - cost
    info.productCost[i] = sc.nextDouble();
    validDollars = true;
    if (( info.productCost[i] <1 ))
    validDollars = false;
    out.println( "Product cost must be a positive dollar " +
    "amount. Please enter correct product cost." );
    } while (!validDollars);
    out.println(totalValue);
    @Override
    public String toString()
    return super.toString();
    Music classclass Music
    String productName[];
    String title;
    int itemNumber[];
    int item;
    int stockAmount[];
    int amount;
    double productCost[];
    double cost;
    double totalValue[];
    double value;
    int i;
    public Music(String title, int item, int amount, double cost, double value,
    int i)
    this.productName[i] = title;
    this.itemNumber[i] = item;
    this.stockAmount[i] = amount;
    this.productCost[i] = cost;
    this.totalValue[i] = value;
    public Music()
    public void setTotalValue(double[] totalValue)
    this.totalValue = totalValue;
    public double[] getTotalValue()
    return totalValue;
    public void setStockAmount(int[] stockAmount)
    this.stockAmount = stockAmount;
    public int[] getStockAmount()
    return stockAmount;
    public void setProductCost(double[] productCost)
    this.productCost = productCost;
    public double[] getProductCost()
    return productCost;
    public void setProductName(String[] productName)
    this.productName = productName;
    public String[] getProductName()
    return productName;
    public void setItemNumber (int[] itemNumber)
    this.itemNumber = itemNumber;
    public int[] getItemNumber()
    return itemNumber;
    }TotalInventory classclass TotalInventory
    double TotalInfo;
    public int [] getStockAmount(int[] units)
    int[] stockAmount = units;
    return units;
    public double[] getTotalValue(double[] cost)
    double[] productCost = cost;
    return cost;
    error message
    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\Tammy\My Documents\School\JavaProgramming\Inventory\build\classes
    compile:
    run:
    Enter CD name/description or 'exit' to stop the program:
    here we go
    Exception in thread "main" java.lang.NullPointerException
            at Inventory1.main(Inventory1.java:54)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 4 seconds)
    Inventory1.main(Inventory1.java:54) is this line of code in the main method: info.productName[i] = sc.next(); // input Any suggestions?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I have not changed my code from when I supplied it in the first post - I am simply pointing out that I already initiated the String with 5 as the number...I've supplied you with everything I am getting. The three modules are in the original post, as is the error message being received - nothing has changed.
    This means with the code posted in my original question I am getting an NPE. I compile the code and run it. I'm able to input the "title" (productName) after the prompt but then get the NPE. I'm not trying to make you read my mind, I'm just asking for help and make every effort to provide as much detail as possible to make that easier on all of us.

  • Using GDB to debug a code compiled with Sun cc

    When using gdb to debug C code compiled with Sun's cc, the step-into doesn't work, i can only "step into" a function if i put a breakpoint on it. Also, sometimes if i set a breakpoint on a function name, like "break foo", gdb indeed breaks when foo is reached, but without showing the source code (this i could not reproduce with a small demo program).
    I am using Sun Studio 12 on a SunOS 5.10 sun4u sparc machine.
    My demo program is:
    #include <stdio.h>
    #include <strings.h>
    void func1(str)
    char str;
    printf("This is the first line\n");
    printf("STR: %s\n",str);
    int main()
    char str[10];
    strcpy(str,"lalalal");
    printf("Calling func1\n");
    func1(str);
    printf("Returned from func1\n");
    The compilation command i run is:
    cc -c -g step_into.c -o step_into.o
    cc -g -o step_into step_into.o
    When running the program with gdb, the "step" command does not step into func1, but runs it like "next".
    I know there's the dbx debugger, but if there's a way to fix this with gdb - it is much preferable for us. Switching to dbx is not really feasible for us.
    Regards,
    Yael

    Hello Yael,
    I tried your example on my laptop (OpenSolaris x86/x64) with Sun Studio 12 update 1
    and GDB 6.3.50 - it works properly:
    $ gdb dist/Debug/SunStudio-Solaris-x86/forum_c_20091230
    GNU gdb 6.3.50_2004-11-23-cvs
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "i386-pc-solaris2.11"...
    (gdb) break main
    Breakpoint 1 at 0x8050a87: file src/args.c, line 15.
    (gdb) run
    Starting program: /export/home/nikm/SunStudioProjects/Forum_C_20091230/dist/Debug/SunStudio-Solaris-x86/forum_c_20091230
    Breakpoint 1, main () at src/args.c:15
    15         printf("Calling func1\n");
    Current language:  auto; currently minimal
    (gdb) next
    Calling func1
    16         func1(str);
    (gdb) step
    This is the first line
    func1 (str=0x80477ba "lalalal") at src/args.c:7
    7         printf("STR: %s\n",str);
    (gdb) Could you please download and try Sun Studio 12 update 1?
    It is available for free. Here is the web page:
    http://developers.sun.com/sunstudio/
    BTW, which GDB version do you use?
    I'll try it on a sparc system and let you know.
    Thanks.
    Nik
    P.S.: there is a typo in the source code:
    void func1(str)
    *char *str;I think it should be:
    void func1(char *str)Probably a copy-paste problem.
    Please use "CODE" mode when you copy-paste source lines (selected text, press 'CODE' button).

  • Code compiling problem

    I have written a small sample code with 2 classes(Money.java and MoreMoney.java),where the latter has the main function. The problem is i cant compile and run these programs using commmand prompt in windows but they work just fine when using netbeans.
    Env. variable is not a problem as money.java compiles using command prompt. Importing is not an issue as they are in the same package. Nor is package an issue, coz i have written the package name at the start of the code. Please suggest.Thank you in advance.
    The code is as follows:
    * Money.java
    * Created on August 8, 2006, 11:09 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package javaapplication1;
    * @author oracle
    public class Money
    private float amount;
    private int dollars;
    private float cents;
    public Money(int amount)
    dollars=amount/100;
    cents=amount%100;
    public float getdollar()
    return this.dollars;
    public float getcents()
    return this.cents;
    public String toString()
    return("You Entered "+dollars+" dollars and "+cents+" cents");
    * MoreMoney.java
    * Created on August 1, 2006, 5:36 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package javaapplication1;
    * @author oracle
    public class MoreMoney
    * @param args the command line arguments
    public static void main(String[] args)
    // TODO code application logic here
    Money m=new Money(143);
    System.out.println(m);
    Any other tips on my code are also welcome since i am new to java and would like to learn good 'coding habits'.

    Hello,
    Thank you for the suggestion.
    I already have my .class files & my .java files in the JavaApplication1 folder. I have done as instructed on the webpage (http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#Environment) and also have set the environment variable, CLASSPATH to the value:
    C:\Program Files\Java\jdk 1.5.0_07\bin\JavaApplication1\src\ JavaApplication1
    When i say env. varible it is the 'systems variable' of the env. variable category. Am i correct on that one?
    I have another piece of information. After setting the CLASSPATH to its new value and restarting command prompt, it did not automatically go to that directory/path. It instead gave me the default path(C:/Documetns and Settings/oracle>)
    I had to manually change the directory until i had the above mentioned path. Is there something fishy about my DOS-prompt or is that the way it is supposed to be?
    So inspite all this experimentation the problem still persists. Why wont my code compile from DOS-Prompt? Thank you for your patience and please advice.

  • How can C++ code compile to .swf or .air

    I know that, at adobe max 2007, Scott Petersen has compile the Quake C/C++ Code to air application.
    Now I want to compile C++ Code to .swf, How and can Flex SDK help me?

    <div class=Section1><br /><br /><p class=MsoNormal><a name="_MailEndCompose"><span style='font-size:11.0pt;<br />font-family:"Calibri","sans-serif";color:black'>what we are trying to say is;<o:p></o:p></span></a></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:black'>Yes, adobe did work on a C++/SWF project but this isn&#8217;t a<br />public project and we&#8217;re not sure if it ever will be.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:black'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:black'>So far it&#8217;s only internal to Adobe not available to the<br />public, and it may or may not ever be made public</span><span style='font-size:<br />11.0pt;font-family:"Calibri","sans-serif";color:black'><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:black'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:black'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><br /><br /><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:<br />"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;<br />font-family:"Tahoma","sans-serif"'> xtaotao [mailto:[email protected]] <br><br /><b>Sent:</b> Saturday, September 13, 2008 2:22 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> Re: How can C++ code compile to .swf or .air<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />xtaotao in <br><br /><br><br /><b>Developers</b> --<br><br />  How can C++ code compile to .swf or .air<br><br /><br><br />you are not adobe, you cann't, adobe can. <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b6790b/5">How can C++ code compile<br />to .swf or .air</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b6790b!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • Simple code compiled in 1.6 but not in 1.5

    Can any one tell me if this is bug in 1.5 or 1.6 ?
    This code seems to me perfectly legal, but in 1.5 compiler issues an error, in 1.6 it does not.
    Is any opened bug related to it so i can learn some more.
    class TKey<T> {}
    class TKeyWrapped<T, W extends Wrapper<T>> extends TKey<T> {}
    public class AlonProblem<T extends Number> {
        public void test() {
            // this assignment cause the error
            TKeyWrapped<T, ? extends Wrapper<T>> resolved = getKey();
        protected TKeyWrapped<T, ? extends Wrapper<T>> getKey() {
            return null;
    }The error is:
    D:\views.dat\BoazAdonisS\Q\wf\core\AlonProblem.java
    Error:Error:line (18)incompatible types
    found : wf.core.TKeyWrapped<T,capture of ? extends wf.core.Wrapper<T>>
    required: wf.core.TKeyWrapped<T,? extends wf.core.Wrapper<T>>
    Thanks
    Boaz
    Message was edited by:
    boaznahum

    FYI, I just compiled this with 1.5.0_7. I get the same error from IDEA 5.2.1) (so presumably also from javac directly), but Eclipse 3.2.1 compiles it just fine.

  • Error in code compiling

    Hi this is the error i am getting while compiling
    C:\>javac SessionListener.java
    SessionListener.java:17: <identifier> expected
        private static Map<String,HttpSession> sessionMX = new HashMap<String,HttpSe
    ssion>();
                          ^
    SessionListener.java:60: <identifier> expected
        public static Set<String> getActiveSessionids(){
                         ^
    SessionListener.java:118: ';' expected
    ^
    3 errorsthis is the code which i am compiling so can you suggest me something....
    thanks in advance
    package com.listeners;
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Collections;
    import java.util.Set;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpSessionListener;
    import javax.servlet.http.HttpSessionEvent;
    public class SessionListener implements HttpSessionListener{
        /*Usage of a Static Collection Object is what the other Poster is talking about*/
        private static Map<String,HttpSession> sessionMX = new HashMap<String,HttpSession>();   
        /*Called @time when a new session is created */
        public void sessionCreated(HttpSessionEvent se){
            HttpSession session = se.getSession();
            sessionMX.put(session.getId(),session);
        /*Called @time when an existing session is being destroyed */
        public void sessionDestroyed(HttpSessionEvent se){
            HttpSession session = se.getSession();
            sessionMX.remove(session.getId());
        /* Utility Methods */
         * Returns number os active sessions
        public static int getNoActiveSessions(){
            return sessionMX.size();
         * Returns a Set of Active SessionIds
        public static Set<String> getActiveSessionids(){
            return sessionMX.keySet();
         * Returns whether there is any Active Session or not
        public static boolean isActive(String sessionId){
            return sessionMX.containsKey(sessionId);
         * Returns associated session for specified sessionID
         * if not found returns 'null'
        public static HttpSession getAssociatedSession(String sessionId){
            HttpSession session = null;
            if(isActive(sessionId))
                session = sessionMX.get(sessionId);
            return session;
         * Invalidates the specified session with consequent sessionID
         * returns true if succeful else returns false
        public static boolean force2Invalidate(String sessionId){
            boolean flag = false;
            if(isActive(sessionId)){
                sessionMX.get(sessionId).invalidate();
                flag = true;
            return flag;
    }

    What version of the javac compiler are you using? To use generics it needs to be 1.5 or later

  • Why won't this source code compile?

    I have been writing a simple app for a simple form. I have been using a gridbaglayout and checked compilation almost every step of the way, but then right as i am getting towards the end and have to start putting in the actioneventlisteners etc. ......... My code doesn't compile.
    Here is the source code:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class LearnerLookup extends JFrame implements ActionListener {
    void buildConstraints(GridBagConstraints gbc, int gx, int gy,
    int gw, int gh, int wx, int wy) {
    gbc.gridx = gx;
    gbc.gridy = gy;
    gbc.gridwidth = gw;
    gbc.gridheight = gh;
    gbc.weightx = wx;
    gbc.weighty = wy;
    /** Creates a new instance of LearnerLookup */
    public LearnerLookup() {       
    super("Learner Lookup");
    setBounds(225, 250, 300, 180);
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints constraints = new GridBagConstraints();
    JPanel pane = new JPanel();
    pane.setLayout(gridbag);
    // Last Name Label
    buildConstraints(constraints, 0, 0, 1, 1, 25, 25);
    constraints.fill = GridBagConstraints.NONE;
    constraints.anchor = GridBagConstraints.EAST;
    JLabel lastNameLabel = new JLabel("Last Name:", JLabel.LEFT);
    gridbag.setConstraints(lastNameLabel, constraints);
    pane.add(lastNameLabel);
    // Last Name Field
    buildConstraints(constraints, 1, 0, 1, 1, 75, 0);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    JTextField lastNameField = new JTextField(20);
    gridbag.setConstraints(lastNameField, constraints);
    pane.add(lastNameField);
    // First Name Label
    buildConstraints(constraints, 0, 1, 1, 1, 0, 25);
    constraints.fill = GridBagConstraints.NONE;
    constraints.anchor = GridBagConstraints.EAST;
    JLabel firstNameLabel = new JLabel("First Name:", JLabel.LEFT);
    gridbag.setConstraints(firstNameLabel, constraints);
    pane.add(firstNameLabel);
    //First Name Field
    buildConstraints(constraints, 1, 1, 1, 1, 0, 0);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    JTextField firstNameField = new JTextField(20);
    gridbag.setConstraints(firstNameField, constraints);
    pane.add(firstNameField);
    // Admission Number Label
    buildConstraints(constraints, 0, 2, 1, 1, 0, 25);
    constraints.fill = GridBagConstraints.NONE;
    constraints.anchor = GridBagConstraints.EAST;
    JLabel admNumLabel = new JLabel("Admission Number:", JLabel.LEFT);
    gridbag.setConstraints(admNumLabel, constraints);
    pane.add(admNumLabel);
    // Admission Number Field
    buildConstraints(constraints, 1, 2, 1, 1, 0, 0);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    JTextField admNumField = new JTextField(10);
    gridbag.setConstraints(admNumField, constraints);
    pane.add(admNumField);
    // Enter Button
    buildConstraints(constraints, 0, 3, 1, 1, 0, 15);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    constraints.anchor = GridBagConstraints.SOUTHWEST;
    JButton enterButton = new JButton("Enter");
    gridbag.setConstraints(enterButton, constraints);
    pane.add(enterButton);
    // Clear Button
    buildConstraints(constraints, 1, 3, 1, 1, 0, 0);
    constraints.fill = GridBagConstraints.HORIZONTAL;
    constraints.anchor = GridBagConstraints.SOUTHEAST;
    JButton clearButton = new JButton("Clear");
    gridbag.setConstraints(clearButton, constraints);
    pane.add(clearButton);
    //Content Pane
    setContentPane(pane);
    public static void main(String[] arguments) {
    LearnerLookup lookup = new LearnerLookup();
    ExitWindow exit = new ExitWindow();
    lookup.addWindowListener(exit);
    lookup.show();
    public void actionPerformed(ActionEvent evt) {
    Object source = evt.getSource();
    if (source == enterButton);
    The error message that I get is the following:
    LearnerLookup.java [101:1] cannot resolve symbol
    symbol : variable enterButton
    location: class LearnerLookup
    if (source == enterButton);
    ^
    1 error
    Errors compiling LearnerLookup.
    I'd be glad for some enlightenment on this one.
    Thanks

    enterButton is declared inside the constructor and so is not accessible from actionPerformed.
    Declare enterButton as an instance variable and remove the declaration from the constructor.
    e.g.public class LearnerLookup extends JFrame implements ActionListener {
          JButton enterButton;and in constructor:
    // JButton enterButton = new JButton("Enter");    Remove this line
    enterButton = new JButton("Enter");                   // replace with this. You'll probably need to do this for all the components with actionPerformed methods.

  • My source code compiled on Emulator works, on Phone doesnt

    Hello, Im using mpp sdk to compile and emulate java code. It works fine but when I download it to my phone, it doesnt work.
    Im sure the problem is somthing in the code that my doesnt support that the emulator does, I just dont know what it is.
    My phone is a sony ericsson k500i but Im hoping that this code will work on any phone with a jvm.
    The code is here
    http://www.geocities.com/ed72678954/Life.java
    http://www.geocities.com/ed72678954/LifeCanvas.java
    Thanks very much...

    I am having a similar problem with my program working on the emulator but not on the phone. I did the example:
    Wireless Development Tutorial Part 1
    (http://developers.sun.com/techtopics/mobility/midp/articles/wtoolkit/)
    I have java sdk: 1.5.... on my windows xp home box and am trying to run the program on my Cingular 2125
    The example builds and then works well on the emulator however when I transfer the jad and jar to my cingular 2125 I get back:
    Error
    Invalid Java archive (jar)
    I am new to playing with this and so am up three without a paddle any help would be appreciated.
    thanks,
    Stephen

  • AJAX code compilation error in jdk1.4.2_15 in JDeveloper 10.1.3.3.0

    I am using AJAX for search functionality in our appication which involves ADF JSF,jspx pages in JDeveloper 10.1.3.3.0. When I compile the following code it compiles fine without error in jdk1.5 but gives compilation error in jdk1.4.2_15.
    public List<String> autoCompleteFindUniqueNames(String searchString){
    UniqueEmployeeNamesImpl hits = this.getUniqueEmployeeNames1();
    hits.setNamedWhereClauseParam("searchPrefix",searchString.toUpperCase()+ "%");
    hits.setRangeSize(5);
    hits.executeQuery();
    ArrayList resultset = new ArrayList((int)hits.getEstimatedRowCount());
    for (Row row:hits.getAllRowsInRange()){
    resultset.add((String)row.getAttribute("LastName"));
    return resultset;
    Compilation error giving on the line " for (Row row:hits.getAllRowsInRange()){ "
    and it says " Error ; Expected "
    Can somebody helpme out what should I change on this line in order to compile this ?
    Thanks in advance,
    Ram

    Frank,
    Thanks for your response. I removed <String> after LIST and it compiles. But the problem
    is with the following iterator code which is giving error while compiling in jdk1.4.2_15. Trying to find out the equivalent iterator code of the following which is in jdk1.5
    Row row:hits.getAllRowsInRange()
    Thanks,
    Ram

  • Stumped with SwingWorker -- code compiles but doesn't run right

    Okay, sorry to post a ton of code, but I'm creating a swing gui that will use swing worker to create an object of the followng class, one method that sleeps and returns a random number:
    public class BigJob{
         public int doBigJob(){
              try {
              Thread.sleep(15000);
              } catch (InterruptedException e){
              e.printStackTrace();
         int number = (int)(Math.random() * 50);
         return number;
    }I can get the gui program below to run without the SwingWorker, but am having trouble getting it to run properly. The code posted below compiles and starts up ok, but when I click the "click to do big job" button, it just doesn't do anything.
    I created a runnable in the main method, and invoked the method to build the gui, so that's working.
    I have the SwingWorker defined in an inner class that implements ActionListener; I'm guessing that's the problem. I should probably put the SwingWorkder in its own inner class, and invoke it from the first listener class?
    here's the code:
    import javax.swing.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.BorderLayout;
    import javax.swing.SwingWorker;
    public class WorkerTest{
         private JFrame frame;
         private JButton button1;
         private JButton button2;
         private JButton button3;
         private JPanel topPanel;
         public static void main (String[] args){
         SwingUtilities.invokeLater(new Runnable() {
              public void run(){
              WorkerTest wtest = new WorkerTest();
              wtest.buildGui();
         } // end main
         public void buildGui(){
         frame = new JFrame("frame to test swing worker");
         frame.setSize(700,200);
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.setLayout(new BorderLayout());
         topPanel = new JPanel();
         frame.add(topPanel, BorderLayout.NORTH);
         button1 = new JButton("click to change text");
         button1.addActionListener(new Button1Listener());
         button2 = new JButton("click to do big thing");
         button1.addActionListener(new Button2Listener());
         button3 = new JButton("click to change text");
         button3.addActionListener(new Button3Listener());
         topPanel.add(button1);
         topPanel.add(button2);
         topPanel.add(button3);
         frame.setVisible(true);
    // inner classes to add listeners
         class Button1Listener implements ActionListener{
              public void actionPerformed(ActionEvent e){
              button1.setText("i've been clicked");
         class Button2Listener implements ActionListener{
              public void actionPerformed(ActionEvent e){
              // execute job in main thread
              //BigJob job = new BigJob();
              //button2.setText("big job is done: " + job.doBigJob());
              // execute job in its own thread:
              SwingWorker worker = new SwingWorker<BigJob, Void>(){
              BigJob job;
              int resultNum;
                   public BigJob doInBackground(){
                   job = new BigJob();
                   resultNum = job.doBigJob();
                   button2.setText("big job done: " + resultNum);
                   return job;
         class Button3Listener implements ActionListener{
              public void actionPerformed(ActionEvent e){
              button3.setText("i've been clicked also");
    } // end WorkerTestthanks,
    bp

    badperson wrote:
    where in the code should that go, in the listener class?
    SwingWorker worker = new SwingWorker<BigJob, Void>() {
        public BigJob doInBackground() {
            // code
         return job;
    worker.execute();

Maybe you are looking for

  • Using Role as WF Admin for a specific workflow - Reg

    HI All, I am trying to define a WF Admin for a specific workflow. I know we can maintain a USER ID or EXPRESS(WFsyst-agent) or Rule for this in the Version Dependent tab of Basic Data for wflow template. But, when i give a Role(Custom R:XXXXXXX role)

  • Is this true?? N80

    Hi, i'd just like to know, if someone has the N80 with taskman installed on it please read! I watched this video and theres something strange, 'Hidden navigator' Could you please tell me if this is true. Follow the link. http://www.youtube.com/watch?

  • Programmatically Obtaining Channel Config data list

    Hi, How do I access the list of Communication channels in the system? I need a total list of ALL channels with data like this-> Comm Channel Name, Communication Component, Party Cheers, Earlence

  • Cant create iCloud photo album in Yosemite

    I have imported some photos in iPhoto. I tried to create an iCloud album but it won't let me.  Is this a bug in Yosemite?

  • Conf file settings

    any one can explain the settings to be made in the report_server.conf file and formsweb.cfg file.