Changing CLASSPATH from within a program

i need to start rmi registry in my program and i want is to bind to the right CLASSPATH. i know how to do it from the command line, but how do i set it from the program

i need to start rmi registry in my program and i want
is to bind to the right CLASSPATH. i know how to do
it from the command line, but how do i set it from the
programYou can't change it. Your choices for loading libraries
1. Use classpath (either env var or command line option)
2. Use the ext directory.
3. Use a custom class loader - as the previous poster suggested.

Similar Messages

  • Creating a Step for Background Job from within ABAP Program

    Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)
    Step-2:  Trigger a Unix Command to ftp the file to other server.
    Both Step-1 & Step-2 can be done from SM36. 
    Another Scenario:
    Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.
    Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom.    [ Here lc_unixcom has the External Command ].
    Any ideas??? Appreciate help.

    Hi,
    For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.
    For external commands, this should be done only by calling JOB_SUBMIT function module.
    Sandra

  • I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    IP routing doesn't work the way many folks might initially think it does; functional IP routing requires manual configuration and the establishment of static routes and default routes specific to the local network configurations, and it's very easy to get it wrong, or to get the default route swapped. Multiple NIC boxes don't magically work, either. (Been there, done that, wondered what happened to my network when the paths got reordered or my route settings were messed up, etc.)
    Routing configuration errors can be quite subtle, too. (Again, voice of experience. Ever had a thousand-seat office LAN accidentally routing through your desktop? As the, um, unnamed guilty party discovered, getting into that configuration was subtle. Seeing the performance crater on the fellow's box and on the LAN was obvious.)
    Knowing how IP routing works is a prerequisite to getting this configuration to work; there's manual configuration required. Clearly something has gone weird here.
    What to do? Read up on IP routing. I'll again suggest the threads and the manual mentioned earlier.
    And in general, I prefer to avoid using my comparatively expensive Mac boxes as sub-optimal IP routers or as firewall boxes. General-purpose operating systems and generic x86 boxes are going to be inherently poor IP routers. Dedicated routers (or embedded or surplus x86 boxes with routing software loaded) offload the Mac boxes here, and are also typically easier to configure manage. And "real" IP routers can have hardware specific to efficiently routing packets. Use of an outboard firewall or firewall-router box also greatly simplifies gateway routing, too; it's a configuration that many folks and many businesses tend to use.

  • Changing states from within a component

    Let's say that I have a TileList that is rendering data in a
    VBox. Eventually the TileList fills up and starts scrolling. I want
    to change states when clicking on item in the TileList.
    I don't want to place the click-attribute in the TileList,
    because it will change states when I am scrolling the list without
    actually selecting anything.
    I want to say click="currentState='state2'" inside the VBox,
    but that does not work because state2 is at the root level, and I
    don't know how to get to the root-level (in lack of a better word)
    from withing the component.
    This is not the proper syntax, so misunderstand me the right
    way here... Is there an equivallence to
    click="currentState='_root.state2'" in mxml?
    Thanks for any suggestions or best practices. I want the easy
    way out.
    This is the general structure...
    <mx:Application>
    <mx:states>
    <mx:State id="state1"/>
    <mx:State id="state2"/>
    <mx:State id="state3"/>
    </mx:states>
    <mx:TileList dataprovider="{...}">
    <mx:itemRenderer>
    <mx:component>
    <mx:VBox id="ClickThisBoxToChangeStates">
    <mx:Image/>
    <mx:Label/>
    </mx:Vbox>
    </mx:component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

    Your assumption is right.
    It doesn't work because there is no state2-state defined
    within the mx:component.
    In the documentation about changing states it says that I can
    go from application level and change states within a component;
    like this: click="currentState='mycomponent.anotherstate'" but not
    how I can change a state at application level from within a state.
    When I try, it says (at runtime) that the state is not defined.
    So I don't know why <mx:VBox
    click="currentState='state2'"/> doesn't work.
    I apprechiate your expertese a lot.

  • Changing annotations from within MS Access via VBA

    I’m developing code (VBA) within MS Access to communicate with acrobat adobe. The purpose of this code is to change a particular annotation’s text and backcolor (for now). However, when I run the code the annotation property changes but it is not displayed properly. Only after I move annotation slightly then it gets refreshed (from within adobe pro). Is there a method I need to call before pddoc.save in order for it to save it correctly i.e. something similar to repaint in MS access ?
    Dim pdDoc As Acrobat.AcroPDDoc
    Dim pdPage As Acrobat.AcroPDPage
    Dim pdAnnot As Acrobat.AcroPDAnnot
    Set pdDoc = CreateObject("AcroExch.PDDoc")
    pdDoc.Open ("c:\Temp\Test.pdf")
    Set pdPage = pdDoc.AcquirePage(0) ' only have one page
    Set pdAnnot = pdPage.GetAnnot(1) ' grab the first annotation,
    pdAnnot.SetContents ("text goes here")
    pdAnnot.SetColor (255) ' make it red
    pdDoc.Save 1, "c:\Temp\Test.pdf"
    pdDoc.Close
    Set pdDoc = Nothing
    BTW it works fine when the pdf is open while running the code.

    Sure. You can call dbms_output.get_line to get the next line of output.
    Justin

  • Can I change Filename from within Lightroom?

    I am in the Trial Period with Lightroom, having just used it for two days. I assume that one must be able to change a photo's filename from within Lightroom, but I surely can't see how to do it, having looked in the Help file and through all the menus.
    Here's what I'm trying to do. When I take photos, I create a descriptive filename that tells me what's in the image. Then I import a big batch. What I want to do is to create slideshows from those images in a different order from the importing order: maybe it's slide 23, then 15, then 10, etc. I was hoping to do this by sticking sort numbers on the front of the filenames (changing the filenames), and then sorting on the filenames to create the desired slideshow sequence.
    But, I can't find a way to change the filename within LR. If I do it outside LR, then I lose whatever work I've already done on the images.
    Am I overlooking some obvious better way to do this?
    Thanks
    Bob Chapman
    I'm running LR 1.2, Windows XP, 2 GB RAM, big disks.

    Even easier, select the image or images and press F2 to rename.<br /><br /><[email protected]> wrote in message <br />news:[email protected]..<br />> Hi Bob,<br />><br />> To change the filename for an individual file select the file from grid <br />> view and look over at the Metadata panel on the right side of the screen. <br />> Click on the filename in the metadata panel and it should change <br />> appearance to show that it can now be edited. Type Away!<br />><br />> BTW, If you are planning to make the slideshow using the LR Slideshow <br />> module, the easiest way (for me at least) is to put the slides that are <br />> going into the ss into a Collection. (Yep, time to read up on collections <br />> :) Then you can manually order the slides however you want, select them <br />> all, and use the ss Module to create the ss.<br />><br />> Enjoy!

  • Compiling a file from within a program

    I was hoping to write a teching JSP which a user would type in a simple java program and I would read this in to a file and run the program and to check the output to see if it is correct, but I don't know how you would compile and run the read in file. Is there some method that can write a kind of java shell command ?
    Thanks.

    TextPad does just that. For example if the program compiled successfully they create batch files and you can run the prog. from within the TextPad.
    Batch file for running looks like this:
    @ECHO OFF
    C:
    CD \dir1\dir2\AppName
    C:\j2sdk1.4.0\bin\java.exe AppName
    PAUSE
    file AppName.BAT

  • Running ssh from within java program

    Hi!
    I am trying to start ssh from within java e.g.:
    Runtime run = Runtime.getRuntime();
    Process pro = run.exec("ssh -l xx 12.12.12.12");
    But it complains:
    socket: Operation not permitted
    ssh: connect to host 12.12.12.12 port 22: Operation not permitted
    Running ssh from the command prompt works just fine. It's run on win xp.
    What is the problem, and how can I avoid it?
    Endre

    Afraid not. I think maybe it's related to security permissions, but I am really not sure. If you can help, I would appreciate it.
    - Endre

  • -Xms64 from within the program

    Can I set -Xms64 within the program, i.e. main method, instead of it being a command line option? Same applies to some the other JVM options.

    No because the heap requires contiguous memory

  • Finding 'things' dynamically from within a program

    Hi all,
    I have the following 'problem': I'm writing a program that should find a particular folder in SAP Office. I want the program to find this folder as dynamically as possible: so I certainly don't want to use the folder-id hard-coded (besides: I'm writing this program on a development system, and on the prod.system the folder doesn't exist yet). I don't want either to specify a folder-name in my program, because the customer should be able to change that name if he/she likes it, and the program should continue to work correctly, finding the renamed folder (or for that matter, a whole new folder, if the customer wants that) if this (renaming) happens.
    So what I'm looking for is a place (in the system) for the customer to indicate the name of the folder to be found by the program, a place that can be found by the program to read this name (and then find the folder with that name).
    Of course this can be solved by a customer table (with application data, not a customizing table!) with name-value pairs in it. In that case I can use a name (= logical label) hard-coded in the program and read the associated value (in this case the name of the folder to be found) from that table.
    But I don't want to use customertables if it can be done without them, in order not to pollute the system more than necessary.
    So, my question is: can this be done without using a table in the customer-namespace? Does SAP offer such a thing?
    Of course the SAP Office folder is only an example.
    I know they do have something for file names (and paths): it's hidden in the customizing somewhere under SAP Web Application Server. There you can connect logical names to 'real' paths/filenames, which makes it very flexible: in your programs you only need to use the logical name, and on each server you can fill in the actual path on that machine, and your program works everywhere.
    But in general???
    Thanks for any idea's on this subject.
    Regards Fred

    If your are calling RSCONN01 after your function module then remove the submit of RSCONN01. This program will run scheduled every 1 to 5 minutes anyway as background job by the basis .

  • Sending an email from within a program

    Hi,
    I am using SO_DOCUMENT_SEND_API1 to send an email from a program. Everything works fine, but the users don't want to see the popup message titled 'SAPconnect Send Process - List of Sent Objects'.
    Is there anyway I can supress this message from the program, or is it a setting in SAPconnect?
    Thanks
    Lindy

    If your are calling RSCONN01 after your function module then remove the submit of RSCONN01. This program will run scheduled every 1 to 5 minutes anyway as background job by the basis .

  • How can I call a java class from within my program?

    I was wondering if there's a platform independent way to call a java class from my program.

    Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.

  • When creating a Change Request from within an Incident - Can Pull in the Information from the Inicdent?

    My users are currently creating a lot of Change Requests, and we have templates. What they want to do is to pull in the relevant information from the Incident like title, description, attachments, affected user, etc. I have seen similar things where people
    are changing an incident to a service request, and wondered if it were possible to do it from Incident to Change...
    http://gallery.technet.microsoft.com/Create-Incident-from-f19aaea0/view/Discussions

    iPhoto puts them in the book in chronological order.  So to get your photos from an album into an iPhoto book in the same order you will need to use the Photos ➙ Batch Change ➙ Date menu option and set them all to the same date with a 1 minute time difference between each. 
    OT

  • Passing data to se16 from within abap program

    Hi,
    I have an internal table itab defined as three fields (e.g., fld1(10) type c) and would like to pass the data from fld1 row 3 to the se16 textbox and then have se16 process to find the table.
    I used "call transaction 'SE16'." to initiate, but I do not know how to pass the field value to the textbox and then have it process the field value to find the table.  Can anyone advise?
    thanks!

    I believe that this is what you want.
    report zrich_0004.
    data:   bdcdata like bdcdata    occurs 0 with header line.
    start-of-selection.
      perform bdc_dynpro      using 'SAPLSETB' '0230'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'DATABROWSE-TABLENAME'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=ANZE'.
      perform bdc_field       using 'DATABROWSE-TABLENAME'
                           'MARA'.
      call transaction 'SE16' using bdcdata
                                    mode 'E'.
    *        Start new screen                                              *
    form bdc_dynpro using program dynpro.
      clear bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
    *        Insert field                                                  *
    form bdc_field using fnam fval.
      clear bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      append bdcdata.
    endform.
    Regards,
    Rich Heilman

  • Running programs from within other programs

    I have a problem with running small java-applications form within another.
    If I put the BufferedReader for errors first, sometimes it gets stuck
    (without throwing any exceptions) when I want to run applications that
    are working without any errors, when I run them manually. But if I put
    the standardoutput-Reader first, it gets stuck (again without throwing
    any exceptions), when an error occurs. This "getting stuck" always happens
    in the line where the "while" is. It seems that nothing can be read, but its
    not null too.
    Thats part of my code:
    String cmd = "java -cp rightDirectory MyFile";
    Runtime rt = Runtime.getRuntime();
    Process pr = rt.exec(cmd);
    BufferedReader pout = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String line2;
    while ((line2 = pout.readLine()) != null) {
    System.out.println(line2);
    pout.close();
    BufferedReader peout = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String line;
    while ((line = peout.readLine()) != null) {
    System.out.println(line);
    peout.close();
    How can this be done, that it works for all cases?

    hi, Have you read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html ?

Maybe you are looking for

  • Unit test fails after upgrading to Kodo 4.0.0 from 4.0.0-EA4

    I have a group of 6 unit tests failing after upgrading to the new Kodo 4.0.0 (with BEA) from Kodo-4.0.0-EA4 (with Solarmetric). I'm getting exceptions like the one at the bottom of this email. It seems to be an interaction with the PostgreSQL driver,

  • MacBook in target disk mode shows incorrect disk size

    My 80 GB hard drive in MacBook has gone bad (the filesystem is in inconsistent state). I connected it to an iMac in Target Disk Mode. It shows up (unmounted) but the capacity reported by Disk Utility is 20 GB. Does someone know why is that? Is it due

  • Module changes in SAP from GAAP to IFRS

    Hi, I would like to know from you IFRS experts with SAP if you could please tell me the following What are actual changes within SAP modules FI, MM, PP, CO SD from GAAP to IFRS? In addition, what are the actual physical field or option changes that w

  • The body of email is not showing, have to click open the email to see it

    the body of the emails in my inbox are suddenly not showing, have to click open to see them, then it works. It is not how it should work. Have I, by mistake, changed anything that caused it? Updated the OSX Yosemite one day ago

  • Erase asynchronous message

    Hi Gurus! i´already schuedule the job in sxmb_adm the deletion jobs               -DEFINE INTERFACES FOR ARCHIVING AND RETENTION PERIODS        -SCHEDULE DELTES JOBS But I can´t find yet, some way to erase asynchronous message, any idea?