J2SE 1.4 generated classes on older JRE versions

Maybe a newbie topic but is it normal that JDK 1.4 generated classes only work on the JRE 1.4 runtime environment ?
If so, how do I compile to work on older runtime environments ?
A link to a page with info on this would be most appreciated...

Thanks,
That was the link I was looking for.
FYI : To make my applet run with the default JVM for Internet Explorer I had to compile to target 1.1 and strip the code from all Java 2 code. Strange, as I have IE 6.0 and you would expect it to come with a Java 2 runtime...
Anyway, my first applet is on the Net now : http://www.ebo.bewoner.antwerpen.be/Shift/Game.html .
I wonder if it works from other clients than mine...and especially other machines that a Windows PC !

Similar Messages

  • I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Is Apple aware of this problem? No longer supported?

    My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
    I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
    Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
    Thanks in advance for any help you can provide!
    Abbreviated Java Console output:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    load: class ZeroApplet.class not found.
    java.lang.ClassNotFoundException: ZeroApplet.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)
    load: class JavaToJS.class not found.
    java.lang.ClassNotFoundException: JavaToJS.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)

    I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).

  • JDK 5 generated bytecode on older JREs

    I am using enhanced 'for' loops that come with JDK5. Also, I will be using the new synchronization primitives and various other very JDK5-specific features.
    Would like to know if can safely drop a JDK 5 generated .jar/.class into a 1.4 JRE. I'm expecting that these new language features wouldn't have necessitated new JVM instructions, and so can be run on JRE 1.4 as well.
    Some Developer.

    in JVM stands for (virtual) machine. Intuitively, I
    thought, the enhanced for loop is just a syntactic
    sugar for the developers, so would not require
    changes in the JVM instruction set.For iterating over Collections, the enhanced for loop generates calls to a new 1.5-only API. Tough.
    Google around (or search the forums) for compiling 1.5 for loops to 1.4 VMs. People have written bridge products to help with this.
    Needless to say, I'm surprised and also somewhat
    disappointed with Java (and with my understanding of it). Well, clearly the problem is with your understanding of it.
    Just because it's a virtual machine, doesn't mean that code generated today will run on VMs written a year or 10 years ago. That would imply that once you lay down a API in the runtime, you are never ever allowed to change it, or add to it, for the infinite future..

  • J2SE/JRE Version(s) on Clients

    Hi All!
    Can someone offer some guidance on what version(s) of J2SE/JRE we should have installed on our clients (PCs)?  We have standardized on 1.4.2_13 and are moving to 1.4.2_15 for Vista support, but we've run into several situations where SAP is asking for us to also install 1.5 or 1.6, and we also have other vendors asking for various versons of J2SE/JRE.  In the past we tried to use the same version as the version on the server, but we're finding this is hard to do.
    Also, if you're running multiple versions, how do you manage cases where 2 browser apps want to use different versions since (at least with IE) it appears only one can be the default.
    Thanks!
    Jeff

    Jeff,
    Unfortunately, as you have realised, you're stuffed when it comes to IE and Java.  Only one can be used.
    We have to produce a certified list of apps that can be run against a common JRE.  It looks like a neat matrix sheet and normally works around the lowest common denominator of JRE.
    Unless SAP don't support you on older JRE versions, don't be bullied by them into upgrading.
    Unless there is a very compelling reason (e.g. you need a patch that requires an upgrade) then I wouldn't change it, for simplicities sake.
    I found this link to be of use though:
    Re: Assigning Frieght conditions by Vendor
    Best Regards,
    Darryl

  • How to launch a Java WebStart application with older JREs when Java 7u25 is on the client?

    How can I launch older versions of my Java WebStart application, that are built and run with Java 7u21 or earlier, even if Java 7u25 is installed locally on the client? Application launch and behaviour must be reliable and consistent.
    Background:
    As of 7u25 (and later), Java Webstart applications launch with a different class loader than pre-7u25.
    My Java Webstart application has supported versions that were built with older versions of the JDK (e.g. Java 5, 6, 7u21 or earlier). These applications run with their required JRE version, enforced through JNLP. Once Java 7u25 is installed locally, these older applications fail to launch, due to classloader differences.
    The question is: what is required to run older Java WebStart applications even if 7u25 (or later) Java Webstart is installed locally on the client?

    I confirm your findings when using shortcuts to try specific versions of JavaWS with 7u25 or later installed:
    JRE 5u14 launched and the classloader was as pre 7u25
    JRE 6u43 would not launch
    JRE 7u21 launched but the classloader was not as pre 7u25
    You can launch the shortcut with the JavaWS -verbose option to display a messagebox with valuable information.
    I am keeping a close watch on this thread.

  • J2EE and related J2SE/JRE versions

    I understand the difference between J2EE and J2SE/SDK/JDK, and JRE. However, I'm having trouble identifying what version of SDK each of the J2EE versions uses. Maybe they match up.
    For example, if I have an old project someone says was built with J2EE 1.3 SDK, does that use J2SE/JRE 1.3? Does Java EE 5 use Java 1.5? 1.6? 1.4? (For example, if I'm setting Eclipse Compiler Compliance Level for a J2EE 1.3 project, what should it be?)

    is there a way for me to know what Java version that would have been or could have been compiled against?No.
    Edit: Slight clarification - the class files in the application contain a magic number that corresponds with the compiler target - so for any given class file you can determine what JRE was targeted at compile time. This can be different from the compiler version. Different classes in the same application may have been targeted to different JRE versions.
    Are there any versions of Java that it could not be compiled against?No.
    what version of Java does the Application Server on which this will be deployed support.The Application Server will be running on a JRE corresponding to a particular Java release. That JRE will support all versions of Java prior to the release. Code compiled on subsequent versions of Java can, if suitably written, be targeted to run on that version of the JRE and (depending on versions) may not need specific targeting to do so. Whether they in fact work or not depends entirely on what library calls they make.
    What's the business requirement that drives this request?
    Edited by: dcminter on 03-Mar-2010 18:54

  • User defined data type generated class

    Hi
    When defining a new data type in the local dictionary, one has to option of generating a representation class.
    I have done this and indeed received the class in my app.
    However, I fail to understand how I can use this class to retrieve values set in the data type.
    Thank you for your assistance
    Regadrs
    yuval

    Hello Y PEERY
    I am not clear which context you are talking about .
    Are you taking about simple type inside local dictonary ?
    or
    A project with data dictonary type ?
    (for webdynpro only)
    In both the case no need to deal with internal generated class, this is somethig which is requrired to framework itself , end developer not at all using /modifiying it.
    or
    Might you are dealing with EJB so in this case representation class is generated once we provide the basic(name , package etc) to it , further you can modify it according to your use.
    Please clarify
    BR
    Satish Kumar

  • At the time of generating .class files i got below warning.

    Hi all,
    i develop one oaf page and move to server and generate .class files.
    at the time of generate .class files i got below error.
    plz help me.
    *[appldev@wnsfinapp webui]$ javac AgingBucketsCO.java -deprecation*
    AgingBucketsCO.java:114: warning: setRedirectURL(java.lang.String) in oracle.apps.fnd.framework.webui.OAPageContext has been deprecated
    pageContext.setRedirectURL(
    *^*
    *1 warning*
    Thanks
    Seshu
    Edited by: its urgent on Jan 30, 2012 4:47 AM

    Hi Pratap,
    thanks for your replay,
    i register the page in apps its working fine.
    but my page having go button.normally whenever goto the GO button it display hyperlink.
    in my local machine displays hyperlink.after move to server it displays cursor.
    Plz help me
    Thanks
    Seshu.

  • Getting generated class files using the compiler api??

    I am writing a compiler/IDE for java, and i use the new JavaCompiler API
    (javax.tools.JavaCompiler)
    i want to ask, is it possible to get the generated class file(compiled file) names??
    can anyone help me with this, read at the documentation and i have no idea which one is used to do such thing..
    Or is it impossible??
    Thanks, please guide me on this..

    E.D.-inc wrote:
    I am writing a compiler/IDE for java, and i use the new JavaCompiler API
    don't.
    i want to ask, is it possible to get the generated class file(compiled file) names??
    yes, probably (after all, other tools can do it). Don't ask me how though, I've never had a need to.
    can anyone help me with this, read at the documentation and i have no idea which one is used to do such thing..
    no. Someone else reading the documentation for you won't help you any. Read it yourself, you might learn something.

  • Reusing JAXB generated classes for XSDs included in other XSDs

    Hi,
    I use xsds with jaxb in a number of related projects. To avoid duplication I've factored out commonly used elements into their own xsd in a separate project. I then include these in the xsds that need them.
    I generate classes with jaxb for each project. I'm now trying to get jaxb so far as to reuse the already generated classes for the common elements.
    For example: I have a general xsd Person.xsd for which I generate classes in common.xsd. I have another xsd Project.xsd that includes a reference to the Person element. When i let jaxb generate classes for Projects.xsd, it will also generate a project.xsd.PersonType and so on.
    Is there any way to tell JAXB to use the existing classes? I've played around with the <jxb:javaType> bindings, but I can't get it to work yet. It gives me a "bindings not used" warning and doesn't compile. Also, if this is in fact the way to go, what do I specify as the parseMethod and printMethod attributes for the javaType element?
    Thx for any help

    JAXB questions should be better directed to the users list of http://jaxb.dev.java.net/
    you should subscribe to the 'users' mailing list, then post a question there.
    Thank you!

  • Namespace issue with oracg generated classes

    Hi,
    I'm having problems generating classes with oracg from the Java Xdk from an XML schema. All classes are generated, but do not compile. In some sources (mostly in the type classes) "public void addSomething(null.Something theSomething)" is generated as the method declaration, and that doesn't compile. When I add a targetnamespace to the xsd file, the generated sources compile (the 'null.' is replaced with 'myPackage.', but when I generate an XML document, I contains a namespace reference (ns1) like this:
    <ns1:Note xmlns:ns1 = "http://www.somewhere.org">
    <ns1:Form>
    <ns1:Reference>
    <ns1:ReferenceNbr>1</ns1:ReferenceNbr>
    <ns1:ReferenceType>1</ns1:ReferenceType>
    </ns1:Reference>
    </ns1:Form>
    </ns1:Note>
    What I want is this:
    <Note>
    <Form>
    <Reference>
    <ReferenceNbr>1<ReferenceNbr>
    <ReferenceType>1<ReferenceType>
    </Reference>
    </Form>
    </Note>
    How can I get this result ?
    Kind regards.

    Did you try adding the the XmlSeeAlso annotation to the webservice
    @XmlSeeAlso({<package.name>.AccountIC.class})
    This will add the schema for the data type (AccountIC) to the WSDL.
    Hope this helps.
    -Ajay

  • How to use JAXB generated classes with SOAP

    hello,
    I have a library of JAXB generated classes for my web service. There is a Java class for each web method defined in my schema. For example, my getLocation method is mapped to GetLocation.class.
    However my web service is SOAP based, so I am having to manually strip off the SOAP elements to be able to unmarshall the getLocation xml to a GetLocation class.
    I am noticing a disconnect between JAXB and other Java SOAP and RPC libraries. Does anyone know how to create a JAXB class for SOAP Envelopes and Bodys? Does anyone have any ideas how to incorporate the existing Java web service libraries with JAXB?
    Thanks in advance.

    Have you found a method to integrate SAAJ and JAXB? Or
    is better to use SAAJ only ?If I had to choose I'd go with SAAJ. It seems to me that's theoretically possible to use JAXB classes with SAAJ but I imagine if it is possible it would be a big pain in the ass.

  • Generated Class is not called by Inbound Proxy

    Uploading data to Ztable of ECC by using inbound proxy.
    The messages are tranfered to SAP ECC from SAP XI.
    Monitoring in SXMB_MONI in SAP XI DEV can see Success flag
    Monitoring in SXMB_MONI in SAP ECC can see inbound message stored in QUEUES only.
    I configured the Application Integration Engine as per the help document.
    In Reciever XI Adapter set the addressing type URL.
    Coding is correct in the method of the generated class.
    Let me know if any configurations yet to be done.
    Let me know how to proceed furthur.
    ThankYou in Advance.

    hi
    Go to SMQR of the ECC and register and activate the queues again.
    Also ensure that u are implementing the correct methods of the proxy
    EXECUTE-SYNCHRONOUS / EXECUTE-ASYNCHRONOUS
    rgds
    Arun

  • 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

  • Calling Stored Procedure w/JPublisher generated classes

    Hi,
    We are trying to pass Oracle nested tables as input/output parameters to several of our stored procedures to support bulk binding operations in the database from our applications. We have some database defined types and stored procedures that use these as input/output parameters which have been tested and working at the database level. I managed to get JPublisher to create these classes and compile fine, but I am not sure exactly how to register these classes as parameters with the stored procedure Java call. Any assistance is appreciated.
    Here is a sample of the db types/procedures:
    TYPE USER_APP_TYPE IS OBJECT
        User_ID             VARCHAR2(50), -- input fields
        App_ID              VARCHAR2(50),
        App_Type            VARCHAR2(50),
        App_Obj_ID          VARCHAR2(50),
        Status              VARCHAR2(30),   -- output fields
        Desc_String         VARCHAR2(255),
        Comments            VARCHAR2(255)
    TYPE USER_APP_LIST IS TABLE OF USER_APP_TYPE;
    CREATE OR REPLACE
    PACKAGE BODY PKG_MOD_BULK
    AS
        PROCEDURE LOOKUPAPPBYUSER_BULK(
            p_InOutRS   IN OUT  USER_APP_LIST)
        IS
            BEGIN
            ... do work - fill in output fields ...
            END LOOKUPAPPBYUSER_BULK;
    END PKG_MOD_BULK;So using JPublisher 3 classes were generated with constructors and getter/setter methods:
    UserAppType.java
    UserAppTypeRef.java
    UserAppList.java
    My consumer POC code looks like this:
    public class BulkBindingDemo
        @SuppressWarnings("CallToThreadDumpStack")
        public static void main(String[] args) 
            Connection conn = null;
            try
                String UserName = "user";
                String Password = "pass";
                // Load JDBC driver
                Class.forName("oracle.jdbc.OracleDriver");
                conn = DriverManager.getConnection("jdbc:oracle:thin:@mydatabse.com:1521:mysid", UserName, Password);           
                // Create instances of custom database UDT classes.
                UserAppList myAppList = new UserAppLicList();
                UserAppType[] myAppArr = new UserAppType[2];
                // Populate UDTs          
                myAppArr[0] = new UserAppType("bob" ,"acct","fiscal","1FG452ABC",null,null,null,null,null,null,null);
                myAppArr[1] = new UserAppType("joe","hr","benefits","89JTYG671",null,null,null,null,null,null,null);
                myAppList.setArray(myAppArr);                                               
                // Not sure how to set parameter as input/output.
                CallableStatement cs = conn.prepareCall("BEGIN MY_SCHEMA.PKG_MOD_BULK.LOOKUPAPPBYUSER_BULK(?); END;");
                cs.setObject("p_InOutRs", myAppLicList);
                cs.execute();
                ResultSet rs = cs.getResultSet();
                // Get results - null fields from above should be populated
                if (rs.first())
                    myAppList = (UserAppList)rs.getObject("p_InOutRs");
                    myAppArr = myAppList.getArray();
                    System.out.println("status:   " + myAppArr[0].getStatus());
                    System.out.println("desc str: " + myAppArr[0].getDescString());
                    System.out.println("comments: " + myAppArr[0].getComments());
                    // additional fields here..
                //MyObject[] myObjectAry = (MyObject[])p_myObjectArray.getArray();
                //cs.registerOutParameter(1,Types.CHAR);                      
            catch (Exception e)
                e.printStackTrace();
            finally
                if (conn != null)
                try { conn.close(); }
                catch (Exception e) {}
    }So this code will compile and run up to the stored procedure call itself, but I'm not sure how to set the parameters for in/out with these generated classes. Any ideas?

    Anyone? Still haven't figured this one out...

Maybe you are looking for

  • Deleting photos from hard disk

    Hi, I have all of my photos on my hard disk and external hard drive. After I back up onto DVDs I would like to delete all of them off of my Mac (to free up some space). My question is, will I still see the thumbnails without having to connect the ext

  • Image requests from flash gallery are not caching

    The image requests that happen from a flash gallery are not getting cached in Safari browser, they get cached properly in IE, Firefox & Chrome. For Example - Load the following gallery (http://www.monoslideshow.com/demo/) in Safari browser, and monit

  • 10.2.0.3 Release of Analytic Workspace Manager?

    If Bud, Anthony or someone from OLAP Product Management is around - is there any news on when the next release of AWM will be available? (the 10.2.0.3 database patchset is now available on metalink for download). Is this new release going to have any

  • How to i get the App Store onto my mac if it doesn't have it?

    i currently just bought a new iphone 5.  I would like to update my MAC OSx but i can't because everything is done through the "app store" on the computer.  My computer doesn't seem to have that function.  Is there a way to get it put onto my computer

  • In arch, can we install krita without koffice?

    Well... just that... in arch, can we install krita without all the other apps of koffice? Currently I want to try/use features in krita, not the other apps of koffice... any idea? Last edited by luuuciano (2007-05-29 22:58:11)