Generate, compile, load, execute code on-the-fly

Hi,
I'd like to make something that:
- 1) Generates Java source code (this I can do)
- 2) Compiles this generated source code (I found an unsatisfying solution)
- 3) Loads the newly created classes (I'm stuck here)
- 4) Executes them in this very same program. (That should be trivial once the classes are loaded)
The solution I found for 2) is to invoke the compiler through Runtime.exec(). Isn't there a more integrated solution ?
And for 3), I think there is something to do with a ClassLoader or so, I'll try to figure it out on my own in the meantime.
Thank you,
The Ultimate Koala

see maybe Jakarta BCEL on : http://jakarta.apache.org/bcel/index.html and : http://jakarta.apache.org/bcel/manual.html (Byte Code Engineering Library)

Similar Messages

  • The request to execute code in the sandbox failed

    I have developed a webpart for a client which is hosted on
    O365.
    While saving the webpart properties I am Getting the error"Web Part Error: The request to execute code in the sandbox failed."
    The same web part works on a different O365 site perfectly fine.

    Try below article
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/70b13a7f-c9f8-4bf9-8229-670472959e60/web-part-error-sandboxed-code-execution-request-failed?forum=sharepointdevelopmentprevious

  • Compiling and running jsp-code on the fly.

    I am intending to use jsp as a report engine. The 'templates' should be jsp-code stored in the db, loaded and executed as if they where inside a plain jsp-file in the application. I cannot write new files on the file system since this is prohibited on the production env - so I would like to compile and execute the jsp-code directly in memory.
    Was hoping this could be done with the jee standard stack.
    Does anybode know how to to this, if possible?

    If you just want to run java applications, you just need the JRE: J2SE 5.0 JRE
    If you want to compile java source code, you need the JDK: J2SE 5.0 JDK
    It includes also the JRE. Recommended is also the J2SE 5.0 Documentation that contains the javadoc API that describes all the Java classes.
    To start develeoping I recommend the Java Tutorial: http://java.sun.com/docs/books/tutorial/

  • User changes the page HTML code on the fly and it works... what?!

    Hi,
    I have a report region that generates a number of checkboxes using htmldb_item.checkbox. Each checkbox is associated with a date, and what dates are displayed are based on a number of business rules.
    The user then can select any date she wants (from the available list) and click "Confirm". A page process will identify the selected checkboxes (using the g_f01 array) and do some processing with them.
    For my astonishment, a savvy user found out that, using a plug in like firebug, he could easily modify the page HTML and ADD extra checkboxes to the report, with WHATEVER dates he wanted! When submitting the page, Apex would not complain and would process those extra dates as if they had been sent when the page was generated.
    Well you can imagine the potential impact of this... As a workaround, before processing the dates, I re-apply the same business rules just to be sure those are valid dates.
    So I am a bit lost here... Has anyone else seen this before? Shouldn't Apex identify that there is extra data in the submitted page and raise an error? Is it my fault, the web platform is so insecure that I should be checking everything everywhere and not rely on the submitted data being reliable?
    Any comments welcome.
    Thanks,
    Luis

    Hi, thanks for sending the link for that plug-in, I can't wait to tell my users so they can start using it... :)
    I understand that this in a way is due to the intrinsic weakness of the platform (I developed C/S applications for years and never heard of end users hacking Oracle Forms or Powerbuilder applications... at least not that easily)
    On the other hand, I think that Apex should offer a minimum of automatic checking... for instance, if a tabular form rendered 10 rows, the submitted data should contain the same 10 rows, not more, not less. In fact that was my assumption. Maybe this is something that can be improved?
    Luis

  • Possible to create java code on the fly?

    I'm just curious.
    I am in the process of making a bunch of custom Lightweight components which will be a part of a physics tutorial package. (Stuff like arrows, charges, fields, cars, rocks, etc.). I have some specific tutorial applets I am creating for a prof at my local u using these components.
    In the middle of this, I thought...
    Wouldn't it be GREAT if I could make an extremely simple "editor" which my prof could use directly to create his own applets? (I can certainly do the drag and drop, menus and stuff that would go along with this)
    Is it possible to write a program in Java which writes and compiles Java, without too much fuss?
    Another words, it would be wonderful if my prof could:
    Click on the Charge Object
    Drag it to the Physics Container
    Click on the Physics Container
    Turn on the Electric Field by changing the Container's properties
    Then hit Some Menu->Compile Applet
    and boom!! he'd have his applet exactly the way he wants it. (and the program would create the code for him to put on his website).
    Is it possible?
    :) Jen
    (P.S. please remember that my prof can't do Java, so even Java Beans in an IDE are out).

    Sure it's possible, but there are three things you need to consider here.
    1. Your IDE would support drag-and-drop as per your requirements. You'd have to learn that incase you haven't already done so.
    2. There's no point in writing your own Java compiler. You could after pouring through the specifications, but it's better just to generate the source file and compile it by running javac through your application.
    3. The source code generation. Depending on which part of your final applet code is fixed and which is variable this could be lot of work (the trickiest part being to decide what is fixed and what is variable.. in other words, the design).
    It sounds like fun alright, but you would get the same results by just putting all these features in the applet itself. Have the applet allow the user to choose amongst a host of features (the ones that you plan to put into your editor). I guess you'll have to make your final decision based on how much time you have.
    Have fun and best of luck.
    Arjun

  • Create Timer Jobs dynamically using code (on the fly)

    What I am trying to accomplish here is different from the usual "Create and deploy a new custom timer job". So please co operate.
    Scenario : I have around 200 lists in my site. Each list gets its data from a third part web service (cutom code / not BCS). The data retrieval happens via Timer Jobs. The Timer Jobs call the web service, gets the fresh data and updates the
    list items. This is currently working fine with multiple lists and 1 timer job to refresh the data.
    Problem : Now the issue I am facing is, each of the lists have its own Refresh Frequency. Say List 1 to 30 needs to be refreshed every 5 mins. List 31 to 60 every 10 mins, etc. I am currently handling this by having a RefreshLastRun timestamp.
    This works fine in most of the scenarios - unless the Web service returns large data, in which case it takes more than 5 to 10 mins for the Update to complete on 4 to 5 lists. At the same time, the other lists - they were supposed to be updated 5 mins ago,
    but are still waiting to get updated because the timer job is busy updating another list, and the refresh is in Que. This is a completely unaccepatable solution to my client because the list with lower frequency duration (5 mins) is of a higher priority than
    the lists getting refreshed every 10 mins.
    My Question is : How do I create a new Timer Job for each list? Whenever I add a new list (through code), I want to create a Timer Job at the same time, which will take care of refreshing the data in this and this list only. This way, I will
    have a independent Timer Job for each list and dont have to depend on 1 timer job to take all the load. With this approach I will have 200 timer jobs running. Which is OK with my client. So I create one class inhereting from SPJobDefinition class, and
    use it repeatedly to create unlimted timer jobs?
    I hope I am able to convey the message. My Timer Jobs are working fine. I dont need suggestions on how to get the timer job working etc. My question is, how do I create a new Job Definition dynamically through code (no deployment).
    Hanif

    I'm afraid this leads to a path where you create a single timer job (or windows service) that uses parallel programming (tpl) to handle all the lists. However, that places a huge burden on you to manage schedules, monitoring etc., something the timer job
    framework handles for you.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Replacement for PhaseListener in RAP 3.0 - execute code on the UI thread

    Hello,
    we've used a PhaseListener to open/close a database connection for each request.
    The database connection is tied to the current UI thread.
    Do you have any suggestion how to realize this without using a phase listener in RAP 3.0?
    I've tried to use a MessageFilter but the handleMessage method is not executed on the UI thread.
    Thank you,
    Ken

    Hi Ralf,
    thank you for the explanation.
    We actually do not open a connection for each request. We just start a "unit of work" for the current thread that is able to track the database connections that are created on demand. This unit of work (and hence the underlying connections) is closed after a request.
    Now the problem is that we need to execute the code that starts and stops the unit of work within the UI thread. This is due to the fact that our model objects (that are displayed by JFace viewers for example) are bound to an entity manager that requires an active unit of work for the current thread to open an underlying database connection.
    I don't see any other solutions as using a phase listener for the start and stop events of the UI thread or starting/stopping the unit of work for any individual interaction with the model objects. It is practically impossible to implement the latter in a clean way.
    Any comments or suggestions are welcome.
    Best regards,
    Ken

  • Compilation/loading/execution  of  XSLT mapping in XI at runtime

    Hi all,
    once a xslt is added to the interface mapping as XSL how its getting compiled/loaded/executed at runtime, since we adding the xslt code as such to the imported archives?did all these steps will take place for each message processing? or is there any approach like xslt caching which will improve the performance at runtime?
    kind regards
    francis

    did all these steps will take place for each message processing - YES
    is there any approach like xslt caching which will improve the performance at runtime? - interms performance xslt is not good.
    Regards,
    Venu.

  • Adf valueChangeListener autosubmit=true, execute code after update model

    Hello.
    I'm working with the valueChangeListener and autosubmit="true". I'll try to explain my situation
    with an example.
    jsp:
    <af:form>
         <af:panelForm>
              <af:inputText
                   id="value1"
                   label="Value1"
                   value="#{index.myObject.value1}"
                   autoSubmit="true"
                   valueChangeListener="#{index.changeListener1}"/>
              <af:inputText
                   id="value2"
                   label="Value2"
                   value="#{index.myObject.value2}"/>
         </af:panelForm>
    </af:form>
    backing:
    public class Index {
        private MyObject myObject;
        public Index() {
            myObject = new MyObject();
        public void changeListener1(ValueChangeEvent valueChangeEvent){
              doSomethingWithMyObject(myObject);
        // ... get/set of myObject
    MyObject:
    public class MyObject {
        private String value1;
        private String value2;
        public MyObject() {}
         //getters/setters...
    }In the line doSomethingWithMyObject(myObject) i need myObject with the actual values in the user form.
    in the example above, the first time the page is rendered and shows the inputs
    if the user captures something in the 1st input and then hits the tab to go to the other input
    the valueChangeEvent is fired, and the code in "index.changeListener1" executed, but at this moment
    the model (myObject) hasn't been updated with the data that the user entered (Validation Phase).
    So i need a way to execute my code called from the "valueChangeEvent" but after the model has been updated
    Some notes about my problem:
         - The doSomethingWithMyObject(myObject) could update data in myObject
         - About binding="#{x.y}":
         I know i can use the binding attribute in the tag <af:inputText binding="#{x.y}"> and then in the code of
         the changelistener the binded component always have the most recent value from the user,
         but i cant' use that, the method needs a MyObject instance.
         - I don't think create a new instance of MyObject and populate it every time the event fires is a good way
         - doSomethingWithMyObject" is a black box, so i don't know what is going to do with myObject
         - In my problem there are more than 2 inputs there will be N components M listeners.
    What I'm trying:
         PhaseListener:
         I have been implementing a solution with a PhaseListener like
         public void afterPhase(PhaseEvent phaseEvent) {
              // just after UPDATE_MODEL_VALUES phase
              FacesContext f = FacesContext.getCurrentInstance();
            Index i = (Index) f.getApplication().createValueBinding("#{index}").getValue(f);
              // at this point the model is updated
              doSomethingWithMyObject(i.getMyObject);
         public PhaseId getPhaseId() {
            return PhaseId.UPDATE_MODEL_VALUES;
              this works but i don't know if this is the answer according to this post (unanswered at this time):
              http://forums.oracle.com/forums/thread.jspa?threadID=611643
         says something about that PhaseListener is not thread safe and blocks the application with more
         than 1 user.
         A wrapper:
         using the controls binded to the backing
         public class Index {
              private MyObject myObject;
              private CoreInputText inputValue1;
              private CoreInputText inputValue2;
              //listener
              //getters/setters
         }     make a wraper like
         public class MyObjectW {
             private Index index; // wrap the backing index
             public MyObjectW(Index index) {
                 this.index = index;
             public String getValue1(){
                 return (String) index.getInputValue1().getValue();
             public String getValue2(){
                 return (String) index.getInputValue2().getValue();
             public void setValue1(Object v){
                 index.getInputValue1().setValue(v);
             public void setValue2(Object v){
                 index.getInputValue2().setValue(v);
        }and then call in the index backing:
    doSomethingWithMyObject( new MyObjectW(this)); so it will access to the most actual values from user at the valueChangeEvent
    But i really would like some way to execute my code called from the "valueChangeEvent" but after the model has been updated
    so i dont need to wrap or implement PhaseListener
    what do you think, what do you suggest, have any solution or a way to do what I'm trying?
    thank you for your help...
    Message was edited by:
    akanewsted

    Hello Frank, thanks for the response.
    When you say
    "If you need an updated object in this listener then you can update it from the value change listener as well"
    you mean i can update the object by myself with the value from getNewValue()? or is there another way
    to call to update the models at this time ?
    I know i have the methods "getOldValue()" and "getNewValue()" in the "ValueChangeEvent" but what if i need
    the actual value from the user in other control than the one that fires the event
    example
    Two inputs:
    in the input1 the user enters some data
    in the input2 when some data is entered it fires valueChangeListener (autosubmit=true)
    in that case what if i need the value the user just entered in the input1 in the valueChangeListener of
    the input2.
    In general the app I'm working must do:
    dynamically generate the controls in the form (inputs, selects etc)
    Attach the control values to a model ( <af:inputText value=#{model.x}"/>
    sometimes execute some script when a value change in a control (valueChangeListener)
    those scripts uses the model (and needs to be an updated model)
              script = " if (value2 = 'xyz') then value1='abc'; return true;";
    if the model is not updated
    the script will use old values and will be wrong
    or if the script change some value in the model, when the update model phase occurs the value from
    the script is lost.
    that's why i need to work directly with the model and not the values in the ValueChangeEvent
    Is there a way to use something like an action in the change of a control value?
    that way the code will execute in the invoke application phase, can this be done ?
    how i can execute code in the invoke application when a valueChangeEvent occurs ?
    hope this help to explain more my situation.
    Thank you for your help and time.

  • Appending FLV files together on the fly

    I have a website that accepts video uploads. I then of a
    content management tool that always me to browse and uploaded
    videos and approve or deny them.
    For any I approve, I then convert the video to FLV, i then
    want the automated process on my site to append a cookie cutter
    trailer video to that uploaded video.
    so my question is, how to append one FLV to another FLV
    through code on the fly on the website?
    any help appreciated
    thanks
    bill

    hi,
    with fms you can create a serverside stream playlist using
    the stream object, this means you can interlace your trailer/advert
    to appear anywhere within the stream dynamically without needing to
    splice and reencode any videos you have.

  • Is there a way to compile or execute mxml files on the Fly...

    Based on the success on PHP which let me script on the fly,
    just recently with the website
    http://heroku.com/ that allow to
    create ruby on rails applications from a web interface, what if a
    apache module or some other of web server, perhaps Adobe
    Application server allow via web interface to compile & execute
    mxml files on the fly...
    This will let everybody to go to a particular website sign-in
    then start building applications in the Adobe Cloud...and name
    their applications and edit all the mxml code perhaps with an AIR
    based application.
    I really can't wait to see something like this in adobe take
    off....
    Best Regards Dino.

    Based on the success on PHP which let me script on the fly,
    just recently with the website
    http://heroku.com/ that allow to
    create ruby on rails applications from a web interface, what if a
    apache module or some other of web server, perhaps Adobe
    Application server allow via web interface to compile & execute
    mxml files on the fly...
    This will let everybody to go to a particular website sign-in
    then start building applications in the Adobe Cloud...and name
    their applications and edit all the mxml code perhaps with an AIR
    based application.
    I really can't wait to see something like this in adobe take
    off....
    Best Regards Dino.

  • Does access scope change the way Object oriented code compiles or executes

    I have started using Acess Scope (Private/Public/Protected/Friend) in my code and I am wondering if ti changes the way the software is compiled and executed.
    I am suffering a 6 minute pre-load startup time and am scrambling to find aything that helps.
    Tim L.
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

    Hi Timmar,
    I don’t think that the Access Scope is the cause of this long pre-load time. However, you can try to set to public in order to see if that makes any change.
    I think this long pre-load time could be related to how many files (VIs and dependencies) are included in your project. Also, if you move the Project folder to a different location (or computer) the next time that you try to open the project it will take a little while to open.
    Regards,
    Richard.

  • Executing tiny programming language compiled byte code with the JVM

    Hello,
    For a project, I am developing a simple programming language, with a syntax not unlike Pascal, which compiles to Java Byte Code. Currently I execute the compiled byte code using my own interpreter. This works OK, but what I'd like to do now is to execute the compiled byte code using the actual existing JVM. The compiled byte code resides in a text file upon compilation of a sample program written in my tiny programming language. Does anyone know how I may start to go about this? Thanks in advance.
    adam

    The only way of getting a standard Java virtual machine to execute your java byte code, is to wrap it up into a completely valid java class file.
    Any constants you use, must be put into the classes constant pool.
    Any local variables will have to go into the local variable table of the method which uses them... etc, etc.
    Something like ASM, would let you dynamically create a Java class file.
    http://asm.objectweb.org/
    regards,
    Owen

  • How do I display on-the-fly generated XML on a web page using DW CS4 Spry regions?

    On a main web page I'm trying to display formatted data from an ASP page that generates XML on-the-fly from a query.
    When I run the ASP page from the browser, the XML formatting of the data works. But when I run the main web page, the data doesn't display.
    I'm using  DW CS4 Spry regionsto display the data on the main page from the XML data generated by the ASP page. Here's the main page code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache" >
    <html>
    <head>
    <script type="text/javascript" src="SpryAssets/xpath.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryData.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryUtils.js"> </script>
    <script type="text/javascript">var A1D1xml = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.asp", "tests/test");</script>
    <title>Test XML Main</title>  
    </head>
    <body>
          <div id="A1D1xml" spry:region="A1D1xml">
                                    <table id="A1D1">
                <tr>
                <th>ID</th>
                <th>Last Name</th>
                <th>Final Status</th>
                </tr>
                <tr spry:repeat="A1D1xml">
                       <td>{acr_id}</td>
                    <td>{acr_lastName}</td>
                    <td>{acr_final_status}</td>
                </tr>
                  </table>
             </div>
    </body>
    </html>
    Here's the code for the page that generates the XML: A1D1ACRs_testWxmlCode.asp
    <html>
    <%
    set objConn=server.CreateObject("ADODB.Connection")
    objConn.Open application("web_test")
    set rs = objConn.Execute( "SELECT acr_id, acr_lastName, acr_final_status from acr_records_grid_view where acr_changeOption = 'A1D1'")
    Response.ContentType = "text/xml"
    Response.AddHeader "Pragma", "public"
    Response.AddHeader "Cache-control", "private"
    Response.AddHeader "Expires", "-1"
    %>
    <?xml version="1.0" encoding="utf-8"?>
    <tests>
      <%While (NOT rs.EOF)%>
                    <test>
                                    <ID><%=(rs.Fields.Item("acr_id").Value)%></ID>
                                    <acr_lastName><![CDATA[<%=(rs.Fields.Item("acr_lastName").Value)%>]]></acr_lastName>
                                    <acr_final_status><![CDATA[<%=(rs.Fields.Item("acr_final_status").Value)%>]]></acr_final_s tatus>
                    </test>
        <%
                    rs.MoveNext()
                    Wend
      %>
    </tests>
    <%
    rs.Close()
    Set rs = Nothing
    %>
    </html>
    Thanks.

    Thanks, but no; I'm using the correct case and folder.
    With this code on the main page, The region flashes the table column header names
    and the code as written for the spry repeat; then instantly disappears from the screen.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="SpryAssets/xpath.js"></script>
    <script type="text/javascript" src="SpryAssets/SpryData.js"></script
    <script type="text/javascript">var A1D1x = new Spry.Data.XMLDataSet("A1D1ACRs_testWxmlCode.xml", "tests/test");</script>
    <title>Test XML Main</title>  
    </head>
    <body>
          <div id="A1D1" spry:region="A1D1x">
                   <table id="A1D1a">
                <tr>
                <th>ID</th>
                <th>Last Name</th>
                <th>Final Status</th>
                </tr>
                <tr spry:repeat="A1D1x">
                    <td>{acr_id}</td>
                    <td>{acr_lastName}</td>
                    <td>{acr_final_status}</td>
                </tr>
                  </table>
             </div>
    </body>
    </html>

  • How to compile and execute a generated file

    Hi,
    Can somebody help me please? My program goes like this:
    I'm creating a program wherein there are two TextArea, left and right, and a button. The role of the left TextArea is where I will type a Java code (what i mean is a class). After typing, the next thing is to press the button. The role of the button, in a user side view, is to show the output of the written java code from the left TextArea to the right TextArea. To have an idea of the program I am creating please refer at this link, http://w3schools.com/html/tryit.asp?filename=tryhtml_tables. This is similar to what im doing.
    My idea is to transfer all what are written in the left TextArea in a file using FileOutputStream and name the file by default as "Testing.java". Definitely the user shall be forced to write a class named Testing.java in the left TextArea. My question is, how am I gonna compile the generated Testing.java, run it at once and post the output at the left TextArea?
    I hope somebody could help me regarding this matter. Below is my code I've done:
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends Frame implements ActionListener
    private TextArea ta_code; //where the java code is written
    private TextArea ta_output; //where the output of the java code will be printed
    private Button btn_ExecComp; //compiles the program written in the ta_code. Execute's the generated class and print the result in the ta_output
    private Panel btn_panel;
    private Panel ta_output_panel;
    private Panel ta_code_panel;
    private Panel ta_panel;
    private Panel main_panel;
    private String str_code;
    private String str_output;
    public Test()
    initialize();
    setupObj();
    public void initialize()
    String text = "public class Testing \n";
    text = text + "{\n";
    text = text + " \n";
    text = text + "public static void main(String args[]) \n";
    text = text + "{ \n";
    text = text + " //insert your code here \n";
    text = text + "} \n";
    text = text + "\n";
    text = text + "} \n";
    ta_code = new TextArea(text);
    ta_output = new TextArea();
    btn_ExecComp = new Button("Execute Code");
    btn_panel = new Panel();
    ta_code_panel = new Panel();
    ta_output_panel = new Panel();
    ta_panel = new Panel();
    main_panel = new Panel();
    public void setupObj()
    btn_ExecComp.addActionListener(this);
    btn_panel.setLayout(new FlowLayout());
    ta_code_panel.setLayout(new FlowLayout());
    ta_output_panel.setLayout(new FlowLayout());
    ta_panel.setLayout(new FlowLayout());
    main_panel.setLayout(new FlowLayout());
    btn_panel.add(btn_ExecComp);
    ta_output_panel.add(ta_output);
    ta_code_panel.add(ta_code);
    ta_panel.add(ta_code_panel);
    ta_panel.add(ta_output_panel);
    main_panel.add(btn_panel);
    main_panel.add(ta_panel);
    this.add(main_panel);
    this.pack();
    this.setVisible(true);
    public void actionPerformed(ActionEvent ae)
    if(ae.getSource() == btn_ExecComp)
    str_code = ta_code.getText();
    try
    byte[] byte_code = str_code.getBytes();
    FileOutputStream fos = new FileOutputStream("Testing.java");
    fos.write(byte_code);
    System.out.println("Testing.java successfully written");
    * How am i be able to compile, run the generated class file and post the output at the right TextArea namely ta_output?
    System.out.println("compiling...");
    System.out.println("compiling successful");
    System.out.println("executing...");
    catch(Exception e)
    e.printStackTrace();
    public static void main(String a[])
    Test t = new Test();
    }

    Hi All,
    After reading Pro*C Question thread I have tried below steps to compile my .C program, but failed with the given errors
    $->cc -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib first.c -o sample
    ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit statusAfter receiving above error I tried below command as an alternative
    $->cc -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib first.c -o first -lclntsh -lsql10
    collect2: library libsql10 not foundCould you please help in resolving above error? Whats missing exactly?

Maybe you are looking for

  • DB Table for Layout Variant in ALV report

    Please help me by providing the table name which will get an entry when we save Layout Variant in ALV(OO ALV grid) output.

  • Issues with my trackpad randomly quitting for a small period of time on my MacBook5, 2

    My track pad will periodically stop working or barely respond. Took it in for service and they said the battery can overheat causing the trackpad to warp or not respond. They replaced the battery but I almost immediately started having the same issue

  • PDF vs WMV Slide Shows

    This is a follow up to a previous submission. I have three separate slide shows to prepare.  They contain 235, 385 and 470 images respectively.  Prior to making a slide show I disable Power Settings from Control Panel.  I have a Windows 7 operating s

  • .xls file import error (P6 v7.0)

    Hello, There is a problem to import .xls file. Usually, when I click Finish Button, there is a message that informing the result whether it is succesful or not. But, when I click Finish Button, there is no message and P6 stopped. Please help me. I us

  • Images of products in quotation(automatically)

    Hi Experts, I have a requirement where the client wants to images of Product(s) to be automatically updated (captured) in a quotation as soon as the products are added, so that the customer can make a quick decision viewing the images of the product.