JFileChooser unable to show japanese files on solaris

Hi,
In our application we are using JFileChooser to choose a file. JFileChosser unable to show file that has names in japanese characters on solaris japanese os. Where as on windows it works fine.Plese help me about the above
Thanks,
Praveen

Which JDK version you are using .. When i tried the example with default JDK(1.5) of my solaris box JFileChooser works fine .But we user JDK1.6 in our application. Hope there is some problem with the JDK.

Similar Messages

  • JFileChooser does not display japanese file names

    I am using JFileChooser to load some files in my application. I have some files which have japanese file names. When I try to load these files it does not even display these files for me to choose and then load them. Any ideas?

    Hi,
    I am trying to pick up data from an excel sheet and insert them into a database. However, once updated, they end up with '?' values.
    I have tried to make font.properties.ja as the default font.properties file, which failed to display Japanese characters.
    Any suggestions?
    This is a part of my code:
    String sJIS = "";
    sJIS = new String(cell1.getStringCellValue().getBytes("8859_1"), "JISAutoDetect");
    String sUTF = "";
    sUTF = new String(cell1.getStringCellValue().getBytes(), "UTF-16");
    System.out.println("sUTF" + sUTF + " " + "sJIS" + sJIS);
    Thanks,

  • JFileChooser doesn't show any file!!

    Hi all,
    I am developing an java application that uses JFileChooser to choose a directory. However, very strange, the JFileChooser opened does not show any file or directory in C: drive nor D: drive. How can that happen? Anyone knows?
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.showOpenDialog(this);Above is my code. When I only execute above code, it is normal (can see those files in C: drive). But if i run above code with my application, it doesnot show any file in C: drive. Please help me!!

    Try specifying the default location in addition to the component.
    if(windows machine) result=createDialog("Choose Parent Directory","Select Folder","C:\\");
    private static JFileChooser createDialog(String title,String ilabel,String directory) {
              JFileChooser result= null;
              // TODO Auto-generated method stub
            // Create a window and some components
            JPanel topPanel = new JPanel();
              JLabel label = new JLabel(ilabel);
            JFileChooser jFC = new JFileChooser(directory);
            // Set the window's layout
            label.setAlignmentX(Component.CENTER_ALIGNMENT);
            //set file dialog to use direcotries
            jFC.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            // Setup the text, list, and checkbox
            topPanel.add(label);
            topPanel.add(jFC);
            int returnVal = jFC.showOpenDialog(topPanel);
            if(returnVal == JFileChooser.APPROVE_OPTION) {
                result = jFC;
            } else {
                 result=null;
            return result;
         }

  • Hi I am unable open my photomerge in CS6. which is showing error48: File or folder not found

    Hi I am unable open my photomerge in CS6. which is showing error48: File or folder not found

    There is one way its getting fixed. Once I update my Adobe Illustrator CC to Adobe Illustrator CC 2014 it is further allowing me to go into the system folder and allocate the font to the file so that it can replace it. My only concern now is that our MAC partners who will receive these files back from us have Adobe CS6. We will down save it to CS6 but I hope they won't experience any font issues because of us using CC 2014? Any light you can shed on this?

  • I have a copy of PS CS5 Creative shop which was causing some difficulties with my computer Windows 7 Ultimate 64 bit. I cancelled the activation of my CS5 and uninstalled. When I tried to reinstall the message showed :"missing file unable to initialize" w

    I have a copy of PS CS5 Creative shop which was causing some difficulties with my computer Windows 7 Ultimate 64 bit. I cancelled the activation of my CS5 and uninstalled. When I tried to reinstall the message showed :"missing file unable to initialize" what do I do.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • JFileChooser does not display Korean files

    I have an application that uses JFileChooser to select some files. The application is bundled with English version of JRE 1.6.0_06. On Korean Windows 2003 the application displays files with filenames in Korean and allows them to be chosen. However on Korean Solaris 10, it does not even display the files? Anyone have an idea on why there is this discrepancy?
    I assume that the file with the Korean filename created on Korean Windows 2003 got created with the MS949 encoding for the filename. Similarly I assumed that the file with the Korean filename created on Korean Solaris 10 got created with UTF-8 encoding because that's the encoding set on Korean Solaris when I log in (its not set to EUC-KR). So how do I get the files to display and allow to be chosen on Korean Solaris?
    Thanks,
    Kartik
    P. S. I have the same problem with filenames in Japanese - on a Japanese Windows 2003 server the JFileChooser displays the files while on a Japanese Solaris 10 box, the JFileChooser does not display the files.

    Hi,
    I am trying to pick up data from an excel sheet and insert them into a database. However, once updated, they end up with '?' values.
    I have tried to make font.properties.ja as the default font.properties file, which failed to display Japanese characters.
    Any suggestions?
    This is a part of my code:
    String sJIS = "";
    sJIS = new String(cell1.getStringCellValue().getBytes("8859_1"), "JISAutoDetect");
    String sUTF = "";
    sUTF = new String(cell1.getStringCellValue().getBytes(), "UTF-16");
    System.out.println("sUTF" + sUTF + " " + "sJIS" + sJIS);
    Thanks,

  • Error: Unable to read footer file

    Hoping someone out there can help me. I get this error on
    everypage in my site and have no idea how to stop it.
    Error: Unable to read footer file
    The error does not show up when I preview inside dreamweaver
    but only rears its ugly head after I post the site up on the
    internet. I have searched for hours through the Dreamweaver menus
    and can not find these elusive footers and have no idea where they
    are coming from or what footer file it is trying to read.. Please
    help. This probably has a simple solution and I am just not able to
    understand it. Thank you.

    sdrouillard wrote:
    > This probably has a simple solution and I am just not
    able to understand
    > it.
    Possibly, but without a URL we can't comment. Post it, and
    we'll see.
    At a guess, sounds like an include file is missing. Are you
    on some sort of
    free hosting plan where the host puts some adverts in the
    footer? If that
    file is removed from your site directory you might get the
    error you've
    mentioned (at least, that was the case on the only other time
    I've seen this
    error)
    Regards,
    Pete.
    Peter Connolly
    http://www.acutecomputing.co.uk
    Derby
    UK
    Skype ID: acutecomputing

  • Unable to open project file. even though I just saved it.

    Hi,
    I just started back to work on a little FCE 2 video project after a couple of months. When I went to load the file, it said "Unable to open project file". I thought, "hmmm, I'm a beginner, maybe I'm not opening the right file." So, I made a new project with a clip and save it. Then I tried to reopen it. No go. Same message.
    So, something is wrong but I can't figure it out.
    My preferences are set to save the file on an external hd. The file icon shows up but says that the FCE project file has 0KB. How can that be?
    I look using spotlight for the file, thinking maybe the file was saved elsewhere. It doesn't show up.
    Sorry if this subject has been treated before. I searched the forum and didn't find a problem that matched my circumstances. One that was close.
    Thanks for any help you can give.
    Doug

    Thanks for your reply Kyriakos.
    Yep, I've tried the files in the AutoSave Vault and still Unable to Open Project File.
    Also tried deleting the FCE preference and cache file, fixing permissions and doing a save as instead of a straight save, as outlined in the article below:
    http://www.kenstone.net/fcphomepage/good_apps_gonebad.html
    It only has worked on one project which is the only file that opens now.
    It's driving me nuts! I'm going to start doing some major jobs soon and can't have this happen. Maybe I'll try to reinstall FCE then if no luck it's time for a refund.
    Would upgrading from FCE 1 to HD have anything to do with it?
    Have you had any luck, Doug?
    Pat

  • Unable to edit Hosts file in Win7 Home Prem 64bit.

    Clean install.  Administrator account.  Unable to edit the permissions of the hosts file. There is one in the drivers\etc file, which I cannot edit. There is supposed to be one in %systemroot% \SysWOW64\drivers\etc   but there is no etc folder in the drivers folder.
     Turned off DNS Server. gpedit.msc not found when calling it in "run".  This is the first time I've used 64bit anything, so a bit of a newb in that respect. 
    Any ideas?

    Hi,
    As you would know, some of the Windows 7 users can’t save the host file how they like it. The host file itself will simply vanish what the user had done with it.
    In my scenario, I was unable to fix this even after all the instructions provided in above posts. Hence, I have come up with my own idea and luckily it
    worked.<o:p></o:p>
    For those users who experience this problem, here are the instructions to fix it.
    First of all, you should have the administrative privileges to edit the host file. In normal case, if an admin user directly go to the host file in system 32 and add his preferences
    and then save it, it should keep the changes. However, in some wicked scenarios, it will not. I had done a detailed research on this through all the available online forums and even contacted Microsoft several times with no luck.
    So, here you go with a correct solution for this problem.
    Note: If you are not comfortable with Windows OS and don’t know what you are doing, this process can mess up things.
    Hence, do not attempt if you are not 100% sure you can make it.
    Login to an administrator account.
    In the run command (Windows key + R) type, “control folders” and hit enter.
    Click on the tab called view.
    Select the radio button for Show hidden files, folders and drivers –ON.
    Uncheck the ‘Hide extension for known file types-ON
    Click on Apply and then OK.
    Type “drivers” in run command and hit enter. It will take you to where the folder “drivers” located in System 32.
    From the “drivers” folder, double click the folder named “etc.”
    Now you can see the “host” file along with others.
    Now, in the search area in start menu, type “notepad.exe” and open the notepad.exe as administrator. (In order to do this, you can right click on the notepad.exe shown and select
    “Run as Administrator.” If UAC prompted, click YES/OK)
    Now, you will have a notepad open with administrative privileges.
    At the top left side of the notepad click on “file” and then select “Open.”
    A box will appear which will allow you select the file to open. Carefully, navigate to the location where the “host” file is located. To do that, select the drive where you
    installed Windows. If you have the Windows installed in C: select ‘Local Disk (C :)’ > Windows > System 32 > drivers > etc. At this point, you might not have another option to proceed or select from. The window would be empty. To proceed further,
    select the option “All files” from the drop down menu which is located above the “Open” and “Cancel” button. You can now see all the files located in etc folder.
    Select “hosts” from the menu and click on “Open.” Note: You can either click on open or double click on the file.
    Now, you will have the host file information open in the notepad which you had already initiated before with administrative privileges.
    Make whatever changes you as you wish. (Example: If you need to block a web site called
    www.block123.com you can type 127.0.0.1
    www.block123.com right under the local hosts.
    Make sure you do not change any other letters or characters which are already saved in host file.
    This will completely mess up your computer. For more information on the information about host file, refer the Microsoft web site:
    http://support.microsoft.com/kb/972034 . If you
    have accidently delete/edit anything from host file, please delete the complete information stored in host file and copy and paste the host file information from Microsoft which is appropriate for your Operating System.)
    Click on “file” again and select “Save as” and save it in etc. If the path is showing correct to etc folder, save it to etc. If it is navigated to somewhere else, follow the
    instructions provided above and select etc folder and then save it.
    Now, go back to the actual host file location which is in System32 > Drivers > etc (You would have it already open if you had followed the instructions just like the way
    I have provided)
    There you can see 2 host files. One which has already been there and the other one you just saved.
    Among the two, one is called “hosts” and the ‘type’ would be ‘file.’ This is the original host file. The other which you have just saved will be named as “hosts.txt” with the
    file type as ‘Text Document.’
    Right click on the original host file and select rename. You can even click on that file and press F2. This will enable the option to rename the file. Rename the original host
    file as “hostold” and hit enter.
    Now, select the second host file which we have saved as a text document and rename it as “hosts.” Make sure that you DELETE the .txt file extension in order to change the type
    “Text Document” to “File” and hit enter.
    Now, you have successfully saved the host file with your preferences.
    You can now delete the file which we renamed as “hostold.”
    We are done. You would need to do this process all over if you need to edit the host file again. I know it is difficult, however, it is our own requirement and we have to invest
    few minutes on this.
    Enjoy your computer with a great feeling that you have finally edited the host file as per your wish and take it from here. Wish you luck.
    Should you have any questions, please feel free to ask.

  • Unable to open .xpj files

    I have been working with Adobe (case #181204271) for over two weeks now to resolve this issue.  I was wondering if anyone might be able to suggest some troubleshooting procedures.  I have a compiled Flash Help file that I need to update for an upcoming release of our proprietary software.  Two weeks ago, I was able to open the working xpj file although RoboHelp was very slow in responding when attempting to open topics for updating.  Adobe advised me to replace the iWYSIWYG.dll file.  This did resolve the issue with the slow response of the application and I was able to update my project successfully.  Since that time, additional revisions are needed to the project before we publish the flash help file to our web server.  I am no longer able to open the xpj file. 
    Not only am I unable to open the desired project, can’t I open the xpj file for all old projects and the sample project that comes with RoboHelp.  I have been instructed by Adobe to uninstall the application and reinstall under a different user profile with administrative rights.  In doing this, I received Active X error messages.  i can notcreate a new project in RoboHelp 7 for HTML either.  I was advised by Adobe to deleted the xpj and cpd files and try to edit the hhp file.  I am also unable to open the hhp file. Any suggestions are greatly appreciated!  Thank you!

    Thanks for your suggestions.  I only found one patch to apply:
    Adobe RoboHelp 7.0.1 - English, French, German, and Japanese
    REgarding item 40 on your Snippets, when I atempt to open RoboHelp for Word, I get an error mesage that reads RoboHElp explorer is unable to start Word.  I have uninstalled RoboHelp X5 and the upgrade to RoboHelp 7 and reinstalled both.  Also had IT provide me with a new profile.  Unfortunately, these steps did not resolve the issue of being unable to open xpj files.
    Yes, Clownfish project and the project I am attempting to open are on my local drive not on a network drive.
    When trying to open the hhp file, I get the following error message:
    error message when uninstalling and reinstalling and trying to create a new project:
    error when deleted xpj and cpd files and attempting to edit the hhp file

  • Unable to check-in file using CHECKIN_UNIVERSAL in UCM11g through SOA

    Hello all,
    I am unable to checkin/uploading files using CHECKIN_UNIVERSAL in UCM 11g through SOA. I am getting below error:
    error">Error: java.lang.NullPointerException
    Below are invoke operation that I am using:
    <messages>
    <Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_InputVariable>
    <part  name="GenericRequest">
    <GenericRequest  webKey="cs">
    <tns:Service  IdcService="CHECKIN_UNIVERSAL">
    <tns:Document>
    <tns:File  name="primaryFile"  href="/u01/app/oracle/ftp/test/Test_UCM_Upload.txt"/> 
    </tns:Document>
    </tns:Service>
    </GenericRequest>
    </part>
    </Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_InputVariable>
    <Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_OutputVariable>
    <part  name="GenericResponse">
    <ns2:GenericResponse  webKey="cs">
    <ns2:Service  IdcService="CHECKIN_UNIVERSAL">
    <ns2:Document>
    <ns2:Field  name="error">Error: java.lang.NullPointerException</ns2:Field> 
    </ns2:Document>
    </ns2:Service>
    </ns2:GenericResponse>
    </part>
    </Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_OutputVariable>
    </messages>
    Can anyone help me out please.
    -Ayan

    Hi TDN,  
    Thanks for your post.
    You’re using TFS 2013 Update 4 and VS 2013 Update 4?
    According the error message, it seems TFS Server think this file is not changed.
    After step 8, if there’s the edited icon shows on your testfile1.txt in Source Control Explorer?
    Please click Refresh button in your Source Control Explorer, then re-edit your testfile1.txt file and try check-in again.
    And try to reproduce this scenario on your another client(VS 2013 installed), check if this issue can be reproduce on another client or not.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to open jsp file in Design mode

    Hi,
    I am unable to open jsp files in design mode, I am using eclipse Version: 3.6.1.
    Please help.
    Regards,
    Ale Hasan

    Hi Ale,
    Thank you for the additional information. Unfortunately, there does not seem to be anything unusual about your project based on your description. I'm surprised you don't see any processes listed in the process view while waiting for the page to open. I thought you might see something related to a queue manager job to "Manage Resource Event Jobs".
    Are there any messages in the error.log? You can open a view to the error log from the menu option, "Window -> Show View -> Error Log". I'm curious if there are any messages about a process timing out, unable to reset some object within a certain time, or any exceptions logged.
    If you change to another workspace with just a single JSF web project containing a smaller number of JSP, do you experience the same behavior?
    Can you also try using a more recent release of OEPE to see if that helps? The 11.1.1.6.1 release is about a year old.
    http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html
    Kind regards,
    Carlin

  • When i drag and drop an image on my site. it gives the following error. "Unable to access local files due to browser security settings. To overcome this, follo"

    I am using the firefox version 17 and when i drag and drop an image on my website. It gives me the following error.
    Unable to access local files due to browser security settings. To overcome this, follow these steps: (1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again. Or go to the homepage for a link to the tutorial on how to do it.
    I have completed the above steps and it is still showing the same error message. Any help would be highly appreciated.
    Thanks.

    Thanks kumars ,
    I have a specific drag and drop area on our website. This works fine for all earlier releases of Firefox after these security settings
    "(1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again."
    Bust these settings not work for me in Firefox 17.
    Yes the drag and drop functionality is java script based and i am not using any script blocker addons.

  • I download latest software update for itunes and iphone. they successfully download, but then a message comes up saying unable to install as file has been corrupted. what is the cause?

    I download latest updates for itunes and my iphone, when it comes to installing, it successfully downloads, but then i get a message for iphone software error=1403 file corrupted, and for itunes it downloads, then when i try to install it a message says unable to install software, file maybe corrupted!! 

    The iTunes update must be downloaded and installed before you try and use it to update the iPhone OS
    Download iTunes 10.2.2 from here: http://support.apple.com/kb/DL1103
    When it completes it will auto mount the disc image and show you the package installer, don't try and do anything with the file until it gets to this stage.
    Once that's installed reboot the Mac, run iTunes, connect your iPhone and let it sync, then hit the update button and let it complete that step by itself (which will require a restart of the iPhone)

  • Unable to upload multiple files

    In MOSS, I am unable to upload multiple files from the Site Actions | Manage Content and Structure | New | Item menu. I have tried adding Word documents and image files (JPEG, GIFS) to no avail into the \images or \document folders. Even if I try just one file, three or five, the menu never initiates or progresses. It just sits. If I cancel, the menu returns immediately. I have tried to change security settings with no success. Trying to upload multiple files on different MOSS installations also fails. If this is related to a Web Dev settings, can you tell me exactly where the setting is? Thanks for your insight. cm

    Believe it or not, I have found a solution after about 4hrs of fiddling around. This appears to be a bug in Sharepoint 2007. There is a work around that I have discovered! Follow the steps below and let me know if this works for you. It has worked for me and other people so far.
    The steps are as follows:
    1) Browse to your website at http://<servername>/_layouts/settings.aspx; you will need to login by providing a service account name & password or your site collection administrator account & password.
    2) Once you login, click on 'Site Actions' menu.
    3) Then, click on 'Manage Site Content and Structure'.
    4) Click on any document library you want to upload or add files into. If you do not see the 'Upload' menu from the dropdown main menu between the 'New' and 'Actions' menu then you have this bug as well showing up on your server. Don't give up yet, there is a solution. Keep going through these steps!
    5) Click on 'New' and select 'Item'.
    6) You should now see the Upload Document page; under the input browse field there should be a link for 'Upload Multiple Files...', if you do not see this you will need to install either Office 2003 or Office 2007. If you do see it, click on it.
    7) Now, you should see the multiple upload page that allows you to select multiple files. If you try to select one or several and click on the OK button, nothing will happen. No need to worry! There is a work around. Just keep reading to the next step.
    8) On the hierarchy navigation you will have links something like this:
    WebSiteName > Folder1 > Folder2
    9) Click on the "Document Library" folder name; in our case it was Folder1. Basically its the folder you ended up in in step #4.
    10) Now, did you notice anyting in your menu change? Now you should be able to see the Upload menu option between the 'New' and 'Actions' menu that you could not see in step #4.
    11) Click on the 'Upload' menu and select 'Upload Multiple Documents'
    12) Now, you will be back at the Upload document page where you were in step #7
    13) Select one file or many and then click OK. Now it works!!! You should get an IE popup asking you that your about to upload files to your site, Click OK.
    VOILA!!!
    Don't ask me why, I do not know why this happens but it works.

Maybe you are looking for