How to write java hello world to run in oracle sql prompt

Hi,
I'm newbie of this chapter. I know JDBC. I wanted to introduce the JDBC process & start executing the same in orcle sql prompt.
Do enlighten with an example.
Thnx in Advance

create or replace and compile java source named helloworld as
public class HELLOWORLD{public static String HELLOWORLD() {return "Hello World";}}
create or replace function printhelloworld return varchar2 as
language java name 'HELLOWORLD.HELLOWORLD() return String';
SQL> select printhelloworld from dual;
Hello WorldRegards
Laurent

Similar Messages

  • How to write Java Scripts in Apex

    Hi All,
    Can any on tell me how to write Java Scripts in Apex.
    Thanks in Advance,
    Mukund

    If you want to link your custom JavaScripts to an Apex page, you have several options:
    1. Add an HTML Region on Page 0 (Script will be written to every page) called something like "JavaScript & CSS". In this region add your Script to the region source like this:
    <script language="JavaScript">
    function hell ()
    alert ("Hello World");
    </script>
    2. Add a similar region to the page you are working on (can only be accessed on this page)
    3. Create an external JavaScript file and either load it into the WORKSPACE or into the images (/i/) directory on the server. You can then link the JS into you page via modifying the Page Template.
    Hope that makes sense. Let me know if you want any further help with option 3.
    Duncs

  • How to write java code to read the pixel color in some place of screen?

    Hello all:
    How to write java code to read the pixel color in some place of screen?
    The java application iteself doesn't have any GUI.
    thank you
    -Danel

    See java.awt.Robot

  • How to write java programme

    can any one how help me to write java programme

    nani,
    can anyone help me to write java programmeI can't resist a good flame.
    Yes we can probably all assist, in differing measure, in such a lofty goal. Now pray tell, which of the approximately 2 gazillion possible programs where you thinking of tackling? Let me take a punt... might it the ubiquitous "Hello World"?
    Hmmm... yep lots & lots of people can probably help you that one... I wonder of any of them will?
    Seriously, I suggest you start here, and (after a good chuckle - laughter is very good for you you know) move onto here and/or here
    Have fun.
    keith.

  • How can I remove "Hello World!" from my browser menu bar

    I just noticed there'e something in my brower menu bar that has never been there before. Next to the other menu options (File, Edit, View, History, etc.) appears the words"Hello World!". I know it wasn't there two weeks ago, and it's highly unlikely I would have missed seeing it a few days ago when I last did extensive browsing. In hopes of fixing the problem myself, I deleted the only two FF add-ons installed to my PC in the past month. I also ran a system restore to a point created 35 days ago. But "Hello World!" still remained in the menu bar. When I try clicking it on, nothing happens. I tried removing it by pressing the "Customize"option in the toolbar, but it "Hello World!" would not drag down from the menu bar. I was still running FF version 22.0., and when I saw that an update to FF 23.0 was available, I ran the update, but this did nothing the fix my issue (I'm currently back to FF22.0, due to the System Restore that I ran earlier). Finally, I went to both my "Program Files" folders, and sorted them using "Date Modified", to identify any programs changed or added in the past several weeks. There were only a few programs changed in this timespan, so I scoured all files within those few folders, but nothing stood out as unusual. CAn anyone tell me what this "Hello World!" is or why it is appearing in my menu bar? Most importantly, would anyone know how I can remove it permanently ? Following Firefox's instructions, I've created a Print Screen photo showing my brower toolbars, including the menu bar ( at the very top just above my address bar), so that you can see where "Hello World!" appears. Not sure yet how to attach the PrtScn photo to this question I'm about to submit, so if it doesn't make it to the forum with my question, I can send it to anyone who emails me a reply.
    Thank You.

    THis is a reply to my own question, so that I can upload the Print Screen image of my browser toolbar. Look for "Hello World!" at the top, just above my address bar. Thanks again to anyone who can help me remove this from my menu bar.

  • Cannot get hello world to run?!

    Ack, an IDE is a terrible thing. I recently tried to compile/run a java program the old fashioned way (from DOS command prompt), and I can't even get a simple hello world prog to run!
    I've got a file "Hello.java" with the code
    public class Hello {
    public static void main(String[] args) {
    System.out.println("hello, world!");
    } from the command prompt, i then do "javac Hello.java", which works fine, and then a "java Hello". Unfortunately, "java Hello" says "NoClassDefFoundError: Hello"... I can't for the life of me figure out why something so simple isn't working. Anyone? I'm getting pretty desperate here lol...

    hi,
    may be your class path doesn't set.
    set classpath=.;%classpath%;copy and paste it into your current dir and try once

  • HOW T0: Create a "Hello, World!" sample project.

    HOWTO: The "Hello, World!" Sample Project
    Follow these steps to create, compile, and run a simple Java program in JDeveloper:
    1.Create a project. Choose File | New Empty Project. A new project node, with a name resembling MyProject1.jpr will appear
    in the Navigation pane.
    2.Create a Java file. Make sure your project node is selected, and choose File | New. The Object Gallery opens. Select the Objects
    tab and double-click the Class icon. In the Class Wizard dialog that opens:
    1.Replace the default class name with "HelloWorld".
    2.Click OK.
    A new file node, named HelloWorld.java will appear under your project node.
    3.Edit the file. Double-click the file node to open the file. Edit the file, adding this method to the definition of the HelloWorld class.
    public static void main(String[] args) {
    System.out.println("Hello, World!");
    4.Build the project. Choose Project | MakeProject. A message will appear, reporting success or failure, in the Status line at the
    bottom of the JDeveloper window. If there are errors they will be listed in the Message View pane, under the Compiler tab.
    5.Run the project. When the project has been successfully built, Choose Run | Run. Your message will be printed in the Message
    View pane, under the HelloWorld tab.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Goering (JDeveloper Team):
    [b]HOWTO: The "Hello, World!" Sample Project</p>
    Follow these steps to create, compile, and run a simple Java program in JDeveloper:</p>
    <ol>
    [*]Create a project. Choose File | New Empty Project. A new project
    node, with a name resembling <tt>MyProject1.jpr</tt> will appear in the Navigation
    pane.</li>
    [*]Create a Java file. Make sure your project node is selected, and choose
    File | New. The Object Gallery opens. Select the Objects tab
    and double-click the Class icon. In the Class Wizard dialog that opens:
    <ol>
    [*]Replace the default class name with "HelloWorld".</li>
    [*]Click OK.</li>
    </ol>
    A new file node, named <tt>HelloWorld.java</tt> will appear under your
    project node.</p>
    </li>
    [*]Edit the file. Double-click the file node to open the file. Edit the file,
    adding this method to the definition of the <tt>HelloWorld</tt> class.</li>
    <blockquote>
    <pre> public static void main(String[] args) {
    System.out.println("Hello, World!");
    }</pre>
    </blockquote>
    [*]Build the project. Choose Project | MakeProject. A message will appear,
    reporting success or failure, in the Status line at the bottom of the JDeveloper
    window. If there are errors they will be listed in the Message View
    pane, under the Compiler tab.</li>
    [*]Run the project. When the project has been successfully built, Choose Run
    | Run. Your message will be printed in the Message View pane, under
    the HelloWorld tab.</li>
    </ol><HR></BLOCKQUOTE>
    null

  • How to configure java.security file to run j2ee programs

    Hi,
    I am using Sun one application server to run my j2ee programs.
    plz tell me how to configure java.security file inside my appserver so that i can run my servlet program that is using jsse API to create SSL sockets.
    I am not able to follow whats there in java.security file.Kindly tell how to configure it.
    Waiting for ur replies!
    Thanks,
    Akshatha

    Hi,
    I am using Sun one application server to run my j2ee programs.
    plz tell me how to configure java.security file inside my appserver so that i can run my servlet program that is using jsse API to create SSL sockets.
    I am not able to follow whats there in java.security file.Kindly tell how to configure it.
    Waiting for ur replies!
    Thanks,
    Akshatha

  • How to import jsf  hello world project in eclipse

    Hi ,
    I m inam, have downloaded a jsf hello world project from www.mkyong.com, and trying to import that into eclipse ide, but not able to import,
    Please help me,and specify the steps, so that i could feel relax,i m too eager to know the solution to this problem,
    Regards

    Welcome to the forum.
    As others have said, there is no way to read Aperture 3 Projects or Libraries in Aperture 2. If you want to carry on using the same files on both computers you will have to stay with Aperture 2, or replace the tower with an Intel-based one that will run new software.
    As much as we might dislike it, PPC-based Macs are getting left behind in terms of what software they will run.
    Ian

  • How to get Hibernate 3.2.5 running on OracleAS 10.1.3.1 / OC4J 10.1.3.2

    Hi all,
    I have installed the OracleAS 10.1.3.0 patched to OracleAS 10.1.3.1/OC4J 10.1.3.2.
    I am trying to get Hibernate 3.2.5 with Hibernate EntityManager 3.3.1 running on the server, but I am not able to succeed.
    I want to provide Hibernate as a shared lib, because I´ll have several applications using it. Actualyl I´ll have many EJB-JAR deployed, that will use Hibernate as the underlying implementation of EJB3.0/JPA specification.
    I tried to copy the Hibernate JARs to home/applib directory and also register Hibernate as a shared lib through EM, but both failed when I deployed my application.
    I am trying to deploy my EJB-JAR in two different manners:
    1) Via EM, deploying the EJB-JAR file and checking Hibernate lib as dependency
    2) Copying the EJB-JAR file into home/applications directory and add ejb-module tag to application.xml
    Both fail.
    How can get Hibernate for JPA running on OracleAS 10.1.3.1 / OC4J 10.1.3.2, in order to make it available for many differente application modules (ejb-jars) ?
    Note: I prefer deploying EJB-JAR directly into home/applications in order the have the classes shared over for all application, so they can communicate to each other. Instead of deploying my ejb-jar within EARs and making each module isolated from each other.
    Thanks

    Check Debu's blog for this:
    http://debupanda.blogspot.com/2007/01/using-hibernate-as-pluggable-ejb-3-jpa.html
    --olaf                                                                                                                                                                                                                                               

  • How to  write file excel format xlsx/xlsb to pl/sql?

    Dear supporter,
    I built the xml report output excel file. However, the reported data and about 30 columns, line 200000 write and loading file slow, large file size
    How can write data directly to the format xlsb / xlsx from pl / sql. quickly and efficiently.
    Please, help me!
    Tks,
    Mr.T

    Check this thread.
    Re: 5. How do I read or write an Excel file?

  • How to execute command(program) from external file in Oracle SQL developer

    Hi,
    Does anyone know, Oracle SQL developer version 1.0.0.14.67 got any function that can execute command from an external file?
    Example, i have 100 insert SQL inside a text file,
    and i want to use Oracle SQL developer to execute it. How do i read from my text file? Thanks a lots.

    If you're new to Oracle, do yourself and us a favour: read some tutorials and manuals. What sqldev's worth, better download the latest version (1.1.2), lots of fixes and enhancements...
    Now for the big popper: to run an external file: @file
    Best of luck,
    K.

  • How to change the password of a schema using Oracle SQL Developer

    Hi need to change the password of a schema using Oracle SQL Developer how do i do it?

    Hi
    alter user username identified by password

  • How can I change the format of numbers in Oracle SQL Developer 1.0 ?

    The value 1.4345 from a table is represented in Oracle SQL Developer 1.0 like 1.5
    How can I change this to see all the digits ?
    Thanks

    Where did you see that, in the SQL Worksheet or viewing the data Connections ->.. tables ->.. tree?
    What datatype, precision and column name you have?
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • Newbie trying to write toplink hello world program

    I am trying to write my first toplink app using POJOs, and I'm having a hard time finding a sample toplink application. In this case, I'd like to run outside of a J2EE container with a stand-alone java application to do some basic CRUD operations. I've already run the mapping workbench on my Java classes and generated the deployment file and sessions.xml file. Where (Oracle docs) can I find source code for a simple stand-alone java main() app that uses the toplink API?
    Thanks in advance.

    TopLink ships with many examples - complete with runtime and workbench componants - in 9.0.4.X Find them here: <TopLink_install_dir>\examples\
    For non app server simple CRUD examples, I suggest you look here first:
    <TopLink_install_dir>\examples\foundation\threetier

Maybe you are looking for

  • IPod Touch Music Syncing Issue

    Using iTunes 10.7, I'm trying to add music to my 4G iPod touch running 6.1.2.  The files appear within the iPod sidebar Music tab, greyed out with the sync icon next to them but they never finish copying; they just stay grey and nothing happens.  I a

  • Pages appear blank

    i made a site with an older version of iWeb -- 06? 07? -- and all was well. i upgraded to iWeb 08 today and made some revisions on my site and reuploaded it (via FTP to my hostmonster domain) and several of the pages are blank. they all have the head

  • Printing from iPad mini to hp309a

    Can any one tell me how I can set up this so I can print by wifi to this printer

  • JSP- HTML- Microsoft Word or PDF

    Hello I have an application thats generates a text that are shown for the user in the Webbbrowser. I wonder if there is a way to generate a Word document or PDF from this HTML output that the user could download by clicking a link? Thanks for helping

  • How do I edit (or check) the spelling in the dictionary

    I have told the spell check to learn several words. Now what I want to do is check the dictionary to see if something got added that is really spelled incorrect or to remove words I have added. I would think that a file exists somewhere that I can ch