ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Le Roux <jacques.le.r...@les7arts.com>
Subject js.jar compilation problem
Date Sat, 01 Jul 2006 14:26:40 GMT
I just made a fresh check out. Making an "ant run install" I had this already known problem
:

classes:
    [javac] Compiling 40 source files to D:\ofbiz avant ASL\applications\product\build\classes
    [javac] D:\ofbiz avant ASL\applications\product\src\ShipmentScaleApplet.java:42: package
netscape.javascript does not exist
    [javac] import netscape.javascript.JSObject;
    [javac]                            ^
    [javac] D:\ofbiz avant ASL\applications\product\src\ShipmentScaleApplet.java:215: cannot
resolve symbol
    [javac] symbol  : class JSObject
    [javac] location: class ShipmentScaleApplet
    [javac]         JSObject win = JSObject.getWindow(this);
    [javac]         ^
    [javac] D:\ofbiz avant ASL\applications\product\src\ShipmentScaleApplet.java:215: cannot
resolve symbol
    [javac] symbol  : variable JSObject
    [javac] location: class ShipmentScaleApplet
    [javac]         JSObject win = JSObject.getWindow(this);
    [javac]                        ^
    [javac] 3 errors

BUILD FAILED
D:\ofbiz avant ASL\build.xml:107: The following error occurred while executing this line:
D:\ofbiz avant ASL\applications\build.xml:85: The following error occurred while executing
this line:
D:\ofbiz avant ASL\applications\product\build.xml:105: Compile failed; see the compiler error
output for details.

So I put the js.jar lib in /framework/base/lib (indeed \framework\base\lib it's on Win)

But I can't get rid of this problem

I also tried (silly because /product/build.xml seems right, but why not to see) to put the
js.jar in root, then I made a copy of /framework/base in /base nope.

To run I renames the ShipmentScaleApplet.java to ShipmentScaleApplet.java.buid.pb, then I
can compile

Anybody an idea ?

Jacques

--------------------------------------------------------------------------------

PS : BTW I found also these lines :

prepare:
    [mkdir] Created dir: D:\ofbiz avant ASL\applications\order\build\classes
    [mkdir] Created dir: D:\ofbiz avant ASL\applications\order\build\lib

classpath:

classes:
    [javac] Compiling 30 source files to D:\ofbiz avant ASL\applications\order\build\classes
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderReturnServices.java:90:
warning: getOrderReturnedTotal(boolean) in org.ofbiz.order.order.OrderReadHelper has been
deprecated
    [javac]         double returnTotal = orh.getOrderReturnedTotal(true);
    [javac]                                 ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderReturnServices.java:91:
warning: getOrderGrandTotal() in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]         double orderTotal = orh.getOrderGrandTotal();
    [javac]                                ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderReturnServices.java:1315:
warning: getOrderGrandTotal() in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]                 double grandTotal = helper.getOrderGrandTotal();
    [javac]                                           ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1125:
warning: getOrderGrandTotal() in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]             double updatedTotal = orh.getOrderGrandTotal();
    [javac]                                      ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1128:
warning: getOrderReturnedTotal() in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]             double remainingSubTotal = updatedTotal - orh.getOrderReturnedTotal()
- orh.getOrderNonReturnedTaxAndShipping();
    [javac]                                                          ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1128:
warning: getOrderNonReturnedTaxAndShipping() in org.ofbiz.order.order.OrderReadHelper has
been deprecated
    [javac]             double remainingSubTotal = updatedTotal - orh.getOrderReturnedTotal()
- orh.getOrderNonReturnedTaxAndShipping();
    [javac]                                                                              
         ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1273:
warning: getOrderItemsSubTotal(java.util.List,java.util.List) in org.ofbiz.order.order.OrderReadHelper
has
been deprecated
    [javac]                     double orderSubTotal = OrderReadHelper.getOrderItemsSubTotal(validOrderItems,
allAdjustments);
    [javac]                                                           ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1276:
warning: calcOrderAdjustments(java.util.List,double,boolean,boolean,boolean) in org.ofbiz.order.order.Order
ReadHelper has been deprecated
    [javac]                     BigDecimal orderShipping = new BigDecimal(OrderReadHelper.calcOrderAdjustments(orderHeaderAdjustments,
orderSubTotal, false, false, true));
    [javac]                                                                              ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1284:
warning: getOrderItemSubTotal(org.ofbiz.entity.GenericValue,java.util.List,boolean,boolean)
in org.ofbiz.or
der.order.OrderReadHelper has been deprecated
    [javac]                             amounts.add(i, new BigDecimal(OrderReadHelper.getOrderItemSubTotal(orderItem,
allAdjustments, true, false))); // get the item amount
    [javac]                                                                          ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1285:
warning: getOrderItemAdjustmentsTotal(org.ofbiz.entity.GenericValue,java.util.List,boolean,boolean,boolean)
 in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]                             shipAmts.add(i, new BigDecimal(OrderReadHelper.getOrderItemAdjustmentsTotal(orderItem,
allAdjustments, false, false, true))); // get the shipping amount
    [javac]                                                                           ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1444:
warning: getAllOrderItemsAdjustmentsTotal(java.util.List,java.util.List,boolean,boolean,boolean)
in org.ofb
iz.order.order.OrderReadHelper has been deprecated
    [javac]                 double currentShipping = OrderReadHelper.getAllOrderItemsAdjustmentsTotal(orh.getOrderItemAndShipGroupAssoc(shipGroupSeqId),
orh.getAdjustments(), false, false, true);
    [javac]                                                         ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1445:
warning: getOrderItemsSubTotal() in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]                 currentShipping += OrderReadHelper.calcOrderAdjustments(orh.getOrderHeaderAdjustments(shipGroupSeqId),
orh.getOrderItemsSubTotal(), false, false, true);
    [javac]                                                                              
                                            ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:1445:
warning: calcOrderAdjustments(java.util.List,double,boolean,boolean,boolean) in org.ofbiz.order.order.Order
ReadHelper has been deprecated
    [javac]                 currentShipping += OrderReadHelper.calcOrderAdjustments(orh.getOrderHeaderAdjustments(shipGroupSeqId),
orh.getOrderItemsSubTotal(), false, false, true);
    [javac]                                                   ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:2311:
warning: getOrderItemsSubTotal() in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]             double orderSubTotal = orh.getOrderItemsSubTotal();
    [javac]                                       ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:2313:
warning: getAllOrderItemsAdjustmentsTotal(java.util.List,java.util.List,boolean,boolean,boolean)
in org.ofb
iz.order.order.OrderReadHelper has been deprecated
    [javac]             double shippingAmount = OrderReadHelper.getAllOrderItemsAdjustmentsTotal(orderItems,
orderAdjustments, false, false, true);
    [javac]                                                    ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\order\OrderServices.java:2314:
warning: calcOrderAdjustments(java.util.List,double,boolean,boolean,boolean) in org.ofbiz.order.order.Order
ReadHelper has been deprecated
    [javac]             shippingAmount += OrderReadHelper.calcOrderAdjustments(orderHeaderAdjustments,
orderSubTotal, false, false, true);
    [javac]                                              ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\ShoppingCart.java:1748:
warning: calcOrderAdjustments(java.util.List,double,boolean,boolean,boolean) in org.ofbiz.order.order
.OrderReadHelper has been deprecated
    [javac]         return OrderReadHelper.calcOrderAdjustments(this.getAdjustments(), this.getSubTotal(),
false, false, true);
    [javac]                               ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\ShoppingCart.java:2235:
warning: calcOrderAdjustments(java.util.List,double,boolean,boolean,boolean) in org.ofbiz.order.order
.OrderReadHelper has been deprecated
    [javac]         return OrderReadHelper.calcOrderAdjustments(this.getAdjustments(), getSubTotal(),
true, false, false);
    [javac]                               ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\ShoppingCart.java:3670:
warning: calcOrderAdjustment(org.ofbiz.entity.GenericValue,double) in org.ofbiz.order.order.OrderRead
Helper has been deprecated
    [javac]                 taxTotal += OrderReadHelper.calcOrderAdjustment(v, cart.getSubTotal());
    [javac]                                            ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\ShoppingCart.java:3692:
warning: calcItemAdjustment(org.ofbiz.entity.GenericValue,java.lang.Double,java.lang.Double)
in org.o
fbiz.order.order.OrderReadHelper has been deprecated
    [javac]                     itemTax += OrderReadHelper.calcItemAdjustment(v, new Double(quantity),
new Double(item.getBasePrice()));
    [javac]                                               ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\ShoppingCartItem.java:1569:
warning: calcItemAdjustments(java.lang.Double,java.lang.Double,java.util.List,boolean,boolean,boo
lean,boolean,boolean) in org.ofbiz.order.order.OrderReadHelper has been deprecated
    [javac]         return OrderReadHelper.calcItemAdjustments(new Double(quantity), new Double(getBasePrice()),
this.getAdjustments(), true, false, false, false, false);
    [javac]                               ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\shipping\ShippingEvents.java:118:
warning: getShippableWeight(java.lang.String) in org.ofbiz.order.order.OrderReadHelper has
been deprecated
    [javac]                 contactMechId, orh.getProductStoreId(), orh.getShippableItemInfo(shipGroupSeqId),
orh.getShippableWeight(shipGroupSeqId),
    [javac]                                                                              
                       ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\shipping\ShippingEvents.java:119:
warning: getShippableQuantity(java.lang.String) in org.ofbiz.order.order.OrderReadHelper ha
s been deprecated
    [javac]                 orh.getShippableQuantity(shipGroupSeqId), orh.getShippableTotal(shipGroupSeqId));
    [javac]                    ^
    [javac] D:\ofbiz avant ASL\applications\order\src\org\ofbiz\order\shoppingcart\shipping\ShippingEvents.java:119:
warning: getShippableTotal(java.lang.String) in org.ofbiz.order.order.OrderReadHelper has
b
een deprecated
    [javac]                 orh.getShippableQuantity(shipGroupSeqId), orh.getShippableTotal(shipGroupSeqId));
    [javac]                                                              ^
    [javac] 24 warnings

jar:
      [jar] Building jar: D:\ofbiz avant ASL\applications\order\build\lib\ofbiz-order.jar


HTH

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message