How to Create Multiple Sources/Classes with one Script

I am trying to get all of my java sources, or classes, into one script so that I can move them all to another server without having to compile each file individually. When I concatenate two files and try to compile I get an ORA-29536: badly formed source error.
How can I get multiple definitions into one file and compile all of the classes?
Thanks,
Gregory

Gregory:
If you want to upload several Java classes in one script the solution is .sql file, for example:
set define ?
create or replace and compile java source named "my.Sleep" as
package my;
import java.lang.Thread;
public class Sleep {
public static void main(String []args) throws java.lang.InterruptedException {
if (args != null && args.length>0) {
int s = Integer.parseInt(args[0]);
Thread.sleep(s*1000);
} else
Thread.sleep(1000);
create or replace and compile java source named "my.App" as
package my;
public class App {
public static void main(String []args) throws java.lang.InterruptedException {
System.out.println(args[0]);
exit
Then the .sql file can be parsed using the SQLPlus, JDeveloper or SQLDeveloper tools.
HTH, Marcelo.

Similar Messages

  • Re: How to create More two class with one object

    haii,
             i have small information How to create More two class with one object,
    bye
    bye
    babu

    Hello
    I assume you want to create multiple instance of your class.
    Assuming that you class is NOT a singleton then simply repeat the CREATE OBJECT statement as many times as you need.
    TYPES: begin of ty_s_class.
    TYPES: instance   TYPE REF TO zcl_myclass.
    TYPES: end of ty_s_class.
    DATA:
      lt_itab      TYPE STANDARD TABLE OF ty_s_class
                     WITH DEFAULT KEY,
      ls_record  TYPE ty_s_class.
      DO 10 TIMES.
        CLEAR: ls_record-instance.
        CREATE OBJECT ls_record-instance.
        APPEND ls_record TO lt_itab.
      ENDDO.
    Regards
      Uwe

  • How to create a JClient form with one master block & multiple detail block?

    Hello,
    I am using Jdevelopver 10.1.2
    I want to have a JClient Form with one master table A and two detail tables B, C.
    But in the JClient Form wizard, I can only create a one master with one detail relationship. Can I create multiple details in that wizard ?
    Thanks
    Stephen

    Create a JPanel based on the second detail table with the wizard and add manually the JPanel to the Master-detail Form.
    Regards
    Fred

  • How to create 2 icloud accounts with one apple id

    I would like to find out how to create 2 iCloud accounts using the same apple id. Currently, my husband's iphone4S and my iPhone 4 have merged contacts which we don't want, and when he texts it shows that it is from me.

    You can't do that.  One of you will have to create a new icloud account with a new ID and connect the device to it.
    TO GET DATA FROM ONE ACCOUNT TO A NEW ACCOUNT:
    When connected to the account you want to GET data from, Go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off. 
    When prompted choose to keep the data on the iPhone. 
    After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.
    Note that this only affects the "Apple data" like contacts, calendars, reminders, etc.  Many third party apps also use iCloud to store data files there.  These files may be lost in the process, unless the apps also keep the data locally on the device.
    NOTE:  Photos in the photo stream (if you use it) will not transfer to the new account.  It is advised that you save the photos to a computer before performing the account switch. 
    CREATING A NEW ID:
    Each user should have their own icloud account, otherwise they end up getting the same emails, contacts, calendars, notes, reminders, etc. - usually not what you want.  But if all have been sharing the same itunes ID, keep it that way, you can have different IDs for itunes and icloud.
    If you already have another icloud account, and want to set it up on a device, then go to Settings>icloud, scroll to bottom of screen and tap Delete Account.  This only disconnects the device from that account, no data is lost on icloud.  Then enter the account ID that you want to use.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/

  • How to create a blinking starfield with one mc

    I have create one blinking star in a mc.
    It´s moving in a circle and blinking and changing
    colors.
    Now I want to create a starfield with blinking stars where
    every individual
    star is moving in a different way.
    The problem is, if I copy and past 100 of this mc with my
    blinking star in the
    same timeline (main) Theres no individuality. (I hope you
    understand my swedish/english).
    I know that I can copy an paste the same mc at 100 different
    frames..but that´s "low tech.
    Now then:
    How the should the actionscript looks like which manage to
    solve this problem?
    random something...??
    I know I can read and learn, but I ´ve been working with
    this site for over a year now and I have
    become halfblind (not really - I use glasses) of reading
    actionsript all nights long and working
    at my regular job from 9 to 5.
    The technical stuff It´s in other words not my strenght
    :wink
    Here´s my portfolio site:
    http://www.goodwill.se
    (The actionscripting is done with a lot of help from this
    forum)

    Creating a blinking starfield from one blinking mc.
    >you need to give your star movie clip a linkage name.
    lets say star_mc. Then loop 100 times. in each loop you attach the
    >star_mc in a random place on the stage. lets say the width of
    your stage is 500wx500h. The code should look like that:
    >for(var i:Number=0;i<100;i++){
    >star_mc=_root.attachMovie("star_mc","star_mc"+i,_rott.getNextHiestDepth())
    >star_mc._x=random(500)
    >star_mc._y=random(500)
    >}
    Cool, this is the first step- to spread the mc all over.
    But I wonder if they can be spread in time.
    So every star move individual in time.
    Now they move and blinking as a group, where every
    star is in the exactly same position in their tweening
    process, in time.
    (the blinking status is exactly the same for eveyone)

  • How to create multiple expanding outlines with all points equal distance to original shape?

    Here's an extremely simple example.. It works with a circle or a square, obviously because it has the same height and width. The problem is when you have irregular shapes, (or in this case, an oval). I know I've seen solutions to this in the past, but I just can't think of how to word this question and find them again.
    I know you can create multiple strokes for an object in the appearance palette, but I'm looking for something more effective than just having colored stroke > white stroke > colored stroke> white stroke > etc.
    Here's a couple examples of the kind of effect I'm looking for.
    Any help would be greatly appreciated.

    You need to use Offset path. Object>Path>Offset path. Use negative numbers to go inside of an existing shape, positive to go outside.
    [ signature removed by forum host - advertising is not permitted ]

  • How to update multiple Sales Orders with one IDOC using IDOC_INPUT_ORDCHG

    Hi Gurus,
    Here's my scenario:
    Consider there are 2 Sales Orders for same Purchase Order -
    Open Quantity
    Sales Order 1
    Article A1
    1
    Sales Order 2
    Article A2
    1
    Say if I want to change Open Quantity of both SO 1 & SO2 by dispatching 1 Quantity each for Article A1 and A2 via ORDCHG, observed that in Include LVEDBF0N, XVBAK-VBELN is checked for only 1 Sales Order.
    Whether it is possible to update multiple SOs with one IDOC using IDOC_INPUT_ORDCHG?

    Hi,
    Check out this link, this deals with the problem you are facing.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
    Regards,
    Runal

  • How to create Multiple Region In to One Region

    hi
    How to create Morw then one into one Region.
    Thanks
    Manoj
    Edited by: Manoj Kaushik on Jan 4, 2010 6:08 AM

    Hi,
    this can be done in Apex 4.0 but in previous Releases i think it is not possible so far i know.
    MDK.

  • How to create multiple users in solaris using script

    hi
    how i can create multiple users (2000 users) using shell script with a common password .
    useradd is creating one user at a time.
    thanks

    I m new to solaris and scripting also.
    how i can write a script for this .

  • SqlLoader: how to create multiple records out of one CSV input line?

    A question concerning the SQL-Loader.
    I need to load data from a CSV file where one of the CSV values determines how many records should be inserted.
    Example of the input data:
    KEYWORD;2;REC1_COL1_X,REC1_COL2_X;REC2_COL1_X;REC2_COL2_X
    KEYWORD;3;REC1_COL1_Y;REC1_COL2_Y,REC2_COL1_Y;REC2_COL2_Y;REC3_COL1_Y;REC3_COL2_Y
    KEYWORD;4;REC1_COL1_Z;REC1_COL2_Z,REC2_COL1_Z;REC2_COL2_Z;REC3_COL1_Z;REC3_COL2_Z,REC4_COL1_Z;REC4_COL2_Z
    If the KEYWORD is found, then the next value determines how many value pairs will follow, and therefore how many rows should be created in the affected DB table.
    As a result I hope to achieve this:
    SELECT Column1, Column2 FROM testTable
    REC1_COL1_X,REC1_COL2_X
    REC2_COL1_X;REC2_COL2_X
    REC1_COL1_Y;REC1_COL2_Y
    REC2_COL1_Y;REC2_COL2_Y
    REC3_COL1_Y;REC3_COL2_Y
    REC1_COL1_Z;REC1_COL2_Z
    REC2_COL1_Z;REC2_COL2_Z
    REC3_COL1_Z;REC3_COL2_Z
    REC4_COL1_Z;REC4_COL2_Z
    I learned how to import data using Oracle SQL loader for cases where one input line more or less matches a (new) row in a DB table. But how to handle this?

    Hello 784948.
    Assuming that the delimiter is a comma, and also assuming that the number of pairs is limited to four, you could use the following tested control fileLOAD DATA
    APPEND
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '1'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER
    , PairCountColumn  FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '2'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '3'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '2'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '3'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '4'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '3'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '4'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , InputColumn1
    , InputColumn2
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    INTO TABLE testTable
    WHEN (1:7) = 'KEYWORD' AND (9) = '4'
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    ( KeywordColumn    FILLER  POSITION(1)
    , PairCountColumn  FILLER
    , FillerColumn1    FILLER
    , FillerColumn2    FILLER
    , FillerColumn3    FILLER
    , FillerColumn4    FILLER
    , FillerColumn5    FILLER
    , FillerColumn6    FILLER
    , InputColumn1
    , InputColumn2
    )Luke
    Please mark the answer as helpful or answered if it is so. If not, provide additional details.
    Always try to provide create table and insert table statements to help the forum members help you better.
    Edited by: Luke Mackey on Aug 5, 2010 1:23 PM (always better to test before posting)

  • How to create multiple spry menu in one site?

    Hello,
    I know it's been answered before but I couldn't get a step by step answer. I have a template already live.  It has a menu with 5 items. I need to add another menu with 7 items in one of the pages in the same site. How could I do this?
    Zandy Leonard
    [Personal contact info removed by moderator]

    Wouldn't it be simpler to add seven items to the menu you have now?
    If that can't fly, please read about Optional Regions.
    http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7acca.h tml#WScbb6b82af5544594822510a94ae8d65-7acaa
    Nancy O.

  • How to create multiple accouting documents for one invoice for diff curr

    Hi experts/gurus,
    I have a requirement where we need to create two two different accounting documents for one invoice. The scenario is this:
    1) We are exporting goods to oversea customer, as such the currency is bill in USD
    2) We also have transportation charges using another condition type, we need to capture this charges/accrual in local currency which is MYR.
    Currently, the system will automatically convert the transporation charges to USD when we create the invoice and the accounting document will be generated in USD for both sales and transport charges.
    is there a way to fullfil the above requirement, any setting in condition type or any user exists we can used to create hte accounting documents.
    Any ideas/input is highly appreciated, points will be awarded

    Hi Wan,
       The following user exits are available in report SAPLV60B for transfer to accounting (function group V60B): So please go through these.
    ·EXIT_SAPLV60B_001: Change the header data in the structure acchd
    You can use this exit to influence the header information of the accounting document. For example, you can change the business transaction, "created on" date and time, the name of the person who created it or the transaction with which the document was created.
    ·EXIT_SAPLV60B_002: Change the customer line ACCIT
    You can use this exit to change the customer line in the accounting document. This exit is processed once the ACCIT structure is filled in with data from document header VBRK.
    ·EXIT_SAPLV60B_003: Change the customer line in costing
    The customer line is filled in differently for costing. You can use exit 003 to influence the ACCIT structure.
    ·EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add information to a GL account item (such as quantity specifications) with this exit.
    ·EXIT_SAPLV60B_005: User exit for accruals
    Once all relevant data for accruals was entered in the GL account item, you can add to this data with this exit.
    ·EXIT_SAPLV60B_006: Change the control line ACCIT
    You can use exit 006 to add information to the control line.
    ·EXIT_SAPLV60B_007: Change the installment plan
    You can use exit 007 to add information to the installment plan
    parameters in the GL account item.
    ·EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and ACCHD
    After the accounting document is filled in with data, you can use exit 008 to change the document once again.
    ·EXIT_SAPLV60B_010: Item table for customer lines
    You can use exit 10 to influence the contents of customer lines before they are created.
    ·EXIT_SAPLV60B_0011: Change the parameter for cash account determination or reconciliation account determination
    You can use this exit to change inbound parameters in order to influence account determination.
    I hope any one of these will solve your problem
    Thanks,
    Murali.

  • How to create multiple DTP REQUESTs with expert routine  ?

    Anyone know if it's posible to create new dtp request's manually from an expert routine, i want to write manually to 2 different ODS in the same expert routine the first is for success records and the second is for rejected records, the problem is that the routine only writes a new request for the succeed record and the rejected records are writed with abap to the other ODS manually without request ID

    hi,
    Just create a direct update DSO for collecting the rejected records.
    Use the function module RSDRI_ODSO_MODIFY for populating this DSo from the transformation ABAP coding.
    The direct update DSO will be having the rejected records after execution of the DTP and the correct records will be processed to the target DSO (correct records)
    Prathish

  • How to move multiple plot scrollbars with one scrollbar

    Hello,
    Does anyone know if there is a property node available where I can use the x-axis scrollbar on one plot to control several x-axis scroll bars at once?  I have three plots and I want them all to scroll back when I drag the scrollbar on one... I've been going through the property nodes but can't find one to do this.
    Much Thanks!
    Solved!
    Go to Solution.

    I think the only way to do this is to monitor the X scale's range, such as the range start. If the user clicks on the scrollbar the range changes so you can detect it that way. You can then set the scale range on the other graphs to match.

  • How can I create multiple sales orders with reference to one contract?

    Hello Gurus,
    Can you please how can I create multiple sales orders with reference to one contract?
    thanks!
    Rakesh

    hi
    Lets consider example
    In your contract for line item 1 you have entered qty 100
    You careated sales order with 70 quantity, and now you want to creat another sales order for 30
    For this first you need to check what is your item category in contract (VA42)
    Goto VOV7
    SPRO - IMG  - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
    Make the completion rule = B Item is completed after full quantity has been referenced

Maybe you are looking for

  • How can I get an item and it's attachments from the current list using SP's JavaScript Client Object Model on newform.aspx?

    I only recently learned/read about SharePoint's JavaScript Client Object Model. I'm reading online trying to figure this out but not having much luck. On newform.aspx (and dispform.aspx) I want to get the current list, the last item created, and it's

  • Quick question about inheritance and exceptions

    If I have two classes like this: public class ClassA {     public void myMethod() throws NumberFormatException {       throw new NumberFormatException(); public class ClassB extends ClassA {     public void myMethod() { }Does myMethod() in classA ove

  • F4 help:Restrict Value Range

    Hello Experts, I want to a search help for one field such that when user click on F4 help , it will again pop- up with one  screen, in which I need to have 2- 4 fields to Restrict the values then user enter some values here then F4 help will appaer.

  • HT4059 Why can't I open my books now?

    Just replaced broken glass ipad2 unit and reloaded my iBooks but I can't open the book I was reading or any others. Any suggestions?

  • Best Simple IDE for MAC OS X

    Hi all, I am just getting started in Java... I am going to take a class at the community college. I want to do my work on a iMac running OSX... I installed Net Beans and while it is nice it seems liek it does way more than I need to start with... I a