How java handles package/class names

I am developing a strategy for internationalizing our company's middle-ware product. While I have no problem with the GUI's, exceptions, log files etc, I have no concept of how things like classpaths and packages can be specified in an asian language.
For instance, if I have configuration information of com.abccompany.mypackage.MyClass, what will this look like to the asian user? Will they be able to change it to perhaps com.abccompany.mypackage.MyClass2 by entering localized data in Chinese or Arabic? I don't understand how this part works. On the command-line, will they type English script names? Do they run commands like so: java -cp com.abc.pkg1.jarfile.jar MyClass? Will my english filenames, packages, etc be represented in asian characters?
We have a lot of configuration information that specify java classes as String data. I am concerned about the ability to modify this data and have it work correctly in languages that do not use the ascii character set. Is this something I need to be worried about?
I appreciate any input. Thanks in advance.

You do not need to warry about configuration information of com.abccompany.mypackage.MyClass
and command-line no matter what languages used in Asia. Asian users also type in English script names or java -cp com.abc.pkg1.jarfile.jar MyClass as you do so. The only thing you need to note is
that any text strings or messages which you want to show on any panel/dialog/window/frame and so on should be store in a resource file for internationalizing.

Similar Messages

  • How Java handle duplicated class?

    I am trying to send out email using SUN JavaMail. However, an old version of JavaMail was shipped with Oracle AppServer 10 R2. If I package the new JavaMail into the WAR file, the old JavaMail is still functional, and cause problem to my program. Is there a way to tell the AppServer to use the JavaMail in my WAR file instead of the old one shipped with the server?
    Thanks very much!
    Edited by: huaichen on Nov 6, 2008 2:02 PM

    Hi,
    does this help you? It's from an older vesion but might wor kin your case.
    How do I setup OC4J to load local classes packaged in my Web Application overriding System classes or classes in the higher level?
    OC4J 9.0.3 has a configurable option to load local classes first, overriding classes at a higher level. You have to include the following to directive in the orion-web.xml for your web module to ask OC4J to load local classes:
    <web-app-class-loader search-local-classes-first="true" />Timo

  • How do I find class name I should import for java method name

    If I have the class name I know how to look in java docs list for methods.
    If I have a method name but don't know the class,
    how do I find class name I should import to use the java method name?

    I'm not sure the other reply answered your question. If you truly don't know the class name, one approach would be a Google search. Another approach works if you have an IDE. Eclipse, for example, can find the class for you (assuming it's on your classpath) & automatically import it for you. Ctrl-Shift-O normally does the trick.

  • How to change all class name on my java program?

    I want to change class name like this. This class name changes into a, b, c, d, e,.....
    MyClass m = new MyClass(); ------> a m = new a();
    MyClass2 m2 = new MyClass2(); ------> b m2 = new b();
    before I saw this code.
    I think it is can be using tool or program.
    anybody know?
    thanks in advance.

    Google for Java obfuscator

  • How to get the class name  static method which exists in the parent class

    Hi,
    How to know the name of the class or reference to instance of the class with in the main/static method
    in the below example
    class AbstA
    public static void main(String[] args)
    System.out.println(getXXClass().getName());
    public class A extends AbstA
    public class B extends AbstA
    on compile all the class and run of
    java A
    should print A as the name
    java B
    should print B as the name
    Are there any suggestions to know the class name in the static method, which is in the parent class.
    Regards,
    Raja Nagendra Kumar

    Well, there's a hack you can use, but if you think you need it,Could you let me the hack solution for this..
    you probably have a design flaw and/or a misunderstanding about how to use Java.)May be, but my needs seems to be very genuine..of not repeat the main method contents in every inherited class..
    The need we have is this
    I have the test cases inheriting from common base class.
    When the main method of the test class is run, it is supposed to find all other test cases, which belong to same package and subpackages and create a entire suite and run the entire suite.
    In the above need of the logic we wrote in the main method could handle any class provided it knows what is the child class from which this main is called.
    I applicate your inputs on a better way to design without replicating the code..
    In my view getClass() should have been static as the instance it returns is one for all its instances of that class.
    I know there are complications the way compiler handles static vars and methods.. May be there is a need for OO principals to advance..
    Regards,
    Raja Nagendra Kumar
    Edited by: rajanag on Jul 26, 2009 6:03 PM

  • How to create package class ..

    Dear firend,
    I have created the packge file under /home/in/package/Time1.java
    Time1.java:
    package in.package;
    public class Time1 {
    public static String name="Package Testing";
    public void assign_name(String val) {
    name=val;
    public String get_name() {
    return name;
    public static void main(String args[]) {
    Time1 obj=new Time1();
    obj.assign_name("Testing");
    System.out.println(obj.get_name());
    Then I have tried to access this package file from home directory.
    package_test.java
    import co.in.bksys.packaging.Time1;
    *public class package_test {*
    * public static void main(String args[]) {*
    //in.package.Time1 time_test=new in.package.Time1();
    Time1 time_test=new Time1();
    * time_test.assign_name("Leslie Samuel");*
    * String my_name=time_test.get_name();*
    * System.out.println(my_name);*
    I have compiled this file from the home direcory.
    *$ javac -classpath in/package/ package_test.java*
    It was displayed this below error:
    =========================
    * package_test.java:1: package in.package does not exist*
    import in.package.Time1;
    * ^*
    package_test.java:8: cannot access Time1
    bad class file: in/package/Time1.java
    file does not contain class Time1
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    * Time1 time_test=new Time1();*
    * ^*
    *2 errors*
    but if i used this below line in the package_test.java file insted of using this Time1 time_test=new Time1(); .
    It will work perfectly.
    in.package.Time1 time_test=new in.package.Time1();
    I know that its expecting some format of class file like , in.package.Time1.class inside the in/package/ directory.
    It wasn't there so displayed this error.
    How to create this knid of class file to appropriate directory ?
    How to make my program execute without giving full package name like , in.package.Time1 time_test=new in.package.Time1();  ?
    Thank you.

    Package is a reserved word in Java. Name your package something else.
    - Saish

  • How to find the class name of the  BO

    HI
      How to find out a class for a business object.
    For example for the Business Object FORMABSENC i want to find out the class name.
    iam not able to find out from se24 or swo1.
    Or please suggest me how can i use the method createbapistructure of this businessobject.
    Regards
    vijaya

    Hello Vijay
    When you double-click on "method" AbsenceForm.CreateBapiStructure (transaction SWO1) and switch to tab ABAP you see (on ERP 6.0) that the field Name is empty meaning this BO "method" has not yet been implemented.
    Other methods are implemented by modules of function group SWXA. Checking package SWX you will see that there are no suitable classes around for this object.
    Final remark: Methods of business objects has just a semantic meaning and has nothing to do with object orientation (i.e. classes).
    Regards
      Uwe

  • How to get the Class name of an API method?

    Like most of us, it's difficult to know where every method within a Java class is. Also, many of the same methods are scattered throughout Java Classes. I know of two methods that retreive this... getClass().getName(). But, you must have an object to use these. Is there a way to find out what Class contains a method or Class variable thru an Applet or Java Application?? Obviously, I can look at API Docs; but this takes time.
    Tks Randy

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How 'java' handles classname passed to it

    Hi,
    After compiling the .java file, the .class is passed to 'java'
    and that runs the program.
    Does the 'java' work this way: when we give "java classname", 'java'
    strictly would search for classname.class and proceeds thereafter,
    The reason i got this doubt is when i gave a command "java
    classname.class" an error was raised pointing no class definition.
    Thanks for your time.
    Kris.

    When the java virtual machine looks for a class it uses a ClassLoader. What the default classloader does is:
    1) Converts any dots in the "fully qualified name" to the appropriate path separater / or \ depending on the operating system.
    2) If it's an inner class, the inner class name is separated from the outer class by a $
    4) adds .class to the end
    5) Walks along the CLASSPATH. For every directory on the CLASSPATH it adds the string processed above and looks for a file. For every .jar file it tries to find the entry of the same string.
    Note "." in a classname is used to separated package name from class, as in java.util.Map, for example. "classname.class" would look for a class called "class" in a package called "classname".
    You can't compile a class called "class", by the way, because it's a reserved word.

  • How to get the class name of a page in oracle apex

    Hi All,
    Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
    I appreciate any help on this.
    Regards
    Raj

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How to change generated class name when create binding files.

    I have a dtd file, which has lines like this:
    <!ELEMENT rights (
         %plain-text;
         | rights.owner
         | rights.startdate
         | rights.enddate
         | rights.agent
         | rights.geography
         | rights.type
         | rights.limitations
         )*>
         <!ELEMENT rights.type (%plain-text;)*>
    when i use xjc to create binding files, I got an error:
    trying to create the same field twice: value.
    I suspect that the reason is because the name of rights and rights.type.
    so, i'd like to know how can i control the generated class name. for example, i want to generate a class RightTypeEle for element rights.type. how can do that?
    btw, i use latest version of jaxb.
    Thanks in advance.

    hi Vincentq,
    What function are you using to create the attachment?  Have you looked at SAP_WAPI_ATTACHMENT_ADD?
    Cheers,
    Sue

  • How to hide applet .class name in html under CODE= applet.class?

    I want the user not to know about my .class name in the source code.
    I know there is a way in javascript.
    Does anybody knows how to do it?
    in other words...in the following code ..the user can know what it the .class name of my applet..and can download the NewJApplet.class
    on his/her computer easily..
    remember it could be .class or .jar file FYI.
    Thanks in advance
    <HTML>
    <BODY>
    <P>
    <APPLET  code="NewJApplet.class"  width=800 height=560></APPLET>
    </P>
    <HR WIDTH="100%"><FONT SIZE=-1>
    </BODY>
    </HTML>

    Thanks for your comment .. but it sounds lots of encryption/decryption
    involved.. I need somthing very simple... i have seen this code which does this.. here is the code but i am not an javascript expert .. so please
    if someone gets any clue let me know...
    here is the code ... it just a part of the drop down menu that 's
    why it has <a class="drop" syntex in front of it ...
    <a class="drop" href="javascript:AnyApplet('y')">My Applet</a><br></div>

  • How to get the class name and field name dynamically

    Hi
    I have a class (ex: Contract) the fields (ex : a,b,c) .i need to get the class name and field name dynamically
    ex
    if( validation file for the field Contract.a){
    return contract.a;
    }else if(validation file for the field Contract.b){
    return contract.b;
    how to pass the field name and object dynamically
    Please help me .............
    Thanks in Advance..
    Edited by: 849614 on Aug 11, 2011 6:49 AM

    YoungWinston wrote:
    maheshguruswamy wrote:
    Agreed, but IMO, i still feel its best if there is no tie in between consumer class level details and the database it talks to. A service layer is needed in between them.Sounds like you've done a bit of this before. Me, I've either been a modeller/DBA, doling out data, or a nuts and bolts programmer (and actually more toolmaker than apps, but did a bit of that too).
    Do you know of a good book about the "middle ground" (ie, these service layers)? I understand it empirically, but haven't had a lot of exposure to it.
    Winston
    Edited by: YoungWinston on Aug 11, 2011 10:34 PM
    PS: Apologies. Edited my previous post, presumably while you were composing your reply, when I finally realized what '.filed' meant.Most of my work is in web development, never been a DBA :) . The biggest 'concern' in my shop is 'separation of concerns'. The UI group reports up to a different IT head, the DB group reports up to a different IT head and so on. The looser the coupling between these systems, the lesser the project costs (Integration, QA etc) are. Martin Fowler's books contain good information about separation of concerns in an enterprise environment. The two books which i recommend are
    [url http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420]Enterprise Application Architecture and
    [url http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=pd_sim_b_1]Enterprise Integration Patterns

  • How java extends Object class?

    It is true that we cannot extend more than one class, it is true that java inherits Object class implicitly (if not explicitly) and it is also true that we can extend class X in class Y.
    My question is if java does not support multiple inheritance (directly, using extends) then how does it extends Object (implicitly) and my class X (explicitly)?
    In other words how does java inherits Object along with our specified class?
    Thanks in advance.
    Manish

    Java does support multi inheritance!Yes I know java support multiple inheritancethrough
    interfaces but what I meant was you cannot inherit
    multiple classes using "EXTENDS".and that is correct. Do you still have a question
    regarding this?Nop, actually due to over-concentration and over-thinking on this topic while reading I lost the track and asked this question.
    Thanks
    Message was edited by:
    Manish_India_1983

  • How to find out class name

    Hi folks,
    Can anybody help me, I got stuck on this problem.
    I need to find out the className of the class, which is specified
    by ordinary filename.
    In other words:
    User gives me filename (something.class) and I need to find out
    classname (I just need to create an instance of this class)
    Thanks a lot.
    sgtPepper

    This will read the class name from a class file.
    * @author Ian Schneider
    public class JavaClassName {
        public static void main(String[] args) throws Exception {
            DataInputStream din = new DataInputStream(new FileInputStream(args[0]));
            int cafebabe = din.readInt();
            if (cafebabe != 0xcafebabe)
                throw new Exception("Not class file");
            din.skip(4);
            int cnt = din.readShort() - 1;
            Object[] info = new Object[cnt];
            for (int i = 0; i < cnt; i++) {
                int b = din.readByte();
                switch (b) {
                    case 1:
                        info[i] = din.readUTF(); break;
                    case 3: case 4: case 9: case 10: case 11: case 12:
                        din.skip(4); break;
                    case 5: case 6:
                        i++;
                        din.skip(8); break;
                    case 7: case 8:
                        info[i] = Short.valueOf(din.readShort()); break;
                    default:
                        assert false;
            din.skip(2);
            int off = din.readShort();
            Number ptr = (Number) info[off - 1];
            System.out.println(info[ptr.intValue() - 1]);
            din.close();
    }

Maybe you are looking for

  • Is there a way to convert Crystal Reports to Microsoft SQL Server 2005 reporting services?

    Post Author: Lourdes Hernandez CA Forum: General Our department has always worked with and we love Crystal Reports. Unfortunately, certain reports now need to be converted to Microsoft SQL Server 2005 reporting services which from what I read I think

  • Trying to find the best format for an external hard drive

    I have a new iMac 20", and I am now converting an external hard drive I had on another computer to be compatible with this one. The ext. HD was formatted as NTFS, and I would like to make it much more easily read/write. I've tried using various tools

  • Color Corrector's Frame Viewer Split Not Showing Up On External Monitor

    Kind've a long title - sorry - but . . . here's my question: Why am I not able to see the Frame Viewer's split on my external monitor? A further, more detailed explanation of the problem: I recently purchased Ripple Training's Color Correction with A

  • Hot to activate a second window

    I want to programm a game. when you lunch the game, a window where you enter your name, color etc will open. by clicking on the 'start game' button, the window becomes invisible and a new window opens with the game. first window is a JFrame, second i

  • Liquify filter crashes photoshop, everything is frozen.

    The liquify filter freezes my computer when i open it. Everything is runing perfectly on my computer until I click on the filter>liquify (cmd shift x), then no windows (the usual liquify window) pop up and everything is frozen. I won't even be able t