Extension classes in jdk1.4.x

I am using the method ResourceBundle.getBundle("java.text.resources.LocaleElements", Locale.getDefault()) for
jdk1.3 and ResourceBundle.getBundle("sun.text.resources.LocaleElements", Locale.getDefault())for jdk1.4
in Applet client to get locale specific info.
This works in jdk1.3 and the resource is loaded without
any problem but in jdk1.4 it throws "MissingResourceException"
The class LocaleElements is present under lib/ i18n.jar in jdk1.3
but is present under lib / ext/ localedata.jar in jdk1.4
Is this causing the problem? Is there any problem in loading
extension classes by plug-in?
Any help on this will be appreciated.

I have a couple of ideas.
First, I looked into the jar you mentioned in the 1.4 jdk ext directory and it did NOT contain an entry for LocaleElements_en_US.class (your stack trace indicated that you were looking for en_US). This could be causing your ClassNotFoundException.
Also, you could verify that the jar is loaded. For example, you could go to the Java Plug-in's control panel, go to the "Advanced" tab and in the "Java Runtime Parameters" text field place the name of the jar in question to be prepended in the boot classpath. For example, you could put the entry:
-Xbootclasspath/p:<java home goes here>/jre/lib/ext/localdata.jar
With this option in place, you know that the classloader will have knowledge of that jar and that it gets loaded (assuming that the path is correct). If the CNFException still occurs, then it sounds like the problem from above.
Hope this helps.
Eric

Similar Messages

  • How Do I Use Generics with Framework Extension Classes?

    Hi Guys and Gals,
    I've been writing alot of duplicate code lately for ViewObjects that are all basically the same. So it occurred to me that perhaps I could put shared code in a Framework Extension Class. My problem lies in the fact that I do quite a bit of class casting as well. I thought perhaps Generics could come to the rescue. But uh ... I don't really know anything about them, which makes asking the right questions or even researching difficult.
    Here's an example of what I would like to accomplish.
    I have many different Master-Detail ViewObjects which are all pretty much the same. For example ...
    PurchaseOrder (1-*) PoRows
    SalesOrder (1-*) SoRows
    Invoice (1-*) InvoiceRows
    etc...
    Here is sample code for the PurchaseOrder / PoRows
      public void cancelDocument()
        RowIterator ri = this.getPoRowsVO();  // access the detail view object
        RowSetIterator rsi = ((RowSet)ri).createRowSetIterator(null);
        while(rsi.hasNext())
          PoRowsVORowImpl next = (PoRowsVORowImpl)rsi.next();
          next.cancelRow();  // call a detail view object method exposed to the client
        rsi.closeRowSetIterator();
      }However, these two lines are cause for ponderance
         1.  RowIterator ri = this.getPoRowsVO();
         2.  PoRowsVORowImpl next = (PoRowsVORowImpl)rsi.next();Which leads me to two questions:
    1) How do I access the Detail part of the relationship in a framwork extension class generically?
    2) If I have to cast, is there a way to read the class type through reflection and cast using a generic method with what I've found?
    I would think writing common methods in a Framework Extension class would really help make maintaining my code easier, and I could see how it would be a powerful tool. But how would one get around these ViewObject specific problems?
    Will

    Hi,
    you are correct, Generics has a different meaning in Java then what you ask for.
    Actually to access a detail row set from a parent row, you can use code like this:
        public void voRowCancel(){
            for (int i = 0; i < this.getAttributeCount(); i++)
                   if(this.getStructureDef().getAttributeDef(i).getAttributeKind() == AttributeDef.ATTR_ASSOCIATED_ROWITERATOR){
                     RowSet rs = (RowSet) this.getAttribute(i);
                    // ... to do ...
        }However, the code you invoke is on a custom implementation class, which makes it difficult to get to this from here.
    Frank

  • Problems with java.lang.Class in JDK1.3

    Hi,
    I have 3 problems with the reflection in java.lang.Class:
    1) In the specification of method java.lang.Class.getDeclaredFields() is wrote:
    "Returns .... This includes public, protected, default (package) access, and private fields ..."
    This means, that all private fields should be return too. But some private methods are not given back. ????
    2) In java.lang.Class.getDeclaredMethods()
    some public methods are not return. ????
    3) In java.lang.Class.getDeclaredMethods()
    If Class is an interface. The same problem like 2) ????
    Are they errors of java.lang.Class in JDK1.3 ????
    Thanks & sincerely.

    Not sure it makes a difference, but you left off the last part of the quote:
    This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces.
    Are these missing methods from inherited classes, or are they declared in the class itself?

  • Shall we use SRDemo Framework Extension Classes in 11G R1?

    Hi,
    I just installed 11G R1 and reading developer guides. For development with 10.1.3.3 release I was using the Framework extension classes from SRDemo to base BC's on. Those methods includes many base functionality such as setManagerowsByKey, case-insensitive search, some bind variables initialized, and so on. Shall we continue to use them for 11G R1? To keep currency of viewobjects after rollback, I use the method proposed by Steeve Muench's blog entry which contains beforeRollback and afterRollBack methods on the base viewobject and exposing row state to client . shall I continue to use it?
    Best Regards,

    Salim,
    If those methods provide functionality that you like - I don't see why you shouldn't continue to use them.
    John

  • Performance issue with Preferences class in JDK1.4

    I am very excited about the new Preferences class in JDK1.4, however, my co-workers are not too thrilled about it, as the Windows implementation of it writes everything into Registry, and it is slow when we are talking about hundreds or thousands of users, and storing each user's preferences in the Windows registry is a slow and dangerous thing.
    Is the argument valid? If it does, any solution to that, except not using Windows platform?
    Thanks,

    Well I just got to say I uninstall 1.4 and and got1.3.1_02.I had 1.3.1_01 witch worked for me pertty good but i am trying 1.3.1_02 now.I did not care for 1.4

  • Dynamic Proxy class in JDK1.18

    I want to create a Dynamic Proxy class in JDK1.1.8 can any one help me out

    thanX for ur reply.
    I need to implement that in JDK1.1.8, I need to deletgate all opperations on my proxy class to another class.

  • What is file extension .class?

    I am new to java and want to know what the file extension .class is and how do I open and edit a file with this extension?

    .class files are created by the compiler from .java file, which is your code... if you're new to java, you probably don't want to open and edit your .class files. If you want to make changes to your program, open the .java and recompile.

  • How to use Box & Box.Filler class in jdk1.4

    hi
    i want to know the details about Box & Box.Filler classes in JDK1.4.0 version. can anyone will tel me the place where i will find info.
    i am interested in few code samples also.
    reply me soon.
    thankx in advance

    Hi Kodandarami,
                           I had done like that only see here is the code below.here L1 L2 L3 and L4  are paragraph left Justified item's.
    so do u think is ther anything wrong with the code Now my doubt is what shall i do to get the Columns Values in staright even if there is not value for some of their previous columns?
    =    -
    L1   Itm,,Material,,Mat.Desc,,             Batch,,  SLoc,,  Stor.bin        
    /*   Stock type                                                             
    L3                                 ,,              Counted qty.,,Un         
    L    -
    =    -
    /E   POS_BELZEILE2                                                         
    /:   PROTECT                                                               
    /:   BOX WIDTH '5.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 6                
    L4   &ISEG-ZEILI&,,&ISEG-MATNR+0(5)&,,&MABDR-MAKTX&,,&ISEG-CHARG&,,        
    =    ,,&ISEG-LGORT&,,&MABDR-LGPBE&                                         
    /*   ,&T064B-BTEXT&                                                        
    L3        ,,              _______________,,&ISEG-ERFME&                    
    /:   ENDPROTECT                                                            
    /E   POS_ENDPAGE                                                           
    Thanks,
    Gopi.

  • How to obtain instance of Image-Class under JDK1.1

    Hi!
    I got the following problem:
    I want to draw an image (thus drawing on the Grafics-
    Object I got from the Image-Object) and then save
    it to a file via a GifEncoder (needs the Image-Object).
    I don't find an Implementation of the Image-Class
    under JDK1.1. Can I just take the Image-Object
    of a Window/Component? I know there's
    BufferedImage, but unfortunately not in JDK1.1.
    Who can give me a hint on this?
    Valentin

    See Component.createImage(int width, int height).
    You can draw on it using getGraphics as usual, and it's been in since JDK 1.0. :-)

  • Compiling classes with JDK1.5 instead of 1.4

    When compiling this perfectly working piece of code under SJSC2EA2:
    private double eval(double t, int... p) {
    return ( p[0] * Math.pow(1-t, 3) +
    3 * p[1] * Math.pow(1-t, 2) * t +
    3 * p[2] * (1-t) * Math.pow(t, 2) +
    p[3] * Math.pow(t, 3));
    I get this error message (between the dashed lines) from the compiler:
    init:
    deps-jar:
    Compiling 2 source files to C:\Documents and Settings\mohsen madi\Desktop\sjstudio8\bezierAndPostscript\build\classes
    C:\Documents and Settings\Desktop\sjstudio8\bezierAndPostscript\src\BezPSNoComments.java:227: variable-arity methods are not supported in -source 1.4
    (try -source 1.5 to enable variable-arity methods)
    private double eval(double t, int... p) {
    C:\Documents and Settings\Desktop\sjstudio8\bezierAndPostscript\src\BezierPostScript.java:316: variable-arity methods are not supported in -source 1.4
    (try -source 1.5 to enable variable-arity methods)
    private double eval(double t, int... p) {
    2 errors
    BUILD FAILED (total time: 0 seconds)
    Of course, I right-clicked my project, selected proprties, and saw that:
    - in "Libraries", the Java Platform field is set to JDK1.5 (Default)
    - in "Build->Compiling", I added the "-source 1.5" in Additional Compiler Options, and
    - in "Run", I added "-source 1.5" at the VM Options field
    But non of that worked for me!
    Apparently, one would get the same message any time one uses a Java 5 feature like the "variable-length argument list" above or the "enhanced for loop".
    How can I make my project be compiled by JDK 1.5 to make benefit of the Java 5.0 features and not have it go to J2EE 1.4 apparently or wherever it goes?
    Thanks,
    Mohsen Madi

    YOu might want to post this on the Creator 2 EA 2 forum instead.
    Just sign on here like you did to download it and post it in the fourm: https://feedbackprograms.sun.com/login.html?ref=%2Fhome%2Ehtml%3F

  • Cant complie "anonymous inner class" on JDK1.4

    public Enumeration enumerator()
    return new Enumeration()
    int currentItem = items.size() - 1;
    public boolean hasMoreElements() {
    return (currentItem >= 0);
    error: cant resolve symbol
    help me! thanx u very much

    Since Enumeration is an interface, the anonymous inner class needs to implement both functions.
    public Enumeration enumerator()
      return new Enumeration()
         int currentItem = items.size() - 1;
         public boolean hasMoreElements()
            return (currentItem >= 0);
         public Object nextElement()
            return items.elementAt(currentItem--);
    }I assume that items is a member field of the class containing this method. Since I don't know what it is , the elementAt is only a guess.

  • How to create Java extension classes in NWDI

    Hi !
    I am trying to follow some 'How-to' guides to create a bespoke Java Action.
    I have -
    created a new project under sap.com_SAP-SHRWEB_1 - crm/home/shr/ext
    imported the bespoke Java action into folder src/packages in sap.com_SAP_SHRWEB_1
    However, when I try to build, I get the following error -
    DC Model check:
       All used DCs are available locally
       ERROR: Check for used DCs failed: Cannot build because used component is broken: sap.com/crm/isa/web/b2c( sap.com_SAP-SHRWEB_1).
       Build failed with errors.
    Could someone help me out please ?
    Regards,
    Ashok.
    Edited by: Ashok on Oct 27, 2009 3:54 PM
    Hi !
    After having read the thread - Build Error - I've added the crm/home/shr/ext (assembly) under Used DC . But now I am getting the following error - ERROR: crm/home/shr/ext: Build failed for sap.com/crm/home/shr/ext(sap.com_SAP-SHRWEB_1) in variant "default": Illegal component usage: compartment "sap.com_SAP-SHRWEB_1" does not use compartment "sap.com_SAP-JEE_1" of used DC "sap.com/com.sap.tc.Logging"
    Can anyone help ?
    Best regards,
    Ashok.

    Hi Sathish,
    Thanks for your reply. On detailed analyses, we found that some objects were incorrect in the SLD. They have since been corrected and the DC synced again.
    To analyse everything, we have decided to take small steps rather than large leaps. We have now added some small bit of Java code but the build is erroring due to not being able to find com.sap.isa.backend.r3.* jar file. Where can I find this .jar file ? We are using ERP E-Commerce.
    Best regards,
    Ashok.
    Edited by: Ashok on Oct 28, 2009 5:53 PM
    Hi !
    I found the _com.sap.isa.backend.r3.*  file in sap.comcrmisaisacorer3assembly. However, even after adding that jar file onto the Java buildpath of 'crmhomeshrextsap.com', build is failing complaining about the same .jar file. The .jar file doesn't see to be added onto the buildpath during the actual build. Am I missing anything ?
    Regards,
    Ashok.

  • Why not add a scale for accessing both scaleX and scaleY (class extensions in as3?)

    I've considered and am suggesting there be a scale for both scaleX and scaleY (via a setter & getter function)
    I think that one might get confused trying to get a value out of scale if scaleX and scaleY are different, but...
    You could throw an error when using a variable scale (getter only) if they (scaleX&scaleY) are different, and return the value if they are the same.
    It could throw more a warning and return the scaleX or scaleY or an average, and or possible have a policy (although again I can see this may seem potentially more confusing.)
    I remember with ObjectiveC you could/can create a class extension that would extend a class that already exists pervasively like String.
    This way you could alter functionality like this where all onjects have inheritend from a DisplayObject or whereever scaleX & scaleY are. Subclass as an Extension Class this deep lying class and add that kind of ability without needing to do it to all of your higher level classes (or other such tricks String Utility Classes etc.), which as I recall existed in ObjectiveC (and other langauges) no doubt because it was simply impossible to achieve the same effect any other way.
    Is there such a way in AS3 to extend a class? Is it impossible for some reason?
    May appologies if I've got the terminalogy wrong, please clarify if I'm searching for the wrong keyword on this thanks.
    Anyway I still think putting something like
    myCircle.scaleX *= 0.9;
    myCircle.scaleY *= 0.9;
    or
    myCircle.scaleY = myCircle.scaleX *= 0.9;
    or
    myCircle.scaleX *= 0.9;
    myCircle.scaleY = myCircle.scaleX;
    is not as nice clean as
    myCircle.scale *= 0.9;
    would be. I think my thoughts on explaination for why and a simple possible selection of solutions (throw catchable/discargable errors/warning or alterable policies).

    TCP has retry logic. The timeout period varies by OS and configuration. TCP will typically retry three times and wait for the timeout period to expire before reporting an error. I do not believe any OS will fail in less than two minutes with the standard timeout and some systems go to 5 minutes.

  • Problem with download extension.

    Hi,
    I've tried to run the java tutorial download extension's example but without success.
    I've compiled the two java files and put the class files into their respective jar file.
    - The two jar files are in the same directory (AreaApplet.jar and RectangleArea.jar).
    - The AreaApplet.jar's manifest is :
    Manifest-Version: 1.0
    Created-By: 1.3.1_01 (Sun Microsystems Inc.)
    Class-Path: RectangleArea.jar
    - The RectangleArea.jar's manifest is :
    Manifest-Version: 1.0
    Created-By: 1.3.1_01 (Sun Microsystems Inc.)
    - The applet tag in the html file is :
    <APPLET NAME=test
         CODE=AreaApplet.class
         ARCHIVE=AreaApplet.jar
         WIDTH=100 HEIGHT=100>
    </APPLET>
    All seems to be good but I have a ClassNotFoundException with the RectangleArea class.
    Please, does anyone see what's wrong ?

    Hi,
    I can give you the steps I follow.
    In an empty directory (all the files are in the same) :
    - I put the two classes in the files : RectangleArea.java and AreaApplet.java
    - I compile the two classes with this command line :
    c:\jdk1.3.1_01\bin\javac AreaApplet.java RectangleArea.java
    - I make the jar files with these command lines :
    c:\jdk1.3.1_01\bin\jar cf RectangleArea.jar RectangleArea.class
    c:\jdk1.3.1_01\bin\jar cmf manifest.txt AreaApplet.jar AreaApplet.class
    manifext.txt :
    Class-Path: RectangleArea.jar <Enter>
    - I make a basic html file with this applet tag :
    <applet name=test code=AreaApplet.class archive=AreaApplet.jar width=200 height=100>
    </applet>
    - I delete these files : RectangleArea.class and AreaApplet.class
    - I run my html file and I have : ClassNotFoundException : RectangleArea
    But it runs correctly with the applet viewer :
    c:\jdk1.3.1_01\bin\java -verbose sun.applet.AppletViewer test.html
    Is it possible that a wrong system CLASSPATH can cause this error ?
    Thank you for your help.

  • Java 5.0 does not recognize wrapped Class-Path in Manifest.MF of .jar file?

    Java: build 1.5.0_05-b05
    Ant: 1.6.2
    I use Ant <jar> task to create a standalone application in a .jar file. I have a very long "Class-Path" in the Manifest.MF file. The long Class-Path is wrapped at every 70th character by the <jar> task. I cannot run "java -jar <the jar file>", because Java runtime cannot find classes.
    I found the following Q&A from ANT's FAQ page,
    Q: Whenever I use the Ant jar or manifest related tasks, long lines in my manifest are wrapped at 70 characters and the resulting jar does not work in my application server. Why does Ant do this?
    A: Ant implements the Java Jar file specification. Please refer to the notes section where it discusses the maximum allowable length of a line and the concept of continuation characters.
    If a jar file produced by Ant does not work in your appserver, and that failure is due to the wrapped manifest, then you need to consult your appserver provider, as it is a bug in their appserver. Far more likely, however, is a problem in your specification of your classpath. It is not Ant's wrapping of your classpath that is the problem.
    Do not raise a bug about this issue until you have checked to ensure that the problem is not due to your classpath specification.
    Any idea?

    "will be searched ALSO."...
    From: http://java.sun.com/docs/books/tutorial/ext/basics/load.html
    Understanding Extension Class Loading
    The extension framework makes use of the new class-loading mechanism in the JavaTM 1.2 platform. When the runtime environment needs to load a new class for an application, it looks for the class in the following locations, in order:
    1. Bootstrap classes: the runtime classes in rt.jar and internationalization classes in i18n.jar.
    2. Installed extensions: classes in JAR files in the lib/ext directory of the JRE.
    3. The class path: classes, including classes in JAR files, on paths specified by the system property java.class.path. If a JAR file on the class path has a manifest with the Class-Path attribute, JAR files specified by the Class-Path attribute will be searched also.
    [snip]

Maybe you are looking for

  • How can I transfer a group of songs from my computer to my iPhone?

    I'm trying to put a playlist from my computer on to my phone. How can I do this.

  • How do I see NEXT month in the calendar?

    I've tried everything I can think of but I'm still stuck in April. I just wanted to see what day Cinco de Mayo falls on and I had to actually take out my phone. The horror.

  • Error in Adobe Interactive forms

    Hi All, I am implementing MSS/ESS. I created an Adobe Interactive form in my View and mapped it with the corresponding context. I binded the interactive form(in the Right Click->Interactive Form->Edit) also with the corresponding context. But when I

  • Restrictions/ Usage/ Validity Area/ Validity Area Category for DG

    Hi Experts, Following situation: At the moment we have the dangerous goods management in EH&S active. So we use the substance to build our "UN-Numbers" and we use the Classification "CL***" to build the dangerous goods classification. For each legal

  • Draw tables?

    Post Author: mike7510uk CA Forum: General is there any way in crystal x1 to draw tables?I have a timetable report to do and it seems very primitive that i have to draw all the lines