Missing class/interface?

I'm just starting out w/ JDev. Tried the BC client tutorial and ran into the following error when compiling:
C:\java\BC4J\src\bc4jaddinsrc.zip!\oracle\jbo\domain\DomainInterface.java
Error(14,19): cannot access class oracle.jbo.Transaction; file oracle\jbo\Transaction.class not found
The error in "DomainInterface.java" is where it attempts to import "oracle.jbo.Transaction". I looked in the zip file and could not locate anything resembling an oracle\jbo\Transaction.class! I just installed JDev 9.0.3.2 (Build 1145) this week, am I missing a file or am I looking in the wrong place?
Connection via JDBC to Oracle 8.1.7 works fine, testing the module with the default interface works great. Error only comes when trying to compile the batch client.
Thanks for any help - Jason

I'm just starting out w/ JDev. Tried the BC client tutorial and ran into the following error when compiling:
C:\java\BC4J\src\bc4jaddinsrc.zip!\oracle\jbo\domain\DomainInterface.java
Error(14,19): cannot access class oracle.jbo.Transaction; file oracle\jbo\Transaction.class not found
The error in "DomainInterface.java" is where it attempts to import "oracle.jbo.Transaction". I looked in the zip file and could not locate anything resembling an oracle\jbo\Transaction.class! I just installed JDev 9.0.3.2 (Build 1145) this week, am I missing a file or am I looking in the wrong place?
Connection via JDBC to Oracle 8.1.7 works fine, testing the module with the default interface works great. Error only comes when trying to compile the batch client.
Thanks for any help - Jason

Similar Messages

  • WTC, wls-api.jar, weblogic.wtc.gwt.*, missing classes ?!

    Hi WLS fans,
    I've installed WLS 10.3 and I've tried to migrate WLS 8.1 App to WLS 10.3 via Workshop.
    I was supprised NOT to find the classes: TuxedoConnection, TuxedoConnectionFactory and all the rest needed classes to compile the code, in the wls-api.jar, weblogic.wtc.gwt
    package .
    WLS-ARI.JAR,  weblogic.wtc.gwt package_ (in WL_HOME\server\lib)
    I've realized that till v. 9, the package contained these classes.
    Since v. 10, the pachage contains ONLY one class: genpasswd. And there are a lot of missing classes/interfaces from the weblogic.wtc.jatmipackage as well.
    Could somebody tell me where are the other needed classes ? Have they been moved to some other package ?
    Have the WTC EJB logic been modified ?
    I use this code:
    {color:#0000ff}import weblogic.wtc.gwt.*;
    import weblogic.wtc.jatmi.*;
    TuxedoConnection myTux;     
    TypedString myData;
    Reply myRtn = myTux.tpcall("MyTuxService", myData, 0); {color}
    //etc.

    Hi, George.
    From weblogic 10 onwards, weblogic transitively includes jars in the BEA_HOME/modules directory. The jar you are looking for is:
    modules/com.bea.core.jatmi_1.0.1.0.jar
    Cheers,
    -Adrian

  • Missing class indicator field from database row

    Hi,
    I have following problem :
    There is a class inheritance with root interface and 4 subclasses, they are initialized with class indicator field. If I use ReadAllQuery with an interface or some of concrete class as search class - it is working perfect, but if I try to build query with custom selected fields (addPartialAttribute) I always get an error - Missing class indicator field from database row.
    AFAIK This field have not to be mapped in Workbench to real table column, how can I tell TopLink that I will read this indicator field too by reading some custom fields ? I thought TopLink reads such fields automatically, like it does it with primary keys.
    Thank you
    Maksim

    This sounds like an issue with our partial attribute queries and inheritance as the type indicator column must always be read. Can you map the type indicator to a read-only attribute (mark mapping as read-only) and include this in your list of attributes as a work-around?
    Doug

  • Class, interface, or emun expected.

    When I compile to code I get 60 "class, interface, or emun expected errors. I know that this error usual means that there is a bracket out of place or missing. I went through and add line comments that link the opening and closing brackets together. Can anyone take a look and let me know what I am missing. Thanks.
    {code}
    // Inventory4.java
    // Program will track total inventory items in stock.
    import java.io.*;
    import javax.swing.JFrame;
    public class Inventory4
    {//1
    public class Item
    {//2
    private double unitPrice;
    private double quantityStock;
    private double inventoryValue;
    private double totalInventory;
    private int itemNumber;
    private String itemName;
    /** Create a new instance of Item Name */
    public Item(double UnitPrice,double QuantityStock,int      ItemNumber,String ItemName)
    {//3
    itemName = ItemName;
    itemNumber = itemNumber;
    unitPrice = UnitPrice;
    quantityStock = QuantityStock;
    }//3
    public void setItemName(String ItemName)
    {//4
    itemName = ItemName;
    }//4
    public void setItemNumber(int ItemNumber)
    {//5
    itemNumber = ItemNumber;
    }//5
    public void setUnitPrice(String InventoryHardware)
    {//6
    inventoryHardware=InventoryHardware;
    }//6
    public void setUnitPrice(double UnitPrice)
    {//7
    unitPrice = UnitPrice;
    }//7
    public void setQuantityStock(double QuantityStock)
    {//8
    quantityStock = QuantityStock;
    }//8
    public String getItemName()
    {//9
    return itemName;
    }//9
    public int getItemNumber()
    {//10
    return itemNumber;
    }//10
                        public String getInvetoryHardware()
    {//11
                        return inventoryHardware;
    }//11
    public double getUnitPrice()
    {//12
    return unitPrice;
    }//12
    public double getQuantityStock()
    {//13
    return quantityStock;
    }//13
    public String getInventoryHardware()
    {//14
    return inventoryHardware;
    }//14
    public double computeinventoryValue()
    {//15
    return quantityStock * unitPrice;
    }//15
    public double computetotalInventory()
    {//16
    return totalInventory = totalInventory + inventoryValue;
    }//16
    public String toString()
    {//17
    return (itemName);
    }//17
    }//2
    }//1
    // SubItem.java
    // Sub class to main program
    public class SubItem extends Item
    {//18
    private String inventoryHardware;
    private double restockingFee = .05;
    public SubItem(double UnitPrice,double QuantityStock,int InventoryWriteoffs,int
    ItemNumber,String ItemName)
    {//19
    setUnitPrice(UnitPrice);
    setQuantityStock(QuantityStock);
    setItemNumber(ItemNumber);
    setItemName(ItemName);
    inventoryWriteoffs = InventoryWriteoffs;
    }//19
    public void setInventoryHardware(String InventoryHardware)
    {//20
    inventoryHardware = InventoryHardware;
    }//20
    public int getInventoryHardware()
    {//21
    return inventoryWriteoffs;
    }//21
    public double computeRestockingFee()
    {//22
    return ((getUnitPrice() * getQuantityStock()) * restockingFee);
    }//22
    }//18
    private static BufferedReader stdin = new BufferedReader( new InputStreamReader(      System.in ) );
    private static int totalCount = 5;
    public Inventory4()
    {//23
    double unitPrice; // Unit price of each item
    double quantityStock; // Number of items in stock
    double inventoryValue; // Place holder for calculated inventory value
    double totalInventory; // Place holder for calculated total inventory value
    int itemNumber; // Item Number
    String itemName = ""; // Name of each item
    }//23
    public static void main(String[] args)throws IOException
    {//24
    SubItem myItem[];
    myItem = new SubItem[5];
    myItem[0] = new SubItem(10.35,20,4,1,"Traxx");
    myItem[1] = new SubItem(176.34,10,5,2,"Panels");
    myItem[2] = new SubItem(85.34,4,4,3,"Surfaces");
    myItem[3] = new SubItem(1.95,56,6,4,"Brackets");
    myItem[4] = new SubItem(82.34,8,1,5,"Overheads");
    printArray(myItem);
    myItem = sortArray(myItem);
    System.out.println(" Inventory List Sorted by Items \n\n");
    printArray(myItem);
    ItemButton itemButton = new ItemButton(myItem,totalCount); // Make ItemButton
    itemButton.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    itemButton.setSize( 350,390 ); // Window size
    itemButton.setVisible( true ); // display window
    } //24 End Main Method
    private static SubItem[] printArray(SubItem[] myItem)
    {//25
    double totalInventory = 0;
    double restockingFee = 0;
    for (int i = 0; i<5;++i)
    {//26
    System.out.println("\n The Item Number is " + i + myItem.getItemNumber() );
    System.out.println("\n Item Name is " + myItem.getItemName() );
    System.out.println("\n Quantity in Stock is " + myItem.getQuantityStock() );
    System.out.println("\n Inventory Write-off is " +      myItem.getInventoryWriteoffs() );
    System.out.println("\n Inventory Value is $" + myItem.computeinventoryValue               ());
    totalInventory = totalInventory + myItem.computeinventoryValue();
    restockingFee = totalInventory + myItem.computeRestockingFee();
    } //26 End For Loop
    System.out.println("\n Total Value of all inventory is " + totalInventory);
    System.out.println("\n Total Value of all inventory with restock fee $" +      restockingFee);
    return myItem;
    }//25
    private static SubItem[] sortArray(SubItem[] myItem)
    {//27
    SubItem temp = new SubItem();
    int i, j;
    int array_size = 5;
    for (i = (array_size - 1); i >= 0; i--)
    {//28
    for (j = 1; j <= i; j++)
    {//29
    if (myItem[j-1].getItemName().compareTo(myItem[j].getItemName()) > 1)
    {//30
    temp = myItem[j-1];
    myItem[j-1] = myItem[j];
    myItem[j] = temp;
    } //30 End if
    } //29 End inner for loop
    } //28 End outer for loop
    return myItem;
    } //27 End Method
    // ItemButton.java
    // This will create GUI buttons.
    // Display the Items.
    import java.awt.FlowLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JOptionPane;
    import javax.swing.SwingConstants;
    public class ItemButton extends JFrame
    {//31
    private JButton nextJButton; // text button
    private JButton prevJButton; // icon button
    private JLabel lblItemName; // text field with set size
    private JTextField txtItemName; // text field constructed with text
    private JTextField textField3; // text field with text and size
    private JLabel lblItemNumber; // text field with set size
    private JTextField txtItemNumber; // text field constructed with text
    private JLabel lblUnitPrice; // text field with set size
    private JTextField txtUnitPrice; // text field constructed with text
    private JLabel lblQuantityStock; // text field with set size
    private JTextField txtQuantityStock; // text field constructed with text
    private JLabel lblInventoryWriteoffs; // text field with set size
    private JTextField txtInventoryWriteoffs; // text field constructed with text
    private JLabel lblcomputeRestockingFee; // text field with set size
    private JTextField txtcomputeRestockingFee; // text field constructed with text
    private JLabel lblcomputeinventoryValue; // text field with set size
    private JTextField txtcomputeinventoryValue; // text field constructed with text
    private JLabel lblcomputetotalInventory; // text field with set size
    private JTextField txtcomputetotalInventory; // text field constructed with text
    SubItem[] arraySubItem;
    private int currentArrayCounter;
    private int arrayCount;
    public ItemButton(SubItem[] myItem, int totalArrayCount)
    {//32
    super ( "Inventory" );
    arraySubItem = myItem;
    arrayCount = totalArrayCount;
    currentArrayCounter = 0;
    setLayout( new FlowLayout() ); // set frame layout
    Icon iconNext = new ImageIcon( getClass().getResource( "" ) );
    Icon iconPrev = new ImageIcon( getClass().getResource( "" ) );
    lblItemName = new JLabel( "Item Name ");
    add( lblItemName ); // textField3 to JFrame
    txtItemName = new JTextField( "", 15 );
    add( txtItemName ); // add textField3 to JFrame
    lblItemNumber = new JLabel( "Item Number ");
    add( lblItemNumber ); // textField3 to JFrame
    txtItemNumber = new JTextField( "", 15 );
    add( txtItemNumber ); // add textField3 to JFrame
    lblUnitPrice = new JLabel( "Unit Price ");
    add( lblUnitPrice ); // textField3 to JFrame
    txtUnitPrice = new JTextField( "", 15 );
    add( txtUnitPrice ); // add textField3 to JFrame
    lblQuantityStock = new JLabel( "Quantity Stock " );
    add( lblQuantityStock ); // textField3 to JFrame
    txtQuantityStock = new JTextField( "", 15 );
    add( txtQuantityStock ); // add textField3 to JFrame
    lblInventoryHardware = new JLabel( "Inventory Hardware " );
    add( lblInventoryHardware ); // textField3 to JFrame
              txtInventoryHardware = new JTextField( "", 15 );
    add( txtInventoryHardware ); // add textField3 to JFrame
    lblcomputeRestockingFee = new JLabel( "Restocking Fee ");
    add( lblcomputeRestockingFee ); // textField3 to JFrame
    txtcomputeRestockingFee = new JTextField( "", 15 );
    add( txtcomputeRestockingFee ); // add textField3 to JFrame
    lblcomputeinventoryValue = new JLabel( "Inventory Value " );
    add( lblcomputeinventoryValue ); // textField3 to JFrame
    txtcomputeinventoryValue = new JTextField( "", 15 );
    add( txtcomputeinventoryValue ); // add textField3 to JFrame
    lblcomputetotalInventory = new JLabel( "Total Inventory ");
    add( lblcomputetotalInventory ); // textField3 to JFrame
    txtcomputetotalInventory = new JTextField( "", 15 );
    add( txtcomputetotalInventory ); // add textField3 to JFrame
                   nextJButton = new JButton( "Next" ); // button with Next
                   prevJButton = new JButton( "Previous"); // button with Prev
                   add(prevJButton);
                   add(nextJButton); // add plainJButton to JFrame
                   ButtonHandler handler = new ButtonHandler();
    nextJButton.addActionListener( handler );
    prevJButton.addActionListener( handler );
    setTextFields();
    } //32 End ButtonFrame constructor
    private class ButtonHandler implements ActionListener
    {//33
    public void actionPerformed( ActionEvent event )
    {//34
    if (event.getActionCommand()== "prevJButton")
    {//35
    currentArrayCounter++;
    }//35
    else
    {//36
    currentArrayCounter++;
    }//36
    setTextFields();
    } //34 End Method ActionPerformed
    } //33 End Private inner class ButtonHandler
    private void setTextFields()
    {//37
    if (currentArrayCounter == arrayCount)
    {//38
    currentArrayCounter = 0;
    }//38
    if (currentArrayCounter < 0)
    {//39
    currentArrayCounter = arrayCount;
    }//39
    txtItemName.setText(arraySubItem[currentArrayCounter].getItemName());
    txtItemNumber.setText(arraySubItem[currentArrayCounter].getItemNumber()      +"");
    txtUnitPrice.setText(arraySubItem[currentArrayCounter].getUnitPrice()+"");
    txtQuantityStock.setText(arraySubItem[currentArrayCounter].getQuantityStock      ()+"");
    txtInventoryWriteoffs.setText(arraySubItem      [currentArrayCounter].getInventoryWriteoffs()+"");
    txtcomputeRestockingFee.setText(arraySubItem      [currentArrayCounter].computeRestockingFee()+"");
    txtcomputeinventoryValue.setText(arraySubItem     [currentArrayCounter].computeinventoryValue()+"");
    txtcomputetotalInventory.setText(arraySubItem      [currentArrayCounter].computetotalInventory()+"");
    }//37
    } //31 End class ItemButton
    {code}

    I have eliminated most of the problems, but I am still getting 11 Class interface or emun errors.
    It says the first error is in the lines that import the GUI buttons
    // Inventory4.java
    // Program will track total inventory items in stock.
    import java.io.*;
    import javax.swing.JFrame;
    public class Inventory4
    {//1
       public static void main (String [] args)  ;
         {//40
           class Item
           {//2
             private double unitPrice;
             private double quantityStock;
             private double inventoryValue;
             private double totalInventory;
             private int itemNumber;
             private String itemName;
                          /** Create a new instance of Item Name */
                       public Item(double UnitPrice,double QuantityStock,int                                                
                                  ItemNumber,String ItemName)
                                              {//3
                                                 itemName = ItemName;
                                                 itemNumber = itemNumber;
                                                 unitPrice = UnitPrice;
                                                quantityStock = QuantityStock;
                                                }//3
                                                           public void setItemName(String ItemName)
                                                          {//4
                                                        itemName = ItemName;
                                                            }//4
                                                           public void setItemNumber(int ItemNumber)
                                                            {//5
                                                       itemNumber = ItemNumber;
                                                             }//5
                                                          public void setUnitPrice(String InventoryHardware)
                                                                   {//6
                                                                 inventoryHardware=InventoryHardware;
                                                                    }//6
                                                          public void setUnitPrice(double UnitPrice)
                                                                    {//7
                                                      unitPrice = UnitPrice;
                                                                     }//7
                                                          public void setQuantityStock(double QuantityStock)
                                                                           {//8
                                                     quantityStock = QuantityStock;
                                                                             }//8
                                                          public String getItemName()
                                                                             {//9
                                                      return itemName;
                                                                                     }//9
                                                          public int getItemNumber()
                                                                                     {//10
                                                      return itemNumber;
                                                                                            }//10
                        public String getInvetoryHardware()
                                                                                              {//11
                        return inventoryHardware;
                                                                                                }//11
                                                          public double getUnitPrice()
                                                                                                   {//12
                                                     return unitPrice;
                                                                                                     }//12
                                                          public double getQuantityStock()
                                                                                                           {//13
                                                    return quantityStock;
                                                                                                            }//13
                                                          public String getInventoryHardware()
                                                                                                                  {//14
                                                    return inventoryHardware;
                                                                                                                   }//14
                                                                               public double computeinventoryValue()
                                                                                                                        {//15
                                                                          return quantityStock * unitPrice;
                                                                                                                            }//15
                                                                                 public double computetotalInventory()
                                                                                                                                {//16
                                                               return totalInventory = totalInventory + inventoryValue;
                                                                                                                                  }//16               
                                                                                     public String toString()
                                                                                                                                  {//17
                                                                               return (itemName);
                                                                                                                                    }//17
            }//2
         }//40
                            // SubItem.java
                            // Sub class to main program
         public class SubItem extends Item
        {//18
                  private String inventoryHardware;
                  private double restockingFee = .05;
                        public SubItem(double UnitPrice,double QuantityStock,int InventoryHardware,int
                                               ItemNumber,String ItemName)
              {//19
                   setUnitPrice(UnitPrice);
                   setQuantityStock(QuantityStock);
                   setItemNumber(ItemNumber);
                   setItemName(ItemName);
                   inventoryHardware = InventoryHardware;
               }//19
                  public void setInventoryHardware(String InventoryHardware)
                       {//20
                     inventoryHardware = InventoryHardware;
                       }//20
                      public int getInventoryHardware()
                               {//21
                      return inventoryHardware;
                                }//21
                              public double computeRestockingFee()
                                       {//22
                    return ((getUnitPrice() * getQuantityStock()) * restockingFee);
                                        }//22
            }//18
                   private static BufferedReader stdin = new BufferedReader( new InputStreamReader(      
                    System.in ) );
                  private static int totalCount = 5;
          public Inventory4()
             {//23
         double unitPrice; // Unit price of each item
         double quantityStock; // Number of items in stock
         double inventoryValue; // Place holder for calculated inventory value
         double totalInventory; // Place holder for calculated total inventory value
         int itemNumber; // Item Number
         String itemName = ""; // Name of each item
                }//23
       public static void main(String[] args)throws IOException
           {//24
         SubItem myItem[];
          myItem = new SubItem[5];
        myItem[0] = new SubItem(10.35,20,4,1,"Traxx");
        myItem[1] = new SubItem(176.34,10,5,2,"Panels");
        myItem[2] = new SubItem(85.34,4,4,3,"Surfaces");
        myItem[3] = new SubItem(1.95,56,6,4,"Brackets");
        myItem[4] = new SubItem(82.34,8,1,5,"Overheads");
             printArray(myItem);
             myItem = sortArray(myItem);
             System.out.println(" Inventory List Sorted by Items \n\n");
              printArray(myItem);
        ItemButton itemButton = new ItemButton(myItem,totalCount); // Make ItemButton
        itemButton.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        itemButton.setSize( 350,390 ); // Window size
        itemButton.setVisible( true ); // display window
                   } //24 End Main Method
          private static SubItem[] printArray(SubItem[] myItem)
                          {//25
              double totalInventory = 0;
              double restockingFee = 0;
                         for (int i = 0; i<5;++i)
                          {//26
                               System.out.println("\n The Item Number is " + i + myItem.getItemNumber() );
                               System.out.println("\n Item Name is " + myItem.getItemName() );
                               System.out.println("\n Quantity in Stock is " + myItem.getQuantityStock() );
                               System.out.println("\n Inventory Hardware " +                                                    
                  myItem.getInventoryHardware() );
                               System.out.println("\n Inventory Value is $" + myItem.computeinventoryValue          
                               totalInventory = totalInventory + myItem.computeinventoryValue();
                               restockingFee = totalInventory + myItem.computeRestockingFee();
                                  } //26 End For Loop
                                   System.out.println("\n Total Value of all inventory is " + totalInventory);
                                   System.out.println("\n Total Value of all inventory with restock fee $" +             
                                       restockingFee);
                                   return myItem;
                                    }//25
       private static SubItem[] sortArray(SubItem[] myItem)
    {//27
          SubItem temp = new SubItem();
              int i, j;
             int array_size = 5;
             for (i = (array_size - 1); i >= 0; i--)
         {//28
                 for (j = 1; j <= i; j++)
               {//29
                       if (myItem[j-1].getItemName().compareTo(myItem[j].getItemName()) > 1)
                   {//30
                      temp = myItem[j-1];
                      myItem[j-1] = myItem[j];
                      myItem[j] = temp;
                    } //30 End if
                 } //29 End inner for loop
            } //28 End outer for loop
                              return myItem;
    } //27 End Method
    }//1
    // ItemButton.java
    // This will create GUI buttons.
    // Display the Items.
    import java.awt.FlowLayout;//line252
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JOptionPane;
    import javax.swing.SwingConstants;
      public class ItemButton extends JFrame
          {//31
            private JButton nextJButton; // text button
            private JButton prevJButton; // icon button
            private JLabel lblItemName; // text field with set size
            private JTextField txtItemName; // text field constructed with text
            private JTextField textField3; // text field with text and size
            private JLabel lblItemNumber; // text field with set size
            private JTextField txtItemNumber; // text field constructed with text
            private JLabel lblUnitPrice; // text field with set size
            private JTextField txtUnitPrice; // text field constructed with text
            private JLabel lblQuantityStock; // text field with set size
            private JTextField txtQuantityStock; // text field constructed with text
            private JLabel lblInventoryHardware; // text field with set size
            private JTextField txtInventoryHardware; // text field constructed with text
            private JLabel lblcomputeRestockingFee; // text field with set size
            private JTextField txtcomputeRestockingFee; // text field constructed with text
            private JLabel lblcomputeinventoryValue; // text field with set size
            private JTextField txtcomputeinventoryValue; // text field constructed with text
            private JLabel lblcomputetotalInventory; // text field with set size
            private JTextField txtcomputetotalInventory; // text field constructed with text
                SubItem[] arraySubItem;
                private int currentArrayCounter;
                private int arrayCount;
                   public ItemButton(SubItem[] myItem, int totalArrayCount)
           {//32
                    super ( "Inventory" );
                    arraySubItem = myItem;
                    arrayCount = totalArrayCount;
                    currentArrayCounter = 0;
                    setLayout( new FlowLayout() ); // set frame layout
                         Icon iconNext = new ImageIcon( getClass().getResource( "" ) );
                         Icon iconPrev = new ImageIcon( getClass().getResource( "" ) );
                                   lblItemName = new JLabel( "Item Name ");
                                   add( lblItemName ); // textField3 to JFrame
                                   txtItemName = new JTextField( "", 15 );
                                   add( txtItemName ); // add textField3 to JFrame
                                   lblItemNumber = new JLabel( "Item Number ");
                                   add( lblItemNumber ); // textField3 to JFrame
                                   txtItemNumber = new JTextField( "", 15 );
                                   add( txtItemNumber ); // add textField3 to JFrame
                                   lblUnitPrice = new JLabel( "Unit Price ");
                                  add( lblUnitPrice ); // textField3 to JFrame
                                  txtUnitPrice = new JTextField( "", 15 );
                                  add( txtUnitPrice ); // add textField3 to JFrame
                                  lblQuantityStock = new JLabel( "Quantity Stock " );
                                  add( lblQuantityStock ); // textField3 to JFrame
                                  txtQuantityStock = new JTextField( "", 15 );
                                  add( txtQuantityStock ); // add textField3 to JFrame
                                  lblInventoryHardware = new JLabel( "Inventory Hardware " );
                                 add( lblInventoryHardware ); // textField3 to JFrame
                   txtInventoryHardware = new JTextField( "", 15 );
                                 add( txtInventoryHardware ); // add textField3 to JFrame
                                 lblcomputeRestockingFee = new JLabel( "Restocking Fee ");
                                 add( lblcomputeRestockingFee ); // textField3 to JFrame
                                 txtcomputeRestockingFee = new JTextField( "", 15 );
                                 add( txtcomputeRestockingFee ); // add textField3 to JFrame
                                  lblcomputeinventoryValue = new JLabel( "Inventory Value " );
                                  add( lblcomputeinventoryValue ); // textField3 to JFrame
                                  txtcomputeinventoryValue = new JTextField( "", 15 );
                                  add( txtcomputeinventoryValue ); // add textField3 to JFrame
                                  lblcomputetotalInventory = new JLabel( "Total Inventory ");
                                  add( lblcomputetotalInventory ); // textField3 to JFrame
                                  txtcomputetotalInventory = new JTextField( "", 15 );
                                  add( txtcomputetotalInventory ); // add textField3 to JFrame
                   nextJButton = new JButton( "Next" ); // button with Next
                   prevJButton = new JButton( "Previous"); // button with Prev
                   add(prevJButton);
                   add(nextJButton); // add plainJButton to JFrame
                     ButtonHandler handler = new ButtonHandler();
                                          nextJButton.addActionListener( handler );
                                          prevJButton.addActionListener( handler );
                                          setTextFields();
    } //32 End ButtonFrame constructor
            private class ButtonHandler implements ActionListener
       {//33
          public void actionPerformed( ActionEvent event )
         {//34
               if (event.getActionCommand()== "prevJButton")
             {//35
                  currentArrayCounter++;
              }//35
                 else
                    {//36
                  currentArrayCounter++;
                      }//36
                        setTextFields();
           } //34 End Method ActionPerformed
    } //33 End Private inner class ButtonHandler
    private void setTextFields()
    {//37
               if (currentArrayCounter == arrayCount)
                  {//38
                     currentArrayCounter = 0;
                     }//38
               if (currentArrayCounter < 0)
                    {//39
                       currentArrayCounter = arrayCount;
                      }//39
                           txtItemName.setText(arraySubItem[currentArrayCounter].getItemName());
                           txtItemNumber.setText(arraySubItem[currentArrayCounter].getItemNumber()          
                  +"");
                           txtUnitPrice.setText(arraySubItem[currentArrayCounter].getUnitPrice()+"");
                           txtQuantityStock.setText(arraySubItem[currentArrayCounter].getQuantityStock      
                  ()+"");
                            txtInventoryHardware.setText(arraySubItem                           
    [currentArrayCounter].getInventoryHardWare()+"");
                            txtcomputeRestockingFee.setText(arraySubItem                           
    [currentArrayCounter].computeRestockingFee()+"");
                            txtcomputeinventoryValue.setText(arraySubItem                           
    [currentArrayCounter].computeinventoryValue()+"");
                            txtcomputetotalInventory.setText(arraySubItem                             
    [currentArrayCounter].computetotalInventory()+"");
      }//37
    } //31 End class ItemButton

  • Missing classe to implement How to Web Printing with MS Excel

    Hi there,
    we're trying to implement the How to paper "Web Printing with MS Excel". This paper comes with transport files to import the needed packages and classes.
    Now when I try to import that thing, the transport hangs. Checking the protocol shows that for each class there is the information: "Object ... was not included in this step."  Analysis shows that the Z-classes seem to inherit from the standard classes
    CL_RSR_WWW_GRID
    CL_RSR_WWW_HELP_WINDOW
    CL_RSR_WWW_ITEM_CONDITION
    CL_RSR_WWW_ITEM_EXCEPTION
    CL_RSR_WWW_ITEM_GRID
    CL_RSR_WWW_ITEM_TEMPLATE
    CL_RSR_WWW_ITEM_TEXT_ELEMENTS
    CL_RSR_WWW_TABLE
    These classes are in my Sneakpreview 04 but NOT in our BW System 3.5. Here the system infos:
    SAP_ABA     640     0015     SAPKA64015     Anwendungsübergreifende Komponente     Appl. Interface SP
    SAP_BASIS     640     0015     SAPKB64015     SAP Basiskomponente     Basis Support Pack.
    PI_BASIS     2005_1_640     0005     SAPKIPYJ65     Basis Plug-In (PI_BASIS) 2005_1_640     Kompon. Supp. Pack.
    SAP_BW     350     0015     SAPKW35015     Business Information Warehouse     Kompon. Supp. Pack.
    As the missing classes seem to be the problem, do I really have to get them out of my MiniSAP?
    Help appreciated
    Thanks
    Gerald
    ps. the transport file can easily be imported into the SneakPreview MiniSAP 6.40
    Message was edited by: Gerald Ressmann

    Hi,
    Here is the How to Web Printing with Excel, download from the Link
    This will expire in 7 days from the posting Date.<a href="http://download.yousendit.com/143673776AFD7E8F">How to Web Printing with Excel</a>
    Cheers.
    Ranga

  • Missing class IDLEntity NoClassDefFoundError

    Hi,
    I wore a simple iView that have a class that implements the IDLEntity interface. when ever the class is created, i get an exception "java.lang.NoClassDefFoundError: org/omg/CORBA/portable/IDLEntity"
    the IDLEntity is part of the java official rt.jar - how come the portal doesn't find it?
    I've configured the classpath in the C:\usr\sap\EP62\j2ee\j2ee_00\cluster\server\cmdline.properties
    and in C:\usr\sap\EP62\j2ee\j2ee_00\cluster\dispatcher\cmdline.properties
    to include the rt.jar and myIDL.jar
    I've also tried to bring the IDLEntity with my jar (par) but it didn't help.
    Any idea ?

    Hi Shay, thanks for the response.
    When I go to Help > Check for Updates, there are no WebCenter related updates available.
    I did go to Tools > Preferences > Extensions and saw that WebCenter Portlet Producer Support, WebCenter Preconfigured Server & WebCenter Portlet Bridge Service extensions were all disabled by default. After enabling them, I restarted JDeveloper and I'm down to one missing class instead of two:
    Missing class: oracle.adfinternal.model.portlet.rc.ptlprovider.PortletProducerContextFactory
    A quick Google search for PortletProducerContextFactory turns up this post and a couple of find jar website results.

  • Deployment error - Missing class: javax.servlet.jsp.jstl.core.Config

    Hi,
    We are using JDeveloper 10.1.3.0.4(SU5) on windows for development of ADF application. We need to deploy the developed application onto Oracle Application Server 10g (10.1.3) which is running on Solaris. We are using BC4J, WAR and EAR deployment profiles in jdeveloper to create the .war and .ear files.
    If I deploy the generated ear on a standalone OC4J server install on my windows PC, it works fine.
    Now when I deploy the generated .ear file onto the Oracle Application Server 10.1.3 through Application Server Control interface and then try to access the jspx pages under our application we are getting following error:
    oracle.classloader.util.AnnotatedNoClassDefFoundError:      Missing class: javax.servlet.jsp.jstl.core.Config     Dependent class: com.sun.faces.application.ViewHandlerImpl     Loader: accaweb.web.accaweb:0.0.0     Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/jsf-impl.jar     Configuration: WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/libThe missing class is available from the following locations:     1. Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar (from WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib)      This code-source is available in loader default.web.defaultWebApp:0.0.0.      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2051) [oracle/app/oracle/product/10gas3/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]
    I have confirmed that the .war file inside the .ear file does contain the jstl.jar file under WEB-INF/lib folder. And the jar file does contain the class 'javax.servlet.jsp.jstl.core.Config'
    As a workaround, I found that if I copy the jstl.jar file from default-web-app to my application web-inf/lib folder, things start to work fine. ie copy from: '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar'
    to: '/oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/'
    – or –
    Another workaround is to add the '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar' file in the classpath for my web application through Application Server Control setting page.
    Now both of these workaround needs us to perform additional post deployment steps which should really not be required since the jar files is included in the project.
    Has anyone faced this issue? Any pointers in this respect will be a great help.
    regards - rutwik

    Surprise Surprise !
    I just tried deploying the file via uploading it from the Application Server Control UI and it worked fine.
    Till now, I was ftp'ing the ear file from my PC to the server on which Oracle AS is running and was telling Application Server Control to pick form that uploaded location.
    I am still not clear on why it works with HTTP upload and not via the FTP upload?
    cheers - rutwik

  • HT1925 My ipod is not showing up when I have itunes up. I was told to remove itunes and reinstall however. I receive a message with unable to uninstall the Itunes. It states "could not open key HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\INTERFACE\(915DA835-02FE-

    can someone please advise on what I should do? unable to uninstall the Itunes. It states "could not open key HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\INTERFACE\(915DA835-02FE-4953-92FA-624BDF5D 85AB) VEIFY THAT YOU HAVE SUFFICIENT ACCESS TO THAT KEY, OR CONTACT YOUR SUPPORT PERSONNEL,  Which i did . I contacted the apple support and they could not help. has anyone gotten this error? Did some research some results show that this has occurred during updates on the itunes but has not seen how to successfully uninstall without getting this error. I attempted to use the control panel and uninstall but it provides me with the same error all the time. I NEED SOME Answers on this issue. Can you please help?!

    Perhaps try the fixit from the following Microsoft web page. (Try the "problems uninstalling" option.)
    Fix problems with programs that can't be installed or uninstalled

  • Error Missing class: oracle.xdb.XMLType with xdb.jar in JDeveloper 10.1.3

    I am using JDeveloper 10.1.3 and get the following error when executing the web service proxy with my call to the web service( this web service is using class OracleXMLSave with method insertXML):
    I have included the xdb.jar in my project properties libraries of the web service project and added a file group with xdb.jar to the properties of the webservices.deploy. What else needs to be done? This worked in JDeveloper 10.1.2.
    THE ERROR after running proxy in log window:
    java.rmi.ServerException:
    start fault message:
    caught exception while handling request: caught exception while handling request: oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: oracle.xdb.XMLType
         Dependent class: dbdata2package.DBDataOperations
         Loader: DBData2WSApp-DBData2Operations-WS.web.WebServices:0.0.0
         Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBData2WSApp-DBData2Operations-WS/WebServices/WEB-INF/classes/
         Configuration: WEB-INF/classes/ in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBData2WSApp-DBData2Operations-WS\WebServices\WEB-INF\classes
    The missing class is available from the following locations:
         1. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-webservice-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-webservice-WS\WebServices\WEB-INF\lib)
         This code-source is available in loader DBDataWSApp-webservice-WS.web.WebServices:0.0.0.
         2. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-DBDataOperations-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-DBDataOperations-WS\WebServices\WEB-INF\lib)
         This code-source is available in loader DBDataWSApp-DBDataOperations-WS.web.WebServices:0.0.0.
    :end fault message
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:545)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:390)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at dbdata2packageproxy.runtime.DBData2WSSoapHttp_Stub.insertData(DBData2WSSoapHttp_Stub.java:80)
         at dbdata2package.DBData2WSSoapHttpPortClient.insertData(DBData2WSSoapHttpPortClient.java:54)
         at dbdata2package.DBData2WSSoapHttpPortClient.main(DBData2WSSoapHttpPortClient.java:34)
    Process exited with exit code 0.

    Hi,
    actually you increment the index
    pstmt.setString(++idx,inrecord.getCommentID());
    which means you never have an index of 0 but always start with 1
    Frank

  • Error while transporting class interface

    hi,
    i have developed  class interfaces where i'm using a z-structure(eg ZBMTBATCH) for type definition in public section.
    The interface is activated and is working fine is development server.
    when i transported it in quality, the transport req failed showing error  " ZBMTBATCH not found".
    This structure is a trans table and is activated.
    Same type of error occured  in transport req of all other class interface . only difference is the structure.
    The class interface throwing this error has one common similarity,  the error it is throwing is for the first declaration.
    i mean in public section if declaration is of type :
    tbatch type ZBMTBATCH
    than in transport log its throwing error as "ZBMTBATCH not found"
    please suggest some reasons

    Hello,
    Are u transporting the Structure also together with the Class.
    If not first add the Structure to a TR and move it to Quality system. Then Re transport the TR with Classes.
    Hope this will helps you.
    Regards,
    Vasanth

  • What is a "Class Interface"?

    I know what a class is; I know what an interface is. Today I was looking at somebodies code, and in SE24 they have defined a "Class Interface", NOT a class or an interface.
    Does anybody know:
    1) What is the difference between this and an ordinary interface?
    2) How do you create it in SE24 (When you create a new entity here it gives the option for "Class" or "Interface", but not "Class Interface"?

    What you may be seeing is the description next to the actual class name in SE24, where it says "Class Interface".  Is this right?  If so,  just know that this is a class and the description here is a little misleading.  There are only classes and interfaces in regard to obect types, there is not a third.
    http://help.sap.com/saphelp_erp2005/helpdata/en/ee/e440ac70a111d1b44c0000e8a52bed/frameset.htm
    Regards,
    Rich Heilman

  • Class, interface, or enum expected error

    import java.awt.Graphics;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class InventoryFinal
    //main method begins execution of java application
    public static void main(final String args[])
    int i; // varialbe for looping
    double total = 0; // variable for total inventory
    final int dispProd = 0; // variable for actionEvents
    // Instantiate a product object
    final ProductAdd[] nwProduct = new ProductAdd[5];
    // Instantiate objects for the array
    for (i=0; i<5; i++)
    nwProduct[0] = new ProductAdd("CD", 10, 18, 12.00, "Jewel Case");
    nwProduct[1] = new ProductAdd("Blue Ray", 9, 20, 25.00, "HD");
    nwProduct[2] = new ProductAdd("Game", 8, 30, 40.00, "Game Case");
    nwProduct[3] = new ProductAdd("iPod", 7, 40, 50.00, "Box");
    nwProduct[4] = new ProductAdd("DVD", 6, 15, 15.00, "DVD Case");
    for (i=0; i<5; i++)
    total += nwProduct.length; // calculate total inventory cost
    final JButton firstBtn = new JButton("First"); // first button
    final JButton prevBtn = new JButton("Previous"); // previous button
    final JButton nextBtn = new JButton("Next"); // next button
    final JButton lastBtn = new JButton("Last"); // last button
    final JButton AddBtn = new JButton("Add"); // Add button
    final JButton DeleteBtn = new JButton("Delete"); // Delete button
    final JButton ModifyBtn = new JButton("Modify"); // Modify button
    final JButton SaveBtn = new JButton("Save"); // Save button
    final JButton SearchBtn = new JButton("Search"); // Search button
    final JLabel label; // logo
    final JTextArea textArea; // text area for product list
    final JPanel buttonJPanel; // panel to hold buttons
    //JLabel constructor for logo
    Icon logo = new ImageIcon("C:/logo.jpg"); // load logo
    label = new JLabel(logo); // create logo label
    label.setToolTipText("Company Logo"); // create tooltip
    buttonJPanel = new MyJPanel(); // set up panel
    buttonJPanel.setLayout( new GridLayout(1, 4)); //set layout
    // add buttons to buttonPanel
    buttonJPanel.add(firstBtn);
    buttonJPanel.add(prevBtn);
    buttonJPanel.add(nextBtn);
    buttonJPanel.add(lastBtn);
    buttonJPanel.add(AddBtn);
    buttonJPanel.add(DeleteBtn);
    buttonJPanel.add(ModifyBtn);
    buttonJPanel.add(SaveBtn);
    buttonJPanel.add(SearchBtn);
    textArea = new JTextArea(nwProduct[3]+"\n"); // create textArea for product display
    // add total inventory value to GUI
    textArea.append("/nTotal value of Inventory "+new java.text.DecimalFormat("$0.00").format(total)+"\n\n");
    textArea.setEditable(false); // make text uneditable in main display
    JFrame invFrame = new JFrame(); // create JFrame container
    invFrame.setLayout(new BorderLayout()); // set layout
    invFrame.getContentPane().add(new JScrollPane(textArea), BorderLayout.CENTER); // add textArea to JFrame
    invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH); // add buttons to JFrame
    invFrame.getContentPane().add(label, BorderLayout.NORTH); // add logo to JFrame
    invFrame.setTitle("CD & DVD Inventory"); // set JFrame title
    invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // termination command
    //invFrame.pack();
    invFrame.setSize(600, 600); // set size of JPanel
    invFrame.setLocationRelativeTo(null); // set screen location
    invFrame.setVisible(true); // display window
    // assign actionListener and actionEvent for each button
    firstBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end firstBtn actionEvent
    }); // end firstBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    prevBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[4]+"\n");
    } // end prevBtn actionEvent
    }); // end prevBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    nextBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[2]+"\n");
    } // end nextBtn actionEvent
    }); // end nextBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    lastBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[3]+"\n");
    } // end lastBtn actionEvent
    }); // end lastBtn actionListener
    textArea.setText(nwProduct[4]+"n");// assign actionListener and actionEvent for each button
    AddBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end AddBtn actionEvent
    }); // end AddBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    DeleteBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end DeleteBtn actionEvent
    }); // end DeleteBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    ModifyBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end ModifyBtn actionEvent
    }); // end ModifyBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    SaveBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end SaveBtn actionEvent
    }); // end SaveBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // assign actionListener and actionEvent for each button
    SearchBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(nwProduct[0]+"\n");
    } // end SearchBtn actionEvent
    }); // end SearchBtn actionListener
    textArea.setText(nwProduct[4]+"n");
    // prevBtn.addActionListener(new ActionListener()
    // public void actionPerformed(ActionEvent ae)
    // dispProd = (nwProduct.length+dispProd-1) % nwProduct.length;
    // textArea.setText(nwProduct.display(dispProd)+"\n");
    // } // end prevBtn actionEvent
    // }); // end prevBtn actionListener
    } // end main
    } // end class Inventory4
    class Product
    protected String prodName; // name of product
    protected int itmNumber; // item number
    protected int units; // number of units
    protected double price; // price of each unit
    protected double value; // value of total units
    public Product(String name, int number, int unit, double each) // Constructor for class Product
    prodName = name;
    itmNumber = number;
    units = unit;
    price = each;
    } // end constructor
    public void setProdName(String name) // method to set product name
    prodName = name;
    public String getProdName() // method to get product name
    return prodName;
    public void setItmNumber(int number) // method to set item number
    itmNumber = number;
    public int getItmNumber() // method to get item number
    return itmNumber;
    public void setUnits(int unit) // method to set number of units
    units = unit;
    public int getUnits() // method to get number of units
    return units;
    public void setPrice(double each) // method to set price
    price = each;
    public double getPrice() // method to get price
    return price;
    public double calcValue() // method to set value
    return units * price;
    } // end class Product
    class ProductAdd extends Product
    private String feature; // variable for added feature
    public ProductAdd(String name, int number, int unit, double each, String addFeat)
    // call to superclass Product constructor
    super(name, number, unit, each);
    feature = addFeat;
    }// end constructor
    public void setFeature(String addFeat) // method to set added feature
    feature = addFeat;
    public String getFeature() // method to get added feature
    return feature;
    public double calcValueRstk() // method to set value and add restock fee
    return units * price * 0.10;
    public String toString()
    return String.format("Product: %s\nItem Number: %d\nIn Stock: %d\nPrice: $%.2f\nType: %s\nTotal Value of Stock: $%.2f\nRestock Cost: $%.2f\n\n",
    getProdName(), getItmNumber(), getUnits(), getPrice(), getFeature(), calcValue(), calcValueRstk());
    } // end class ProductAdd
    class MyJPanel extends JPanel
    //private static Random generator = new Random();
    private ImageIcon picture; //image to be displayed
    // load image
    public MyJPanel()
    picture = new ImageIcon("mypicture.png"); // set icon
    } // end MyJPanel constructor
    // display imageIcon on panel
    public void paintComponent( Graphics g )
    super.paintComponent( g );
    picture.paintIcon( this, g, 0, 0 ); // display icon
    } // end method paintComponent
    // return image dimensions
    //public Dimension getPreferredSize()
    // return new Dimension ( picture.getIconWidth(),
    //picture.getIconHeight() );
    } // end method getPreferredSize
    } // end class MyJPanel
    import java.io.File;
    import java.io.IOException;
    public class FileAccessDemo
    public static void main( String[] args ) throws IOException
    // declare variables
    String formatStr = "%s exists in %s? %b\n\n";
    // processing and output
    File file1 = new File( "studentScores.txt" ); // create a File object
    System.out.printf
    (formatStr, file1.getName(), file1.getAbsolutePath(), file1.exists());
    // processing and output
    File folder1 = new File( "c:/personnel/" ); // create a File object
    folder1.mkdir(); // make a directory
    File file2 = new File( "/personnel/faculty.txt" );
    file2.createNewFile(); // create a new file
    System.out.printf
    ( formatStr, file2.getName(), file2.getAbsolutePath(), file2.exists() );
    // processing and output
    file2.delete(); // delete a file, but not the directory
    System.out.printf
    ( formatStr, file2.getName(), file2.getAbsolutePath(), file2.exists() );
    } // end main
    } // end class
    I need help in resolving this error.
    Thanks

    That code isn't where your error is. Here's the errors I get compiling your code:
    H:\java>javac InventoryFinal.java
    InventoryFinal.java:78: ')' expected
    textArea.append("/nTotal value of Inventory "new java.text.DecimalFormat("$0.00").format(total)"\n\n
                                                 ^
    InventoryFinal.java:78: ';' expected
    textArea.append("/nTotal value of Inventory "new java.text.DecimalFormat("$0.00").format(total)"\n\n
                                                                                                   ^
    InventoryFinal.java:340: class, interface, or enum expected
    import java.io.File;
    ^
    InventoryFinal.java:341: class, interface, or enum expected
    import java.io.IOException;
    ^
    4 errorsThe last two errors are on your import statements, which can't be in the middle of a source file. The first two are on this line:
    textArea.append("/nTotal value of Inventory "new java.text.DecimalFormat("$0.00").format(total)"\n\n");Which certainly isn't a legal line of Java code. If you want to connect multiple Strings you need to use the "+" operator.

  • How to access Instance Attribute in a Class Interface from FM ?

    Hi Experts
    I have the following function module code, that passes the syntax, however in the class interface ABC, I have an attribute IJK that is Instance Attribute (Public).  When I modify the code like ABC->IJK but it does not like it, the error is :-
    Field "ABC" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
    Question : How do I declare the Class Interface ABC in my Function Module  that will allow me to access the Instance Attribute ?
    Thanks in advance.
    FUNCTION XYZ.
    if not ABC=>EFG is initial.
        output = ABC=>EFG.
        shift output left deleting LEADING space.
      endif.
    ENDFUNCTION.

    Hello
    You question only makes sense if
    (1) the class / interface is part of the FM's interface (i.e. an IMPORTING - or perhaps CHANGING - parameter)
    (2) the class / interface is defined as global variable in the TOP include of the function group
    If either of these two options is applicable then the coding may look like this:
    " (1) IMPORTING parameter: e.g. IO_INSTANCE TYPE REF TO class / interface name
    IF ( io_instance IS BOUND ).
      io_instance->abc = 'New value'.
    ENDIF.
    " (2) Global variable of function group, e.g. GO_INSTANCE TYPE REF TO class / interface name:
    IF ( go_instance IS BOUND ).
      go_instance->abc = 'New value'.
    ENDIF.
    Obviously, the public attribute ABC must be changeable (i.e. not READ-ONLY).
    Regards
      Uwe

  • XML mapping inheritance problem; missing class indicator field

    Hi!
    I am currently working on a project which involves mapping a large domain model on a XSD schema. For this we use Toplink 10.1.3.1 which is mostly great. But now I have a problem while wanting to use class inheritance.
    In my XSD I have the following defined
    <xs:complexType name="Traject">
         <xs:sequence>
              <xs:element name="SoortTraject" type="SoortTraject"/>
         </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SpecialTraject">
         <xs:complexContent>
              <xs:extension base="Traject">
                   <xs:sequence>
                                 [some elements] 
                   </xs:sequence>
              </xs:extension>
         </xs:complexContent>
    </xs:complexType>My XML is an implementation of this XSD and looks like this
    <Trajecten>
            <Traject xsi:type="SpecialTraject">
                     [implementation of the elements]
             </Traject>
    </Trajecten>My domain model corresponts to the XSD, so there is a Traject object and an inherited SpecialTraject object.
    In the mapping I used the Advanced properties->inheritance on both descriptors telling the Traject descriptor that it was the 'Root Parent Descriptor' ('Use class indicator field' -> 'use XML Schema Type attribute', 'Use class indicator dictionary') and the SpecialTraject what it Child Descriptor was ('Traject').
    When I test my mapping it always results in the same error (no matter how I configure this inheritance mapping). It says :
    [TOPLINK-44] missing class indicator field
    Descriptor: XMLDescriptor(Traject --> [])What am I doing wrong? Does anybody know a sollution?
    Best regards,
    Jouke Stoel
    Developer

    This is the changed XML descriptor file. When I deploy the file it automaticly overrides the old file so it ain't possible that I was still using the wrong file
    <toplink:class-indicator-mappings>
        <toplink:class-indicator-mapping>
            <toplink:class>Traject</toplink:class>
            <toplink:class-indicator xsi:type="xsd:string">Traject</toplink:class-indicator>
        </toplink:class-indicator-mapping>
        <toplink:class-indicator-mapping>
            <toplink:class>SpecialTraject</toplink:class>
            <toplink:class-indicator xsi:type="xsd:string">SpecialTraject</toplink:class-indicator>
        </toplink:class-indicator-mapping>
    </toplink:class-indicator-mappings>I have posted the stacktrace but I had to translate a bit because my exception was in Dutch :)
    Locale is a great invention
    Exception [TOPLINK-44] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DescriptorException
    Exception description: Missing class indicator field of database row [UnmarshalRecord()].
    Descriptor: XMLDescriptor(Traject --> [])
         at oracle.toplink.exceptions.DescriptorException.missingClassIndicatorField(DescriptorException.java:887)
         at oracle.toplink.internal.ox.QNameInheritancePolicy.classFromRow(QNameInheritancePolicy.java:84)
         at oracle.toplink.internal.ox.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:13)
         at oracle.toplink.internal.ox.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:62)
         at oracle.toplink.ox.record.UnmarshalRecord.startElement(UnmarshalRecord.java:352)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:205)
         at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:189)
         at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:147)
         at oracle.toplink.ox.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:228)
    .

  • SFTP with FTP Adapter - Missing class: com.maverick.ssh.SshTransport

    Hi,
    I am trying to use the SFTP with FTP Adapter for a project requirement.
    I have followed the steps as mentioned in the below link
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACDFFFB
    Have configured the oc4j_ra.xml file, but after creating a sample BPEL process with the FTP adapter, got this error message in the log file.
    <2010-04-12 11:21:16,493> <FATAL> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Uncaught exception oracle.classloader.util.AnnotatedNoClassDefFoundError in JCA-work-instance:FTP Adapter-4 - cause:
    Missing class: com.maverick.ssh.SshTransport
    Dependent class: oracle.tip.adapter.ftp.SshImpl.SshImplFactory
    Loader: FtpAdapter:0.0.0
    Code-Source: /D:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/FtpAdapter/FtpAdapter/ftpAdapter.jar
    Configuration: <code-source> in D:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\FtpAdapter\FtpAdapter
    The missing class is not available from any code-source or loader in the system.
    I tried getting a trial licencse for the maverick SSH tool from http://www.3sp.com/requestEvaluation.do?productCode=MAVERICK as discussed in one of the threads, but it redirects to http://www.barracudanetworks.com/ns/products/sslvpn_overview.php
    Could anyone please help in this?
    OR
    Provide steps on how to use SFTP with FTP Adapter.
    Regards,
    Varun

    Hi,
    Thanks for the reply.
    As per client's requirement, we shouldn't be using java service for this functionality.
    And as you said, the oracle adapters are not taking anywhere, but guess have no other choice..
    Cheers,
    Varun

Maybe you are looking for

  • XCBL in ABAP without XI or BC

    Hi experts, I have a serious problem with interfaces unification. I need to read a xCBL sent by a partner. How to read this xCBL in ABAP?. I understand wich need a XSLT program for transform this xCBL. I don't have the Know.How to create this XSLT, w

  • Crashing FCP (two graphics cards?)

    I'm in an unfamiliar studio, newly set up.  I'm working with FCP 7 (with all the latest updates). New Mac Pro tower: MacPro5,1 6-Core Intel Xeon 2.66 GHz 2 processors total number of Cores: 12 and 2 ATI Radeon HD 5770 graphics cards Problem #1: can't

  • Re-installation de CS5.5 suite à installation de Windows 8

    Bonjour, Voici les messages d'erreurs reçu suite à la ré-installation de CS5.5 sur mon PC après avoir installé windows 8: Exit Code: 6 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 78 error(

  • Question about Charging iPhone 5

    Hi I bought an iPhone 5 in New York and the charger does not fit the country where I live (Europe) and my question is it possible to use the charger of the iPhone 4? Tensions of the charges are the same? Or should buy an adapter and use the iPhone 5

  • Moving photos from iPhoto to Bridge

    Is there a good way to change from using iPhoto to Bridge on a mac? I tried creating a folder for Bridge and copying all the existing photos over, but it's a big mess. Each photo from 2013 went into it's own folder with labels that mean nothing. Help