Can Java be started in a directory that contains non ascii char

I installed a product developed using Java in a folder whose name contains non-ascii chars, such as Japanese chars or german chars.
This will cause error said: unable initialise java virtual machine, error code -1
Some one said Java doesn't like being started in a directory that contains non ascii characters. There appears to be no way of passing it unicode parameters.
Is there anyone once hit the similiar issue or know the root cause of such problem?
Thanks

Yes you can use your web start application console. To enter data which is required for your application it is better idea to use java application which runs in console mode althou you may try to run console of windows and then read data from its input stream.

Similar Messages

  • Folders that having non-ascii chars are not displaying on MAC using JFileChooser

    On MAC OS X 10.8.2, I have latest Java 1.7.25 installed. When I run my simple java program which allows me to browse the files and folders of my native file system using JFileChooser, It does not show the folders that having non-ascii char in there name. According this link, this bug had been reported for Java 7 update 6. It was fixed in 7 Update 10. But I am getting this issue in Java 1.7.21 and Java 1.7.25.
    Sample Code-
    {code}
    public class Encoding {
    public static void main(String[] arg) {
    try {
    //NOTE : Here at desktop there is a folder DKF}æßj having spacial char in its name. That is not showing in file chooser as well as while is trying to read for FILE type, it is not identify by Dir as well as File - getting File Not Found Exception
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (IllegalAccessException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    } catch (UnsupportedLookAndFeelException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    } catch (ClassNotFoundException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
    Logger.getLogger(Encoding.class.getName()).log(Level.SEVERE, null, ex);
    JFileChooser chooser = new JFileChooser(".");
    chooser.showOpenDialog(null);
    {code}

    Hi,
    Did you try this link - osx - File.list() retrieves file names with NON-ASCII characters incorrectly on Mac OS X when using Java 7 from Oracle -…
    set the LANG environment variable. It's a GUI application that I want to deploy as an Mac OS X application, and doing so, the LSEnvironment setting
    <key>LSEnvironment</key> <dict> <key>LANG</key> <string>en_US.UTF-8</string> </dict>

  • Regex with strings that contain non-latin chars

    I am having difficulty with a regex when testing for words that contain non-latin characters (specifcally Japanese, I haven't tested other scripts).
    My code:
    keyword = StringUtil.trim(keyword);
    //if(keywords.indexOf(keyword) == -1)
    regex = new RegExp("\\b"+keyword+"\\s*;","i");
    if(!regex.test(keywords))
    {Alert.show('"'+keywords+'" does not contain "'+keyword+'"'); keywords += keyword + "; ";}
    Where keyword is
    日本国
    and keywords is
    Chion-in; 知恩院; Lily Pond; Bridge; 納骨堂; Nōkotsu-dō; Asia; Japan; 日本国; Nihon-koku; Kansai region; 関西地方; Kansai-chihō; Kyoto Prefecture; 京都府; Kyōto-fu; Kyoto; Higashiyama-ku; 東山区; Places;
    When the function is run, it will alert that keywords does not contain keyword, even though it does:
    "Chion-in; 知恩院; Lily Pond; Bridge; 納骨堂; Nōkotsu-dō; Asia; Japan; 日本国; Nihon-koku; Kansai region; 関西地方; Kansai-chihō; Kyoto Prefecture; 京都府; Kyōto-fu; Kyoto; Higashiyama-ku; 東山区; Places; " does not contain "日本国"
    Previously I was using indexOf, which doesn't have this problem, but I can't use that since it doesn't match the whole word.
    Is this a problem with my regex, is there a modifier I need to add to enable unicode support or something?
    Thanks
    Dave

    ogre11 wrote:
    > I need to use refind to deal with strings containing
    accented characters like
    > ?itt? l?su, but it doesn't seem to find them. Also when
    using it with cyrillic
    > characters , it won't find individual characters, but if
    I test for [\w] it'll
    > work.
    works fine for me using unicode data:
    <cfprocessingdirective pageencoding="utf-8">
    <cfscript>
    t="Tá mé in ann gloine a ithe;
    Nà chuireann sé isteach nó amach
    orm";
    s="á";
    writeoutput("search:=#t#<br>for:=#s#<br>found
    at:=#reFind(s,t,1,false)#");
    </cfscript>
    what's the encoding for your data?

  • I was charging my iPad2 and when reaching 90% it just went black and can't be started again. Anyone that have had this problem and know what to do?

    I was charging my iPad2 and when reaching 90% it just went black and can't be started again. Anyone that have had this problem and know what to do?

    I have had this problem several times. The iPad comes off charging with a black screen and only a hard reset works to get it back.  Then you have to go to settings to be sure nothing changed there.   
    I have had serveral hard resets and three restore operations and the problem recurs.  I am not sure if it is the iPad2 or an app that is causing the problem.   So far I can live with it as is. 
    Jay

  • What is the directory that contains the init directories ?

    What is the directory that contains the init directories (rc0.d/ to
    rc6.d/)? 
    I want to install a copy of vmware5

    I think you've missed the point. Arch uses BSD-style init - /etc/rc.d. If vmware, or any other app, has an init script, it should be installed in /etc/rc.d, and if you want the app to start/stop on system boot/halt, the daemon name should be added to rc.conf DAEMONS. Creating rcX.d directories is pointless, because the Arch init process won't do anything with them.

  • Does Oracle User Password can contain non-ASCII characters?

    Hi Experts,
    Can we create a user with password containing non-ASCII characters like "Ro'çá".
    I was able to create a database instance by providing the password for sys as "Ro'çá". But now i am not able to login from command prompt using sqlplus or SQLPLUS Application. I am getting below error:
    C:\Documents and Settings\xyz>sqlplus system/Ro'çá@test
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jul 4 12:17:33 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    same in case i enclose the password in ""
    C:\Documents and Settings\xyz>sqlplus system/"Ro'çá"@test
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jul 4 12:17:33 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    same in case i enclose the password in ""
    Also using create user i am not able to create user with password in non-ASCII characters but alter user works and changes the password to non-ASCII characters when enclosed in quotes.
    I wanted to know whether the password can contain non-ASCII characters or not?
    Thanks in advance for your help.

    I don't think that the characters used are allowed. See this doc which only mentions three characters to be used .
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10575/tdpsg_user_accounts.htm#BEICECGF
    I did try the same but it didn't work for me either.
    SQL> select * from V$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> grant connect to user1 identified by Ro'çá;
    ERROR:
    ORA-01756: quoted string not properly terminated
    SQL> grant connect to user1 identified by "Ro'çá";
    Grant succeeded.
    SQL> connect uesr1/"Ro'çá";
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Warning: You are no longer connected to ORACLE.
    SQL> connect uesr1/"Ro'çá"
    ERROR:
    ORA-01017: invalid username/password; logon denied
    SQL> connect uesr1/"Ro'çá"
    ERROR:
    ORA-01017: invalid username/password; logon denied
    SQL>HTH
    Aman....

  • Group messaging not working with groups that contain non iphone users

    I have an Iphone 5 and for some reason I can't send/receive group messages with groups that contain non Iphone users.  Basically I recieve single text messages/imessage from each person who responds to the group message.  This is incredibly annoying.

    Hello, megbu36. 
    Thank you for visiting Apple Support Communities.
    Check to make sure that group messaging is enabled.  Go to Settings > Messages and turn on Group messaging.
    iOS: Understanding group messaging
    http://support.apple.com/kb/HT5760
    Cheers,
    Jason H.

  • Does Java 5 accept non-ascii chars as identifiers?

    I am surprised to find out that Java 5.0 accept non-ascii chars as identifiers.
    Is it true that Java 5 really accept non-ascii chars?
    Thanks.

    Here is the code:
    public class non��������name {
      private static void ��������(){
        System.out.println("this is called from a function with a chinese name!");
        int ����1 = 1, ����2 = 2;
        System.out.println("����1 = " + ����1 + ", ����2=" + ����2 + ", �� = " + (����1+����2));
      public static void main(String[] args) {
        ��������();
    }

  • Java 5, Linux, 64-bit: Non-ASCII chars over socket

    Hi,
    I am having issues with reading non-ASCII chars from a socket. I send a mixed message, with the first part in ASCII and the last bit in non-ASCII. There are no issues with reading the non-ASCII characters on Windows. However, when I try running the server on Linux. The following is a message sample:
    Start message<CRLF>
    &#1092;&#1074;&#1072;&#1092;&#1099;&#1074;&#1072;&#1092;&#1074;&#1099;&#1072;&#1092;&#1099;&#1074;<CRLF>
    The second part (which is encoded in either Windows-1250 or KOI8-R), comes out as 3F (when you look at the bytes) on Linux.
    Any suggestions?
    Thanks,
    Max

    You must be using Readers and Writers, and you need to make sure you specify the same charsets when constructing them. Don't leave this to the default, as this seems to vary across platforms and definitely has varied across releases.

  • I have been trying to pass a controlling signal out of a running sub vi to start a case sequence that contains a measurement sub vi. I can't get it to work,can anyone help me.

    I have tried several different means of getting a controlling signal out of gl_flicker_vi. What I want is to pull the current iteration value out of the inner while loop, compare that to another value and if true, trigger the case structure that contains the Take measurements sub vi. I can get an indicator on the main vi to register the iteration values from the sub vi, but I can't use them to control the case structure. When I connected a reference to the control and then a property node within the sub vi, I alway end up with broken wires. Is there anything that I can do to
    get values out of the sub vi that I can use for my purpose? Is there something that I don't know about using references and property nodes that I should at this point? Any help would be greatly appreciated.
    Attachments:
    GL_Flicker_mod.vi ‏88 KB
    Take_Measurements.vi ‏147 KB
    Pass_a_Reference.vi ‏69 KB

    1-Apparently, you didn't wire an input for your DigNum Refnum, the ref to the inner loop index. That's where your broken wire should connect.
    2- Better now : you could create a global variable of the loop index, that you can read anywhere in LabVIEW.
    3- Anyway, your vi will not behave the way you want, since your comparison node will be operated by LabVIEW before anything comming back from GL-Flicker. Use a loop there ?
    I think that you are a overusing propertie nodes, and I believe that there is probably a better and simpler way of doing what you want here...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How move a physical disk directory that contains images

    PSE 11. How can I move a directory on my hard drive that contains images to another drive from within PSE 11? Thanks.

    Hi Bazsl,
    Just a quick answer, late to pick up my wife -grin.
    Starting with the assumption you are just seeing the column of directories without the indication of what drive they are on:    If So then:
    On the left margin next to the begining of the yellow folders aka directories, there is a small symbol of two yellow folders, if you click it the normal directory view will appear  (also assuming you are familar with earlier versions of PSE ).
    Then you can click and drag the directory to its new location, again the system may take a few minutes to complete the move if you have a big catalog of pictures...
    gotta run..
    Al

  • How to cd to a directory that contains spaces in the name

    A brain dead application has created a directory hierarchy that contains white spaces in the directory path. For example: /first_dir/second dir/third dir/filename.
    I want to look at the file from the command line via iTerm/Terminal but I can not get there because the whitespace is interpreted as the end of the text string. Example: cd /first_dir/second dir results in "/first_dir/second no such file or directory"
    If I try "escape" the whitespace with: cd /first_dir/second\ dir/third\ dir I get an error that says "/first_dir/second dir/third dir no such file or directory"
    How can I change to the desired target directory?
    Second question, why do people do such stupid things? Haven't they heard of the underscore "_" for a space??
    Thanks

    How can I change to the desired target directory?
    Drag the file or enclosing folder into the Terminal window instead of attempting to type the path out.
    Second question, why do people do such stupid things? Haven't they heard of the underscore "_" for a space?
    Because they write applications intended for the majority of Mac users, who only go into the Terminal or similar software when troubleshooting.
    (56433)

  • How can I use iWeb to create website that contains a lot of downloadable audio files?

    Hi
    How to use iWeb to create a website that contains a downloadable audio files.  I'm uloading about 15 GB of audio files.  I need to creat folders "albums" and then put the files in these folders.   Any advise?
    Thank you very much for your time to this
    W B

    The important thing is not to put the audio files directly into iWeb: if you do that then every time iWeb decides it needs to upload the entire site you will find yourself uploading all 15GB of audio files, which won't make you happy. Start by uploading the files to the server - in folders as suits you - and then link to them in iWeb.
    If you want them to download rather than play, you may be able to set up an .'htaccess' file in the folder which will force a download - it depends on whether your hosting service will allow this. The method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/missing/download.html
    Here is an example of a simple link which produces a download (without the process described the audio file would play in the browser in a blank page):
    http://rfwilmut.net/stars/dawson2.mp3
    Then all you need to do is to provide a link, designed however suits you, in your iWeb page. If your server won't allow the .htaccess file then you will have to ask visitors to control-click (Mac) or right-click (Windows) on the link and choose 'Download linked file' or equivalent - not so convenient; or otherwise zip the files first, which won't much reduce their size but will force a download (and of course the recipients will have to unzip them).
    If you want the files to play in a player in the page, you can use an html snippet to provide a player as described in this page (you will also need to upload a script to the webspace - this is provided in the page):
    http://www.wilmut.webspace.virginmedia.com/notes/qtembed.html

  • Java / Linux - why ??? instead of non-ascii symbols

    Hi All,
    I've run into the problem during creating a new file from Java program on Linux gentoo.
    All non-ascii characters in the file name are converted into ??? symbols.
    I've tried to run the program with -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8, and set LC_ALL='UTF-8' - but the problem still exists.
    At the same time I can create the files with non-ascii characters in the file manager.
    Could you advise how can I fix this issue?
    Regards,
    Boris

    Is it related to File name or File content ?
    If it is file name related then Linux might have restriction on File name character !!.
    About File Content : Make one File reader program using Java and check are you able to read it back. if yes then It will be fault of your FileManager which is not correctly interpret content of your file.

  • Can ims5.2p1 do sieve filter searches with non-ASCII chars?

    Particularly, is it possible with the
    Subject header line, which is
    =?xxx?Q?xxxxx?= or =?xxx?B?xxxxx?= encoded
    Resolved the fileinto foldername part, but
    now found that seems like ims's sieve filter
    cannot do non-ASCII matches... Thanks.

    Hi, back! Spent a few hours experimenting and found
    that everything is working great (including the creation
    of international non-ASCII foldernames) when I used
    utf-8 encoding in the sieve filters rules for the
    the match strings and the folder names... at least
    so far so good... for your ref and sorry for bothering.

Maybe you are looking for