Help! bizarre problem

no im not stupid. seriously weird problem that i cant figure out (obviously!)
For some reason my ipod wont display certain songs when i search under artist. the songs are on my ipod, and are displayed when i open it in itunes and i can find them if i search via songs. the artists details are all correct and are actually entered. it seems to only occur with artists that i have albums for and un-albumed songs. its the un-albumed songs that dont appear. So when i go into MUSIC > ARTISTS > (for example) COLDPLAY it will show all the songs that are on an album, but non of the songs that arent on any album.
ive tried resetting my ipod, removing the songs that dont display and reloading them, removing the album songs and reloading them. ive looked up the song info and cant find any anomalies or differences.
When i do delete the artist's albums, the un-albumed songs are then displayed, but when i place the album back on, the same problem arises.
any ideas?

This isn't foolproof but there are usually two things that contribute to songs not appearing under Artist on the iPod, both due to information either in or missing from the Get Info>Info tab against the song in iTunes. 1) the song is marked as part of a compilation or 2) it is missing an album name.
If the tracks are ticked in the Get Info>Info tab as part of a compilation, they will not appear under Artist on the iPod. Highlight a song in iTunes that you know is not appearing correctly on your iPod. Right click on it and choose Get Info and click the Info tab (alternatively choose Get Info from the File menu), if "Part of a Compilation" is marked untick it and afterwards update your iPod, you should find it now appears as normal. Compilations are stored in a separate folder in iTunes so the songs don't appear inside the normal Artist>Album folder which may be why this happens.
Also if tracks are missing an Album name in the Info tab, this information needs to be filled in, in the absence of one you can just add None or Miscellaneous. See this link for more detail: I don't see some of my songs when browsing by artist on my iPod

Similar Messages

  • Bizarre Problem for table row deletion.please help

    Folks
    I am facing a most BIZARRE PROBLEM!!!
    I have a table with a deleteButton by the side.
    The table has 3 rows
    ABC-----DELETE
    BCD-----DELETE
    VDG-----DELETE
    I click on the delete Button of the first row,the record gets deleted from the table,
    Now there are 2 records..
    BCD-----DELETE
    VDG--- -DELETE
    I click on the delete Button of the first row,and I get the error
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
    The table.getSelectedRow() becomes -1 automatically...
    Now if I comment out the Table deletion statements, and I click on any delete Button
    i get the correct messages
    You clicked row : 1
    you clicked row : 2
    After deletion of the first record,i am unable to delete the 2nd record,i get the
    error above.
    any suggestions
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Table Row clicked is : " + table.getSelectedRow());
    // Delete row from window.
    ((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
    table.revalidate();
    };

    after deleting the row call this method
    fireTableRowsDeleted()
    -Ashish

  • Bizarre problem JDBC/SDO_UNION on insert

    Hi,
    I've got a case where I am trying to do an SDO_UNION on two shapes and use the result as part of an INSERT statement. Note that I am doing this through JDBC calls out of Java.
    Unfortunately, I am encountering a bizarre problem... when I call the SDO_UNION operator through JDBC, the result is null... BUT if I paste the same code into SQLPlus, the operation works fine!!!
    I've got examples of the statement I am using below.
    Does anyone have a suggestion? If you could email me at [email protected], I'd be most greatful and I'd post back here.
    Thanks!!!
    INSERT INTO TEMP_MARKET_FOLDER
    (TEMP_MARKET_FOLDER_ID,
    UNIQUE_CODE,
    SHAPE)
    VALUES
    (TEMP_MARKET_FOLDER_SQ.NextVal,
    't7346E28179786E7', (SELECT SDO_GEOM.SDO_UNION(sel_0.GEOLOC, m.diminfo, sel_1.SHAPE, m.diminfo)
    FROM VECTIV.US_CNTY sel_0, TEMP_MARKET_FOLDER sel_1, user_sdo_geom_metadata m
    WHERE UPPER(m.table_name) = UPPER('US_CNTY') AND m.column_name = 'GEOLOC'
    AND sel_0.MI_PRINX = 221.0 AND sel_1.UNIQUE_CODE = 't669626728A516568'))

    Hi Indrek,
    I did the following, which worked. You may want to revisit and see if you can determine where the problem is coming from. Note that I ran validate_geometry below - you may want to run it for your whole table.
    Hope this helps,
    dan
    create table technet(gid number, mygeom mdsys.sdo_geometry);
    insert into technet values (1,
    mdsys.SDO_GEOMETRY(3, NULL, NULL,
    mdsys.SDO_ELEM_INFO_ARRAY(1, 3, 1),
    mdsys.SDO_ORDINATE_ARRAY(541200, 6591250, 541200, 6591350,
    541400, 6591350, 541400, 6591250, 541200, 6591250)));
    insert into technet values (2,
    mdsys.SDO_GEOMETRY(3, NULL, NULL,
    mdsys.SDO_ELEM_INFO_ARRAY(1, 3, 1),
    mdsys.SDO_ORDINATE_ARRAY(541150, 6591150, 541150, 6591250,
    541350, 6591250, 541350, 6591150, 541150, 6591150)));
    insert into technet values (3,
    mdsys.SDO_GEOMETRY(3, NULL, NULL,
    mdsys.SDO_ELEM_INFO_ARRAY(1, 3, 1),
    mdsys.SDO_ORDINATE_ARRAY(541600, 6590750, 541600, 6590850,
    541750, 6590850, 541750, 6590750, 541600, 6590750)));
    insert into technet values (4,
    mdsys.SDO_GEOMETRY(3, NULL, NULL,
    mdsys.SDO_ELEM_INFO_ARRAY(1, 3, 1),
    mdsys.SDO_ORDINATE_ARRAY(541650, 6590000, 541450, 6590150, 541450,
    6590250, 541300, 6590350, 541450, 6590500, 541750, 6590650,
    542050, 6590650, 542100, 6590550, 542100, 6590300, 542000,
    6590100, 541750, 6590000, 541650, 6590000)));
    select mdsys.sdo_geom.validate_geometry(mygeom,
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X',0,7000000,0.000005),
    MDSYS.SDO_DIM_ELEMENT('Y',0,70000000,0.000005))) status,gid
    from technet;
    declare
    temp_geom1 mdsys.sdo_geometry;
    mygeom mdsys.sdo_geometry;
    cursor area_cur is select mygeom from technet;
    dim_info mdsys.sdo_dim_array := mdsys.sdo_dim_array(
    MDSYS.SDO_DIM_ELEMENT('X',0,7000000,0.000005),
    MDSYS.SDO_DIM_ELEMENT('Y',0,70000000,0.000005));
    begin
    temp_geom1 := null;
    for area_rec in area_cur loop
    temp_geom1 := mdsys.sdo_geom.sdo_union(temp_geom1, dim_info, area_rec.mygeom, dim_info);
    end loop;
    end;
    null

  • Bizarre Problem: Oracle 10g disconnected

    We are facing an bizarre problem in Oracle 10G. We are trying to compile a package specification. As long as there are 10 procedures(program units) in the package it compiles successfully, As soon as we add 11th program unit(come what may a simplest of procedure declaration), It disconnects the session immediately. We asked for alert logs & there is no relevant entry in alert log file.
    Please find below the error: -
    SQL> @D:\Package_Name.sql
    ERROR:
    ORA-03114: not connected to ORACLE
    create or replace PACKAGE PACKAGE_NAME
    ERROR at line 1:
    ORA-03135: connection lost contact
    Elapsed: 00:00:18.90
    ERROR:
    ORA-03114: not connected to ORACLE
    Elapsed: 00:00:00.00
    No errors.
    SQL>
    Please Help :-(

    create or replace PACKAGE SCHEMA_NAME.PACKAGE_NAME
    IS
    -- declare public types and/or object desriptions
    TYPE t_str_list IS TABLE OF varchar2(4000)
    index by binary_integer;
    TYPE rs_type IS REF CURSOR;
    global_pkg_name varchar2(30) := 'PACKAGE_NAME';
    -- get_formulations_list
    function GFL (p_request_id number)
    return varchar2
    PRAGMA RESTRICT_REFERENCES (GFL, WNDS);
    -- Read recordsets for Objects from database
    -- Getters for Record Sets (1. Lookup Tables)
    -- 1. Get_Countries -- + + +
    -- 2. Get_l_numbers -- + + +
    -- 3. Get_mk_numbers -- + + +
    -- 4. Get_licences -- + + +
    -- 5. Get_formulations -- + + +
    -- 6. Get_request_x_frm -- + + +
    -- 7. Get_generic_names -- + + +
    -- 8. Get_global_tm -- + + +
    -- 9. Get_local_tm -- + + +
    -- 10. Get_requests -- + + +
    -- 11. Read_request_data -- + + +
    -- 12. Get_Users -- + + +
    -- 13. Get_User_Roles -- + + +
    -- 14. Read_user_data -- + + +
    -- Internal functions
    -- 1. Get_User_Type -- +
    -- Read Hierarchies for Objects from database
    -- 1. Get_Country_Hier -- + + +
    -- 2. Get_l_number_Hier -- + + +
    -- 3. Get_mk_number_Hier -- + + +
    -- 4. Get_licence_Hier -- + + +
    -- 5. Get_formulation_Hier -- + + +
    -- 7. Get_generic_name_Hier -- + + +
    -- 8. Get_global_tm_Hier -- + + +
    -- 9. Get_local_tm_Hier -- + + +
    -- 10. Get_request_list -- + + +
    -- 1.1 Get_global_tm_HStr -- + + +
    -- 2.1 Get_Country_HStr -- + + +
    -- 3.1 Get_local_tm_HStr -- + + +
    -- 4.1 Get_l_number_HStr -- + + +
    -- 5.1 Get_mk_number_HStr -- + + +
    -- 6.1 Get_licence_HStr -- + - -
    -- 7.1 Get_formulation_HStr -- - - -
    -- 8.1 Get_generic_name_HStr -- - - -
    -- 1. Get_Countries
    -- Record set Structure
    -- country_id
    -- country_name
    -- is_active
    -- role_id (for non HQ users)
    PROCEDURE GC ( p_user_id varchar2
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 2. Get_l_numbers
    -- Record set Structure
    -- l_number_id
    -- l_number_desc
    -- is_active
    PROCEDURE GIN ( p_user_id varchar2
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 3. Get_mk_numbers
    -- Record set Structure
    -- mk_number_id
    -- mk_number_desc
    -- is_active
    PROCEDURE GMN ( p_user_id varchar2
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 4. Get_licences
    -- Record set Structure
    -- licesnce_id
    -- licesnce_name
    -- licesnce_abrv
    -- is_active
    PROCEDURE GL ( p_user_id varchar2
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 5. Get_formulations
    -- Record set Structure
    -- formulation_id
    -- formulation_name
    -- is_active
    PROCEDURE GF ( p_user_id varchar2
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 6. Get_request_x_frm
    -- Record set Structure
    -- formulation_id
    -- formulation_name
    -- request_id
    PROCEDURE GRX ( p_user_id varchar2
    , p_request_id number
    , r_rs out rs_type )
    -- 7. Get_generic_names
    -- Record set Structure
    -- generic_name_id
    -- generic_name_text
    -- l_number_id
    -- l_number_desc
    -- mk_number_id
    -- mk_number_desc
    -- is_active
    PROCEDURE GGN ( p_user_id varchar2
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 8. Get_global_tm
    -- Record set Structure
    -- gtm_name_id
    -- gtm_name_text
    -- generic_name_id
    -- generic_name_text
    -- l_number_id
    -- l_number_desc
    -- mk_number_id
    -- mk_number_desc
    -- is_active
    PROCEDURE GGT ( p_user_id varchar2
    , p_is_active char default 'Y'
    , r_rs out rs_type )
    -- 9. Get_local_tm
    -- Record set Structure
    -- ltm_name_id
    -- ltm_name_text
    -- request_id
    -- country_id
    -- country_name
    -- generic_name_id
    -- generic_name_text
    -- is_default
    -- is_active
    PROCEDURE GLT ( p_user_id varchar2
    , p_country_id number DEFAULT 0
    , p_is_default CHAR DEFAULT '*'
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 10. Get_requests
    -- Record set Structure
    -- request_id
    -- gtm_name_id
    -- ltm_name_id
    -- licesnce_id
    -- requestor_isid
    -- hq_isid
    -- request_status_id
    -- lanch_date
    -- change_status_date
    -- country_name
    -- gtm_name_text
    -- ltm_name_text
    -- generic_name_text
    -- licesnce_name
    -- licesnce_abrv
    -- l_number_id
    -- l_number_desc
    -- mk_number_id
    -- mk_number_desc
    -- is_active
    PROCEDURE GR ( p_user_id varchar2
    , p_country_id number DEFAULT 0
    , p_global_tm number DEFAULT 0
    , p_status number DEFAULT 0
    , p_is_active CHAR DEFAULT 'Y'
    , r_rs out rs_type )
    -- 11. Read_request_data
    -- Record set Structure
    -- request_id
    -- gtm_name_id
    -- ltm_name_id
    -- licesnce_id
    -- requestor_isid
    -- hq_isid
    -- request_status_id
    -- lanch_date
    -- change_status_date
    -- country_name
    -- gtm_name_text
    -- ltm_name_text
    -- generic_name_text
    -- licesnce_name
    -- licesnce_abrv
    -- l_number_id
    -- l_number_desc
    -- mk_number_id
    -- mk_number_desc
    -- is_active
    PROCEDURE RRD ( p_user_id varchar2
    , p_request_id number
    , r_rs out rs_type )
    END PACKAGE_NAME;
    /

  • I downloaded my sons ipod 4g to the new iOS and now when we try to sync it says we have no space, but there is nothing but a few apps on his ipod.  I've tried to reset but that didn't help the problem.  What can I do?

    I downloaded my sons ipod 5g with the latest iOS and now when we try to sync it says we have no space, but there is nothing but a few apps on his ipod and he has plenty of space.  The messege says that most of is space is taken up by video but there is no video or music on his ipod right now.  I've tried to reset his ipod but that did not help the problem. What can I do?

    Did you try to set it up again as new device?
    How to back up your data and set up as a new device

  • TS4040 I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs re

    I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs repairing. So I click on Repair, and once again I'm prompted for a password, which I enter, then the same error box opens, and so it goes. Can anyone help me with this problem? I'd greatly appreciate it.
    Thor

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • I have not been able to open up Lightroom on my computer for over a year now. Whenever I double click on it, this comes up - can anyone help? Problem signature:   Problem Event Name:APPCRASH   Application Name:lightroom.exe   Application Version:3.4.1.10

    I have not been able to open up Lightroom on my computer for over a year now. Whenever I double click on it, this comes up - can anyone help? Problem signature:   Problem Event Name:APPCRASH   Application Name:lightroom.exe   Application Version:3.4.1.10

    First thing to try is the latest version of Lightroom (currently 5.6). If it don't crash, then problem solved - upgrade.
    If Lr5 won't run on your machine, then Lr4 instead.
    If both Lr5 and Lr4 crash on your machine, then at least you know it's a not a Lightroom version problem but something wonked in your system.
    If you can't figure out how to resolve the crash on the system you have, then it's time for a new system (or try another converter/editor app).
    PS - A few things to try:
    * After re-installing new version, if that doesn't fix it, then get rid of all Lightroom-related data files (rename them so they can be restored), in case problem is in Lr data file.
    * Remove all non-essential hardware in case problem is hardware/driver.
    * Startup up machine with minimal software services.
    * If still no go, consider updating driver software, including mainboard drivers and/or bios firmware if need be.
    * Of course run all the system hardware and software diagnostics you can - problem could be failing disk or ram..
    * Check system event logs for any clues.
    If you don't know how to do some of these things - ask.
    Do not say "you've tried everything" unless you want a lecture - there is most definitely something you haven't tried. It's like when you can't find your car keys - you haven't looked everywhere -  there is somewhere you haven't looked!
    PS - Has Lightroom EVER worked on your machine? what's changed since then..
    Good luck,
    Rob

  • Google browser and others show all web page on netbook but firefox wont i have to scrool why can i change settings on firefos to help this problem

    all other web browsers when i use on my net book show full web page but with Firefox i have to scroll side ways cant see full width of page sometimes Firefox will show full page but this is not often are the settings in Firefox to help this problem i have the latest version of Firefox 4.0.1

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Someone who can say how to get Adpbe flash player version 11.2.202.197 to work together with Lion on mac mini. Support from Apple can obviously not help the problem and do not care if it works

    Someone who can say how to get Adpbe flash player version 11.2.202.197 to work together with Lion on mac mini. Support from Apple can obviously not help the problem and do not care if it works

    Adobe flash player version 11.2.202.197 is for Windows Vista / Windows 7 / Vista 64 / Windows 7 64
    Adobe Flash Player version 11.1.102.55 is the current version for Snow Leopard and Lion.
    Adobe - Install Adobe Flash Player

  • .problem is that icon of  iblacklist in i tune is "disc phone" like One, named iblacklist, but  on screen appear as "secret contact" not as iblacklist icon wich is  contact like icon .please  help . iblacklist problem still , I download it again ,this was

    .problem is that icon of  iblacklist in i tune is "disc phone" like One, named iblacklist, but  on screen appear as "secret contact" not as iblacklist icon wich is  contact like icon .please  help .
    iblacklist problem still , I download it again ,this was not helpfull 

    Have you read my reply to one of your duplicate threads : https://discussions.apple.com/message/22774845#22774845 ?

  • Can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    Hey damien555,
    Thanks for the question, I understand how frustrating this may be. It sounds like the update process may have been interrupted, and to resolve the issue, we’ll need to restore your device in recovery mode with iTunes:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Thanks,
    Matt M.

  • Can you help with problems receiving faxes- powerbook g4?

    Can I get help with problems receiving faxes on the powerbook G4?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/
    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • Can you help with Problems that one of our users i having with regiistration of Premiere Pro?

    Can you help with Problems that one of our users i having with registration of Premiere Pro?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/
    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • I have installed photoshop elements 12. when I try use the editing features it said that i must login to Adobe to register the product. but each time i try to it said there is a problem. help the problem stated that the internet is not connected, but that

    i have installed photoshop elements 12.
    when I try use the editing features it said that i must login to Adobe to register the product.
    but each time i try to it said there is a problem.
    help
    the problem stated that the internet is not connected, but that is not the case.

    I had the same issue and I'm running Windows 7.  Tried working with technical support for several hours but they were no help.  They just had me doing the same things over and over, offering no real answers.  I finally got fed up and have decided to return my product for a full refund.

  • Help classpath problem j2sdk1.4.2_04

    help classpath problem j2sdk1.4.2_04
    how can i run the java program with specify the file location
    such as :
    -----this one is fine ok and return HelloWorld.class-----
    [root@localhost root]javac /serverData/studentAC/s001/HelloWorld.java
    -----but this one cause exception-----
    [root@localhost root]java /serverData/studentAC/s001/HelloWorld
    -----result-----
    Exception in thred "main" java.lang.NoClassDefFoundError: /serverData/studentAC/s001/HelloWorld
    [root@localhost root]
    I have tried a lot of classpath setting:
    I just want to compile and run the java program without specify the classpath only !! please help !!! and give suggest !! if you have this exp!!
    # ---1
    #PATH=/usr/java/j2sdk1.4.2_04/bin:$PATH:$HOME/bin:./
    #export PATH
    #export JAVA_HOME=/usr/java/j2sdk1.4.2_04/
    #export #CLASSPATH=/usr/java/j2sdk1.4.2_04/lib/tools.jar:/usr/java/j2sdk1.4.2_04/jre/lib/rt.jar:./
    # ---2
    #set java environment
    # Java Setup Section START
    export JAVA_HOME="/usr/java/j2sdk1.4.2_04"
    export JRE="$JAVA_HOME/jre"
    export CLASSPATH="$JAVA_HOME/lib:$JRE/lib:$JAVA_HOME/lib/tools.jar:."
    export PATH="$PATH:$JAVA_HOME/bin"
    # Java Setup Section END
    # ---3
    #PATH=$PATH:/usr/java/j2sdk1.4.2_04/bin
    #JAVA_HOME=/usr/java/j2sdk1.4.2_04/
    #export PATH
    # ---4
    # Java Setup Section START
    #JAVA_HOME=/usr/java/j2sdk1.4.2_04
    #export JAVA_HOME
    #CLASSPATH=$CLASSPATH:/usr/java/j2sdk1.4.2_04/lib:/usr/java/j2sdk1.4.2_04/jre/lib:./
    #export CLASSPATH
    #PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
    #export PATH
    # Java Setup Section END
    # ---5
    #export PATH=$PATH:/usr/java/j2sdk1.4.2_04/bin
    #export JAVA_HOME=/usr/java/j2sdk1.4.2_04
    #export CLASSPATH=/usr/java/j2sdk1.4.2_04/lib:$CLASSPATH:.
    # ---6
    #====================================================
    #export JAVA_HOME=/usr/java/j2sdk1.4.2_04
    #export PATH=$JAVA_HOME/bin:$PATH
    #export CLASSPATH=/usr/java/j2sdk1.4.2_04/lib:$CLASSPATH
    #====================================================

    I think this will work. java -classpath /serverData/studentAC/s001 HelloWorld

  • Delete rows from table...Bizarre problem.

    Folks
    i HAVE this bizarre problem.
    I hava a Java class which displays data read into a table with a delete
    option by the side of each row.
    Now lets assume you have 3 rows in the Table.
    abc deleteButton
    efg deleteButton
    xyz deleteButton
    When I click the first delete,that row gets deleted from the table.(perfect...)
    Now I have 2 rows.
    When I click on the first row,I get the error
    'You clicked -1'
    java.lang.ArrayIndexOutofBoundsException: -1 < 0.
    Can anyone tell me why this is happening even though there are rows in the table.???
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("You clicked row : " + table.getSelectedRow());
    javax.swing.table.TableModel model = table.getModel();
    Object o = model.getValueAt(table.getSelectedRow(),0);
    //System.out.print(model.getValueAt(table.getSelectedRow(), 0));
    //System.out.println();
    MyDeleteFunction(o.toString());
    // Delete row from window.
    ((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
    table.revalidate();
    table.repaint();

    Hi ritu,
    This class is called
    new DisplayCall_IDTodisconnect(hashTable);
    its a long file.
    its attached below.
    The rows are displayed by reading a hashtable into a vector
    and the vector is iterated and appended..
    public class DisplayCall_IDToDisconnect {
    public static JTable createTable(Vector data, String buttonLabel, ActionListener action){
    return createTable(data.iterator(), buttonLabel, action);
    public static JTable createTable(
    Iterator dataIterator,
    String buttonLabel,
    ActionListener action) {
    DefaultTableModel model = new DefaultTableModel() {
    public boolean isCellEditable(int row, int col) {
    return col == 1;
    model.setColumnCount(2);
    while (dataIterator.hasNext()) {
    Object[] row = { dataIterator.next().toString(), null };
    model.addRow(row);
    DefaultTableColumnModel columnModel = new DefaultTableColumnModel();
    columnModel.addColumn(new TableColumn(0, 100));
    columnModel.addColumn(new TableColumn(1, 80,
    new TableButtonCellRenderer(buttonLabel),
    new TableButtonCellEditor(buttonLabel, action)
    JTable table = new JTable(model, columnModel) {
    public void valueChanged(ListSelectionEvent e) {
    super.valueChanged(e);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    return table;
    private static class TableButtonCellRenderer implements TableCellRenderer {
    final JButton button;
    TableButtonCellRenderer(String buttonLabel) {
    button = new JButton(buttonLabel);
    public Component getTableCellRendererComponent(
    JTable table,
    Object value,
    boolean isSelected,
    boolean hasFocus, int row, int column) {
    return button;
    private static class TableButtonCellEditor
    extends AbstractCellEditor
    implements TableCellEditor, ActionListener {
    final JButton button;
    final ActionListener callback;
    TableButtonCellEditor(String buttonLabel, ActionListener callback) {
    button = new JButton(buttonLabel);
    this.callback = callback;
    button.addActionListener(this);
    public Component getTableCellEditorComponent(
    JTable table,
    Object value,
    boolean isSelected,
    int row, int column) {
    return button;
    public Object getCellEditorValue() {
    return null;
    public void actionPerformed(ActionEvent e) {
    button.getParent().requestFocus();
    callback.actionPerformed(e);
    static JTable table;
    Vector items;
    final ClientManager clientMgr;
    // Constructor.
    public DisplayCall_IDToDisconnect(Hashtable callLegTable,ClientManager clientMgr){
    Vector vCSeqnos = displayCSeqNos(callLegTable);
    this.clientMgr = clientMgr;
    JFrame frame = new JFrame("Disconnect Options");
    /*Vector*/ items = new Vector();
    Enumeration vEnum = vCSeqnos.elements();
    while(vEnum.hasMoreElements()){
    items.add(vEnum.nextElement());
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    //System.out.println("You clicked row ,col: " + table.getSelectedRow()+
    // table.getSelectedColumn());
    javax.swing.table.TableModel model = table.getModel();
    Object o = model.getValueAt(table.getSelectedRow(),0);
    System.out.print(model.getValueAt(table.getSelectedRow(), 0));
    System.out.println();
    closeConnection(o.toString());
    // Delete row from window too.
    ((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
    table.revalidate();
    table = DisplayCSeqNos.createTable(items, "Disconnect", al);
    frame.getContentPane().add(new JScrollPane(table));
    frame.pack();
    frame.show();
    } // End Constructor.
    public void closeConnection(String s){
    /*1. Disconnect the current session*/
    this.clientMgr.disconnectCall(s);
    /*2. refresh the Disconnect window*/
    this.refreshWindow();
    public Vector displayCSeqNos(Hashtable callLegTable){
    Enumeration eNum;
    String str;
    Vector v = new Vector();
    eNum=callLegTable.keys();
    while(eNum.hasMoreElements()){
    str = (String) eNum.nextElement();
    //System.out.println("Key : " + str + " Value : " + callLegTable.get(str));
    v.addElement(str);
    return v;
    } // End of displayCSeqNos.

Maybe you are looking for