Helo to set locale in java

Dear All,
please help me how to set locale in java and how it works.
please send me the link or code.
thanks in advance
Anjul Tyagi
Message was edited by:
Anjul
Message was edited by:
Anjul

GraphicsEnvironment.getAllFonts
an array of available Fonts
Add a new Font with new Font() contructor.
Font f = new Font("Lucida Sans", font.PLAIN, 12)
Method Font.createFont(int, InputStream) provides
the ability to add fonts at runtime.

Similar Messages

  • "couldn't set locale correctly" after jumpstart

    Hi Guru,
    I've encountered the message of
    "couldn't set locale correctly" after jumpstart install of solaris 8 in Netra Sun machine.
    I found the Java version is 1.2.2,
    may I know how can I upgrade to Java 1.4.2?
    Kindly advice.
    Thank you very much.
    Regard,
    Goon Fui

    Hi,
    Looks like the locale is not set correctly.
    You may set your environment.
    From bash shell
    bash# export LC_ALL=C
    bash# export LANG=C
    for c -shell.
    setenv LC_ALL C
    setenv LANG C
    Hope this helps.
    Regards
    Pravat
    Anytime I restart a server or perform any other
    functions in my DSCC console I get errors saying
    "couldn't set locale correctly". Everything works
    fine but I still get the errors.
    When I do a "locale" at the prompt I get the
    following:
    LANG=
    LC_CTYPE="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_COLLATE="C"
    LC_MONETARY="C"
    LC_MESSAGES="C"
    LC_ALL=
    Can anyone tell me what I need to do to fix this
    problem?
    Thanks,
    MattIn your m/c fonts may not have set properly

  • Setting Up a Java Web Server on Linux

    Greetings,
    After a lot of reading, I've decided to learn Java server-side technologies (I already know Java (desktop)
    but with little experience) in order to develop my database driven dynamic website projects.
    However, I'm completed lost between the hundreds of acronyms related to Java and the "thousands" of technologies involved.
    Google hadn't help me understand what they really are and how they relate with each other.
    Even though is easy to find what they stand for and some faqs/descriptions, it hasn't been enought to clear my mind.
    I want my webserver application to do, among other things, the following:
    Retrieve Data from a database, do generate dynamic html files.
    Story Data on the database, from html forms.
    Send automaticly emails for multiple users. (newsletter for example)
    E-Commerce.
    Html graber/parser (I don't know if this is the right word, I mean a program that for example, goes to a URL with an html
    table, and stores that information in a database table, as long as the format didn't change).
    Real Time Chat feature.
    Database connection pooling, caching, and other important optimizations.
    I'm not asking for how to develop or configure this features nor what components and programs, must be installed.
    At the moment, I only want to know how to set up a Java solution that will support them when they are needed.
    *** Linux ***
    I want to set up my webserver on a linux distribution.
    In that respect, I don't know if I should choose RedHat or Fedora Core.
    I've heard that fedora is better for a webserver (having in mind that Red Hat Enterprise AS/ES aren't free).
    But I've read in several sun turorials/webpages references to RedHat (on a J2EE context).
    So I'm wondering if is better to go for Fedora or RedHat. Are there pros & cons? They equally support Java?
    *** Technologies ***
    Then in starts the acronyms problem.
    What do I need to install, in what order, for what?
    Some aconyms and technologies, I have read about but don't fully understand are the following:
    Apache
    J2EE
    J2EE 1.4 SDK
    SUN Java System Application Server Platform Edition 8
    J2SE 1.4.2 SDK
    SUN Java Enterprise System
    Tomcat
    Struts
    Cocoon
    JBoss
    I already know J2EE is only a specification. What implements that specification? Sun Java System Application Server?
    J2SE SDK? or Tomcat?
    What is the role of each technology, namely Apache, Tomcat, Sun Application Server?
    What is the Sun Java Enterprise System?
    How do Struts, Cocoon, JBoss relate to Java?
    Which of these technologies are mutually exclusive (analogous)?
    *** Doubts ***
    Then, I have some doubts that are keeping me from starting to study seriously the important techonologies, because I don't
    want to lose lot's of time and effort learning them to after a dillusion start everything again with PHP (the language
    which make me think and read a lot before going for Java). To keep this from happening, I would like to know the following:
    I want to use Java for developing websites with commercial/profitable use for my company, in some throught e-commerce,
    and in other by banners. I want to do everything by the book, with required licenses.
    ------ Java is Free?
    Is Java Completely Free or it might be possible that at a certain point, when I need some component or library,
    multi-machine webserver, performance or security for high-traffic I will see "buy now" instead of "download now"?
    For what they may "ask for money"? and what are the disavantages if I can't buy?
    For example, "Java System Application Server Standard Edition 8.1 2005Q1" and
    "Java System Application Server Enterprise Edition 8.1 2005Q1" cost $2.000 and $10.000 respectively. That is money.
    (http://www.sun.com/software/products/appsrvr/index.xml). What are the disavantages if stick to the free edition?
    Features like (from sun site)
    Standard Edition:
    Extends the capabilities of the Platform Edition to provide secure, remote, multi-instance, multi-machine management.
    It is aimed at high-volume applications and Web services.
    Enterprise Edition:
    Further extends the capabilities of the Standard Edition to provide continuous availablity for applications and
    Web services. It is aimed at business critical, high value applications and Web services.
    Suppose I achive lots of traffic and I keep the free platform edition.
    I won't be able to have a multi-machine webserver set up correctly?
    What are the drawbacks? How big are the performance penalties?
    ------ Technologies Availability
    Finnaly, I have the idea (I don't know if it's accurate) that there are Sun versions and Open-Source Free versions
    of doing or supporting the same Java related thing.
    Despite the way I choose to set up a Java webserver, I will always have all J2EE techonolies like:
    Java API for XML-Based RPC (JAX-RPC), JavaServer Pages, Java Servlets, Enterprise JavaBeans components,
    J2EE Connector Architecture, J2EE Management Model, J2EE Deployment API, Java Management Extensions (JMX),
    J2EE Authorization Contract for Containers, Java API for XML Registries (JAXR), Java Message Service (JMS),
    Java Naming and Directory Interface (JNDI), Java Transaction API (JTA), CORBA, and JDBC data access API.
    I really appreciate some help. I could learn the basics of all this "stuff" before asking. But the point why I'm asking
    is precisely not starting to learn something I may won't use. Obviously, I will have to make a lot of reading during maybe
    months before writing the first line of code of my projects, but being certain that it will fit my needs.
    I will be very thankful if you can enlightme in my fedora/redhat, setup, free/cost and technologies avaibility issues.
    Thanks Beforehand,
    Pedro Vaz

    Apache is a free Web-server.
    Tomcat is a servlet (and JSP) container. It can be stand-alone or can be used together with a Web server (like Apache).
    J2EE's scope is much wider than the servlet stuff, but a standalone Tomcat is a good starting point to servlets and JSP.
    One of our "real-world" applications is run by a standalone Tomcat using POI and Velocity. I did not regret this architectural decision.

  • How to set up a Java Plug-in Download page in case of netscape?

    hai all of you,
    i have a problem regarding downloading plugin.
    i am using <object > and <embed> tags to download the plugins inorder to run the applets. but it is taking long time to download the plugin form sun.com.
    so what i have done is, i downloaded the plugin.exe file and .cab file and put it in my tomcat server mainted by other party.(y application if for internet purpose only.)
    i refered to http://java.sun.com/products/plugin/1.2/docs/intranet.html. there it is mentioned that, to download the plugin.
    for I.E i can able to change the code.
    but for NetScape it's a little bit confusing.
    i have downloaded the binary file in my own directory.
    here he is asking to set up a java plugin-in download page.
    instead of this "plugin-install.html" page what page i should create and what should be the code in this page if i have to write on my own. please let me know if anybody know about it.
    following para is from sun.com
    "To deploy Java Plug-in in intranet environments with Navigator, you need to download and store the Java Plug-in binary file on one of your web servers. Then you need to set up a Java Plug-in Download page and modify the pluginspage attribute in the EMBED tag to refer to this page. The Download page should have options to download different versions of Java Plug-in, such as for Windows and Solaris. For example, if you have set up the Java Plug-in Download page at "http://javaweb.eng/plugin/" and the page is called plugin-install.html, you can specify the pluginspage as "http://javaweb.eng/plugin/plugin-install.html". "
    thanks
    by
    sambareddy

    I have successfuly done this.
    Change the converted html as per the instructions to point to another page.
    Here is an example of the new html page you need to create:
    <html>
    <head>
    <title>Java Plugin Install Page</title>
    </head>
    <body>
    <h2><center>Java Plugin Install Page</center></h2>
    <p></p>
    <h3>Windows Version Only!!!</h3>
    Click here to Download Plugin
    <p></p>
    <p>You may or may not be asked to either save or run from current location</p>
    <p>If the run from current location is available, use that option</p>
    <p>If you can only save the file, then save it to your workstation and exit the download page and exit Netscape. Then using Windows Explorer, go to where you downloaded the file and double click on the file to run it. Accept all options during the install process and once it has finished try accessing your web page again using Netscape. You should then get to the web page or application and this page will not apppear again.
    </body>
    </html>
    If you put the file j2re-1_3_1-win.exe on a web server somewhere then you will have to prefix the file with
    http://yourwebserverdirectory/
    Hope this helps.

  • How to change a setting in the Java Control Panel with command line

    Hi,
    I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
    I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
    Edited by: 897133 on Nov 14, 2011 7:15 AM

    OK figured it out. This is for the next person seeking the same solution.
    When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
    Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
    __deployment.config__
    It should look like this inside:
    *#deployment.config*
    *#Mon Nov 14 13:06:38 AST 2011*
    *# The First line below specifies if this config is mandatory which is simple enough*
    *# The second line just tells Java where to the properties of your Java Configuration*
    *# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
    deployment.system.config.mandatory=True
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
    How?
    Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
    Add this line:
    deployment.security.SSLv2Hello=true
    Maybe you want to disable Java update (which is a big problem for enterprises)
    Add these lines:
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
    #NoTrayIcon
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    Func _JavaConfig()
         $ConfigFile_1 = @TempDir & "\deployment.properties"
         $ConfigFile_2 = @TempDir & "\deployment.config"
         FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
    FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
         FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
         FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
         Sleep(10000)
         FileDelete(@TempDir & "\deployment.properties")
         FileDelete(@TempDir & "\deployment.config")
    EndFunc
    _JavaConfig()
    Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
    Edited by: 897133 on Nov 16, 2011 4:53 AM

  • Referencing a "locally installed" Java applet from a server-based HTML page

    How does one reference a "locally installed" Java applet from a server-based HTML page (i.e. via the applet, object, or embed tags)? I have seen references in documentation that this is possible, but I have not seen any examples. I have tried a few things, but nothing seems to be working.
    Some background...
    I'm working on a web site that aggregates Internet video. For many users, I would like the site to work "without" requiring Java to be installed (or any prompts, etc.). This version of the site allows users to stream videos directly over the Internet and does not require any sort of access to the local system.
    However, in addition, I have a download manager that can be installed on the local system. Currently, it's a Windows-based "service" that is always running in the background, downloading files, etc. (with plans to later support other OSes).
    My dilemma is trying to communicate between my web site running in the local browser (executing JavaScript code) and the download manager. I call this component the "gateway". I need the gateway to be able to do the following:
    1) Pass user credentials from the web browser UI to the download manager (so it can communicate with my servers).
    2) Check the status of downloaded videos
    3) Launch a local media player (such as Windows Media, QuickTime, etc.) (or perhaps tell the download manager to launch the media player).
    Under Windows XP, I have an ActiveX control that can do these things. It communicates with the download manager via reading/writing to a shared XML configuration file.
    Unfortunately, under Vista and IE7 Protected Mode, ActiveX controls have become very restricted and my gateway no longer works. As such, I am looking at using Java for the gateway (also giving me the additional benefits of supporting additional browsers and OSes).
    From my understanding, I believe I can created a "face-less" Java applet, whose methods can be called from JavaScript. Ideally, I'm thinking I could install the applet onto the local system at the same time the download manager is installed. This would give the applet the security permissions it needs to communicate with the download manager.
    Thanks for any help and suggestions!

    Hi,
    Put the .jar file and the .class file in the path mentioned in one of the aliases in the plsql.conf file like /images or create
    a seperate directory and create an alias like /applets "path" in the plsql.conf file.
    <html>
    <body>
    <applet code=com.chartapplet.chart.BarChartApplet
    codebase=/applets/
    archive=/applets/chart.jar width=300 height=200>
    <param name=background value="white">
    </body>
    </html>
    Hope this helps.
    Thanks,
    Sharmila

  • How do I set up a Java Server

    Hi there,
    I'm just got an assignment that need to set up a Java Server. I don't know how to start? May anyone help me?

    Maybe you should ask the person who gave you this assignment what the hell is a Java server?

  • Is it possible to set  Local Currency - INR in SAP B1 8.81

    Hi,
    In SAP B1 Version  8.81 , i have taken Type -Chart of Accounts - as Global
    and  Localization - United Kingdom  And just tell me is it possible to set
    Local Currency - INR in SAP B1 8.81

    Hi,
    You can set any currency till the time there is no transactions in the database.
    Please do remember that the on selection of the Localization UK, the legal aspects and the tax law pertaining to the UK will be applicable and also you have to check for the exchange rate calculation based on settings (direct/indirect).
    Also, taking INR as LC will lead to INR being the main currency and hence the reports generation and reconciliation of all the Multi-Currency will be performed in the Lead Currency.
    All the Best.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • How "not to set locale " in user's profile?

    In the "Oracle Universal Content Management 11gR1 Differences between 11gR1 and 10gR3" document
    http://www.oracle.com/technology/products/content-management/ucm/diffsbetween10gand11g.pdf
    says:
    "If locale is not set in a user’s profile, Content Server can pick that up from a HTTP header variable."
    However, how do I "not to set locale " in user's profile? it appears as a dropdown list and there is no option to enter null.
    Thanks

    Hi there,
    What you're changing is per-user but those options are set in the Utilities->System Properties applet
    Here's how you change it:
    Go to the System Properties applet:
    UNIX: Start the System Properties utility by running the System_Properties script, which is located in the bin subdirectory of the Stellent Content Server installation directory.
    Windows: From the Windows Start menu, select Programs -> Content Server Content Server -> [Instance Name] -> Utilities -> System Properties.
    Then once the System Properties applet is started:
    # Open the Localization tab.
    # In the list of locales, you can Disable the locales you have here or maybe a new option with 11g will show up.
    # When you are done, click OK to apply the setting and exit System Properties.
    # Restart each instance of the content server.
    Cheers,
    malky

  • How to set local path for load library

    Hi,
    How do i set local path for native dll as i dont want to set the path in the environment variable.
    can i do like this
    System.loadLibrary("c:\abc");
    Thanks

    I believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
    Failing that.... maybe you can add -Djava.library.path=
    to your command line to explicitely override the path set ?
    regards,
    Owen

  • ABAP SET LOCAL LANGUAGE doesn't work

    Hello Community,
    actually i try to work in a ABAP report with the SET LOCAL LANGUAGE
    statement to change the text environment on the fly to an other
    language. In the debugger i can see that the SY-LANGU is changed to the
    correct country but the messages are in the wrong language...
    i also set the profile parameter  install/collate/active = 1
    I created a small testprogramm:
    REPORT  Z_STEFAN_TEST_002 MESSAGE-ID sabapdocu.
    SET COUNTRY 'US'.
    SET LANGUAGE 'EN'.
    SET LOCALE LANGUAGE 'E'.
    MESSAGE i014.
    When i logon with language DE and start the programm, the messages are
    also in DE and not in EN.
    So can you help me to find a solution?
    best regards,
    Stefan

    Hi Stefan,
    with set locale/language you can set only language environment for text-elements, headers etc...
    I don't know about similar simple solution for messages, but you can load message directly from database table ...
    DATA: l_text TYPE natxt.
    SELECT SINGLE text FROM t100
      INTO l_text
      WHERE sprsl = 'E' AND
      arbgb       = 'SABAPDOCU' AND
      msgnr       = '014'.
    MESSAGE l_text TYPE 'I'.
    Regards
    Matus

  • EIS error -  "Unable to set locale for GlobalC"

    Hello all!
    I'm working with Oracle Performance Scorecard and Oracle Integration Services to generate an Essbase cube. I'm not able no generate my cube from HPS even it doesn't showing any error in the screen but in the HPS log it shows the error message "Unable to set locale for GlobalC". So, i've noticed that the problem isn't with HPS, but EIS. I decided start the EIS shell (olapicmd.exe) and the same error message was showed in the cmd prompt. Could anyone help with this issue?
    Regards,
    Rafael

    Hello!
    I've opened a SR on Oracle support. They said that EIS doesn't work on 64 bits machine
    At.
    Rafael

  • Setting java_home through java code

    Hello , i went through lots of information for setting java_home through java code but i was unable to find any useful information, does anybody know how to set java home through java code
    Regards
    Mayur Mitkari

    The question doesn't make any sense to me. If Java needs the JAVA_HOME variable set, how is it ever going to execute any code that does so? And if it doesn't need it, why set it?

  • Doubt on set locale and translate

    Hi,
    If we use Set Locale then if the file is having multi Lingual data then what will happen when Translate is used ????
    Thank you

    hi check this...
    DATA text_tab TYPE HASHED TABLE OF string
                  WITH UNIQUE KEY table_line.
    INSERT: `polo`    INTO TABLE text_tab,
            `pollo`   INTO TABLE text_tab,
            `chunky`  INTO TABLE text_tab,
            `crunchy` INTO TABLE text_tab.
    SET LOCALE LANGUAGE 'E'.
    SORT text_tab AS TEXT.
    PERFORM write_text_tab.
    SET LOCALE LANGUAGE 'S'.
    SORT text_tab AS TEXT.
    PERFORM write_text_tab.
    SET LOCALE LANGUAGE ' '.
    FORM write_text_tab.
      FIELD-SYMBOLS <line> TYPE string.
      LOOP AT text_tab ASSIGNING <line>.
        WRITE / <line>.
      ENDLOOP.
      SKIP.
    ENDFORM.
    regards,
    venkat.

  • How to set local help as default in ID CS5?

    Just received a replacement laptop w/CS5 installed & cannot figure out how to disable/turn off community help...I want it to default to local help whether connected to the net or not.
    Thanks
    Update Info:
    Or, if setting local help as default is not possible, what about turning off or disabling internet sensing by the program?  This will be used in the field and sometimes slow connections are the only thing available.  Testing it on a dial-up connection, it just set there trying to access community help without allowing access to the local help until the dial-up connection was closed.

    Thanks Peter...I'd already found that, but when I first found it, the last section was not in that screen and in playing around, I found that Air was not installed proprly, uninstalled & re-installed that & that last section with the 2 ticks showed up & selected local help.
    Next, I get a message that there is no PDF reader installed...but a working copy of AR7 is & it works...I'm thinking that CS5 should be uninstalled & re-installed, however, that will have to wait until I can get the laptop back to the company we're working for.
    The community help window indicated the local help file to be 40Meg, but a search found no PDF that large on this machine.
    Is this PDF available for direct download & I'll just access it outside of the help screen if necessary.
    Laptop/program owner is in Canada, I'm visiting in Georgia & have an overseas flight on Wednesday...

Maybe you are looking for

  • Quicktime Export - Keynote, Streaming, and Movie Controller Settings

    A few questions regarding qt export from keynote - Is there a way to save quicktime export settings in keynote? Right now I'm exporting multiple files to custom sizes, and have to manually enter the size every time. I'm exporting for streaming as wel

  • Difference between join conditions using NVL and not using NVL

    Hi, I have a join condition in one of the applications as follows. NVL(RQ.out_mesg_id,0) = NVL(RS.out_mesg_id,0)How is it different without using NVL function. What is the internal execution difference. RQ.out_mesg_id = RS.out_mesg_idWill there be an

  • ALERT Category Lont Text (email) fomatting

    I have Alert Management configured to send an email alert correctly. I need some formatting for the email and therefore I choose to edit the alert category long text using SO10 ( remembering that the Text-id is ALRT ). while editing the Alert's Long

  • TS1363 Every time I plug in my Ipod it causes Itunes to lock up. Can't sync it or anything.

    When ever I plug in my Ipod to sync with my PC it launches the Itunes program. The mouse turns to a circle showing it is doing something but never finishes. I can't exit the program, select any of the menues or anything. As soon as I reach down and u

  • CS4 - Sending project to QT-Bad results

    Hello All, I upgraded from Premiere pro 1.5 to CS4 a few months ago and I'm finding it to very different.  I rendered a short 3d animation clip with a custom frame size of 720x405 16:9 format and I would like to export this clip to a QT movie.  When