Why is the Sun JavaBeans Tutorials so outdated?

The JavaBeans tutorial at http://java.sun.com/docs/books/tutorial/javabeans/ is so outdated, it is ridiculous.
Where is a *good*, or I should say *useful*, JavaBeans tutorial that goes through the beginnings and advanced topics?
Thanks,
--Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

The JavaBeans Tutorial is outdated, because Sun had not JavaBeans responcible engineer for two years. Now we are fixing bugs, implementing RFE and rerefctoring documentation (inc. tutorials). We'll update documentation before JDK 6 release.

Similar Messages

  • Why is the sun favicon wrong in IE?

    Some people don't change the default favicon on sun's web server after installation and IE blurs changes it somehow.
    Any one know why this is happening? You can see [examples of the distorted sun favicon|http://www.bergenjerseyforeclosures.com/blog/info/entry/sun_logo_distorted_in_ie] .

    Looks like MSIE has a rendering bug when dealing with favicons.
    The default favicon presented by WS6.1 (the one in the example you link to) contains a 16x16 (4-bit, indexed) and a 32x32 (8-bit, non-indexed) favicon, both with an alpha channel (I checked this by simply saving the favicon.ico to my desktop, and then opening the file with a graphics program). It looks as though MSIE is grabbing the 32x32 image and scaling it to 16x16 for use in the tabs and address bar rather than using the "native" 16x16. Their scaling algorithm is producing mud.

  • CharSequenceDemo in the Sun Java Tutorials

    Having spent the last 30 years doing Prime Information/Infobasic, I'm trying to get my head around the basics of Java.
    I need help with interpreting what is going on in this method, from CharSequenceDemo.java: (my line numbers)
    1. public CharSequence subSequence(int start, int end) {
    2. if (start < 0) {
    3. throw new StringIndexOutOfBoundsException(start);
    4. }
    5. if (end > s.length()) {
    6. throw new StringIndexOutOfBoundsException(end);
    7. }
    8. if (start > end) {
    9. throw new StringIndexOutOfBoundsException(start - end);
    10. }
    11. StringBuilder sub =
    12. new StringBuilder(s.subSequence(fromEnd(end), fromEnd(start)));
    13. return sub.reverse();
    14. }
    To my, perhaps old-fashioned, brain, it looks as though line 12 invokes the method containing it, since string s is defined in main() as a a CharSequenceDemo type, and subSequence is this very same method within its instantiating class (CharSequenceDemo), and is therefore a recursive method call. s.subSequence(fromEnd(end), fromEnd(start)) (in line 12) is a parameter which must be evaluated for use in the StringBuilder constructor, surely? But when I run the program with debug statements, its obvious that there's nothing recursive about it.
    Please can someone help sort out my misunderstanding of what's going on here?
    The whole class is:
    // CharSequenceDemo presents a String value -- backwards.
    public class CharSequenceDemo implements CharSequence {
    private String s;
    public CharSequenceDemo(String s) {
    //It would be much more efficient to just reverse the string
    //in the constructor. But a lot less fun!
    this.s = s;
    //If the string is backwards, the end is the beginning!
    private int fromEnd(int i) {
    return s.length() - 1 - i;
    public char charAt(int i) {
    if ((i < 0) || (i >= s.length())) {
    throw new StringIndexOutOfBoundsException(i);
    return s.charAt(fromEnd(i));
    public int length() {
    return s.length();
    public CharSequence subSequence(int start, int end) {
    if (start < 0) {
    throw new StringIndexOutOfBoundsException(start);
    if (end > s.length()) {
    throw new StringIndexOutOfBoundsException(end);
    if (start > end) {
    throw new StringIndexOutOfBoundsException(start - end);
    StringBuilder sub =
    new StringBuilder(s.subSequence(fromEnd(end), fromEnd(start)));
    return sub.reverse();
    public String toString() {
    StringBuilder s = new StringBuilder(this.s);
    return s.reverse().toString();
    //Random int from 0 to max.
    private static int random(int max) {
    return (int) Math.round(Math.random() * max + 0.5);
    public static void main(String[] args) {
    CharSequenceDemo s =
    new CharSequenceDemo("Write a class that implements the CharSequence interface found in the java.lang package.");
    //exercise charAt() and length()
    for (int i = 0; i < s.length(); i++) {
    System.out.println(s.charAt(i));
    //exercise subSequence() and length();
    int start = random(s.length() - 1);
    int end = random(s.length() - 1 - start) + start;
    System.out.println(s.subSequence(start, end));
    //exercise toString();
    System.out.println(s);
    }

    It's hard to read code that isn't formatted. Please press the code button and paste the code between the generated tags next time you post code.
    It looks like there one subSequence method in the CharSequenceDemo class, but there's also a subSequence method in the String class.
    s.subSequence(....)"s" is a reference to a String, so that invokes subSequence in the String class.
    Kaj

  • Why is com.sun.config.ConfigureListener the frist one to be executed when T

    In JSF1.1 guessNumber demo
    The web.xml does not define a ServletContextListener.
    why is com.sun.config.ConfigureListener the frist one to be executed when Tomcat begins running?
    web.xml:
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>JavaServer Faces Guess Number Sample Application</display-name>
    <description>
    JavaServer Faces Guess Number Sample Application
    </description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    <description>
    Set this flag to true if you want the JavaServer Faces
    Reference Implementation to validate the XML in your
    faces-config.xml resources against the DTD. Default
    value is false.
    </description>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>true</param-value>
    <description>
    Set this flag to true if you want the JavaServer Faces
    Reference Implementation to verify that all of the application
    objects you have configured (components, converters,
    renderers, and validators) can be successfully created.
    Default value is false.
    </description>
    </context-param>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup> 1 </load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/guess/*</url-pattern>
    </servlet-mapping>
    <security-constraint>
    <!-- This security constraint illustrates how JSP pages
    with JavaServer Faces components can be protected from
    being accessed without going through the Faces Servlet.
    The security constraint ensures that the Faces Servlet will
    be used or the pages will not be processed. -->
    <display-name>Restrict access to JSP pages</display-name>
    <web-resource-collection>
    <web-resource-name>
    Restrict access to JSP pages
    </web-resource-name>
    <url-pattern>/greeting.jsp</url-pattern>
    <url-pattern>/response.jsp</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <description>
    With no roles defined, no access granted
    </description>
    </auth-constraint>
    </security-constraint>
    </web-app>
    com.sun.config.ConfigureListener is the frist one to be executed when Tomcat begins running?
    why?
    Thread: main
    <init>() : 98, com.sun.faces.application.ApplicationAssociate, ApplicationAssociate.java
    <init>() : 98, com.sun.faces.application.ApplicationImpl, ApplicationImpl.java
    getApplication() : 74, com.sun.faces.application.ApplicationFactoryImpl, ApplicationFactoryImpl.java
    application() : 384, com.sun.faces.config.ConfigureListener, ConfigureListener.java
    configure() : 427, com.sun.faces.config.ConfigureListener, ConfigureListener.java
    configure() : 402, com.sun.faces.config.ConfigureListener, ConfigureListener.java
    contextInitialized() : 332, com.sun.faces.config.ConfigureListener, ConfigureListener.java
    listenerStart() : 3669, org.apache.catalina.core.StandardContext, StandardContext.java
    start() : 4104, org.apache.catalina.core.StandardContext, StandardContext.java
    start() : 1012, org.apache.catalina.core.ContainerBase, ContainerBase.java
    start() : 718, org.apache.catalina.core.StandardHost, StandardHost.java
    start() : 1012, org.apache.catalina.core.ContainerBase, ContainerBase.java
    start() : 442, org.apache.catalina.core.StandardEngine, StandardEngine.java
    start() : 450, org.apache.catalina.core.StandardService, StandardService.java
    start() : 683, org.apache.catalina.core.StandardServer, StandardServer.java
    start() : 537, org.apache.catalina.startup.Catalina, Catalina.java
    invoke0() : -1, sun.reflect.NativeMethodAccessorImpl, NativeMethodAccessorImpl.java
    invoke() : 39, sun.reflect.NativeMethodAccessorImpl, NativeMethodAccessorImpl.java
    invoke() : 25, sun.reflect.DelegatingMethodAccessorImpl, DelegatingMethodAccessorImpl.java
    invoke() : 585, java.lang.reflect.Method, Method.java
    start() : 271, org.apache.catalina.startup.Bootstrap, Bootstrap.java
    main() : 409, org.apache.catalina.startup.Bootstrap, Bootstrap.java

    why is com.sun.config.ConfigureListener the frist one to be executed when Tomcat begins running(no config in web.xml)?

  • So, I just purchased, apple TV and the latest Mountain Lion 10.8.5. I can mirror my IPad and Iphone with no problems, so why is the icon not showing up on my top bar like all the youtube tutorials?

    why is the airplay icon not appearing in the top bad like all the tutorial videos?

    I assume that you did not check before buying, if you had you would have seen that your Mac is too old for Airplay Mirroring to work:
    Supported Macs
    AirPlay Mirroring in OS X Mountain Lion takes advantage of the hardware video encoding capabilities of 2nd and 3rd Generation Intel Core processors. Hardware video encoding allows AirPlay Mirroring to efficiently deliver high frame rates while maintaining optimal system performance. The following Mac models have processors that support AirPlay Mirroring:
    iMac (Mid 2011 or newer)
    Mac mini (Mid 2011 or newer)
    MacBook Air (Mid 2011 or newer)
    MacBook Pro (Early 2011 or newer)
    And if you bought ML solely for that function you should remove it from your machine and get a refund.

  • Every time I launch the browser the popup blocker option is unchecked. Why does the pop up blocker keep getting unchecked every time browser is launched?

    Every time I launch the browser the popup blocker option is unchecked. Why does the pop up blocker keep getting unchecked every time browser is launched?

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Java Plug-in 1.6.0_05 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Warning!  Do not buy the Sun Solution CD!

    This is for people who just want to update their browser to the latest version. When you go to the download page, do not get fooled into buying it on a CD. It is a lie! The Java 5.0 is NOT on the CD only a link to the download page, which is a rotten thing to do to people!
    The CD is nothing but advertisements.
    You think they could have squeazed the Java 5.0 update on the CD, but that would have been too logical.
    I bought the Sun Solution CD because I am a dial-up user and did not want to download that large file size. Right there on the download page an offer is made by Sun to order the Java software on a CD instead. So I bought the CD for this update and could not find it anywhere on the CD. I contacted EVERY department of Sun to help me find where it is on the CD. No one can answer me. I finally found some instructions on the website on installing from the CD. ALL IT HAS IS A LINK TO DOWNLOAD IT FROM THE WEBSITE!!! That is a terrible thing to do to people. WHY IS IT NOT ON THE CD? That is false advertisement and an out right LIE!

    It's not unheard of that the carrier would need more information to complete a number port from another carrier. They may have needed some information in order to put it through, such as your old account number. This should have been done automatically when you ordered the phone through Best Buy, but sometimes it does need to be done manually.
    As for the rest of your situation, I have no knowledge of those events, but you forgot a fourth possibility: there was no relation between ordering a phone from Best Buy and receiving unsolicited phone calls.
    Dan K. | Mobile Specialty Stores
    Any opinions expressed in this post are those of
    the author and do not represent Best Buy Co., Inc.

  • Why is the exported file size so small?

    Hello!
    I just spent the last few days watching about three hours of Adobe Premiere Pro CS3 tutorials and almost all five hours of the Adobe Encore CS3 tutorials on Lynda.com with the awesome 30-day trial that I received for purchasing these two programs. I pretty much got to the end of authoring my first DVD with Encore, but the file size is so small that it doesn't even take up the full size of a single-layer DVD and I was expecting to be using double-layer DVDs.
    Here's why I didn't post this in the Encore discussion: My two file sizes are 10GB and 8GB. I have them both as single timelines in Premiere Pro and exported them each to Encore. But why does the file size decrease to just over 1GB for each of the files in the Export to Encore option in Premiere Pro CS3?
    I begin a brand new project in Premiere Pro, import the 10GB .avi, and then do the Export to Encore with "DVD Double Layer", "Author with Menus", "Entire Sequence", "NTSC High Quality" with the quality level switched from 4 to 5, Video Codec = "MainConcept MPEG Video", 720x480, 29.97 drop frame, Lower, Standard 4:3, VBR, 2 Pass, the default bitrate settings of Minimum Bit Rate = 1.5, Target Bit Rate = 4, Maximum Bit Rate = 7, and then whatever GOP Settings are set to M Frames = 3 and N Frames = 15. Without any video editing at all, it estimates the file size at 1.7GB.
    If my goal is to get the file sizes closer to 4GB and 3.5GB, can I fiddle with any of these settings without screwing up the ability for all DVD players to read my disc? I thought it would probably be ideal to have them closer to 7GB and 6GB, and then let Encore downgrade the quality to fit all of the content on the DVD with very little room to spare. But why is there no default to keep the video resolution at the absolute best possible?
    Should I be exporting to a Movie instead of exporting to Encore?
    Thanks!
    Matt

    Patrick,
    After I installed and registered my software, I received this email twice for both Premiere Pro and Encore, and I would imagine that it would only make sense to receive this same type of bonus for Production Premium:
    "Thanks for registering - claim your benefit today.
    Adobe Systems Incorporated [[email protected]]
    Thank you for purchasing and registering your copy of Adobe Premiere Pro CS3. You now have a wealth of creative tools at your disposal. While taking advantage of online and printed resources we also encourage you to select a complimentary benefit. At Adobe we want you to get the most out of your software it's our commitment to you.
    Check out Adobe Bridge Home*, a feature of Adobe Bridge CS3.
    Get access to product tips, training videos, product news, and other creative resources all in one place. Simply click the Adobe Bridge icon within any application to get started.
    You got it, now get more.
    Hypatia Sans Font:
    Developed for customers who register their Adobe Creative Suite® 3 product, these unique and stylish fonts were inspired by the 1920s and '30s. Receive Adobe's new type family (a US$169 value) for free.
    Lynda.com Training:
    Take advantage of a free 30-day Online Training Library® subscription, including in-depth Adobe training in easy-to-use video format.
    Classroom in a Book® Series:
    Deepen your skills with this series of self-paced training offering step-by-step explanations, time-saving techniques and insider tips. Receive up to a 40% discount on Adobe Press' Classroom in a Book series."
    Thanks for the tip, Steven! I will try that now.
    - Matt

  • Welcome to this forum on "Core J2EE Patterns" by the Sun Java Center

    Welcome to this forum on Core J2EE Patterns by the Sun Java Center!
    CONTEXT:
    This forum is intended for discussing the patterns from the Sun Java Center J2EE Pattern Catalog and other topics discussed in our book, Core J2EE Patterns.
    We, the authors of the book, welcome you to this forum.
    WHO WE ARE:
    We are Enterprise Java Architects from the Sun Java Center (SJC), which is the Java consulting organization of Sun Microsystems. We are a world-wide group of architects focusing on all consulting related to Java technologies.
    Visit our web-site for more information on SJC:
    http://www.sun.com/service/sunps/jdc/index.html
    BACKGROUND:
    Over the last few years, we at SJC have worked with our customers in architecting, designing, and implementing solutions on the J2EE platform. We have worked on documenting the J2EE patterns for over two years and released the patterns for public review in Beta form via the Java Developer Connection in May, 2001.
    The beta version of the patterns is available online as The Sun Java Center J2EE Pattern Catalog at:
    http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
    Subsequent to the release, we received great feedback and comments from hundreds of reviewers. We then worked towards incorporating the feedback into the pattern documentation. One of the common comments was about the lack of code examples in the online documentation. The latest pattern documentation provides many code examples and incorporates all the feedback received so far.
    BOOK INFORMATION:
    Core J2EE Patterns, the book, was released at JavaOne 2001 during June 4-9, and will be available in stores around the end of June 2001.
    The book includes the complete updated Sun Java Center J2EE Pattern Catalog with 15 patterns covering these J2EE technologies: Java Server Pages (JSP), Servlets, Enterprise JavaBeans (EJB), and Java Message Service (JMS). In addition to the J2EE Pattern Catalog, the book also provides other chapters that discuss design considerations,
    bad practices, and J2EE Refactorings. Example code is included for all patterns and strategies.
    If you wish to view the complete table of contents or order the book, please visit one of the following online bookstores:
    Fatbrain.com: http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=0130648841
    Amazon.com: http://www.amazon.com/exec/obidos/ASIN/0130648841
    COMMUNITY:
    The online community for discussing the patterns included in our book Core J2EE Patterns has grown over the past year, since our first presentation at JavaOne 2000. This community is supported by our LISTSERV and is available for public participation at:
    http://archives.java.sun.com/j2eepatterns-interest.html
    You can view the past discussions on this list at the above URL.
    FORUM LOGISTICS:
    John and Dan are on the east coast and Deepak is on the west coast. We will be tuned into the forum and answering the messages periodically between June 19 and June 25, 2001. If you want to discuss the J2EE Patterns after June 25, you are invited to join the aforementioned J2EE Patterns Interest list.
    FORUM DISCLAIMER:
    All responses to questions posed in this News Group are given on an "as is" basis. We believe the solutions or explanations given here are correct, but do not guarantee that responses will be complete, without error and/or work for all platforms and system configurations.
    The forum is now open! Let the discussion begin...
    John Crupi - Chief Java Architect
    Dan Malks - Enterprise Java Architect
    Deepak Alur - Enterprise Java Architect
    ---Authors of Core J2EE Patterns

    Rajakannan,
    There are numerous ways to implement a templating mechanism in support of the composite view pattern, included in the catalog as a presentation-tier pattern.
    The goal is to avoid simply having monolithic views with all the formatting code embedded directly withing the view. If we have common subviews that are shared across several or more views then we end up with a copy-and-paste type of reuse...undesirable. So, modularity is one issue. Another major force when considering the Composite View pattern is that we may want to manage the layout of our pages and the content of our pages separately. We may have some logical regions defined, such as a search panel and main body, and a subview that plugs into those logical regions that map to a physical page (ie: x.jsp and y.jsp). We may then want to vary one independent of the other...ie: we may want to modify the layout of the page w/o changing the content and we may want to vary the content w/o touching the layout.
    There are a number of implementation strategies that can be used to implement the Composite View pattern, ranging from relatively simple to much more sophisticated. We describe each in our book and include source code examples.
    The example in the book that allows for supporting all the issues described above is implemented using the "Custom Tag View Management Strategy" and uses a tag library written by David Geary, that supports the Composite View pattern. The library is also included in David's new book, Adv. JavaServer Pages, Prentice Hall, 2001.
    Again, it's simply one implementation and, as you mention, there are many different ways to implement this strategy.
    Thanks for your question,
    Dan

  • Why is the static method in the superclass more specific?

    Why is the static method in the superclass more specific than the static method in the subclass? After all, int is a subtype of long, but Base is not a subtype of Sub.
    class Base {
        static void m(int i){ System.out.println("Base"); }
    class Sub extends Base {
        static void m(long l){ System.out.println("Sub"); }
    class Test {
        public static void main(String[] args) {
            int i = 10;
            Sub sub = new Sub();
            sub.m(i);
    }The first example compiles without error.
    Output: Base
    class Base {
        void m(int i){ System.out.println("Base"); }
    class Sub extends Base {
        void m(long l){ System.out.println("Sub"); }
    class Test {
        public static void main(String[] args) {
            int i = 10;
            Sub sub = new Sub();
            sub.m(i);
    }In the second example, both instance methods are applicable and accessible (JLS 15.12.2.1), but neither is more specific (JLS 12.2.2), so we get a compiler error as expected.
    : reference to m is ambiguous,
    both method m(int) in Base and method m(long) in Sub match
    sub.m(i);
    ^
    1 error
    Why don�t we get a compiler error for the static methods?

    Thank you for your ideas.
    ====
    OUNOS:
    I don't get Sylvia's response. This is about static methods, what are instances are needed for??Yes, the question is about static methods. I included the example with non-static methods for a comparison. According to JLS 15.12.2, both examples should cause a compiler error.
    And why you create a Sub object to call the method, and dont just call "Sub.m(..)"Yes, it would make more sense to call Sub.m(i). Let�s change it. Now, I ask the same question. Why is there no compiler error?
    ====
    DANPERKINS:
    The error in your logic stems from calling static methods on instances, as ounos pointed out. Solution: don't. You won't see any more ambiguities.A static member of a class may also be accessed via a reference to an object of that class. It is not an error. (The value of the reference can even be null.)
    Originally I was looking only at the case with non-static methods. Therefore, I used sub.m(i). Once I understood that case, I added the static modifiers. When posting my question, I wish I had also changed sub.m to Sub.m. Either way, according to JLS 15.12.2, a compiler error should occur due to ambiguous method invocation.
    ====
    SILVIAE:
    The question was not about finding an alternative approach that doesn't throw up an ambiguity. The question related to why, in the particular situations described, the ambiguity arises in only one of them.
    Yes.
    Proposing an alternative approach doesn't address the question.
    Yes.
    ====
    If anyone is really interested, here is some background to the question. Some people studying for a Sun Java certificate were investigating some subtleties of method invocations:
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=24&t=019182
    I remember seeing the non-static case discussed in this forum once before in a more practical context. jschell probably knows the link.

  • Is there a link for older sun java tutorials?

    Is there any link or archive of older sun java tutorials? For instance, I saw in the Swing tutorial a section on concurrency in Swing, but it references SwingWorker which is only in java 6 & I use java 5.
    Thanks.

    prometheuzz wrote:
    Sun's tutorials from 1999: [http://web.archive.org/web/19990219162022/http://java.sun.com/docs/books/tutorial/]
    or
    Other years: [http://web.archive.org/web/*/http://java.sun.com/docs/books/tutorial/]
    Thanks!!

  • Xletview: why not use sun's javaTV source code directly ?

    xletview : one emulator for viewing MHP Xlets on a PC;
    I see many difference from sun's code about the part of javaTV.
    Why the author Martin Sveden need to rewrite them and not use sun's javaTV source code directly ?
    Thank you for your any answer.
    Sorry for my horrible english.

    XleView is a fine effort, but it has its limitations. I tried using it for the GunBunny demo available in the JavaME SDK 3.0 Eary Access available in
    http://java.sun.com/javame/downloads/sdk30ea.jsp
    and I encountered some of thost limitations. What Sveden does it several tricky manipulations in a classloader for the Xlet. In particular, he translates bytecode as he loads the Xlet's classes, changing some class names, such as changing
    java.awt.Toolkit
    tto
    xjava.awt.Toolkit
    This works up to a point. This version of Toolkit usually just turns around calls java.awt.Toolkit's corresponding routine, but he deliberately he does not implement the ubiquitous
    public Image createImage(URL url)
    When I downloaded his source and tried adding ths into his code, I then encountered at runtime
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:97)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    I think that this is some optimization within J2SE where they do not wait for the image to load and do the fetching in a separate thread. I do not know if there is some way to force the Sun's JVM to disable this optimization and I have not investigated furher, but I did email Svenden. I noticed that the current version of XleTView is 0.3.6 which is dated June 2004 and the web site http://www.xletview.org/ has had not news since 2005 .
    I note that Svenden provides an elegant user interface but I advise you not try to learn the API's from his classes: he makes no effort to keep his implementation separate from the API standards so, for instance, his version of HScene is
    package org.havi.ui;
    public class HScene extends Container
    implements HComponentOrdering, ImageObserver, MenuContainer, Serializable {
    whereas the real standard is
    public class HScene extends Container
    implements HComponentOrdering {
    I hate to critize such a fine effort, but it is best to keep an imlementation separate from the public API.
    I agree that having a lightweight, simple and Java feature-complete Xlet viewer running would be very helpful, especially if BD-J gains much popularity. I have found trying to work with the vendor players described at
    http://wiki.java.net/bin/view/Mobileandembedded/Blu-RayDiscHelloWorld
    to be frustrating. I tried all four mentioned and I have gotten none of them to work for me yet. These are huge downloads and the "Intro Version" of Arcsoft pointed to at the SDK 3.0 Early Access page
    http://www.arcsoft.com/products/totalmediatheatre/
    just gives a "File not found" HTML page. This forum post mentions that perhaps it was recently taken down?
    http://www.arcsoft.com/forum/forum_posts.asp?TID=1084
    I have already emailed Michael Downs of Arcsoft since he is mentioned here:
    http://wiki.java.net/bin/view/Mobileandembedded/BDJPCPlayers
    What did work for me was to take Sun's JavaTV 1.1 Reference Implementation and PowerDVD's BDJ.jar and hack/fix a few classes to get GunBunny to work within the RI's RunXlet program. This is not trivial but I will will describe:
    Download the JavaME 3.0 SDK EA and then download the correct version of PowerDVD that the SDK page points to:
    http://www.brothersoft.com/powerdvd-download-50794.html
    Download the RI binary and source of Java TV API 1.1
    http://java.sun.com/javame/technology/javatv/index.jsp
    Since I am too lazy to use anything but the latest 1.6 JRE as a runtime, I have to fix
    com.sun.tv.media.util.MediaThread
    to comment out its stop() method. This is becase stop() was deprecated and made final in J2SE 1.5
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#stop()
    http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html
    Next, I had to mae a change to Sun's JavaTV implementation to keep the GunBunny demo happy by providing a ServiceContext. The RunXlet program calls SIEmulator, but that environment does not provide a ServiceContex, so I added one back in:
    com.sun.tv.receiver.SIEmulator
    private static ServiceContext svcctx = null;
    Add before every call to new AppSignalEvent() and add the svcctx as the second-to-last argument:
    if(svcctx == null){ try { svcctx = new com.sun.tv.ServiceContextImpl(); }catch (Exception e){ e.printStackTrace(); } }
    I then had to hack a few PowerDVD classes, which is evil of me. First, I had to build an empty class by the name of
    sun.util.BDJPlugin
    becuase some PowerDVD class extends it but it is not in its BDJ.jar and then I had to reverse-compile (evil!) and modify one of their internal classes to avoid a dependency on their native methods. What I ended up with was a hacked version of com.cl.bdj.helper.CUtil to avoid the native methods which access the registry where they query for registry settings but also provide a default value (which I return).
    com.cl.bdj.helper.CUtil
    private static String pGetRegistryString(long i ,String string ,String string3) {
    return string3;
    private static int pGetRegistryInt(long i ,String string ,int j) {
    return j;
    The last thing I had to do was to change com.hdccookbook.gunbunny.BaseXlet, to use the JavaTV container rather than the org.havi one:
    import javax.tv.graphics.TVContainer;
    import java.awt.Container;
    change
    // protected HScene scene;
    protected Container scene;
    public final void run() {
    // waitForPresenting();
    // scene = HSceneFactory.getInstance().getDefaultHScene();
    scene = TVContainer.getRootContainer(xletContext);
    In order to having working keys, I had to add the KeyListener interface to BaseXet and
    run(){
    addKeyListener(this);
    and then add a near duplicate of the org.dvb.event.UserEvent* stuff that is already there:
    public void keyPressed(KeyEvent e){
    switch(e.getKeyCode()){
    case KeyEvent.VK_0:
    case KeyEvent.VK_1:
    case KeyEvent.VK_2:
    case KeyEvent.VK_3:
    case KeyEvent.VK_4:
    case KeyEvent.VK_5:
    case KeyEvent.VK_6:
    case KeyEvent.VK_7:
    case KeyEvent.VK_8:
    case KeyEvent.VK_9:
    numberKeyPressed(e.getKeyCode() - KeyEvent.VK_0);
    break;
    case KeyEvent.VK_ENTER:
    enterKeyPressed();
    break;
    case KeyEvent.VK_LEFT:
    arrowLeftKeyPressed();
    break;
    case KeyEvent.VK_RIGHT:
    arrowRightPressed();
    break;
    case KeyEvent.VK_UP:
    arrowUpPressed();
    break;
    case KeyEvent.VK_DOWN:
    arrowDownPressed();
    break;
    public void keyReleased(KeyEvent e){
    // System.out.println("Released: e="+e+" code="+e.getKeyCode());
    public void keyTyped(KeyEvent e) {
    // System.out.println("Typed: e="+e+" code="+e.getKeyCode());
    It then comes up and functions, but the rendering is not very good. Again, this is complete hack. Running the Java TV 1.1 RI in a JRE 1.6 is not supported. If you try to run any of the other examples, you will discover that the XML parsing is broken in JRE 1.6 with this message:
    Parsing failed: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequence
    Exception: Invalid byte 1 of 1-byte UTF-8 sequence., file: lib\JavaTVSampleFile01.xml
    and you have to go and change the lines in
    lib\JavaTV.properties
    from
    ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    # ServiceFileHandler=SampleData_01
    to
    # ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    ServiceFileHandler=SampleData_01
    and build samples\db\SampleData_01.java and put it in your classpath along with all these other hacks.
    Nonetheless, if you want to develop a somewhat generic Xlet that uses some BD-J features, that is how you might do it. But the moment you exercise anything else in the vendor's BDJ.jar that simply doe snot work outside of their environment or invokes one of their native methods, you are again stuck.
    It would be nice if Sun would at least bother to update the JavaTV RI with the fixes I hae mentioned. Their "jmflite" implementation does not render perfecly but at least it would give the programmer something to work with without having to deal with an older JRE, etc.
    Andrew
    Edited by: AndrewMorrow on Oct 20, 2008 2:48 AM

  • Installation of Oracle VDI 3.4.1 fails at applying the Sun Ray patch

    Downloaded VDI 3.4.1 for Solaris, checked md5 OK against download page, attempted a freash installation rather than upgrade and it failed at applying the Sun Ray patch.
    Solaris 10 u9 x86 full installation with recommend patches (OK its a ESXi 64 bit virtual machine, but need to test before I try it on the real hardware)
    Fresh installation of Solaris & patches (automated via JET), which works fine for installing VDI 3.4
    VDI 3.4.1 fresh install
    unzip -q p14226229_34_Solaris86-64.zip
    cd vda_3.4.1_solaris_amd64
    + Installing Sun Ray Server...
    Error: There was a problem installing Sun Ray Software 5.3.1.0
    Check '/var/sadm/install/logs/vda-install.2012_07_26_15:46:10.log' for details.
    See the log file '/var/sadm/install/logs/vda-install.2012_07_26_15:46:10.log' for additional information.
    I check the log file and its failing to install patch 149156-01, looking at the patch log there is a message about attempting to install the same architecture and version of a package which is already installed, then a message from checkinstall "........<full patch to check install>/checkinstall: cannot open"
    So has anyone else actually downloaded and installed Oracle VDI 3.4.1 on Solaris 10 u9 x86 successfully?
    Paul

    OK went back to Oracle VDI 3.3.2 and it was still a problem on this machine. Turns out I made /software where the media is installed a ZFS partition with a quota of 5g (which hasn't hit a limit, its used less than 1g).
    So the real question is why Oracle VDI won't install from a ZFS partition?
    # This works fine!
    mkdir /software
    mkdir /software/vdi_332_Solaris86-64
    cp vdi_332_Solaris86-64.zip /software
    cd /software/vdi_332_Solaris86-64
    unzip -q ../vdi_332_Solaris86-64.zip
    cd /software/vdi_332_Solaris86-64/vda_3.3.2_solaris_amd64
    ./vda-install
    # This Fails !
    zfs create -o mountpoint=/software -o quota=5g rpool/software
    mkdir /software/vdi_332_Solaris86-64
    cp vdi_332_Solaris86-64.zip /software
    cd /software/vdi_332_Solaris86-64
    unzip -q ../vdi_332_Solaris86-64.zip
    cd /software/vdi_332_Solaris86-64/vda_3.3.2_solaris_amd64
    ./vda-install
    Root is a ZFS partition and unzip -q works fine (I summed all files in both structures and they are the same). There is something in the vda-install that breaks due to it being a separate ZFS partition.
    Paul

  • Why is the word palindrome not a palindrome?

    Why is the word palindrome not a palindrome?

    That's why : ( with thanks to Demetri Martin Link: [http://www.pastemagazine.com/articles/2009/02/demetri-martins-palindrome-poem.html] )
    Dammit Iu2019m mad.
    Evil is a deed as I live.
    God, am I reviled? I rise, my bed on a sun, I melt.
    To be not one man emanating is sad. I piss.
    Alas, it is so late. Who stops to help?
    Man, it is hot. Iu2019m in it. I tell.
    I am not a devil. I level u201CMad Dogu201D.
    Ah, say burning is, as a deified gulp,
    In my halo of a mired rum tin.
    I erase many men. Oh, to be man, a sin.
    Is evil in a clam? In a trap?
    No. It is open. On it I was stuck.
    Rats peed on hope. Elsewhere dips a web.
    Be still if I fill its ebb.
    Ew, a spideru2026 eh?
    We sleep. Oh no!
    Deep, stark cuts saw it in one position.
    Part animal, can I live? Sin is a name.
    Both, oneu2026 my names are in it.
    Murder? Iu2019m a fool.
    A hymn I plug, deified as a sign in ruby ash,
    A Goddam level I lived at.
    On mail let it in. Iu2019m it.
    Oh, sit in ample hot spots. Oh wet!
    A loss it is alas (sip). Iu2019d assign it a name.
    Name not one bottle minus an ode by me:
    u201CSir, I deliver. Iu2019m a dogu201D
    Evil is a deed as I live.
    Dammit Iu2019m mad.
    Regards,
    Dirk.

  • How to setting up the sun.jdbc driver in servlet

    in my servlet i implemens the MetaData Interface, The Sun JDBC driver was Not support the getMetaData() function .. I dont knw why it was
    Pls hel me

    http://www.apple.com/support/iphone/assistant/airprint/

Maybe you are looking for