How to acess Database in I18N? Please help.

How to acess Database in I18N? Please help.

I have tried to overide the getContents() method of ListResourceBundle class but it returning an error at run time saying null Pointer exception.
Here are the 2 codes resp.
import java.util.*;
public class Test1
     static String string ;
     public static void main(String args[])
Locale locale = Locale.ENGLISH;
ResourceBundle myResources =
ResourceBundle.getBundle("MyResources", locale);
string = myResources.getString("HelpKey");
System.out.println(string);
import java.util.*;
import java.sql.*;
public class MyResources extends ListResourceBundle
     static String[][] s3= null;
String s6= null;
     String s7= null;
public Object[][] getContents()
Object[][] obj= (Object[][])dataBase();
          for(int i= 0; i< obj.length;++i){
               for(int j = 0;j<obj.length;++j){
                    System.out.println("GGGGGGGG obj["+i+"]["+j+"]"+obj[i][j]);
          //s6=(String)obj[0][0];
     //     s6= obj[0][0].toString();
          //s7=obj[1][0].toString();
Object[][] contents = { {s6},{s7}};
     return contents;
     private static String[][] dataBase()
     {           try
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               Connection con=DriverManager.getConnection("jdbc:odbc:DSN");
               PreparedStatement stat= con.prepareStatement("Select Value,Key from Table1 where Key= ?");
               String s1= "HelpKey";
               stat.setString(1,s1);
               ResultSet rs= stat.executeQuery();
               while(rs.next())
                    String s2= (String)rs.getString("Key");
                    String s4= (String)rs.getString("Value");
                    String[][] s3 ={{s2},{s4}};
          catch(Exception e)
          e.printStackTrace();
     return s3;

Similar Messages

  • I can't login, keep geting "Your  Startup Disk is Full" and asking me to delete file. if I cant login how can I delete files? Please help

    I Keep getting "your startup disk is full" ..... "You need to make more space available on your startup disk by deleting file..."  If I can't have an acess, how can I delete files. Please help..

    That means the hard drive of your computer is full, and you don't have enough free space on your computer, to do what you are trying to do. 
    You need to clear up space on your computer. 
    If you hard drive is full, check the following places to ensure they are not holding unwanted data.
    - your trash can in the dock
    - if you use iPhoto, your trash in iPhoto - launch iPhoto, and select trash in the left hand column.  iPhoto has it's own trash, and is often overlooked
    - your download folder - finder / home user / downloads - every time you download something, it stores it here. This is often overlooked as well
    - do you have more than one user on the computer?  If you do, ensure they are needed.  If not, delete them, and the contents of their home folders
    If you hard drive is very full, you may want to consider the following:
    - putting in a newer larger hard drive - (call you local apple store for prices on this)
    - deleting data off your computer
    - moving data to an external drive - (iPhoto Libraries, iTunes Libraries or iMovie events, as they are the biggest space hogs)

  • I installed lightroom 5 with a 30 day trial and it finished. Yesterday I installed cc and when I open LR5 I need a serial number. What do I do/how do I get one? Please help Tank you

    I installed lightroom 5 with a 30 day trial and it finished.
    Yesterday I installed cc and when I open LR5 I need a serial number.
    What do I do/how do I get one?
    Please help, Thank you.

    Your photos remain in place, the catalog you have been using will remain. After you install Lightroom from the CC, all you have to do is open your existing catalog and continue right where you left off.

  • I cracked my screen. I want to use other monitor which I had one. I bought Apple Mini-DP to VGA adapter. It worked. It means I can see ADDITIONAL screen. However I want to use this monitor for the main screen. How can I do?? Please help.

    I cracked my screen. I want to use other monitor which I had one. I bought an Apple Mini-DP to VGA adapter. It worked. It means I can see ADDITIONAL screen. However I want to use this monitor for the main screen. How can I do?? Please help.

    You have the display set in Extended Desktop mode. The Menu Bar and Dock will be on the MacBook display and your background screen on the monitor. In System Preferences>Display on the MacBook screen there should be an Arrangement tab when you have the MacBook hooked up to the monitor and both screens working. When you click the Arrangement tab do you see two monitors side by side? One of them will have a Menu Bar at the top. Just click on the Menu Bar and drag it to the second monitor. That will make the second monitor your main screen. You can now use your MacBook in Clamshell Mode with a wired or Bluetooth keyboard and mouse.  http://support.apple.com/kb/HT3131 When you disconnect from the monitor your Menu Bar will automatically change back to the MacBook.

  • I accidentally dropped macbook air that was in a book bag. The keyboard is working because I can see the light but the screen is black and it won't turn off. How should I fix this? Please Help ME!!

    I accidentally dropped my friend's macbook air that was in a book bag. The keyboard is working because I can see the light but the screen is black and it won't turn off. How should I fix this? Please Help ME!!
    I tried to turn it off and it didn't work... and I held on to the shift key too and it still doesn't work..
    Please help me..

    Accidental damage is not covered under Apple warranty.  And it seems there is much accidental damage.  Only a Genius Bar tech looking at it can tell how much it will cost to repair.
    Cost to repair will be high, I suspect (though Genius Bar will confirm/deny.
    There is no gentle way to say this sir/ma'am ... someone will need to pay for your friend's MBA repairs.

  • As a new MacBook user I plug in my USB Flash Drive but don't know how to access its contents. Please help. Thanks.

    as a new MacBook user, when inserting my USB Flash Drive, I do not know how to access its contents. Please help. Thanks.

    Open a new Finder window, Finder > File > New Finder Window, and it should appear on the left under Devices.
    If you don't see it there, or to get it to show up on the Desktop: Finder > Preferences... General tab, check External disks to have it show on the Desktop,  Or Sidebar tab, check External disks under DEVICES.

  • I downloaded Itunes to my computer today to update my ipod's ios (4.2.1 yes i know im way behind) but when i click check for updates it tells me my ios is the current one. How can i fix this? please help!

    I downloaded Itunes to my computer today to update my ipod's ios (4.2.1 yes i know im way behind) but when i click check for updates it tells me my ios is the current one. How can i fix this? please help!

    and at the same time....
    I guess you can be glad that you at least aren't "way behind"!
    Cheers,
    GB

  • I went to put music on my itunes from my ipod and it deleted most of my music off of it and i dont know how to get it back. PLEASE HELP ME. :-|

    i went to put music on my itunes from my ipod and it deleted most of my music off of it and i dont know how to get it back. PLEASE HELP ME. :-|     

    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes      
      - Restore to factory settings/new iOS device.                       
    If necessary, you can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • HT3819 i have all my itunes on one computer and have brought another and need to transfure all my exsisting music to this new computer, how do i do this? please help.

    I have all my itunes on one computer and have brought another and need to transfer all my music etc to new one, how do i do this? please help its doing my head in!

    Hey allen72,
    Thanks for the question. I understand you wish to transfer your iTunes library to a new computer. There are a few different options for doing so, the following article provides more information:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Thanks,
    Matt M.

  • I can't open Safari. It keeps giving an alert that says, "Suspicious Activity might have been detected." How do I fix this?Please help. thanks!

    Safari won't work. It flashes an alert. Alert says that a Suspicious Activity Might Have been Detected. Major Security Issue. How do i fix this? Please help. Thanks!

    You may have installed a variant of the "VSearch" ad-injection malware. Follow Apple Support's instructions to remove it.
    If you have trouble following those instructions, see below.
    Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.
    The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form
              com.something.daemon.plist
    and
               com.something.helper.plist
    Here something is a variable string of characters, which can be different in each case. So far it has always been a string of letters without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.
    If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the string something is the same as before.
    If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    where something is the same string you saw before, drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually a folder, though it has a different icon than usual. This item always has the above name; it doesn't vary. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • I updated my iphone5 to ios 7.1.1 and i lost my notes and some contacts. How do i recover them? Please help!

    I updated my iphone5 to ios 7.1.1 and i lost my notes and some contacts. How do i recover them? Please help!

    No.  Anything that was created after your last backup will be gone.
    Use iCloud to automatically backup your device, usually once every 24 hours.

  • How to view corrupted word files, please help?

    Can't view doc corrupted file .How to recover unsaved documents WORD? how to view corrupted word files, please help

    It could be Word or even Windows that is having the problem. Before you start trying to restore a backup or repair a file, try opening other documents.
    Try opening your "corrupt" document from another computer. Also you can try to make a copy of corrupted files. (It could work) : http://www.filerepairforum.com/forum/microsoft/microsoft-aa/word/968-i-would-be-grateful-for-any-help-to-repair-or-the-procedures-word-files
    But if nothing helps, you can try to recover it by using DOCX Viewer Tool Download free demo versions of this software from website: http://www.docx.viewertool.com/ It’s
    gonna help.

  • My iphone 4 is acting like crap right i can't even restore it everytime i try to reboot it my iphone freezes at the apple logo it is ******* to the point where i just want to smash it how do i solve this problem please help?

    my iphone 4 is acting like crap right i can't even restore it everytime i try to reboot it my iphone freezes at the apple logo it is ******* me off to the point where i just want to smash it how do i solve this problem please help?

    Don't worry, just follow these steps to fix iPhone stuck on Apple logo
    => First of all Start your Computer and then connect with Internet connection, now Download the latest version of the iTunes application
    => Now install the iTunes application in your System and connect your Device with computer via Data cable
    => Now connect your Device with iTunes application and then Tab on summary option, see in the left side bar of iTunes
    => Now Select restore option from iTunes and then confirm the Restore Message for better results. After this unplug your Device and Restart it
    I hope that will surely
    Thank you...

  • Im from Philippines and my iphone is from Japan after I updated it to iOs 6.1.3 it wont activate it says ''Activation Error Please Contact Customer Care'' what does it mean? How can I activate it? Please help me.

    Im from Philippines and my iphone is from Japan after I updated it to iOs 6.1.3 it wont activate it says ''Activation Error Please Contact Customer Care'' what does it mean? How can I activate it? Please help me.

    You can NOT unlock it. Only the carrier it is locked to can legally authorize unlocking it and the Japanese carriers will not do so.
    In order to be using it previously with a non Japanese carrier, the phone had to be hacked to illegally unlock it.  You can not get help here.
    Buy a new phone you can use.

  • Why can't I buy any app ? Iv tried creating a new Appel account ect but it says the same thing everytime . Sorry your payment was declined . How can I sort this ? Please help

    Why can't I buy any app ? Iv tried creating a new Appel account ect but it says the same thing everytime . Sorry your payment was declined . How can I sort this ? Please help

    - Try another payment method.
    - Contact iTunes
    Apple - Support - iTunes - Contact Us
    - Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

Maybe you are looking for

  • How to Create and External Hierarchy and group values of IO in node

    Good morning BI 7: Please give me guidance on the following? I need to either to restrict a characteristic in a query to more than 800 values OR exclude values where it contains the pattern 'Z7' and 'Z8'. There are thousands of values which contains

  • SD Customer Contract and MM Purchase Contract

    Good day I need to know if anyone has a solution on forming a relationship between these documents, and be able to report at item level for example Item x bought at $10 in the Purchase contract and sold at $15 in the Sales Contract. We need to form s

  • Converting scanned documents into Word documents

    Is there a way to covert a scanned document in PDF format and convert it over to a Word document?

  • Purchase Info Record (time independent condition)

    Hi all, I am having a Purchaisng Info record for Material X, vendor A, Plant 1000, Pur Org: POR1 last PO price history is Rs.10/- now requirement is: created a new Plant 2000, Pur Org:POR2,, want to create a manual purchasing info record for Material

  • Export Flash CS5 component to Flash Builder

    Hello there . I'm having some troubles exporting a movieClip made in Flash CS5 Professionnal to Flash Builder. I created a simple movieclip name test : rectangle and textinput inside name "title", then command ->convert symbol for Flex. Everything lo