How to invoke a program in Java by Oracle?

Hello everyone! I need help.
Let me draw via a button on the form of Oracle, a Java program created with Eclipse.
how can I do?
Thanks in advance

You can create executable jar files that can start up an application when double clicked. If you want more specifics, search the forums for "executable jar" and I'm sure you'll get more than enough info.

Similar Messages

  • How to run native program with Java program?

    Hello
    I've got following problem. I'd like to write file browser which would work for Linux and
    Windows. Most of this program would be independent of the system but running programs not. How to run Linux program from Java program (or applet) and how to do it in Windows?.
    Cheers

    Try this:
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("ls -l");
    InputStream stream = proc.getInputStream();
    InputStreamReader isr = new InputStreamReader(stream);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    while ( (line = br.readLine()) != null) .....
    "if the program you launch produces output or expects input, ensure that you process the input and output streams" (http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html)

  • How to invoke BPEL process from JAVA API

    Hi Guys
    Any idea if you can tell me how to invoke BPEL process from JAVA API ?
    What to do in BPEL process manager to achieve that?
    Regards
    Deepak

    See http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/invoke.htm#sthref1373 and the JavaDocs http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/toc.htm.

  • How can I find out the java version Oracle has ?

    How can I find out the java version Oracle has built in?
    I've tried with ..
    SELECT comp_id, comp_name, version
    FROM dba_registry ;
    But I get.."table doesn't not exist".
    Thenks in advance!

    Pl post details of OS and database versions. Pl see this MOS Doc
    What Version of Java is Compatible With The Database JVM? [ID 438294.1]     
    and these Oracle docs
    11gR2 - http://docs.oracle.com/cd/E11882_01/appdev.112/e25518/adfns_environments.htm#ADFNS654
    11gR1 - http://docs.oracle.com/cd/B28359_01/java.111/b31225/whatsnew.htm
    HTH
    Srini

  • How to invoke dos shell from java program

    Hi,
    I'm not able to invoke dos shell from java.
    Can any one help me in this issue.
    I'm providing the source code below:
    try{
    Runtime.getRuntime().exec("cmd.exe")
    catch(IOException e) {
    System.out.println(e.getStackTrace());
    Thanks

    Does it throw a different exception?
    Or does it just do nothing at all?
    It does nothing at all[/b
    Is this a standalone Java app?
    Or a Java Applet running via a webbrowser? [b]It's a standalone application

  • How to invoke a 6 parameter java class within jsp

    i have just begun to learned jsp and java recently, so have the question below:
    Situation:
    My boss asked me to do a project for doing online data mining.
    He requested the thing below:
    1. Write a webpage by jsp with some textfield or pull down meun to get the parameter for getting the opinion and the parameter needed for the java class.
    2. When the user click the buttom in the website, then the java class have to be invoked.
    Questions:
    1. ask i put the .java in the server, i can simply use cmd and type the following command:
    java -Xmx800M P05context 1 1 3 6 F01xyz.txt F10xyz.txt
    which F01xyz is the prepared text file for the java class to read and the F10xyz.txt is the output file generated by the P05context.class
    but i don't know how to invoke the P05context.class by jsp
    My boss have suggested me two ways to do this:
    a. write a java virtual class to execute the java program.
    but i don't know how to write.
    i think conceptualy will be like this :
    public class run_java
    public void run java(parameter1,parameter2....,parameter6)
    //run the cmd command
    //java -Xmx800M P05context 1 1 3 6 F01xyz.txt F10xyz.txt
    b. write a javabean in the jsp. and i have try to use this code(at the end of the message:
    but the tomcat server reply a internal error to me
    how cani do ?
    the jsp file-->
    <jsp:useBean id="test" scope="session" class ="P05context" />
    <html>
    <head></head>
    <body>
    <% test.P05context(1,1,3,6,F01xyz.txt,F10xyz.txt); %>
    </body>
    </html>

    I still don't see why the form (the origin of the request) has to be a JSP, As you say, it might be static but forms I've written have usually had some kind of menu framework arround them and other variables. Also if the input is invalid you usually want to re-present the form, with an error message and the fields pre-populated according to what the user put in before. That does require a JSP and you may as well use the same JSP for an empty, as for a rejected request.
    the response to the form should be handled by a servlet. Both is HTML, but the
    form is static, and the reply dynamic. Using the combination; a servlet to do the data processing and a JSP to format the results is more flexible in a number of ways. For example, suppose you find the need to present the data form in, say, Greek? You don't want the processing to be duplicated in English and Greek versions of the results JSP.
    Suppose the boss wants to turn a graphics designer loose on your HTML. Don't want him mucking about with your processing code do you.
    The servlet typically takes the function of controller in the model/view/controller paradigm.
    Code in a servlet is cleaner, better formatted and easier to access with a debugger.

  • How to execute external program in java?

    My question is how to execute an external program in java.
    I need to call a unix command in java.
    Thanks.

    it depends on what you are trying to do. Following are the two methods
    1. Runtime.exec() : this method allows you just to call an external program as a seperate process
    2. JNI (Native Interface) :- As of right now only C and C++ are supported by this method. This method allows you to directly call the C/C++ methods from JAVA

  • HOW TO WRITE ABAP PROGRAMMING IN JAVA BY USING NETWEAVER

    HI,
    i am working with bapi(mean is calling bapis in my java programs).
    please tell me the how to write abap programs in nwds
    Thanqqqqqqqqq
    Guru

    Hi,
    Refer the following links..
    http://manuals.sybase.com/onlinebooks/group-iaw/iag0203e/iadgen2/@Generic__BookTextView/24685
    and this blog
    /people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
    Regards,
    Uma

  • How to invoke my dll in java?

    hi:
    I use Jawin Type Browser generate two java files(DES_in_VBA.java,_DES_in_VBA.java),but I do not know how to use this two java files,beacuse this is my first to use Jawin. Can you tell me Where the two files should to be place,and how to use it good.I had read Jawin's docs,but can not understand it for my poor english.
    Thank you for your help again!!!
    I want use 'FuncPtr' to invoke it,but there can not found the match Invok_* file's.I do not know how to pass my function's paramters!
    There are two function's in my ".dll" file:
    Public Sub DES_Encode(ByRef sCode() As Byte, ByVal sKey As String, ByRef bReturn() As Byte)
    Public Sub DES_Decode(ByRef sCode() As Byte, ByVal sKey As String, ByRef bReturn() As Byte)
    Can you tell me how to invoke the two functions in java,and can you give me a example about how to invoke the two functions?
    Thank you for your help

    http://java.sun.com/docs/books/tutorial/native1.1/index.html

  • How to invoke Netscape from a java program

    Hello
    In my Java program, I would like to launch a Netscape with one file as parameter in order to see the file with Netscape. Is there someone who can tell me how to do that, thanks.
    danfei

    System.getRuntime().exec("fullPathToNetscape/netscape parameter");

  • Invoking python program from java

    I want to execute a parser program(which is in python) that parses log file from java interface.The design of Java user interface has to be such that the log file is obtained from the user into a text field.The file name has to be read from the text field and this has to be taken by the python log parser program.How can this be implemented?

    You can invoke an external program using:
    Runtime.getRuntime().exec("bla.exe");
    See: http://java.sun.com/j2se/1.4.1/docs/api/

  • How to invoke Web Service in JAVA from CRM 5.0

    Hi.
    I created a Web Service in JAVA. Now I want to invoke it from CRM 5.0
    in ABAP. How to do it? Could someone give me detail step in step?
    Thanks in advance!

    check this weblog by Thomas Jung
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Raja

  • How to run a program in java by double clicking on it?

    hi,
    simple question for you all:
    normally when i do java programs i am used to compiling it and running it via JBuilder.
    However, i saw a java program that had been installed on a desktop and the user double clicked it and it came straight up.
    how can this be done?

    You can create executable jar files that can start up an application when double clicked. If you want more specifics, search the forums for "executable jar" and I'm sure you'll get more than enough info.

  • How to run windows program through java applications.

    pls help me!!!!! code RED!~

    C:\Documents and Settings\student\Desktop\Running.java:12: cannot resolve symbol
    symbol : variable JMStudio
    location: class Running
    String path="C:/Program Files/MF2.1.1/bin"+JMStudio;
    ^
    1 error
    this error is generated
    any idea on how to solve it?

  • How to quit the program in Java SE??

    Hi,
    The program below runs perfectly fine, however once I get to the stage of quitting it doesn't work.
    I would like 'Press any key to continue' to appear once I have pressed q.
    import java.util.Scanner;
    public class Week7777
         public static void main(String[] args)
    int j = 0;
                        while (j <1)
    Scanner in = new Scanner(System.in);
              System.out.println("Enter the student's mark as a percentage ('q' to quit): ");
    String input = in.nextLine();
    int inputmark = Integer.parseInt(input);
    char g = getGrade(inputmark);
    if (inputmark<=100)
              System.out.println("The student's grade is " + g );
         else {
                   System.exit();
    j--;
         private static char getGrade(int mark)
                   char grade= 0;
                   if (mark >= 70)
                   grade = 'A';
                   else if (mark>= 60)
                   grade ='B';
                   else if (mark>= 50)
                   grade ='C';
                   else if (mark>= 40)
                   grade ='D';
                   else if (mark>= 30)
                   grade ='F';
                   return grade;
    Please, can you help me sort out this problem.
    Thank you

    Hello Dr Clap
    Thank you for your reply. I really appreciate it.
    It's just that I have only recently started learning how to use Java, I am still building on my knowledge.
    My program works, however once I get to quitting the program by pressing 'q', the following comes up, rather than 'Press any key to continue' which is the ideal.
    "Exception in thread "main" java.lang.NumberFormatException: For input string: "q........"
    I sent you the complete program, what details are you talking about?
    I am not quite sure where I went wrong. So I would really appreciate it if you could help me.
    Thank you
    import java.util.Scanner;
    public class Week77
    public static void main(String[] args)
    int j = 0;
    while (j <1)
    Scanner in = new Scanner(System.in);
    System.out.println("Enter the student's mark as a percentage ('q'):");
    String input = in.nextLine();
    int inputmark = Integer.parseInt(input);
    char g = getGrade(inputmark);
    if (inputmark<=100)
    System.out.println("The student's grade is " + g );
    else
    //else if the user does not enter the mark
                        System.exit(0);
    j--;
    private static char getGrade(int mark)
    char grade= 0;
    if (mark >= 70)
    grade = 'A';
    else if (mark>= 60)
    grade ='B';
    else if (mark>= 50)
    grade ='C';
    else if (mark>= 40)
    grade ='D';
    else if (mark<40)
    grade ='F';
    return grade;
    }

Maybe you are looking for

  • How can you sort an album that was released in 2007 but has 80s music on

    I have v8 of iTunes, almost completed all my tagging how I want it in iTunes for all my music I have a query though, I have a 80s, 90s smart playlist. I have recently got an album that was released in 2007, so the year in my library is 2007, however

  • My i phone 4s ios 7 doesn't join the network

    my i phone 4s ios 7 doesn't join the network

  • Lost Disk space after Reinstalling Leopard

    I upgraded my Mac OS v.10.4.9 to Leopard v.10.5.1 in May and after Leopard was installed I had about 13 GB HD space left. It was lightning quick too. The new OS was v.10.5.1 Since then I've been downloading regular Security updates as they were promp

  • Resume Developer Program Enrollment Problem for iOS

    Hi everybody, When i tryed to enroll i didnt know that i needed a DUNS Number. I paused my enrollment and after couple of days i got my DUNS Number, but then when i entered all the details in the form it wont proceed. I try two days now to enroll and

  • Microphone (not speaker) issue

    Hey Folks... overall, I'm just loving my iPhone. Activation was easy and syncing had no problems. However, there does seem to be one issue. Unlike some of the posts I've read, I don't have a volume problem. I can hear everyone fine. But, no one can h