15 Seconds to Display "Hello World"?

I've just installed Flex Developer 3 on OS X 10.5.7 (2.4 GHz and 4 GB RAM). When I run the "Hello World" application from "A Beginner's Guide" by Davis and Phillips, it takes about 15 seconds to display "Hello World".
The result is the same when I'm using Firefox 3.5.1 or Safari 4.0.2.
When I export the project and run the html filebin-debug, I get a delay of about 11 seconds.
When I export the project and run the html file in bin-release, I get "Hello World" in about 1 second.
I also noticed a similar delay when opening database driven applications. The browser reads "Loading", I get the PWOD, and then the form appears.O Once the page loads and Flash displays, the application loads data very quickly (amazingly quickly!)
In contrast, when I FF 3.5.1 on XP SP3 under Fusion 2.0.5 and open the html files in debug and release, they load in 1 second.
Is there a patch to apply or something I need to set to get rid of the long delay on OS X?
Thanks in advance,
Douglas von Roeder

The solution was to right click on the application in the browser and stop it from connecting to a remote debugger.
I've been working on a few different applications which were data-driven apps, some of which were running on a remote machine. Hence the need to connect to a debugger on the hosted box.
Once I changed the debugger settings, the situation was solved.

Similar Messages

  • Loading a simple Hello World Applet faster?

    I'm new to java. I;m trying to load the hello world applet but the problem is that it takes about 20 to 30 seconds to load at first attempt, I there a way to make this faster, i have tryed making a jar file and running that but nothing changes in speed.

    Well, it's always going to be slower to run the applet in a web page in a browser because you have the extra steps of the browser grabbing the files over the network, parsing the HTML fully, displaying the page, and starting the JVM. The appletviewer grabs the files locally, does a simpler parse of the HTML, doesn't have to display much HTML, and already is a JVM.
    In my experience, JVMs inside of browsers (the early days) were significantly slower than a JVM you invoked on the command line. Now that there's the plug-in, it's still slower but not by much.
    What browser are you using? Are you using a modern browser and the Java plug-in or are you using, say, and old browser with the JVM built in?
    Also, how long does it take to download the HTML and the class file from the server? What happens when you download them directly with something like wget or curl?

  • HOW TO: Create a GUI "Hello World"

     </p>
    This document describes how to create and run a very simple &quot;Hello World&quot;
    Java GUI app using JDeveloper. The application will have one button and one
    text field. Clicking the button will populate the text field with the message,
    &quot;Hello World!&quot;</p>
    Creating The New Application
    In this section, we will create an application with an empty frame.</p>
    <ol>
    [*]Choose File | New Workspace.
    </li>
    [*]Choose File | Save Workspace.
    </li>
    [*]Enter <TT>HelloGui.jws</tt> as the name for the workspace.
    This creates a Workspace called HelloGui. A workspace organizes all the projects
    you need to work on at one time.
    </li>
    [*]Choose File | New Project.
    The Project Wizard opens. This wizard will help you create a new project called
    HelloGui. A project contains all the files that go together in one &quot;tier&quot;--for
    example, all the files belonging to a single Java Application client, or all
    the files belonging to an Enterprise Java Bean. Because we are working on
    a simple, one-tier application, we will only need one project in our workspace.
    </li>
    [*]If the Welcome page appears, click Next.
    </li>
    [*]On the Project Type page, in the What is the Project's Filename?
    field, change the filename to <TT>HelloGui.jpr</tt>. Leave the rest of the
    path the same.
    </li>
    [*]Select A Project containing a new... and choose Application
    from the dropdown list.
    </li>
    [*]Click Next.
    </li>
    [*]On the Project Options page, in the What is the name of the project's
    default package field, enter <TT>helloGui</tt>.
    </li>
    [*]Click Next.
    </li>
    [*]On the Project Information page, you can enter any information about your
    project that you wish.
    </li>
    [*]Click Finish.
    The Application Wizard opens.
    </li>
    [*]In the Class field, enter <TT>HelloApp</tt>.
    </li>
    [*]Select the New Empty Frame radio button.
    </li>
    [*]Click OK.
    The Frame Wizard opens.
    </li>
    [*]In the Class field, enter <TT>HelloFrame</tt>.
    </li>
    [*]Click OK.
    JDeveloper creates an application, <TT>HelloApp</tt>, containing an empty
    frame, <TT>HelloFrame</tt>. The source code for these classes appears in the
    Navigator, which is the upper left-hand pane in the JDeveloper IDE.
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Adding a Panel to the Frame
    In this section, we will now add a panel to the frame. In the next section,
    we will add all the other components to this panel.</p>
    <ol>
    [*]In the Navigator, double-click <TT>HelloFrame.java</tt>.
    A viewer opens. This viewer has four tabs at the bottom:
    <ul>
    [*]Source, the currently active tab, which displays the source code
    of the selected class</li>
    [*]Design, which invokes a visual layout designer</li>
    [*]Class, which invokes an editor for the class' attributes, and
    can help you stay JavaBean complient</li>
    [*]Doc, which displays the class' JavaDoc
    </li>
    </ul>
    </li>
    [*]Click the Design tab.
    The viewer now displays a grey square, a graphical mock-up of your frame.
    Also, on the right-hand side of your screen, the Property Inspector opens.
    This allows you to quickly set attributes and define events for components.
    </li>
    [*]In the component palette (the tabbed toolbar near the top of your screen),
    select the Swing Containers tab.
    </li>
    [*]Click the blue square (described in rollover text as <TT>JPanel</tt>) and
    click on your frame to add the panel.
    The Property Inspector now displays attributes of the JPanel.
    </li>
    [*]In the Property Inspector, click twice inside the box beside the name
    field.
    </li>
    [*]Change the name to mainPanel.
    </li>
    [*]Click the box beside the layout field.
    </li>
    [*]Choose XYLayout.
    XYLayout is an easy-to-use Layout for prototyping. Later, we will change the
    layout to a more portable one.</li>
    </ol>
    Adding Components to the Panel
    In this section, we finish laying out a prototype UI. We will add polish and
    portability to the UI later.</p>
    <ol>
    [*]In the Component Palette, select the Swing tab.
    </li>
    [*]Select the <TT>JTextField</tt> component, which looks like a text field
    with a cursor.
    </li>
    [*]In your panel, click and drag the cursor to outline the text field.
    Don't worry if the text field doesn't have exactly the right size or position.
    We will adjust these later.
    The Property Inspector now displays attributes of the JTextField.
    </li>
    [*]In the Property Inspector, change the name (just as you did for the
    JPanel) to <TT>displayField</tt>.
    </li>
    [*]Change the text to nothing (erase the value that is already there).
    </li>
    [*]In the Component Palette, select the <TT>JButton</tt> component, which looks
    like a button being clicked.
    </li>
    [*]In your panel, click and drag the cursor to outline the button.
    The Property Inspector now displays attributes of the JButton.
    </li>
    [*]In the Property Inspector, change the name and action command
    to helloButton.
    </li>
    [*]Change the text to <TT>Say Hello!</tt>.
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Wiring Up the UI
    In this section, we wire the UI so that clicking the button causes &quot;Hello
    World!&quot; to display in the text field.</p>
    <ol>
    [*]In the Property Inspector, select the Events tab.
    </li>
    [*]Click the box next to the Action Performed field and press the Enter
    key.
    This creates a method, <TT>helloButton_actionPerformed()</tt>, which will
    be invoked when the button is clicked, and displays the source code for the
    method stub in the viewer.
    </li>
    [*]In the viewer, add the following command to the body of the method:
    <TT>displayField.setText(&quot;Hello World!&quot;);</tt>
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Testing the Prototype Application
    <ol>
    [*]Choose Run | Run &quot;HelloApp&quot;.
    Your application appears, with a blank text field and a button labeled &quot;Say
    Hello!&quot;
    </li>
    [*]Click the button.
    The text &quot;Hello World!&quot; appears in the text field.
    </li>
    [*]Close your application.</li>
    </ol>
    Refining the UI
    In this section, we polish the UI so that the components have the right size
    and alignment, the text in the text field shows up red, and the panel uses the
    portable GridBag layout instead of the JDeveloper-specific XYLayout.</p>
    <ol>
    [*]In the viewer, select the Design tab.
    </li>
    [*]Select your text field.
    </li>
    [*]Drag the edges of your text field until it is the size you want.
    </li>
    [*]Drag the center of the text field until it is the vertical position you
    want.
    </li>
    [*]Right-click the text field and choose Align Center.
    This centers your text field horizontally in the frame.
    </li>
    [*]In the property inspector, click the box next to the foreground field.
    </li>
    [*]Click the ellipses (...).
    A color editor appears.
    </li>
    [*]Select Red from the dropdown list.
    </li>
    [*]Click OK.
    </li>
    [*]On your frame, select your button.
    </li>
    [*]Drag the right edge of your button until it is the horizontal size you want.
    </li>
    [*]Select your text field, and multi-select your button by control-clicking
    it.
    </li>
    [*]Right-click your button or text field.
    </li>
    [*]Choose Same Size Vertical.
    This sets the height of all selected components to that of the first selected
    component (the text field).
    </li>
    [*]Right-click your button or text field.
    </li>
    [*]Choose Align Center.
    This aligns the center of all selected components to that of the first selected
    component (the text field).
    </li>
    [*]Select your panel by clicking anywhere on the grey background in the visual
    designer.
    </li>
    [*]In the Property Inspector, click the box beside the layout field.
    </li>
    [*]Select GridBagLayout from the dropdown list.
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Running the Finished Application From Within JDeveloper
    <ol>
    [*]Choose Run | Run &quot;HelloApp&quot;.
    Your application appears, with a blank text field and a button labeled &quot;Say
    Hello!&quot;
    </li>
    [*]Click the button.
    The text &quot;Hello World!&quot; appears in the text field, in red.
    </li>
    [*]Close your application.</li>
    </ol>
    Deploying the Application to Your File System
    <ol>
    [*] In the Navigator, right-click <tt>HelloGui.jpr</tt> and choose New Deployment
    Profile.
    The Deployment Profile Wizard opens.
    </li>
    [*]If the Welcome page appears, click Next.
    </li>
    [*]On the Delivery page, select Web Application or Command-Line Application
    from the dropdown list, and click Next.
    </li>
    [*]On the Staging Area page, in the Deployment Destination field, enter
    <tt><JDeveloper>/HelloGui</tt>, where <tt><JDeveloper></tt>
    is your JDeveloper root directory. Click Next.
    </li>
    [*]On the Project page, select all the <tt>.java</tt> files and click Next.
    </li>
    [*]Skip the Archive page and Applet Tags page by clicking Next on each.
    </li>
    [*]On the Libraries page, shuttle all libraries from the Project Libraries
    list to the Deployed Libraries list, and click Next.
    </li>
    [*]On the Finish page, name the profile <tt>HelloGui.prf</tt>, and click Finish.
    </li>
    [*]When JDeveloper asks you if you want to deploy now, click Yes.</li>
    </ol>
    JDeveloper will archive your application files and copy this archive and all
    other required libraries to <tt><JDeveloper>/HelloGui</tt>.</p>
    Running the Application from the Command Line
    <ol>
    [*]Open a command-line prompt.
    </li>
    [*]Enter the following script.
    Note: You may want to create a batch file containing this script. Be
    sure to replace JDeveloper_Home with your JDeveloper home directory.
    <pre>set __CLASSPATH_ROOT_DIR__=JDeveloper_Home\HelloGui
    set CLASSPATH=&quot;%__CLASSPATH_ROOT_DIR__%\HelloGui.jar&quot;
    set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\xmlparserv2.jar&quot;
    set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\classes12.zip&quot;
    set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\jdev-rt.zip&quot;
    set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\swingall.jar&quot;
    cd JDeveloper_Home\HelloGui
    jre -cp %CLASSPATH% helloGui.HelloApp</pre>
    </li>
    [*]Your application appears, with a blank text field and a button labeled &quot;Say
    Hello!&quot;
    </li>
    [*]Click the button.
    The text &quot;Hello World!&quot; appears in the text field, in red.
    </li>
    [*]Close your application.</li>
    </ol>
    </p>
     </p>
    null

    Hello,
    I followed your instruction step by step to make this "Hello World", but when I run it, I got message "cannot find the runable node". What do I miss here? Thanks.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Avrom Faderman ([email protected]):
    </p>
    This document describes how to create and run a very simple "Hello World"
    Java GUI app using JDeveloper. The application will have one button and one
    text field. Clicking the button will populate the text field with the message,
    "Hello World!"</p>
    [b]Creating The New Application
    In this section, we will create an application with an empty frame.</p>
    <ol>
    [*]Choose File | New Workspace.
    </li>
    [*]Choose File | Save Workspace.
    </li>
    [*]Enter <TT>HelloGui.jws</tt> as the name for the workspace.
    This creates a Workspace called HelloGui. A workspace organizes all the projects
    you need to work on at one time.
    </li>
    [*]Choose File | New Project.
    The Project Wizard opens. This wizard will help you create a new project called
    HelloGui. A project contains all the files that go together in one "tier"--for
    example, all the files belonging to a single Java Application client, or all
    the files belonging to an Enterprise Java Bean. Because we are working on
    a simple, one-tier application, we will only need one project in our workspace.
    </li>
    [*]If the Welcome page appears, click Next.
    </li>
    [*]On the Project Type page, in the What is the Project's Filename?
    field, change the filename to <TT>HelloGui.jpr</tt>. Leave the rest of the
    path the same.
    </li>
    [*]Select A Project containing a new... and choose Application
    from the dropdown list.
    </li>
    [*]Click Next.
    </li>
    [*]On the Project Options page, in the What is the name of the project's
    default package field, enter <TT>helloGui</tt>.
    </li>
    [*]Click Next.
    </li>
    [*]On the Project Information page, you can enter any information about your
    project that you wish.
    </li>
    [*]Click Finish.
    The Application Wizard opens.
    </li>
    [*]In the Class field, enter <TT>HelloApp</tt>.
    </li>
    [*]Select the New Empty Frame radio button.
    </li>
    [*]Click OK.
    The Frame Wizard opens.
    </li>
    [*]In the Class field, enter <TT>HelloFrame</tt>.
    </li>
    [*]Click OK.
    JDeveloper creates an application, <TT>HelloApp</tt>, containing an empty
    frame, <TT>HelloFrame</tt>. The source code for these classes appears in the
    Navigator, which is the upper left-hand pane in the JDeveloper IDE.
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Adding a Panel to the Frame
    In this section, we will now add a panel to the frame. In the next section,
    we will add all the other components to this panel.</p>
    <ol>
    [*]In the Navigator, double-click <TT>HelloFrame.java</tt>.
    A viewer opens. This viewer has four tabs at the bottom:
    <ul>
    [*]Source, the currently active tab, which displays the source code
    of the selected class</li>
    [*]Design, which invokes a visual layout designer</li>
    [*]Class, which invokes an editor for the class' attributes, and
    can help you stay JavaBean complient</li>
    [*]Doc, which displays the class' JavaDoc
    </li>
    </ul>
    </li>
    [*]Click the Design tab.
    The viewer now displays a grey square, a graphical mock-up of your frame.
    Also, on the right-hand side of your screen, the Property Inspector opens.
    This allows you to quickly set attributes and define events for components.
    </li>
    [*]In the component palette (the tabbed toolbar near the top of your screen),
    select the Swing Containers tab.
    </li>
    [*]Click the blue square (described in rollover text as <TT>JPanel</tt>) and
    click on your frame to add the panel.
    The Property Inspector now displays attributes of the JPanel.
    </li>
    [*]In the Property Inspector, click twice inside the box beside the name
    field.
    </li>
    [*]Change the name to mainPanel.
    </li>
    [*]Click the box beside the layout field.
    </li>
    [*]Choose XYLayout.
    XYLayout is an easy-to-use Layout for prototyping. Later, we will change the
    layout to a more portable one.</li>
    </ol>
    Adding Components to the Panel
    In this section, we finish laying out a prototype UI. We will add polish and
    portability to the UI later.</p>
    <ol>
    [*]In the Component Palette, select the Swing tab.
    </li>
    [*]Select the <TT>JTextField</tt> component, which looks like a text field
    with a cursor.
    </li>
    [*]In your panel, click and drag the cursor to outline the text field.
    Don't worry if the text field doesn't have exactly the right size or position.
    We will adjust these later.
    The Property Inspector now displays attributes of the JTextField.
    </li>
    [*]In the Property Inspector, change the name (just as you did for the
    JPanel) to <TT>displayField</tt>.
    </li>
    [*]Change the text to nothing (erase the value that is already there).
    </li>
    [*]In the Component Palette, select the <TT>JButton</tt> component, which looks
    like a button being clicked.
    </li>
    [*]In your panel, click and drag the cursor to outline the button.
    The Property Inspector now displays attributes of the JButton.
    </li>
    [*]In the Property Inspector, change the name and action command
    to helloButton.
    </li>
    [*]Change the text to <TT>Say Hello!</tt>.
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Wiring Up the UI
    In this section, we wire the UI so that clicking the button causes "Hello
    World!" to display in the text field.</p>
    <ol>
    [*]In the Property Inspector, select the Events tab.
    </li>
    [*]Click the box next to the Action Performed field and press the Enter
    key.
    This creates a method, <TT>helloButton_actionPerformed()</tt>, which will
    be invoked when the button is clicked, and displays the source code for the
    method stub in the viewer.
    </li>
    [*]In the viewer, add the following command to the body of the method:
    <TT>displayField.setText("Hello World!");</tt>
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Testing the Prototype Application
    <ol>
    [*]Choose Run | Run "HelloApp".
    Your application appears, with a blank text field and a button labeled "Say
    Hello!"
    </li>
    [*]Click the button.
    The text "Hello World!" appears in the text field.
    </li>
    [*]Close your application.</li>
    </ol>
    Refining the UI
    In this section, we polish the UI so that the components have the right size
    and alignment, the text in the text field shows up red, and the panel uses the
    portable GridBag layout instead of the JDeveloper-specific XYLayout.</p>
    <ol>
    [*]In the viewer, select the Design tab.
    </li>
    [*]Select your text field.
    </li>
    [*]Drag the edges of your text field until it is the size you want.
    </li>
    [*]Drag the center of the text field until it is the vertical position you
    want.
    </li>
    [*]Right-click the text field and choose Align Center.
    This centers your text field horizontally in the frame.
    </li>
    [*]In the property inspector, click the box next to the foreground field.
    </li>
    [*]Click the ellipses (...).
    A color editor appears.
    </li>
    [*]Select Red from the dropdown list.
    </li>
    [*]Click OK.
    </li>
    [*]On your frame, select your button.
    </li>
    [*]Drag the right edge of your button until it is the horizontal size you want.
    </li>
    [*]Select your text field, and multi-select your button by control-clicking
    it.
    </li>
    [*]Right-click your button or text field.
    </li>
    [*]Choose Same Size Vertical.
    This sets the height of all selected components to that of the first selected
    component (the text field).
    </li>
    [*]Right-click your button or text field.
    </li>
    [*]Choose Align Center.
    This aligns the center of all selected components to that of the first selected
    component (the text field).
    </li>
    [*]Select your panel by clicking anywhere on the grey background in the visual
    designer.
    </li>
    [*]In the Property Inspector, click the box beside the layout field.
    </li>
    [*]Select GridBagLayout from the dropdown list.
    </li>
    [*]Choose File | Save All.</li>
    </ol>
    Running the Finished Application From Within JDeveloper
    <ol>
    [*]Choose Run | Run "HelloApp".
    Your application appears, with a blank text field and a button labeled "Say
    Hello!"
    </li>
    [*]Click the button.
    The text "Hello World!" appears in the text field, in red.
    </li>
    [*]Close your application.</li>
    </ol>
    Deploying the Application to Your File System
    <ol>
    [*] In the Navigator, right-click <tt>HelloGui.jpr</tt> and choose New Deployment
    Profile.
    The Deployment Profile Wizard opens.
    </li>
    [*]If the Welcome page appears, click Next.
    </li>
    [*]On the Delivery page, select Web Application or Command-Line Application
    from the dropdown list, and click Next.
    </li>
    [*]On the Staging Area page, in the Deployment Destination field, enter
    <tt><JDeveloper>/HelloGui</tt>, where <tt><JDeveloper></tt>
    is your JDeveloper root directory. Click Next.
    </li>
    [*]On the Project page, select all the <tt>.java</tt> files and click Next.
    </li>
    [*]Skip the Archive page and Applet Tags page by clicking Next on each.
    </li>
    [*]On the Libraries page, shuttle all libraries from the Project Libraries
    list to the Deployed Libraries list, and click Next.
    </li>
    [*]On the Finish page, name the profile <tt>HelloGui.prf</tt>, and click Finish.
    </li>
    [*]When JDeveloper asks you if you want to deploy now, click Yes.</li>
    </ol>
    JDeveloper will archive your application files and copy this archive and all
    other required libraries to <tt><JDeveloper>/HelloGui</tt>.</p>
    Running the Application from the Command Line
    <ol>
    [*]Open a command-line prompt.
    </li>
    [*]Enter the following script.
    Note: You may want to create a batch file containing this script. Be
    sure to replace JDeveloper_Home with your JDeveloper home directory.
    <pre>set __CLASSPATH_ROOT_DIR__=JDeveloper_Home\HelloGui
    set CLASSPATH="%__CLASSPATH_ROOT_DIR__%\HelloGui.jar"
    set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\xmlparserv2.jar"
    set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\classes12.zip"
    set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\jdev-rt.zip"
    set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\swingall.jar"
    cd JDeveloper_Home\HelloGui
    jre -cp %CLASSPATH% helloGui.HelloApp</pre>
    </li>
    [*]Your application appears, with a blank text field and a button labeled "Say
    Hello!"
    </li>
    [*]Click the button.
    The text "Hello World!" appears in the text field, in red.
    </li>
    [*]Close your application.</li>
    </ol>
    </p>
    </p><HR></BLOCKQUOTE>
    null

  • Cookie error while running Hello World

    Hi,
    When i run test_fwklabsolutions.jsp, i get the page where there are links named Hello World, Home etc.
    But when i click on one of the link, i get this message
    "You have encountered an unexpected error. Please contact the System Administrator for assistance.
    Click here for exception details. "
    When I click on the link "Click here for exceptions:" a blank page is displayed.
    In the debugger window of jDeveloper, i get the following message :
    "ICX DIAGNOSTIC: FND_TOP = D:\Jdeveloper\jdevhome\jdev\myhtml\OA_HTML\
    ICX DIAGNOSTIC: application_id = 601
    ICX DIAGNOSTIC: responsibility_id = 24743
    ICX DIAGNOSTIC: security_group_id = 0
    ICX DIAGNOSTIC: mEncryptedSessionID = onhyPf0XCy7zyEvfbWKZOkVT:S
    ICX DIAGNOSTIC: mSessionID = 298494531
    ICX DIAGNOSTIC: mTransactionID = 774968588
    java.lang.NullPointerException
         at oracle.apps.fnd.common.WebRequestUtil.getCookieValue(WebRequestUtil.java:130)
         at oracle.apps.fnd.common.WebRequestUtil.getSessionCookie(WebRequestUtil.java:622)
         at oracle.apps.fnd.framework.webui.OAJSPHelper.getIcxCookie(OAJSPHelper.java:274)
         at oracle.apps.fnd.framework.webui.OAJSPHelper.getIcxCookie(OAJSPHelper.java:239)
         at oracle.apps.fnd.framework.webui.OAServerDelegate.getIcxSessionContext(OAServerDelegate.java:423)
         at oracle.apps.fnd.framework.webui.OAJSPHelper.handleErrorStackDisplay(OAJSPHelper.java:1306)
         at _OAErrorPage._jspService(OAErrorPage.jsp:68)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)
         at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:547)
         at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:518)
         at _OA._jspService(OA.jsp:35)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Any idea where I am going wrong.
    -Debojyoty

    Sid,
    1) Check your using the correct version of Jdev with your instance.
    Metalink note 416708.1 - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12
    Will give the mappings.
    And check the Jdev setting
    330236.1 - Configuring JDeveloper For Use With Oracle Applications 11i and R12
    2) Instead of using the tutorial, create a sample page, Am and run the page.
    Check what error you are getting.
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Adobe Drive not connecting to hello world sample launched via Eclipse

    I'm trying to get the hello world sample running with Drive SDK 5. I got:
    Adobe Drive 5.0.1
    AdobeDriveSDK-5.0.0.398770.zip
    latest Java JRE 1.6
    Eclipes 4.3.1 (Kepler SR 1)
    Windows 7 64bit
    I configured the hello world project as described in the getting started guide. I double checked that AD4ServiceManager.exe is not running. After starting the project in Eclipse and waiting about 15 seconds, all bundles are active:
    osgi> ss
    Framework is launched.
    id     State       Bundle
    0     ACTIVE      org.eclipse.osgi_3.5.0.v20090520
    1     ACTIVE      com.adobe.csi.ncomm_2.0.0.28
    2     ACTIVE      com.adobe.drive.core_2.0.0.28
    3     ACTIVE      org.eclipse.equinox.cm_1.0.100.v20090520-1800
    4     ACTIVE      org.eclipse.equinox.preferences_3.2.300.v20090520-1800
    5     ACTIVE      org.eclipse.equinox.app_1.2.0.v20090520-1800
    6     ACTIVE      com.adobe.drive.biz.filesystem_2.0.0.28
    7     ACTIVE      javax.servlet_2.5.0.v200806031605
    8     ACTIVE      org.eclipse.equinox.launcher_1.0.200.v20090520
    9     ACTIVE      com.adobe.drive.manager.executor_1.0.0.28
    10     ACTIVE      com.adobe.drive.connector.cmis_2.0.0.28
    11     ACTIVE      com.adobe.drive.ui_2.0.0.28
                     Fragments=27
    12     ACTIVE      org.hsqldb_2.2.9
    13     ACTIVE      com.adobe.drive.model.synchronization_2.0.0.28
    14     ACTIVE      com.adobe.drive.data.persistence.api_2.0.0.28
    15     ACTIVE      org.eclipse.equinox.ds_1.1.0.v20090601
    16     ACTIVE      org.eclipse.update.configurator_3.3.0.v20090312
    17     ACTIVE      org.hibernate_3.2.5
    18     ACTIVE      com.adobe.csi.core_2.0.0.28
    19     ACTIVE      com.adobe.drive.connector.service_2.0.0.28
    20     ACTIVE      com.adobe.drive.model_2.0.0.28
    21     ACTIVE      com.adobe.drive.data.provider_2.0.0.28
    22     ACTIVE      com.adobe.csi.auth.keystore_2.0.0.28
    23     ACTIVE      com.adobe.drive.connector.api_2.0.0.28
    24     ACTIVE      com.adobe.drive.data.persistence.hsqldb_2.0.0.28
    25     ACTIVE      com.adobe.drive.data.cache_2.0.0.28
    26     ACTIVE      org.apache.commons.codec_1.0.0.28
    27     RESOLVED    com.adobe.drive.ui.scripting_2.0.0.28
                     Master=11
    28     ACTIVE      org.apache.commons.net_1.4.1
    29     ACTIVE      sample.helloworld_2.0.0
    30     ACTIVE      com.adobe.csi.bootstrap_2.0.0.28
    31     ACTIVE      com.adobe.drive.data.manager_2.0.0.28
    32     ACTIVE      org.apache.commons.logging_1.0.4
    33     ACTIVE      com.adobe.versioncue.nativecomm_4.0.1.28
    34     ACTIVE      com.adobe.drive.biz.versioncue.api_2.0.0.28
    35     ACTIVE      org.eclipse.equinox.common_3.5.0.v20090520-1800
    36     ACTIVE      com.adobe.csi.pipes_2.0.0
    37     ACTIVE      com.adobe.drive.data.model_2.0.0.28
    38     ACTIVE      com.adobe.drive.data.persistence_2.0.0.28
    39     ACTIVE      com.adobe.drive.processinfo_2.0.0.28
    40     ACTIVE      com.adobe.drive.connector.cmis.client_2.0.0.28
    41     ACTIVE      com.adobe.drive.ncomm.filesystem_2.0.0.28
    42     ACTIVE      org.eclipse.equinox.registry_3.4.100.v20090520-1800
    43     ACTIVE      org.apache.commons.httpclient_3.1.0
    44     ACTIVE      com.adobe.drive.vcdetector_2.0.0
    45     ACTIVE      com.adobe.drive.ncomm.versioncue_2.0.0.28
    46     ACTIVE      com.adobe.drive.connector.cqdam_4.0.0.28
    47     ACTIVE      com.adobe.csi.core.preferences_2.0.0.28
    48     ACTIVE      org.eclipse.equinox.util_1.0.100.v20090520-1800
    49     ACTIVE      com.adobe.csi.utils_2.0.0.28
    50     ACTIVE      com.adobe.drive.biz.automount_2.0.0.28
    51     ACTIVE      com.adobe.csi.core.logging_2.0.0.28
    52     ACTIVE      com.adobe.drive.manager.interests_2.0.0.28
    53     ACTIVE      org.apache.log4j_1.2.15
    54     ACTIVE      com.adobe.drive.ifs_2.0.0.28
    55     ACTIVE      com.adobe.drive.core.jobs_2.0.0.28
    56     ACTIVE      org.eclipse.osgi.services_3.2.0.v20090520-1800
    57     ACTIVE      com.adobe.drive.biz.versioncue_2.0.0.28
    58     ACTIVE      com.adobe.csi.auth_2.0.0.28
    Also, the output of csstat looks fine:
    osgi> csstat
    Registered connector factories (schema : reference):
    cmis : {org.osgi.service.component.ComponentFactory}={component.factory=com.adobe.drive.connector.handlerfactory, component.name=com.adobe.drive.connector.cmis#cmis, service.id=48}
    cq : {org.osgi.service.component.ComponentFactory}={component.factory=com.adobe.drive.connector.handlerfactory, component.name=cq#cq, service.id=75}
    helloworld : {org.osgi.service.component.ComponentFactory}={component.factory=com.adobe.drive.connector.handlerfactory, component.name=sample.helloworld#helloworld, service.id=70}
    Instantiated connector factories (uuid : factory):
    Afterwards, I start Adobe Drive (32bit version). The UI hangs with the message "Adobe Drive is starting. Please wait.". From task manager I can see that not just Adobe Drive was started, but also AD4ServiceManager.exe. I guess, this should not happen, because Adobe Drive should discover the one launched via Eclipse.
    So what's going wrong here? How does Adobe Drive discover the one launched via Eclipse? What could block discovery?
    Here more details in case that helps debugging the problem. MANIFEST.MF:
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: HelloWorld Plug-in
    Bundle-SymbolicName: sample.helloworld
    Bundle-Version: 2.0.0
    Bundle-Vendor: Adobe Systems
    Adobe-AutoStart: true
    Require-Bundle: com.adobe.drive.connector.api,
    com.adobe.drive.core,
    com.adobe.drive.model,
    com.adobe.csi.utils
    Service-Component: OSGI-INF/HelloWorldHandlerFactory.xml
    build.properties
    source.. = src/
    output.. = bin/
    bin.includes = META-INF/,\
                   OSGI-INF/
    HelloWorldHandlerFactory.xml:
    <?xml version="1.0"?>
         <component name="sample.helloworld#helloworld"
         factory="com.adobe.drive.connector.handlerfactory">
         <implementation class="sample.helloworld.HelloWorldHandlerFactory"/>
    </component>
    Here the Eclipse run configuration settings:

    Wow, this seems to help even though it is still a bit shaky. Here the steps I have to do to get it working:
    manually launch 64bit version of AD4ServiceManager.exe with parameter -launchedbydrive
    launch Eclipse project and wait till ss shows everything as registered (much faster now)
    start 64bit version of Drive -> my adapter doesn't show up
    shutdown drive
    start 64bit version of Drive again -> my adapter now shows up and works as expected
    I find a few things confusing here:
    In Eclipse, should I configure the 32bit or 64bit version of AD4ServiceManager as plugin execution environment? Currently, I'm using the 32bit version.
    Why isn't the step of manually launching AD4ServiceManager.exe not mentioned in the getting started guide?
    I will reboot my machine to see if it is still working or just some special sun radiation making it work currently :-)

  • Hello World CANNOT FIND SPECIFIED INSTANCE

    I started with the BPEL PM Training http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Training-Segment01.pdf.
    1. The screens are not the same as in JDeveloper 10.1.3.2.0.4066...
    2. I was able to compile hello world
    3. when i went to bpel console the hello world was not there so i used the deploy button and did the deploy it manually
    4. I was able to see the process
    5. However, when I ran it and went to audit instance, i get the error message "cannot find the specified instance"
    6. the solution said 'if the instance has recently been initiated, the invocation data may not have been delivered to the engine yet. Refresh your browser window and try again in a few seconds"
    7. I tried both several times and get the same error message
    Anyone know how to fix this?
    I am running DHCP with the loopback adapter - is that a problem?
    Much appreciated.

    Fi,
    See the below link will helful to you,
    Informatica Start Workflow failed in Workflow Manager
    Note: FYI this is not right area to get answers for your questions related to ETL.
    Thanks,
    Balaa...

  • Task Manager Process failing along w/ Hello World example

    Hello Edwin,
    Thank you very much for the word document on how to install Oracle BPEL into the oracle database. I was able to install according to your word document into my oracle 10g database. I have other problems though. When starting up the BPEL Process Manager, it gives me the following error message in the console:
    java.lang.NoClassDefFoundError: org/apache/xerces/xni/XNIException
    I guess this in turn leads to the TaskManager process failing as it has a yellow exclamation point next to it in the BPEL Console. The oc4j console window later displays this error message:
    04/08/07 13:25:01 java.lang.ClassNotFoundException: bpel._1_0.TaskManager__BPEL4WS_BIN
    Error while creating process.
    An error has occurred while attempting to instantiate the class "bpel._1_0.TaskM
    anager__BPEL4WS_BIN" for the process "TaskManager" (revision "1.0"). The exception reported was: bpel._1_0.TaskManager__BPEL4WS_BIN
    Please try recompiling your BPEL process again. The current BPEL process archive "TaskManager" may have been compiled with an older version of "bpelc".
    An error message similar to this occurs when I try and work through the "Hello World" tutorial. Any idea why these error messages are occuring? "classnotfound" exceptions tell me there is a classpath issue. Thanks for your help.
    Kenny R.

    Edwin,
    Nevermind. I fixed it. I just copied the xercesImpl.jar file to the %ORABPEL_HOME%/system/appserver/oc4j/j2ee/home/applib directory and the processes function fine now. Thanks. Is this a bug that I found? Or was something messed up with my initial installation?

  • First WDA (Hello World) not working in IE but looks good in FireFox.

    Hi,
    My Hello World App in WD  is not working in Browser IE. So I can't TEST it in SE80. It only shows a blank page and a javascipt error...
    Taking the same URL in Firefox works just fine....
    BSP apps is working just fine in both browsers.
    sapr3d.korkow is inside a "single label domain"
    http://sapr3d.korkow/sap/bc/webdynpro/sap/zwd_test2?sap-system-login-basic_auth=X&sap-client=300&sap-language=EN
    I have looked at the Config Manuals for WDA. FQDN etc.
    RZ10 now looks like this
    icm/host_name_full                          sapr3d.korkow
    rdisp/rfc_min_wait_dia_wp                   5
    rsdb/ntab/irbdsize                          8000
    rsdb/ntab/ftabsize                          35000
    rsdb/esm/buffersize_kb                      6144
    rsdb/cua/buffersize                         5000
    zcsa/installed_languages                    DEFKNOV
    abap/buffersize                             400000
    DIR_EPS_ROOT                                F:\usr\sap\trans\EPS
    DIR_TRANS                                  
    $(SAPTRANSHOST)\sapmnt\trans
    SAPTRANSHOST                                sapr3d
    SAPSYSTEMNAME                               U01
    SAPGLOBALHOST                               sapr3d
    SAPSYSTEM                                   00
    INSTANCE_NAME                               DVEBMGS00
    DIR_CT_RUN                                  $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64
    DIR_EXECUTABLE                              $(DIR_INSTANCE)\exe
    PHYS_MEMSIZE                                9059
    rdisp/wp_no_dia                             16
    rdisp/wp_no_btc                             4
    rdisp/max_wprun_time                        900
    icm/keep_alive_timeout                      180
    icm/server_port_0                           PROT=HTTP,PORT=80,TIMEOUT=0,PROCTIMEOUT=180
    ms/server_port_0                            PROT=HTTP,PORT=81$$
    rdisp/wp_no_enq                             1
    rdisp/wp_no_vb                              4
    rdisp/wp_no_vb2                             2
    rdisp/wp_no_spo                             1
    In my hosts file I have:
    127.0.0.1       localhost
    178.18.8.15     SAPR3D
    Any Pointers ?
    Br,
    Martin

    Hi,
    I'm using IE 7.0.5730.13
    I also "fixed" securtiy settings to be as Low as possible....
    (Below message I could not cut and paste... so there may be some spelling misstakes.)
    First javascript error:
    Line: 10
    Char: 13
    Error: Invalid argument
    code: 0
    URL: http://sapr3d.korkow/sap/bc/webdynpro/sap/zwd_test2?sap-system.....
    second error (pushing Next button):
    same as above but:
    URL: http://sapr3d.korkow/sap/bc/webdynpro/ssr/domain_relax.html?000041-1
    third error:
    same as above but:
    URL: http://sapr3d.korkow/sap/bc/webdynpro/sap/zwd_test2~ucfLOADING?sap-contextid=SID.....&sap-wd-clientWindowid=25143
    Any pointers ?
    Br,
    Martin
    Edited by: Martin Andersson on Jun 29, 2008 5:36 AM

  • HOW TO: "Hello World" EJB Style

    The following Session EJB quick tutorial requires an IIOP datasource. This EJB should work in Oracle databases
    greater than 8.1.5.
    1. Create a new project for an Enterprise JavaBean.
    2. Name your project "Hello".
    3. Select Enterprise JavaBean from "A project containing a new..."
    4. Click Finish to close the Project wizard.
    The Enterprise JavaBeans wizard opens.
    5. For the EJB type, select Session Bean (Stateless)
    6. For the EJB name, enter "Hello" (no quotes!)
    The resulting interface names are created for you. Don't change them!
    7. Click Finish for the EJB wizard to generate the EJB project for you.
    8. Select Save All from the File menu. Call this workspace "Hello".
    You'll see that the EJB wizard generated the home, remote, and bean logic files for you. Now you'll need to
    add the business logic to the HelloBean.java file.
    9. Double click the HelloBean.java file, then click the Source tab to bring it into view.
    10. Before the last closing brace (}), add this line of code:
    public String hello() { return "Hello World!"; }
    11. Select File | Save All.
    12. In the Navigator, double-click the Hello.java file so that you can add the remote interface.
    13. Click the Source tab to bring Hello.java into view.
    14. Add the following line before the last brace (}):
    public String hello() throws java.rmi.RemoteException;
    15. Select File | Save All.
    16. Add the Oracle8i JVM classes to the Hello project by selecting Project | Project Properties and clicking
    the Libraries tab.
    17. Click Add, then click Oracle 8i JVM, then click OK.
    18. Click OK to dismiss the Project Properties dialog.
    19. Select Project | Make Project to compile the Hello project.
    20. In the Navigator, right-click the Hello folder and select Create EJB/8i Deployment Profile.
    21. In the Deployment Profile Wizard that appears, click the Advanced Button.
    Only the first (Automatically include files added to project) and the last (Redirect messages
    to the Message View) boxes should be selected.
    22. Click Done to close the Advanced dialog.
    23. Click the Connection tab and select an IIOP datasource. If there is none, you'll have to create one.
    All three checkboxes at the top of the page should be selected.
    24. Click Done. You'll be prompted to deploy now or later. Click Yes.
    JDeveloper will use the IIOP datasource you specified to deploy the Hello EJB project.
    Now you need to add the generated files that were created during deployment to the class path so that
    the client can find them.
    25. From the Project menu, select Project Properties, then click Add, then click New.
    26. Click the Elipses to the right of the Class path field, then click Add Jar/Zip.
    27. Navigate to the file called HelloGenerated.jar and double-click it to add it to the path.
    28. Click OK to close the two dialogs and Project Properties.
    After JDeveloper completes the deployment, you need to make a client to call the EJB methods and display the results.
    29. From the File menu, select New, then click on the Snippets tab.
    30. Double-click the EJB Oracle 8i Client icon.
    31. Click the Parameters button in the Snippet dialog.
    32. Enter the IIOP connection information you specified earlier.
    33. Enter the EJB Home and Remote interface names ("HelloHome" and "Hello").
    34. Click OK to close the Parameters button.
    The Client file is added to the project.
    35. In the Navigator, right-click the MyEJBJSClient.java file and select run.
    Check the Message View to see the output of your EJB!
    null

    I got the msg when I try to deployment EJB and I use the 8.1.7. andJdev 3.2. Please advise what is wrong for my IIOP connection. From the listener.log, the connection looks good.
    ======================================
    Compiling the project...done
    Validating the profile...done
    Initializing deployment...done
    Scanning project files...done
    Generating classpath dependencies...done
    Generating archive entries table...done
    *** Archive generation completed ***
    *** Deploying the EJB to 8i JVM ***
    EJB deployment argument list:
    "C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
    "-DPATH=C:\Program Files\Oracle\JDeveloper 3.2\bin;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
    -classpath
    "C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2\auro
    a\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar"
    oracle.aurora.ejb.deployment.GenerateEjb
    -u
    scott
    -p
    tiger
    -s
    sess_iiop://localhost:2482:test
    -republish
    -keep
    -temp
    TEMP
    -descriptor
    "C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJB.xml"
    -oracledescriptor
    C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJB_oracle.xml
    -generated
    "C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJBGenerated.jar"
    "C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Demo\EJB\DemoHelloEJBSource.jar"
    Cannot connect to service: sess_iiop://localhost:2482:test
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    ============================================

  • Hello world tutorial

    is there any simple tutorials for starting j2 me like the classic helloworld.
    ones that explain the code that is. ive looked at 2 for getting started on this site but they dont really explain the code, more about getting the examples build and running.

    package greeting;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloWorld extends MIDlet implements CommandListener
    private Display display ;
    private TextBox textBox ;
    private Command quitCommand;
    public void startApp()
    display = Display.getDisplay(this);
    quitCommand = new Command("Quit", Command.SCREEN, 1);
    textBox = new TextBox("Hello World", "My first MIDlet", 40, 0);
    textBox .addCommand(quitCommand);
    textBox .setCommandListener(this);
    display .setCurrent(textBox );
    public void pauseApp()
    public void destroyApp(boolean unconditional)
    public void commandAction(Command choice, Displayable displayable)
    if (choice == quitCommand)
    destroyApp(false);
    notifyDestroyed();
    Compiling Hello World
    javac -d d:\j2me\tmp_classes -target 1.1 -bootclasspath
    d:\j2me\midp1.0.3fcs\classes HelloWorld.java
    Running Hello World
    midp -classpath d:\j2me\classes greeting.HelloWorld
    I have a very good documentation about this, if you want them.... just let me know.

  • After "Hello World" - my first adventure in accepting user input

    Hey
    I'm trying to teach myself java and I'm attempting to move on from printing hello world to the screen :)
    I've written the following:
    import java.io.*;
    public class firstapp {
         int value1,
              value2,
              result;
         public static int add(int value1, int value2){
             return value1 + value2;
         public static void main(String args[]){
              int value1,
                        value2,
                        result;
              BufferedReader reader;
              reader = new BufferedReader(new InputStreamReader(System.in));
              //try block
              try{
                   System.out.println("Please type the first number");
                   value1 = reader.read();
                   System.out.println("Please type the second number");
                   value2 = reader.read();
                   result = add(value1,value2);
                   System.out.println("Added together they equal " + result);
         catch (IOException ioe){
              System.out.println("Something bad happened");{
         }It doesnt do what I expected though. It prompts for the first number which i enter. It then prints "Please type the second number" but doesnt accept any input and goes on to print "Added together they equal 62" (this is when 1 is entered as the first number).
    Im so new to this so excuse it being the most basic of basic questions. But where is it getting 62 from?
    Thanks

    BufferedReader.read() isn't the best method for this. It reads a single character, which you store as an int. If you entered "5" for example, the ascii value of 5 is being stored, not the value 5. The second read() call is most likely reading the carriage return, so it adds 53 and 13, and prints that out, for example. If you have version 1.5 or better, use the Scanner class instead, it has a nextInt() method that does what you want.

  • Hello world Native Extension API

    Hi all :-)
    I am an android expert and I'd really love to create some cool extensions like the android notifications, but since I don't know much about Flex, I have a lot of trouble getting the test vibrator with native extension working.
    (http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html)
    My sample is still buggy, it is probably beginner's bug, but I don't see how to fix it yet.
    I am surely not the only native guy trying to do this, so I would like to sumarize here all the steps needed to have our first hello world Native Extension API
    Install Flex 4.5.1 http://www.adobe.com/go/try_flashbuilder/ and download the Adobe AIR 3.0 RC http://labs.adobe.com/downloads/air3.html  as well as the sample files http://download.macromedia.com/pub/developer/air/ane/Vibration.zip
    Create a test Flex mobile project.(all the deffault parameters are fine) I'll call it HelloWorldNativeExtension.
    (If AIR 3 is not released yet) Do the following to tell Flex builder to use the RC on your test project : http://forums.adobe.com/thread/899921
    Unzip the vibration.zip, and go to ready to use extansion.
    Go to Project -> Flex buildpath -> Libraries -> Add a new swc. Add the ready to use extension as a library. Then open the extensions properties and change the link type from "bundled with" to "external linkage"
    Go to HelloworldNativeExtension-app.xml and in the tag manifestAddition, add : <uses-permission android:name="android.permission.VIBRATE"/>
    Write a sample view (as described below)
    Run (target platform->android and then chosse to run on a device)
    When asked to update the air version, answer yes
    Wait a loooong time before it actually start.
    Here is my code for the sample view:
    In HelloworldNativeExtension.mxml
    Use the following code :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import com.adobe.nativeExtensions.Vibration;
                protected function testButton():void
                    textArea.text="Before vibration";
                    var vibe:Vibration;
                    if (Vibration.isSupported)
                        vibe = new Vibration();
                        vibe.vibrate(2000);
                    textArea.text="After vibration";
            ]]>
        </fx:Script>
        <s:Panel title="Exemple MXML" width="330">
            <s:layout>
                <s:VerticalLayout paddingLeft="15" paddingTop="15" paddingBottom="15" paddingRight="15"/>
            </s:layout>
            <s:Label x="223" y="173" text="test" id="textArea"/>
            <s:Button label="Vibrate" click="testButton()"/>
            <s:Label id="result" width="265"/>
        </s:Panel>
    </s:Application>
    Well... so far my project doesn't compile because the library is loaded externally. It compiles fine if I add it as a bundled library, but then the virbrator can't work (External native code have to be loaded externally)
    And thus so far I get the errors :
    Description
    Ressource
    Chemin
    Emplacement
    Type
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.display]::IBitmapDrawable.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    (Which means something like : 1046: this type cannot be resolved or is not in the buildpath ... So it probably means the project doesn't compile well)
    So I'm still trying to figure out what to do, but I am close I think... Very close.

    Yes, in fact you are very close
    You will have to put an <extensions> tag in app-xml if not already done so:
    <extensions>
    <extensionID>com.adobe.Vibration</extensionID>
    <extensions>
    Then since it is FlashBuilder 4.5.1, you will have to package the android application through command line since it requires 1 more parameter -extdir :
    adt -package -target apk . . . app.apk app.xml app.swf -extdir extensions
    extensions is the directory which contains your .ane file. Checkout http://www.adobe.com/devnet/air/articles/extending-air.html#articlecontentAdobe_numberedhe ader_1 for more details.
    Thats all. You should be able to run your app now. Let me know if it still doesnt work.
    Thanks,
    Meet
    AIR Team

  • Hello World  App : Exception in thread "main" java.lang.NoClassDefFoundErro

    Hi
    I have downloaded a latest version of JDK, I have several other versions on my machine from other times i endeavored to work on Java, but never got to doing so.
    I have compiled the HelloWorldApp (code below) but when i try to run it, I get the error below: My java version is listed as 1.5.0_06. Any insight would be great.
    F:\GamingExtravaGanza>java HelloWorldApp.class
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class
    * The HelloWorldApp class implements an application that
    * simply prints "Hello World!" to standard output.
    class HelloWorldApp {
        public static void main(String[] args) {
            System.out.println("Hello World!"); // Display the string.
    }F:\GamingExtravaGanza>java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
    Mike

    I had tried without the class extension, too. Anyone have ideas for why i am getting the error ?
    F:\GamingExtravaGanza>java HelloWorldApp
    Exception in thread "main" java.lang.UnsupportedClassVersionError:
    umber in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Sour
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Metho
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Sourc
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

  • Hello World Tutorial not working. processFormRequest not called

    In 9iJDeveloper when running the HelloWorld tutorial, I enter a value in the 'Hello' box, and press 'Go'. The page refreshes, but the value entered does not get displayed. No Information box is displayed, as it should according to the tutorial. So, I ran under debug, and it appears that in HelloWorldMainCO only processRequest is called. The breakpoint in processFormRequest is never reached.
    I have tried the other tutorials, and no 'POST's are working.
    However, when I logon to applications as 'OA Framework ToolBox Tutorial' responsibility and run the tutorials they work fine.
    Any help will be appreciated.

    Hi,
    I am having the same problem. We could be facing the same issue. I am following this issue in the thread 'Hello World not working'. You are welcome if you want to join us there.
    Thanks
    Sandeep

  • Help in hello world

    Hi,
    I had just started learning Java ME but already bumped into problems at the beginning. I installed JDK 6 Update 7 and Wireless toolkit 2.5.2 for CLDC but the problem is when i try to run a basic example such as this:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloMIDlet extends MIDlet {
    public void startApp() {
    System.out.println("Hello World");
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    }and it workd in Wireless Toolkit 2.5.2 but ineed to try it @ my phon (nokia 6120 )
    pleas tell me how to do it
    ( sory about my english )

    You are just using a sop only so you cant c anything in real phone:D.
    just use this code and you can see a Hello world :D
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    * @author Amila
    public class TestMidlet extends MIDlet implements CommandListener {
        TextBox tb;
        Command cmdExit;
        Display dsp;
        public TestMidlet(){
            tb = new TextBox("My first application", "Hello World", 100, TextField.ANY);
            cmdExit = new Command("Exit", Command.EXIT, 0);
            tb.addCommand(cmdExit);
            tb.setCommandListener(this);       
            dsp = Display.getDisplay(this);
        public void startApp() {
            dsp.setCurrent(tb);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
        public void commandAction(Command cmd, Displayable arg1) {
            if(cmd == cmdExit){
                notifyDestroyed();
                destroyApp(true);
    }

Maybe you are looking for