Java 1.4 under Redhat 7.2

Dear all,
I got the following message after I installed and tried to run java under RH7.2
Error occurred during initialization of VM
Unable to load native library: /usr/java/j2sdk1.4.0/jre/lib/i386/libjava.so:symbol __libc_waitpid, version GLIBC_2.0 not defined in file libc.so.6 with link time reference.
Any comment and experience?
Many thanks
Bjarne

libcwait.c
#include <errno.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
pid_t
__libc_wait (int *status)
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int $0x80\n\t"
"popl %%ebx"
: "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0),
"S" (0));
return res;
Do gcc -O2 -shared -o $HOME/libcwait.so -fpic $HOME/libcwait.c
and then
set LD_PRELOAD=$HOME/libcwait.so
Before invoking your application

Similar Messages

  • Java install problem under redhat 9

    I download rpm and install it under redhat 9. I can compile program (the class file is generated) but can not run it.
    I checked the path and see /usr/java/j2sdk1.4.2_04. WHen I check the version, it tell me version "1.3.1". It soulds like I have 2 different version of java installed. How can I solve this problem?
    Thanks

    Probably not a mix up. Try to update your path wirh the path to the bin directory of the java version you want to use. Something like :
    export PATH=/usr/java/j2sdk1.4.2_04/bin:$PATH

  • Installation oracle 9i under Redhat 4

    hi everybody,
    I'm trying to install oracle 9i under Redhat ES4, and I have this error message,
    thanks for your help,
    regards
    [root@localhost ~]# more /home/oracle/oraInventory/logs/oraInstall2008-12-23_07-
    19-22PM.err
    java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-12-23_07-19-22PM/libactionUn
    ix22.so: /tmp/OraInstall2008-12-23_07-19-22PM/libactionUnix22.so: symbol errno,
    version GLIBC_2.0 not defined in file libc.so.6 with link time reference
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1419)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1314)
    at java.lang.Runtime.load0(Runtime.java:698)
    at java.lang.System.load(System.java:797)
    at ssOiGenClassux22.<clinit>(ssOiGenClassux22.java:25)
    at sscreateLinkux.createLink(sscreateLinkux.java:255)
    at sscreateLinkux.installAction(sscreateLinkux.java:83)
    at oracle.sysman.oii.oiis.OiisCompActions.doActionWithException(OiisComp
    Actions.java:1357)
    at oracle.sysman.oii.oiis.OiisCompActions.doActionImpl(OiisCompActions.j
    ava:1157)
    at oracle.sysman.oii.oiis.OiisCompActions.doAction(OiisCompActions.java:
    604)
    at CompActions.doActionP1createLink3(CompActions.java:310)
    at CompActions.stateChangeActions(CompActions.java:106)
    at oracle.sysman.oii.oiic.OiicInstallActionsPhase$OiilActionThr.run(Oiic
    InstallActionsPhase.java:604)
    at oracle.sysman.oii.oiic.OiicInstallActionsPhase.executeProductPhases(O
    iicInstallActionsPhase.java:2199)
    at oracle.sysman.oii.oiic.OiicInstallActionsPhase.doInstalls(OiicInstall
    ActionsPhase.java:2052)
    at oracle.sysman.oii.oiic.OiicInstallActionsPhase$OiInstRun.run(OiicInst
    allActionsPhase.java:2945)
    at java.lang.Thread.run(Thread.java:484)

    I'm more than a bit confused why anyone would be installing, 10 years after its release, a now desupported version of the product. It seems from what you posted that you are installing on an operating system version that did not exist when 9i (whatever that means - 9.0.3 or 9.2.0.5 are version numbers) was released.
    I would suggest installing 10.2.0.1 on Redhat 4, 11.1.0.6 on version 5, finding an ancient version of the O/S if you want 9.x or playing games with the install to see if you can trick it into thinking you have compatibility which is generally speaking a bad idea.

  • Websites that use java are not working. In the Java control panel, under advanced, default java for browsers "mozilla family" won't stay clicked

    I've recently gotten a new Windows 8 computer. Ever since, I've tried accessing certain websites (like www.cnet.com) and can't get the java scripts to load like for the drop down menus. When I hover over them they don't do anything. Other computers I have that run Windows 7 are working just fine.
    I've upgraded Firefox and Java to all of the newest versions but it's still not working. When I go to the Java control panel, under "Advanced" and under "Default Java for browsers", the check box next to "Mozilla family" won't stay checked. I'll check it, click "Apply" and "Ok" and then when I open it back up it's unchecked again.
    Help.

    cor-el -
    The dom.w3c_touch_events.enabled was already set to 0.
    I don't have a "dom.w3c_touch_events.expose" line. Is that something I should?

  • Audio transmit problem under redhat linux 9

    Hi !!
    I have already compiled J2sdk1.4.2 and JMF2.1.1e performance pack for linux and they both work alright under Redhat linux 9. JMStudio works fine to playback audio files. The problem I'm having is when I try to transmit and receive audio files through AVTransmit2, AVReceive2 and JMStudio!! They just don't work!!
    AVTransmit2 and JMStudio just starts to transmit but on the receiving end both jmstudio and avreceiver2 just waits for rtp data but none arrives!!
    Can anyone help me with this problem?? I've already tried spending a whole day cranking my brain about this!!
    Thanks in advance

    make sure your hostname is somehostname.com , and make sure you have your IP mapped to your hostname in /etc/hosts file.

  • Why can't i start my oracle 9.2.0.1.0 under Redhat linux 8.0??

    When i installing oracle, after copying the files, it telled me "install successfully" , but when it in the procedure: "Linking Oracle9i Database 9.2.0.1.0", it stop and auto exit.
    But I think i should have installed finish. So I try to start it. As below:
    sqlplus /nolog
    SQL> connect / as sysdba
    ERROR:
    ORA-09925: Unable to create audit trail file
    Linux Error: 2: No such file or directory
    Additional information: 9925
    ORA-01031: insufficient privileges
    How can I start it?
    Is that because I hadn't set the value of "/proc/sys/kernel/sem" before I install oracle? It's original value is "250 3200 32 128", I don't know what it should be under Redhat Linux 8.0.
    Can anybody help me?
    thanks.

    I followed the directions here
    http://www.puschitz.com/OracleOnLinux.shtml
    Using this I was able to get 9201 installed on both SuSE8.1 and RedHat8.0.
    On RH8, You have to hand modify the ins_ctx.mk per his instructions and up the value in /proc/sys/kernel/shmmax per his instructions. I did not hit the binutils issue. Other failures are probably missing rpms, as he describes.

  • Java starts itself under names "uaxzu" and "eihf". Nothing happens, I quit them and all is back to normal. What can be the cause?

    Java starts itself under names "uaxzu" and "eihf". Nothing happens, I quit them and all is back to normal. What can be the cause?
    I fear it might be some sort of a virus and since it's a mac it simply cannot do much and I can still use my system normally. But how can I make sure that it is absolutely safe and how can I get rid of it?
    Thanks.

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Drag the image file into the editing window to upload it. You can also include text in the reply.

  • LVM for RAC 9i under Redhat AS 2.1

    Hi,
    LVM is not part of the Redhat AS 2.1. So what can I do to optimize the creation of RAW Devices ?
    Or is it supported to use the LVM from Redhat 7.3 Version ?
    Has anybody experience in Installing RAC under Redhat AS 2.1.
    regards
    Stefan

    You might use OCFS (Oracle Cluster File System) instead of raw devices.
    I'm in the process of trying to install RAC on Linux AS 2.1 update2 as I speak.
    If you've accomplished this, please respond with any tips.
    Thanks
    -Bob

  • Cannot automate listener on startup under redhat 6.3

    dear oracle specialists  i installed oracle 11g r2 under RedHat 6.3 linux after successfull installation and automating db start
    cannot automate listener start up however able to start it mannually since i am new bi as well to oracle so as to
    linux scripting may help me to find the mistake
    oracle
    2918  0.0  0.4 1984168 18440 ?  
    Ss   06:33   0:00 ora_pmon_ice
    oracle
    2920  0.3  0.3 1982056 15308 ?  
    Ss   06:33   0:00 ora_vktm_ice
    oracle
    2924  0.0  0.3 1982056 15392 ?  
    Ss   06:33   0:00 ora_gen0_ice
    oracle
    2926  0.0  0.3 1982056 15248 ?  
    Ss   06:33   0:00 ora_diag_ice
    oracle
    2928  0.0  0.5 1982080 23492 ?  
    Ss   06:33   0:00 ora_dbrm_ice
    oracle
    2930  0.0  0.3 1982056 15464 ?  
    Ss   06:33   0:00 ora_psp0_ice
    oracle
    2932  0.0  0.4 1982568 19000 ?  
    Ss   06:33   0:00 ora_dia0_ice
    oracle
    2934  1.6  0.9 1982056 39228 ?  
    Ss   06:33   0:03 ora_mman_ice
    oracle
    2936  0.0  0.5 1987812 22012 ?  
    Ss   06:33   0:00 ora_dbw0_ice
    oracle
    2938  0.0  0.5 1997608 23436 ?  
    Ss   06:33   0:00 ora_lgwr_ice
    oracle
    2940  0.0  0.4 1982568 18356 ?  
    Ss   06:33   0:00 ora_ckpt_ice
    oracle
    2942  0.0  0.7 1982616 34412 ?  
    Ss   06:33   0:00 ora_smon_ice
    oracle
    2944  0.0  0.5 1982576 22268 ?  
    Ss   06:33   0:00 ora_reco_ice
    oracle
    2946  0.2  1.4 1987896 64636 ?  
    Ss   06:33   0:00 ora_mmon_ice
    oracle
    2948  0.0  0.4 1982056 20340 ?  
    Ss   06:33   0:00 ora_mmnl_ice
    oracle
    2950  0.0  0.3 1983956 15356 ?  
    Ss   06:33   0:00 ora_d000_ice
    oracle
    2952  0.0  0.3 1983120 14520 ?  
    Ss   06:33   0:00 ora_s000_ice
    oracle
    2994  0.0  0.3 1982056 17344 ?  
    Ss   06:33   0:00 ora_qmnc_ice
    oracle
    3205  0.1  1.2 1988764 54972 ?  
    Ss   06:33   0:00 ora_cjq0_ice
    oracle
    3207  0.0  0.7 1983640 31268 ?  
    Ss   06:33   0:00 ora_q000_ice
    oracle
    3209  0.0  0.7 1985556 32068 ?  
    Ss   06:33   0:00 ora_q001_ice
    oracle
    3269  1.0  0.6 1983632 27092 ?  
    Ss   06:36   0:00 ora_j000_ice
    oracle
    3271  0.0  0.3 1982052 15032 ?  
    Ss   06:36   0:00 ora_j001_ice
    here is my database looks like after automatic loads of an operating system after issuing
    ps aux command
    and here is my  listener after issuing ./lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-AUG-2013 06:42:43
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ICELANDLOCAL.localdomain)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       Linux Error: 111: Connection refused
    enviroment variables .bash_profile
    export PATH
    umask 022
    export TMPDIR=/tmp
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/11.2.1/dbhome_1
    export ORACLE_HOME_LISTNER=$ORACLE_BASE/product/11.2.1/dbhome_1
    export ORACLE_HOME_LISTNER=$ORACLE_HOME
    export TNS_ADMIN=ORACLE_HOME/network/admin
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    export PATH=$ORACLE_HOME/bin:$PATH
    export ORACLE_SID=ice
    and my startup script dbora from oracle
    # description: Oracle auto start-stop script.
    # Set ORA_HOME to be equivalent to the $ORACLE_HOME
    # from which you wish to execute dbstart and dbshut;
    # Set ORA_OWNER to the user id of the owner of the
    # Oracle database in ORA_HOME.
    ORA_HOME=/u01/app/oracle/product/11.2.1/dbhome_1
    ORA_OWNER=oracle
    if [ ! -f $ORA_HOME/bin/dbstart ]
    then
        echo "Oracle startup: cannot start"
        exit
    fi
    case "$1" in
        'start')
            # Start the Oracle databases:
            # The following command assumes that the oracle login
            # will not prompt the user for any values
            su $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start LISTENER"
    su $ORA_OWNER -c $ORA_HOME/bin/dbstart $ORA_HOME
            touch /var/lock/subsys/dbora
        'stop')
            # Stop the Oracle databases:
            # The following command assumes that the oracle login
            # will not prompt the user for any values
            su $ORA_OWNER -c $ORA_HOME/bin/dbshut $ORA_HOME
            su $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop LISTENER"
            rm -f /var/lock/subsys/dbora
    esac
    any suggestions or help would be appricieated
    thanks in advance

    user9116138 wrote:
    Salut Ad thanks for reply my listener does not create /tmp/listener_start.log after adding  following lines to dbora file
    su $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start LISTENER"  > /tmp/listener_start.log
    make it "su $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start LISTENER"  > /tmp/listener_start.log  2>&1
    when i issue the command ./lsnrctl start that gives an outcome like
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-AUG-2013 16:25:15
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    TNS-01106: Listener using listener name LISTENER has already been started
    So how is it that it is already started?
    [oracle@ICELANDLOCAL bin]$ ./lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-AUG-2013 16:25:43
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.1/dbhome_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.1/dbhome_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/ICELANDLOCAL/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ICELANDLOCAL.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                02-AUG-2013 16:25:43
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.1/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/ICELANDLOCAL/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ICELANDLOCAL.localdomain)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    So what did you do in between .. what you show here is that you issued a startup and got 'already started', then again issued a startup and got a clean startup.  You obviously are not showing us everything.  Like the command that you actually used when you got the 'already started' message.
    do not know what to do

  • Java 2 SDK problem under Redhat 7.0

    I'm using RedHat Linux 7.0 (kenerl 2.2.16.22, libc-2.1.92.so).
    I downloaded Java 2 SDK v 1.2.2_008 for Linux from sun.java.com, and installed it to /usr/local/jdk1.2.2
    However, I couldn't run any Java command. When I try to compile any java source code, for example:
    /usr/local/jdk1.2.2/bin/javac HelloWorldApp.java
    I always get error message:
    Segmentation fault (core dumped)
    Please give me some idea as soon as possible.
    Thank you for your help!
    Attach: HelloWorldApp.java
    Class HelloWorldApp {
    public static void main(String[] args) [
    System.out.println("Hello World!");
    Tony T.

    update your kernel, redhat 7.0 is full of bad links and missing links

  • Installing Java under redhat 9

    Hi all!
    I am using java under windows for my computer science course. To make it work under the command line I had to add the directory to the path. I now use linux and would like to run java from the commmand line without having to change through all the directories. How do I get linux to do this? All help appreciated,
    thanks!

    In the same way - you add Java installation directory to your PATH. Instructions on how to do it (geared towards Windows users):
    http://www.geocities.com/tipsforlinux/articles/11.html

  • Java only runs as root under redhat 9

    Further to my thread here:- http://forum.java.sun.com/thread.jsp?forum=37&thread=473177&tstart=0&trange=15
    One key thing I forgot to post was that java WILL run when run as root.
    It also 'half' runs as a non root user if you specify a max memory setting with -Xmx (it gets further before it dies).
    Any clues anyone.
    Please refer to the previous thread for more details.
    Thanks

    Further to my thread here:-
    http://forum.java.sun.com/thread.jsp?forum=37&thread=47
    177&tstart=0&trange=15
    One key thing I forgot to post was that java WILL run
    when run as root.Yes, but when you run as root the environment that you run in is different than that of a user.
    It could of course be a permissions problem. For example it is skipping a directory because the user doesn't have permission to access it. But the exception exit still suggests that it is finding something that it shouldn't. And that probably isn't a good idea even if it is a permission problem on a directory.

  • Java windows slip under menu bar, how to move?

    Hi, I have accidently dragged some Java windows beneath the (transparent) menu bar.
    Safari browser windows do not slip under the menu bar, but those created by a Java application can slide beneath it, up to the edge of the screen...just far enough to make accessing their title bars impossible. I'm able to resize the Java windows by dragging their accessible edges but I am unable to click on their title bars in order to drag them back down beneath the menu bar.
    How can I click upon title bars or resize these windows to lower them in desktop space, so their title bars are lower than the menu bar? I am currently unable to drag or click upon their obscured title bars to move these windows. Is there another way to move windows without clicking upon their title bars?
    thanks

    apparently there is a third party app called windowsmover or something like that
    do a google search for "windows mac os move shortcut keyboard"
    to answer my own post

  • Loss of keyboard focus in Java appl running under linux

    I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard focus is not
    transferred when run under linux. You can only type in the second window. The expected behavior does happen in Windows.
    > uname -a
    Linux watson 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 11:38:26 EDT 2007 i686 i686 i386 GNU/Linux
    java -versionjava version "1.5.0_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
    javac -versionjavac 1.5.0_11
    import java.awt.event.*;
    import javax.swing.*;
    class SwingWindow extends JFrame {
        SwingWindow() {
         super("SwingWindow");
         JMenuBar menuBar = new JMenuBar();     
            JMenu fileMenu = new JMenu("File");
            JMenuItem newItem = new JMenuItem("New");
            newItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
              SwingWindow.createAndShowGUI();
         fileMenu.add(newItem);
            menuBar.add(fileMenu);
            setJMenuBar(menuBar);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);       
         JTextField text = new JTextField(200);
         getContentPane().add(text);
         pack();
         setSize(700, 275);
        public static void createAndShowGUI() {
            JFrame frame = new SwingWindow();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    You can implement the FocusListener interface. When
    the first JFrame gains focus, call
    text.requestFocusInWindow(). I hope this helps.The call requestFocusInWindow is not helping, perhaps even making it worse.
    The problem seems to be that I am in the situation where the call
    KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner()
    is returning the expected Component. The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed.
    The issue is that I have a component that has the keyboard focus, but the KeyListener class
    is not responding.
    This seems to be a linux only problem which makes it only mysterious.

  • Video is not captured in Applet under redhat linux.

    Hi!
    uname -a
    Linux 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
    and whenever i m running my code for start and stop the webcam, i m finding a error/exception as:
    javax.media.NotRealizedError: Cannot get visual component on an unrealized player
    at com.sun.media.BasicPlayer.getVisualComponent(BasicPlayer.java:491)
    at com.sun.media.MediaProcessor.getVisualComponent(MediaProcessor.java:50)
    at CamSource.getVComponent(Complete.java:156)
    at Complete.actionPerformed(Complete.java:71)
    at java.awt.Button.processActionEvent(Button.java:382)
    at java.awt.Button.processEvent(Button.java:350)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    javax.media.NotRealizedError: Cannot get visual component on an unrealized player
    at com.sun.media.BasicPlayer.getVisualComponent(BasicPlayer.java:491)
    at com.sun.media.MediaProcessor.getVisualComponent(MediaProcessor.java:50)
    at CamSource.getVComponent(Complete.java:156)
    at Complete.actionPerformed(Complete.java:71)
    at java.awt.Button.processActionEvent(Button.java:382)
    at java.awt.Button.processEvent(Button.java:350)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    java.lang.NullPointerException
    at java.awt.Container.remove(Container.java:762)
    at Complete.stop(Complete.java:53)
    at sun.applet.AppletPanel.run(AppletPanel.java:442)
    at java.lang.Thread.run(Thread.java:534)
    AND THIS CODE IS RUNNING SUCCESSFULLY UNDER WINDOWS ENVIRONMENT IN APPLET.
    Wht is the problem ? and how to solve it.

    This is what I did:
    import java.awt.*;
    import java.applet.*;
    public class BookmarkApplet extends Applet {
       public void init() {
              //String fileName = this.getParameter("gx26187") + ".ser";
              String fileName = "gx26187" + ".ser";
              Bookmark bookmark = new Bookmark(fileName);
              LinkHolder linkHolder = new LinkHolder();
              for(int i = 0; i < 10; i++) {
                   linkHolder.add(new Link("url"+i, "link"+i));
              if(bookmark.save(linkHolder)) {
                   linkHolder = bookmark.retrieve();
                   Link[] retreivedLinks = linkHolder.getLinks();
                   if(retreivedLinks != null && retreivedLinks.length > 0) {
                        Link [] trimmedLinks = new Link[linkHolder.getSize()];
                        System.arraycopy(retreivedLinks, 0, trimmedLinks, 0, trimmedLinks.length);
                        for(int i = 0; i < trimmedLinks.length; i++) {
                             add(new Button(trimmedLinks.getDescription()));
    LinkHolder is a wrapper class in which I used Link[] to store objects.
    Link is a class that stores 2 strings: links and description.
    I tested this on JBuilder ==> worked fine.
    I tested on IE ==> applet is running but nothing shown up.
    Thanks if any ideas.
    Tom
    Yeah I do.
    If its anything like my problems you will find Treeset
    is from JDK 1.2+
    IE's virtual machine runs using the == of jdk 1.1
    This means with out using plugins you HAVE to use
    features of 1.1 Im sure you could use another
    datastructure instead.
    Hope this helps.
    U can extract the Treeset files from rt.jar but im
    still unable to determine if thats legal

Maybe you are looking for

  • How to add multiple photos to album with iPhoto 2.0.1

    Any way to add multiple photos to an album at one time with iPhoto version 2.0.1? This is my moms  PowerbookG4 and I was looking for updates and ways to make it a bit faster, although its an oldie. Any suggestions?

  • Why doesn't any of the Function/Hotkeys work on Satellite Pro A200?

    I have been researching for almost two hours now and found no solution. What I would like to do is to be able to use the Fn Key for the hotkeys on the F0-F12 buttons, such as Fn+Esc to mute sound, or Fn+F6/F7 to adjust brightness on my screen. I am r

  • Podcasts post with height="" break some browsers

    OK, I was pulling my hair out on this one. Podcasts posted to user blogs with PP2 were appearing fine on Safari. But some users were reporting they couldn't see the podcasts at all. I finally traced it to an empty height attribute in the IMG tag. Yes

  • From cs 5.5 to cs 6

    I have 3 questions. 1. I have bought Adobe Production Premium CS 6 Education pack and already have CS 5.5. Should I uninstall cs5.5 first or can I install over cs5.5? 2. I wish to install cs 5.5 on another machine - how do I activate this installatio

  • Palm third party software: Volumecare:

    Volumecare: Palm third party software. I have downloaded a product called Volumecare, installed it and running it. As it is a  trial version it will stop in a day or two. Where do you purchase a registration key to allow a full install. www.gotreosof