How can I let JRE and JDK display English

I am using Linux. Since I change LC_CTYPE from en_US.UTF-8 to zh_CN.UTF-8, java program begin to display Chinese. I don't want my computer shows half English and half Chinese, I want to know how to let Java Program displays English meanwhile keep LC_CTYP=zh_CN,,,
Edited by: jptan on Oct 11, 2007 12:04 AM

Try setting the default locale:
Locale.setDefault(new Locale("en", "US"));"Sets the default locale for this instance of the Java Virtual Machine. This does not affect the host locale."

Similar Messages

  • I have an ipod touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    I have an Ipod Touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    It sounds like you essentially have a new computer and unless you restored from a backup your iTunes library would be empty.  You can transfer your iTunes purchases from your iPod to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    SInce you changed syncing computers. after you move the stuff you need to restore the iPod to factory defaults and sync the stuff back to your iPod.  If you had the iPod backup file you could restore from backup.
    If you have non-iTunes pruchases you can copy them to your computer by using one of the third-party programs discussed in this previous discussion:
    Best iPod to PC

  • Hi, I got a virus that does not let me use Safari. I downloaded an av from the app.store but it did not detect anything. I am thinking in formatting the HD. How can I do it and will I lose?

    Hi, I got a virus that does not let me use Safari. I downloaded an av from the app.store but it did not detect anything. I am thinking in formatting the HD. How can I do it and will I lose?

    1. Force Quit .
        Press command + option + esc keys together at the same time. Wait.
        When Force Quit window appears, select the Safari if not already.
        Press Force Quit button at the bottom of the window.   Wait.
        Safari will quit.
        Relaunch Safari holding the shift key down.
    2. Safari > Preferences > Extensions
        Turn those off and try Safari.
    3. Safari > Preferences > Privacy > Cookies and other website data:
        Press “Remove all website data” button.
    4. If adware is installed without your knowledge,
        download  free  AdwareMedic by clicking “Download ” from here
        http://www.adwaremedic.com
       Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
       Once done scanning and removing the adware, quit the app by clicking AdMedic in the menubar
        and selecting “Quit AdwareMedic”.

  • If you log out of your apple ID on your iPad and let someone else use it and they use facetime.  How come it shows my facetime history and not theirs?   I do not want them to have access to my history.  How can I prevent that and they can see their own?

    If you log out of your apple ID on your iPAD mini and let someone else use it and they use facetime.  How come it shows my facetime history and not theirs?   I do not want them to have access to my history.  How can I prevent that and they can see their own?  Or is the history associated with the iPAD mini itself and not the actual icloud user account?

    You are logging out from
    Settings -> FaceTime, right?
    My guess would be though, that the FaceTime history is stored locally on the device, so anyone using it will see the entire device history (I cannot imagine that FaceTime uploads the history to an Apple server anywhere - I'm sure it is just logged locally on the device - based on my iPhone and iPad show completely different histories, for example).

  • How can I get iTUNES library to display renamed files and folders (renamed with Windows Explorer)?

    How can I get iTunes library to display the new names and organisation of tracks and albums (ie files and folders) that I have renamed and reorganised (using Windows Explorer) having previously imported them using iTunes?
    (Even when I relocate "lost" tracks in iTunes (using the drop down menu facility to view in Windows explorer), although iTunes will then play the track, and knows where to find it, it refuses to display the track with its correct (new) name, or show it the correct (new) album.  That means I have lots of things called "Untitled" and "Track 01" etc, all of which have actually been renamed, but iTunes does not seem to have the capability to recognise the changes and update its library listing.  Another example - a Tchaikovsky CD with 3 major works in 13 tracks insists on displaying in iTunes as 13 tracks in one album, despite the fact that I have reorganised the tracks into 3 albums - two being Swan Lake and The Nutcracker - and renamed the individual tracks to a more useable format.)

    Thanks for your replies ckuan
    I agree with Tgod that your first solution does not work.  It appears unpredictable whether the old or new file names are listed when you drag the folders into iTunes from Windows Explorer.  The folder structure is completely missing.  I reckon if you have to muck around spending days/weeks/months finding out how to fix links to a secret meta-file (obviously designed by some deep-cover microsoft worm working in the Apple!), then it's pretty obvious that almost any alternate way of doing this would be better.   Bye bye iTunes!!
    Incidentally, I tried several other things that (if the software was designed intuitively) should work, but give disastrous results:
    1) when deleting the library listing in iTunes, it gives you two options - one is to remove the listings to the Recycler.  Be aware that IF you select that option, it removes not only your library listing, but also your ACTUAL MUSIC FILES to the Recycler.  Moreover, it does NOT remove the insidious secret meta-file that is what apparently keeps rewriting old names over your carefully renamed file names, and keeps totally ignoring your carefully designed folder (album) structure.  OK - not a complete disaster, as I realised and went hunting through the chaos in the Recycler to recover all my files.  No thanks to the genius who designed this brilliant feature!
    2) after deleting the library listing in iTunes, I attempted to import just the folders that I wanted.  iTunes refused to allow me to do that, and proceeded to try to import every frigging music file it could find on my whole hard drive, in apparently random fashion into the library.  Whoever thought up that doozy either never ever tried to use or market test it, or has modified their mind rather too many times with artificial substances so their brain is like muesli chop suey.
    3) oh why go on, it's too depressing ...

  • When I add a date to a cell, how can I let another cell display a date that is 30 days later?

    when I add a date to a cell, how can I let another cell display a date that is 30 days later?

    =[cell reference] +30

  • How can i let a move clip complete his motion tween movement after dragging and dropping it

    hi how can i let a move clip complete his motion tween movement after dragging and dropping it
    i am using this code and there is a motion tween applies to the movie clip r_mc
    r_mc.addEventListener(MouseEvent.MOUSE_DOWN,fun); r_mc.addEventListener(MouseEvent.MOUSE_UP,fun2); function fun(event:MouseEvent):void { stop(); r_mc.startDrag();
    function fun2(event:MouseEvent):void {
    play(); r_mc.stopDrag();

    i have a simple .fla file wich contains MC that has
    a motion tween(its moving from the left to the right of the stage)
    this motion tween covers the whole time line (  there is only 50 frames in the time line)
    i mean in the frame 1 the MC appears in the left of the stage
    and in the frame 50 the MC appears in the right of the stage and there is a motion tween between them
    every thing till now working well
    i want to make that MC dragabble
    so when i drag the MC i will use stop()
    and when i drop it i will use play()
    but the problem is that the mc doesnt move and complete
    his motion tween movement when i drop it
    for example the MC will be in the middle of the stage in frame 25
    in this frame (25) i am draging the MC ,stoping the timeline,dropping the MC and resum playing the timeline again
    but the MC freezes in the middle of the stage and doesnt go to the right of the stageo until the flash loops and start from the frame 1 again
    here is the example wich i am worikng on
    http://www.mediafire.com/?ia47r4owha7sz8v
    thank u very much and sorry for my bad English

  • What is the difference between JVM and JRE and JDK?

    Hi , I want to know what actually is JVM,JRE and JDK ? and the difference between them?

    They should at least try. When it comes to
    terminology, if they can find this site, they should
    be able to find google, wikipedia, etc. It's
    reasonable to expect them to try there first, and
    then, if they still have questions, post here,
    indicating what they looked at and how it fell short,
    what they're still confused about, etc.Perhaps this is a valid point.
    I believe physical JVM hardware has also been
    manufactured. I wonder what we'd call that? A JPM
    (Java Pysical Machine)?No. It is simply a hardware implementation of the abstract Java Virtual Machine.
    .class files are executed by software (in fact,the
    software that executes the .class files is calledthe
    JRE and is short for the Java
    Runtime Environment). The JavaRuntime
    Environment is a native program (i.e. it is run by
    hardware) which provides the ability to executejava
    bytecodes (.class files)That's the JVM.No it's not. The JVM is an abstract architecture.
    The JRE is the JVM plus native libraries plus core
    API Java classes.The JRE is an implementation of the JVM along with some additional facilities. The JVM may be used to describe concrete implementations in industry vernacular, but this is not a technically accurate usage of the term per the specification and is therefore incorrect.
    From the preface to the Java Virtual Machine Specification, Second Edition, viewable at http://java.sun.com/docs/books/jvms/second_edition/html/Preface.doc.html:
    "The Java virtual machine is an abstract machine."
    From Wikipedia (http://en.wikipedia.org/wiki/JVM):
    "A Java Virtual Machine (JVM) is a set of computer software programs and data structures which implements a specific virtual machine model."
    Perhaps this misconception is the source of the confusion. This is one reason why I answered deepakorsun rather than refer him to somewhere else: anywhere that would be reliable and/or completely accurate would be too dense to readily understand, and anywhere understood easily enough might not be completely accurate.
    >
    The Java Development Kit (JDK) just provides the
    facilities necessary to write programs that willrun
    on the Java Virtual Machine. It contains acompiler
    It also contains tools such as jar and javap, the API
    docs for the core API classes, the source code for
    the API classes, probably a few other things, and
    generally the JRE (though I'm not sure if that's
    officially a required part of the JDK).I never said it didn't contain jar, javap, javac, java, jdb, jconsole, or any of the other programs or resources shipped with jdk. I simply stated affirmatively something it did contain. As I implied before, technical comprehensiveness is exactly what makes resources such as the JVM specification almost unusable for answering questions like this. That is why I omitted such details in my description. And since we're being all technical here, the API documentation does not ship with the Java Development Kit (at least not as of JDK 5.0), it is a separate download. It is the core API source files that ship in a .zip file with the JDK.
    Don't get me wrong, I do understand that you have probably seen a lot more people come and go from these forums than I may ever understand and that you have helped more people than you can remember, and I don't mean to disrespect that. I understand that dealing with so many people over such a long period of time and hearing the same questions over and over again can probably start to wear on your patience, but I don't think the right approach is to treat anyone that tries to help them with utter contempt and sarcasm. That's not constructive or useful to anyone. I understand why you would be upset if somebody was purposely trying to be lazy, I probably would be too, but you have no real way of determining whether or not they are being lazy or just don't know something and don't know how to figure it out for themselves so they are asking a question. And if they are honestly just asking a question in good faith and looking up the answer on Wikipedia just did not occur to them (or they couldn't understand what it said), yet they somehow ended up on this site, they have done nothing wrong and there is no reason to get angry at them.
    Oh come on, that wasn't nice. Not everybody isable
    to answer their own questions. WTF are you talking about?!? Why waste the time to
    type something out when they can click on a link and
    find 1000 times more information than you can fit
    into one post? Either way - they're
    STILL going to have to read the
    information themselves...
    Ridiculous.So I suppose you've either read the Java Virtual Machine Specification, the Java Language Specification, and the Java Native Interface Specification in their entireties, or absolutely nothing about programming in Java. This is because, by your reasoning, these three books contain 1000 times more than anyone can fit on a tutorial, Wikipedia entry, mailing list, forum, blog, or anything else.
    Criticizing somebody who isn't doing something the exact way you think it should be done is often quite idiotic and non-constructive. I believe this is this case here. Please post something more useful, meaningful, and/or polite next time. And just for future reference, yelling at a beginner does not help them learn faster or better. It just makes them hate you.
    Oh come on, that wasn't nice. Not everybody isable
    to answer their own questions. Java terminologycan
    be confusing and difficult to understand in part
    because of all the acronyms used and all the name
    changes undergone by the various development kitsand
    platforms.Point taken. You have much more patience than
    I, but with lots of intensive therapy and proper
    adjustment of my medications, I may get better.Thank you for this post. A display of wisdom and patience. You single handedly caused me to reconsider participating in a flame war.

  • How can we let the program run in backgroud automatically?

    normally,we need to find peak off time run big program
    that read pooled table and slowly.
    How can we let the program run in backgroud automatically?
    BTW:before that pop a window just give runner a notice.

    Here is an example, try this one.
    REPORT ztest.
    PARAMETERS: p_vbeln LIKE vbak-vbeln,
                p_bkrun NO-DISPLAY.
    DATA: ls_vbak LIKE vbak.
    DATA: v_answer,
          v_jobcount LIKE tbtcjob-jobcount.
      IF p_bkrun IS INITIAL.
    *-- not background processing
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
                  textline1      = 'This may time out.'
                  textline2      = 'Do you want to run in background?'
                  titel          = 'Warning!!!'
                  cancel_display = space
             IMPORTING
                  answer         = v_answer.
        IF v_answer = 'J'.
    *-- run in the background
          CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                    jobname          = 'ZTEST'
               IMPORTING
                    jobcount         = v_jobcount
               EXCEPTIONS
                    cant_create_job  = 1
                    invalid_job_data = 2
                    jobname_missing  = 3
                    OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            EXIT.
          ENDIF.
    *-- submit the program in the background
          SUBMIT ztest
            WITH p_bkrun = 'X'
            WITH p_vbeln = p_vbeln
            USER sy-uname
            VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
    *-- close the job
          CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                    jobcount             = v_jobcount
                    jobname              = 'ZTEST'
                    strtimmed            = 'X'
               EXCEPTIONS
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    OTHERS               = 8.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          EXIT.
        ELSE.
          CLEAR v_answer.
        ENDIF.
      ENDIF.
      CHECK v_answer IS INITIAL.
      SELECT SINGLE * FROM vbak
                      INTO ls_vbak
                     WHERE vbeln = p_vbeln.
      IF sy-subrc <> 0.
        WRITE:/ 'Invalid Order Id.'.
      ENDIF.
    END-OF-SELECTION.
      CHECK v_answer IS INITIAL.
      IF p_bkrun IS INITIAL.
        WRITE:/ 'Here is the result running the program in foreground.'.
      ELSE.
        WRITE:/ 'Here is the result running the program in background.'.
      ENDIF.
      WRITE:/ ls_vbak-vbeln,
              ls_vbak-vkorg.

  • In PSE 7, how can I rotate my video, which displays sideways, to vertical?

    How can I rotate my video which displays sideways to vertical in PSE 7?
    It's a waterfall, I filmed it vertically, but it displays horizontally. Full Edit doesn't work on film clips and the rotate option is greyed out.
    Thanks for any feedback.
    Kathryn

    PSE 7 is Ps Elements,  not Photoshop.  Try posting in the Photoshop Elements forum, as not many users here are familiar with Elements.
    http://forums.adobe.com/community/photoshop_elements?view=discussions

  • Iphone has been in recovery mode for 4 hours and hasn't come back to the home screen and how can i fix this and get it back to working order?

    iphone has been in recovery mode for 4 hours and hasn't come back to the home screen and how can i fix this and get it back to working order?
    the iphone 4S has been in recovery mode for a long time and i have tried to press and hold the power and home buttons until the apple symbols comes on the screen again but it stay on the screen until the screen turns off and doesn't come back on to the home screen and have tried to sync with mac and doesn't do anything it does display the itunes and cable icons for a while but then goes back to the apple symbol and doers nothing what can I do to fix this  and not loose what is on the phone at all?

    Hi, simonRM.  
    Thank you for visiting Apple Support Communities. 
    I understand that you are unable to restore your iPhone.  Here are the best troubleshooting resources to start with when not being able to update or restore your iPhone.
    If you can't update or restore your iPhone, iPad, or iPod touch
    Resolve iOS update and restore errors in iTunes
    -Jason H.  

  • How can I add 'AlternateSpace' and 'AlternateColorValue' to my IDML in InDesign?

    how can I add 'AlternateSpace' and 'AlternateColorValue' to my IDML in InDesign?
    I have a document and colors (CMYK) but need also RGB values to display on the web.
    In IDML in Resources/Graphic.xml in each Color are attributes 'AlternateSpace' and 'AlternateColorValue'.
    How can I set this in InDesign?

    I cannot follow you exactly…
    Do you mean you are using the IDML in a further process for Web Design? Translating the IDML to HTML or something?
    And now, you need the alternate information for doing the RGB representation of some or all the colors?
    InDesign itself does not provide an interface to that.
    Nor does scripting.
    However, you could change the values in an IDML or IDMS file by editing the file(s):
    AlternateSpace="NoAlternateColor" to: AlternateSpace="RGB"
    AlternateColorValue"" to: AlternateColorValue"0 144 54"  (a green one)
    Here a tabular overview of the properties of a color exported with a colored rectangle as IDMS file:
    <
        Color Self="Color/GREEN1-Process"
        Model="Process"
        Space="CMYK"
        ColorValue="100 0 100 0"
        ColorOverride="Normal"
        AlternateSpace="NoAlternateColor"
        AlternateColorValue=""
        Name="GREEN1-Process"
        ColorEditable="true"
        ColorRemovable="true"
        Visible="true"
        SwatchCreatorID="7937"
    />
    If you'll import the edited IDMS file in a new document and export again as IDML or IDMS, the changed values will persist.
    Don't know, if that goes in the right direction for you. I'm guessing here a lot…
    Uwe
    Message was edited by: Laubender

  • How can i include Services and Bindung in a generated WSDL file?

    Hi,
    i what to use a generated wsdl file from an erp system, to build a web service client with WSDL2Java (org.apache.axis.wsdl.WSDL2Java).
    I noticed, that services an bindings are missing, also a policy is included.
    How can i include services and bindings in the wsdl and exclude the policy?
    Thanks!

    well, I assume you have SOAMANAGER.
    choose your service & "Apply Selection" (very useless button btw)
    select a binding in the dropdown box or create on if you do not have one yet
    Click button "Show WSDL options" (actually they do not really look like buttons in WD; call it yellow blot)
    Some extra config area is thrown onto your screen (without any sense for usability or design); Change the radio button for WSDL format from "WS policy" to "Standard"; make sure the first radio button group is on "True" for monolithic
    Now click the link (why is this a link and no blot?) called "Display selected bindings WSDL URL"
    an extra text field is again thrown onto your screen somwhere between the dropdown and the WSDL option config area containing an URL (get out your glasses if you don't see the sub-10pt-letters)
    hope it helps,
    anton

  • HT5439 i can't access my university anyway, how can i add username and password?

    i try to use this solution to apply my university proxy, but it dodn't work. Can u suggest me more about how can i add username and password?

    You should be able to use the OpenVPN Connect app running on your iPad to connect your iPad to the VPN directly. It is an official OpenVPN client for iOS devices.
    In what way is it "not compatible"? Have you tried it? Tunnelblick is an OpenVPN client, so your school's VPN is using the OpenVPN protocol. That means any OpenVPN client should be able to access it. (It is possible, but unlikely, that your school uses encryption that is not available on the iPad, but that would be very unusual.)
    Otherwise, a remote control app on your iPad would let you control your Mac at home. "Back to My Mac", for example, would allow you to control your Mac remotely. The tricky part of this is that usually a VPN is set up to send all Internet traffic via the VPN server, and I'm not sure how that would work with "Back to My Mac".

  • How can I let my servlet to process Chinese Character as an input?

    How can I let my servlet to process Chinese Character as an input to my simple database which is an Excel file. I have tried before and all my input values become question marks.
    Please give me some advise, thx!

    input chinese?����������
    that may result from the tomcat or other web server

Maybe you are looking for

  • HT3302 Ipod nano 5th gen not responding

    Can someone please let me know what should I do. I have the Ipod freeze actually. I already hold menu and center botton for more than 6 sec and still not responding...I have the nano 5th generation and so many music in it that I am worry. Thank you!

  • New user creation in FND_USER using link on fly

    Hi, How can we stop OID Provisioning template to stop creating CUSTOMER_ID and PERSON_PARTY_ID for new users in FND_USER. Is there a function stored some where which we can change for the ProvOIDToApps.tmp? Please let me know.

  • Switch to lion? have dude

    I was going to update to lion but I have seen this post and I decidead to give up for the moment becouse of this 47 pages thread. I live in Europe and apple care may not give such service as you are getting in USA. Talking about changes of logic boar

  • Bridge table size on WGB

    Hi I've set up an old 1121 access point as a WGB on our unified (i.e. lightweight) wireless network. It works fine, but the VLAN that the wireless side connects to has between 200 and 300 clients at any one time. The bridge table size seems to be fix

  • Will not run on batteries

    I have an IBM think pad 1200,(1161-11u) my batteries charge to full voltage but when I unplug the ac it will not switch to battery power. Whats up? Message 1 of 2 (47 Views) Reply