Graphical programs not running--need help

Using win98 platform, textpad, and jdk1.5.0...
DOS programs run fine, however, graphical applications do not run--it goes to the DOS window and brings up strings of stuff instead.
When I compile, the error message that generally shows:
Note: C:\jdk1.5.0\demo\...java uses or overrides a depreciated API
Note: Recompile with -Xlint: depreciation for details.
And for applets, this line also existed on a demo:
Note: C:\jdk1.5.0\demo\applets\Animator\Animator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint: unchecked for details.
Anybody know what to do here? I'm just learning java from books, but I need to be able to run java applications in order to get a feel for the code. Help would be appreciated.

If anyone deems it a necessity, here is an example of simple code that will throw this problem:
(sorry-under win98 2nd ed.)
import java.event.*;
import javax.swing.*;
class CloseableFrame extends JFrame
{  public CloseableFrame()
{  setTitle("Closeable Frame");
setSize(300,200);
addWindowListener(new WindowAdaptor()
{  public void windowClosing(WindowEvent e)
{  System.exit(0);
public class CloseableTest
{  public static void main(String[] args)
{  JFrame frame = new CloseableFrame();
frame.show();
}

Similar Messages

  • Adobe Programs Not Working-Need Help

    All my Adobe programs are unresponsive in my Mac Book Pro. Every time I open a program, after it loads up it virtually freezes. Every click I do, even if its not meant to do anything brings up the rainbow wheel, meaning a big operation is being done, or its having trouble doing the operation. This makes it so nothing can be done, not even selecting a tool, or opening a new/existing file. I know the programs are not responding because in the Force Quit window it says the programs are unresponsive. At first I tried to see if Force Quitting would help, which it didn't. I would restart my computer and that wouldn't work either. I even tried uninstalling, and re-installing the programs, and still nothing. I tried going to Disk Utility to repair the disks, and permissions, and again that didn't fix anything. At the time that I tried all that I was on the trial version of the programs, very near or at the trial period being over. So I thought upgrading to a Student License would help fix this, which it also didn't. After upgrading I uninstalled and re-installed again, still nothing. I only use three programs: Photoshop, Illustrator, and Premier Pro. They all have the same problem.

    reset your preferences -
    acrobat:  http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html
    adobe media encoder: https://forums.adobe.com/thread/1713540
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    dreamweaver:  https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
    muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
    photoshop:  https://forums.adobe.com/thread/375776
    photoshop elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html,  http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
    premiere elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html
    premiere pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html

  • Installed Acrobat XI Standard on windows 8.1, see it in my download folder but it will not run?  Help?

    Installed Acrobat XI Standard on windows 8.1, see it in my download folder but it will not run?  Help?

    Also, once you successfully install, please backup the install file to a separate HD and/or CD. I agree that your comment is not clear. You say you installed it, but it is simply in the download folder. Did you run the install file that you downloaded? The download does not install the program, but the install is an extra step.

  • My iphone 6 turned off while i was using face time and it returns with the screen saying Hello mean its reset automatically how is this possible ? Now it requires an id and password to activate which i do not remember need help ?

    My iphone 6 turned off while i was using face time and it returns with the screen saying Hello mean its reset automatically how is this possible ? Now it requires an id and password to activate which i do not remember need help ? but i do remember the id and password which i was using on itunes and Apple store. please i almoost buy it in 890$ so it will be a big lost please help me.

    shahzadfromlahore wrote:
    Now it requires an id and password to activate which i do not remember need help ? but i do remember the id and password which i was using on itunes and Apple store. please i almoost buy it in 890$ so it will be a big lost please help me
    Who set up the phone? Who's Apple ID was used to activate it?

  • HT4061 Serial number not recognized need help

    Serial number not recognized need help
    <Edited by Host>

    Not recognized where? And what sort of help are you hoping for from us, your fellow users?

  • HT4759 I've lost my iPhone & recently too, my laptop which I saved all my iCloud data has been reformatted. So now I hv problem to trace all the notes that I kept. I only managed to get my contacts and calendar,unfortunately not the NOTES. Need help..TQ

    I've lost my iPhone & recently too, my laptop which I saved all my iCloud data has been reformatted. So now I have problem to trace all the notes that I kept. I only managed to get my contacts and calendar,unfortunately not the NOTES. Need help how to retrieve my notes from the iCloud..TQ

    Lord K.  Thank you. Yes I am within the 90 time period, however I travel Intertionally and I can not receive not make a call to Apple. I was just at the Genius Bar in Chicago and they said, don't worry about it.  It just floats out there, however, I can not recover my messages on a flash drive. I need to go back to my old computer which I don't have with me.  My messages were in folders for a lawsuit.  It is going to take an incredible amount of work for me to, you have no Idea.  We are talking thousands of pages!  I the defendent will have them during discovery so I am not so worried.  However, I can not bring them to him on a Flashdrive when I meet with him without an extraordinary amount of presssure on my part.  THis is not just some little email issue. This is suing EXPEDIA and Tripadviosr.com

  • Java program not running by the Ant

    i have a small java program.
    its a classpath problem.
    cant figure out where is the problem.
    i am running the code via Ant.
    build.xml
    <?xml version="1.0"?>
    <project name="myproject" basedir="." default="all">
        <property name="src.dir"     value="src"/>
         <property name="classes.dir" value="classes"/>
         <property name="lib.dir"     value="C:/tomcat/webapps/axis/WEB-INF/lib"/>
         <property name="runclass" value="TestClient"/>
         <target name="all" depends="clean,compile"/>
         <target name="clean">
            <delete dir="${classes.dir}"/>
        </target>
        <path id="classpath">
            <fileset dir="${lib.dir}" includes="**/*.jar"/>
        </path>
        <target name="compile">
            <mkdir dir="${classes.dir}"/>
         <javac srcdir="${src.dir}"
          destdir="${classes.dir}"
          deprecation="on"
          debug="on">
       <classpath><path refid="classpath"/></classpath>
      </javac>
         </target>
         <target name="run" depends="compile">
       <!-- run the class -->
       <java classname="${runclass}">
            <classpath>
              <pathelement path="${classpath}"/>
              <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
            </fileset>
              </classpath>
           </java>
      </target>
         </project>i invoked
    ant runand got this
    Buildfile: build.xml
    compile:
    run:
         [java] Could not find TestClient. Make sure you have it in your classpath
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
    .java:170)
         [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
         [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
         [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
         [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
    va:275)
         [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
         [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
         [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
         [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
    a:1216)
         [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
    faultExecutor.java:40)
         [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
         [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
         [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
         [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
         [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    BUILD SUCCESSFUL
    Total time: 2 secondsso, code is not running......its dfinitely a classpath problem , because error message says "Could not find TestClient. Make sure you have it in your classpat".
    TestClient is the name of main class file.
    not sure whats wrong with this build.xml ? whats wrong in it ?
    one thing , i guess, i did not mention "." , current directory in the build.xml ......is it because of that ?
    i browsed apache manual......To Run a Java program.....first, they are making a JAR file ...and then they are executing the JAR.
    i really, dont need the JAR file......i just want to run it.....thats enough.
    somewhere, i have to do some modification in this buld.xml.......do you have any idea ?
    thank you

    TestClient folder has
    1)src
    2)classes
    3)build.xml
    i have posted the build.xml already.
    now, src folder has TestClient.java
    TestClient.java
    ==================
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    public class TestClient {
       public static void main(String [] args) {
         try {
           String endpoint =
               "http://ws.apache.org:5049/axis/services/echo";
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(new QName("http://soapinterop.org/","echoString"));
           String ret = (String) call.invoke( new Object[] { "Hello!" } );
           System.out.println("Sent 'Hello!', got '" + ret + "'");
         } catch (Exception e) {
           System.err.println(e.toString());
    }and i did
    ant runand i got those errors.
    clearly, its not able to run it.
    looked the manual....did not find anything special about java task....still not working.

  • �� I have a java applet program (yanhua.java) need help!!!

    �� I have a java applet program (yanhua.java) that use mouse click a area show a fireworks, the applet program that a java fan mail me. Now i find some bug in the program, can you help me? thank in advance!
    The backdrop of the question: The yanhua.java applet program works well. But one day, i install j2re 1.4.1 plugin for my microsfot Internet Explorer, i run the yanhua.java applet program again, it show difficult(i move my mouse in the area, slowness), the fireworks is not fluent. Then i try my best to find the cause , i get some information, the following: yanhua.java run in j2re 1.4.1 plugin,it will deplete 100% cpu; else yanhua.java does not run in j2re 1.4.1 plugin, it will deplete 90%--95% cpu too; but my computer c3 1G cpu and 256MB memory, without running other program at that time. So i can have the assurance to say that the yanhua.java have some bug or error. can you help me to find all bug in yanhua.java? thank you very much!!!
    i want to solve the question: finding all bug in yanhua.java
    NOTE:
    1��fireworks show specially good effect(a yanhua.java applet) you can look at:
    http://www.3ren.net/down/java/yanhua.html
    2��all program you can get from http://www.3ren.net/down/java/yanhua.rar
    /*************************yanhua.java******************************
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.image.MemoryImageSource;
    import java.util.Random;
    public class yanhua extends Applet
    implements Runnable
    private int m_nAppX;
    private int m_nAppY;
    private int m_centerX;
    private int m_centerY;
    private int m_mouseX;
    private int m_mouseY;
    private int m_sleepTime;
    private boolean isError;
    private boolean m_isPaintFinished;
    boolean isRunning;
    boolean isInitialized;
    Thread runner;
    int pix0[];
    MemoryImageSource offImage;
    Image dbImg;
    int pixls;
    int pixls2;
    Random rand;
    int bits;
    double bit_px[];
    double bit_py[];
    double bit_vx[];
    double bit_vy[];
    int bit_sx[];
    int bit_sy[];
    int bit_l[];
    int bit_f[];
    int bit_p[];
    int bit_c[];
    int bit_max;
    int bit_sound;
    int ru;
    int rv;
    AudioClip sound1;
    AudioClip sound2;
    public yanhua()
    m_mouseX = 0;
    m_mouseY = 0;
    m_sleepTime = 5;
    isError = false;
    isInitialized = false;
    rand = new Random();
    bits = 10000;
    bit_px = new double[bits];
    bit_py = new double[bits];
    bit_vx = new double[bits];
    bit_vy = new double[bits];
    bit_sx = new int[bits];
    bit_sy = new int[bits];
    bit_l = new int[bits];
    bit_f = new int[bits];
    bit_p = new int[bits];
    bit_c = new int[bits];
    ru = 50;
    rv = 50;
    public void init()
    String s = getParameter("para_bits");
    if(s != null)
    bits = Integer.parseInt(s);
    s = getParameter("para_max");
    if(s != null)
    bit_max = Integer.parseInt(s);
    s = getParameter("para_blendx");
    if(s != null)
    ru = Integer.parseInt(s);
    s = getParameter("para_blendy");
    if(s != null)
    rv = Integer.parseInt(s);
    s = getParameter("para_sound");
    if(s != null)
    bit_sound = Integer.parseInt(s);
    m_nAppX = this.getSize().width;
    m_nAppY = this.getSize().height;
    m_centerX = m_nAppX / 2;
    m_centerY = m_nAppY / 2;
    m_mouseX = m_centerX;
    m_mouseY = m_centerY;
    resize(m_nAppX, m_nAppY);
    pixls = m_nAppX * m_nAppY;
    pixls2 = pixls - m_nAppX * 2;
    pix0 = new int[pixls];
    offImage = new MemoryImageSource(m_nAppX, m_nAppY, pix0, 0, m_nAppX);
    offImage.setAnimated(true);
    dbImg = createImage(offImage);
    for(int i = 0; i < pixls; i++)
    pix0[i] = 0xff000000;
    sound1 = getAudioClip(getDocumentBase(), "firework.au");
    sound2 = getAudioClip(getDocumentBase(), "syu.au");
    for(int j = 0; j < bits; j++)
    bit_f[j] = 0;
    isInitialized = true;
    start();
    public void run()
    while(!isInitialized)
    try
    Thread.sleep(200L);
    catch(InterruptedException interruptedexception) { }
    do
    for(int j = 0; j < pixls2; j++)
    int k = pix0[j];
    int l = pix0[j + 1];
    int i1 = pix0[j + m_nAppX];
    int j1 = pix0[j + m_nAppX + 1];
    int i = (k & 0xff0000) >> 16;
    int k1 = ((((l & 0xff0000) >> 16) - i) * ru >> 8) + i;
    i = (k & 0xff00) >> 8;
    int l1 = ((((l & 0xff00) >> 8) - i) * ru >> 8) + i;
    i = k & 0xff;
    int i2 = (((l & 0xff) - i) * ru >> 8) + i;
    i = (i1 & 0xff0000) >> 16;
    int j2 = ((((j1 & 0xff0000) >> 16) - i) * ru >> 8) + i;
    i = (i1 & 0xff00) >> 8;
    int k2 = ((((j1 & 0xff00) >> 8) - i) * ru >> 8) + i;
    i = i1 & 0xff;
    int l2 = (((j1 & 0xff) - i) * ru >> 8) + i;
    int i3 = ((j2 - k1) * rv >> 8) + k1;
    int j3 = ((k2 - l1) * rv >> 8) + l1;
    int k3 = ((l2 - i2) * rv >> 8) + i2;
    pix0[j] = i3 << 16 | j3 << 8 | k3 | 0xff000000;
    rend();
    offImage.newPixels(0, 0, m_nAppX, m_nAppY);
    try
    Thread.sleep(m_sleepTime);
    catch(InterruptedException interruptedexception1) { }
    } while(true);
    public void update(Graphics g)
    paint(g);
    public void paint(Graphics g)
    g.drawImage(dbImg, 0, 0, this);
    public void start()
    if(isError)
    return;
    isRunning = true;
    if(runner == null)
    runner = new Thread(this);
    runner.start();
    public void stop()
    if(runner != null)
    runner.stop();
    runner = null;
    public boolean mouseMove(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    return true;
    public boolean mouseDown(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    int k = (int)(rand.nextDouble() * 256D);
    int l = (int)(rand.nextDouble() * 256D);
    int i1 = (int)(rand.nextDouble() * 256D);
    int j1 = k << 16 | l << 8 | i1 | 0xff000000;
    int k1 = 0;
    for(int l1 = 0; l1 < bits; l1++)
    if(bit_f[l1] != 0)
    continue;
    bit_px[l1] = m_mouseX;
    bit_py[l1] = m_mouseY;
    double d = rand.nextDouble() * 6.2800000000000002D;
    double d1 = rand.nextDouble();
    bit_vx[l1] = Math.sin(d) * d1;
    bit_vy[l1] = Math.cos(d) * d1;
    bit_l[l1] = (int)(rand.nextDouble() * 100D) + 100;
    bit_p[l1] = (int)(rand.nextDouble() * 3D);
    bit_c[l1] = j1;
    bit_sx[l1] = m_mouseX;
    bit_sy[l1] = m_nAppY - 5;
    bit_f[l1] = 2;
    if(++k1 == bit_max)
    break;
    if(bit_sound > 1)
    sound2.play();
    return true;
    public boolean mouseExit(Event event, int i, int j)
    m_mouseX = i;
    m_mouseY = j;
    return true;
    void rend()
    boolean flag = false;
    boolean flag1 = false;
    boolean flag2 = false;
    for(int k = 0; k < bits; k++)
    switch(bit_f[k])
    default:
    break;
    case 1: // '\001'
    bit_vy[k] += rand.nextDouble() / 50D;
    bit_px[k] += bit_vx[k];
    bit_py[k] += bit_vy[k];
    bit_l[k]--;
    if(bit_l[k] == 0 || bit_px[k] < 0.0D || bit_py[k] < 0.0D || bit_px[k] > (double)m_nAppX || bit_py[k] > (double)(m_nAppY - 3))
    bit_c[k] = 0xff000000;
    bit_f[k] = 0;
    } else
    if(bit_p[k] == 0)
    if((int)(rand.nextDouble() * 2D) == 0)
    bit_set((int)bit_px[k], (int)bit_py[k], -1);
    } else
    bit_set((int)bit_px[k], (int)bit_py[k], bit_c[k]);
    break;
    case 2: // '\002'
    bit_sy[k] -= 5;
    if((double)bit_sy[k] <= bit_py[k])
    bit_f[k] = 1;
    flag2 = true;
    if((int)(rand.nextDouble() * 20D) == 0)
    int i = (int)(rand.nextDouble() * 2D);
    int j = (int)(rand.nextDouble() * 5D);
    bit_set(bit_sx[k] + i, bit_sy[k] + j, -1);
    break;
    if(flag2 && bit_sound > 0)
    sound1.play();
    void bit_set(int i, int j, int k)
    int l = i + j * m_nAppX;
    pix0[l] = k;
    /*********************************end*******************************

    no one help me???????????

  • IEPG Titan tv not working ,Need help please

    I recently installed MSI tv@nywhere Master into a new Dell XPS system, using all the latest drivers, and programs avaliable on MSI's website, i'm happy to say that everything worked well except for the EPG.
       When I click on a program to record, a box opens up asking for an IP address, whether or not I supply the address the project apears in the schedual but the program does not start.
      After the project was supposed to start, if I open MSIPVS a box opens saying that the server is using the program, and I need to change modes to use it???
      I'm stumped. Any help will be welcome.

    It sounds like you've turned on some Universal Access features.
    (The clue was the black line around selected text boxes.)
    If you have volume turned up, you may hear the system voice speaking the text in the black outlined boxes.
    You can turn the various Universal Access features on/off in System Preferences, System, Universal Access.
    It's also possible to enable/disable various keyboard shortcuts in System Preferences, Hardware, Keyboard & Mouse.

  • LabVIEW Program not running if i lock my PC (using an EXE made from LabVIEW)

    Hi everyone 
    I observed some odd behavior when I was running my program on a PC. I prepared an EXE for a LabVIEW program, this am running on another PC. Purpose of the program is to read a text file and follow the command given in that text document, we are accessing parallel port, calling third party EXEs in this. It is not running when I minimize the window or lock the PC. Do we have any property in VI properties for this?
     Please help me in this.
    Thanks
    Anil

    Hi Anil,
    Minimizing the application or locking Windows should not stop the executable from running. Can you reproduce this behavior on the development PC?  Also try to create an executable with a simple VI that counts the number of iteration and check for this behavior ?
    Tunde.

  • Programs not running in leopard

    my adobe creative suite and office:mac v.X are not running after installation of leopard, which i bought to use with my 16gb iphone. suggestions?

    Java Preferences can be found using Spotlight.
    Update your Java 6 as previously instructed as it's supplies security fixes.
    Java 7 and above is for 10.7 and above, Oracle is dropping support for Java 6.
    However all versions of Java have been HIGHLY insecure, so it's advised not to use them at all
    If your using Java based programs (like the free LibreOffice) then certainly disable Java in all web browsers and applets in Java Preferences.
    Apple has a now annual OS X upgrade cycle that is causing havoc and disqualifying  older, but perfectly working machines from running necessary software and dragging third party developers along.
    So one shouldn't be running Safari (outdated and no Safari 6), Java 6, very possibly Chrome on OS x 10.6.8, but if you upgrade to 10.7 or above, your machine will perform slower and all your PPC based software will no longer continue to function.
    It's sad, because OS X Snow Leopard has  1/4 OS X market share still and many can't upgrade because developers are not issuing 10.7/10.8 versions of their software because of AppStore and Gatekeeper signaling the closing of the operating system in the future.
    The 10 year support cycle of Windows versions sounds like blessed relief compared to Apple's annual OS X upgrade nightmare.
    OS X 10.4/10.5 need to upgrade, 10.6.8 ok still

  • Program not running, error -10810

    i was using flash on my ibookk G4, they i closed the progam and later tried to work on it again, however this time there appears a window, which reads: An unexpected error has occured, error -10810.
    really need help, dunno whats happening with my computer

    Irene:
    Welcome to Apple Discussions.
    I have been unable to determine until now exactly what your error message means. A few questions, if you don't mind.
    1. +i was using flash+
    By that do you mean a USB jump drive?
    2. +i closed the progam and later tried to work on it again+
    Can you tell us exactly what program you were working on? And by "closed" do you mean quit? Was this program on the internal HDD or on the "flash drive"?
    3. Did you remove the flash drive and replace it?
    Before you respond here are a couple of things you can do.
    1. *Repair Disk Permissions*
    While booted from your internal HDD
    Go to (Applications > Utilities > Disk Utility.
    Select your HDD (manufacturer ID) in left column and First Aid in main column.
    Click Repair Disk Permissions at bottom left.
    2. Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel, and report if it says anything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need to use a utility like Tech Tool Pro or Disk Warrior
    Please do post back with responses to my queries and with an update on the procedures above.
    Cheers
    corneliius

  • Will not start need help fast as f

    Have tried to delete the entire program and downloaded it again does not help need help immediately, shell have done a movie.

    it came suddenly and was okay, but thank you for your help

  • I sign in tol my Firefox is out of date. did try to do the upgrade but did not work need help

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/978554 /questions/978554]''
    I need help to get my sign in working. Need to upgrade?
    how to do that?
    <sub>edit: removed personal information for your protection. (philipp)</sub>

    I sign in told my Firefox is out of date. did try to do the upgrade but did not work. Need help
    Let me know how to get my sign in working

  • Some procedure can not run,Please help

    --Please Help me where is wrong
    --The Procedure can be compiler,but can not run
    --Maybe there has some wrong with Ref Cursor or dynamic SQL
    --Please,Thanks ver much
    --Follow is my full code
    Create or Replace package ref_types
    AS
    TYPE ref_cursor is REF CURSOR;
    End;
    Create or Replace package userinfo as
    procedure Get_usermenu (baduser out boolean,
    menu out ref_types.ref_cursor
    End;
    Create or Replace package body userinfo as
    procedure Get_usermenu (baduser out boolean,
    menu out ref_types.ref_cursor
    ) is
    v_sqltext varchar2(100);
    v_sql varchar2(300);
    begin
    baduser:=FALSE;
    v_sqltext:='''A001'',''A002'',''A003''';
    v_sql:='select MENUID,P_NAME from MENU_LIST
    where MENUID in (';
    v_sql:=v_sql||v_sqltext||) order by MENUID asc';
    --explain:Get v_sqktext values overpass some process
    open menu FOR v_sql;
    end;
    end;
    /

    thanks,
    error number is : Ora-01001
    I use it In Form:
    declare
    v_baduser boolean;
    v_menu ref_types.ref_cursor;
    v_menuid number;
    v_menuname varchar2(50);
    v_menucount number;
    begin
    v_menucount:=1;
    userinfo.Get_usermenu(v_baduser,v_menu);
    loop
    fetch v_menu into v_menuid,v_menuname;
    exit when v_menu%NOTFOUND;
    show_alert_info(v_menuid||';'||v_menucount||'、'||v_menuname);
    --show_alert_info,like Developer's Function "message",
    --It can show some text
    v_menucount:=v_menucount+1;
    end loop;
    Close v_menu;
    end;

Maybe you are looking for

  • Slow Loading data from DB, one record at a time, HOW?

    I am currently doing a project.... I need to display a record of data on a "form"(JFrame) the way i handle it is 1. Load first record 2. pass to the display object 3. display object -> on click next, call manager object to process the request 4. mana

  • Call DISCOVERER Report From a 6i or 9i Form

    Is is possible to call a Discoverer report directly from a 6i form? How about from a 9i form? I know calling an Oracle Reports (.rdf) is possible; my focus is on Discoverer. Thanks

  • How can I rearrange the pages in a PDF without changing the assigned paged numbers.

    How can I rearrange the pages in a PDF without changing the assigned paged numbers? These correspond to the original document folio numbers.

  • Draft Key No in PLD

    Hi all, can anyone pls tell me if it is possible to fetch the draft key number of marketing document in pld for that document

  • Failed to Reload 4.5 Operating System

    Hello, I wiped out my blackberry curve 8310 and am having a problem to reload the OS. It show a white screen with an error 507. Whenever I use the application loader it brings this message:-  The blackberry desktop software does not have Blackberry D