Compiling for old versions

i have the jdk5 (1.5.0.. whatever) and it wont run on a 1.4.2 RE, is there any way i can compile for an old version without just having 1.4.2 on a different machine and compiling on there (or having a lot of versions of it on this machine)

The -source option of javac lets you specify the version of source code accepted. And using the -target option will generate class files that will work on VMs with the specified version.
Check documentation for details:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html

Similar Messages

  • How do you turn off compatability view for old version of windows?

    How do you turn off compatability view for old version of Windows?

    Refer to this article:
    iTunes for Windows: How to turn off Compatibility Mode
    http://support.apple.com/kb/TS1489

  • How to get item field values for old versions?

    I need to be able to query old field values from previous versions of items in a SharePoint list. I can't execute code on the server (it needs to work with SharePoint Online/O365 for a start).
    So far the ONLY API I've that lets me do this is the lists.asmx GetVersionCollection SOAP call.
    This lets me specify a single field name and returns an XML structure with the values for the various versions, along with the modification time and who made the change - but NO reliable way of actually identifying *which* version (i.e. an ID or label). That
    is, if I know I need to fetch the Title value from version 512 ("1.0") of item 1 in list "Documents", I don't see how to reliably parse the results to determine which entry is version 512. While they may be returned in order, in many cases
    the entries are actually missing when there was no field value present (or perhaps when the field hadn't been created yet). I've tried comparing the Modified date to the Created date of the corresponding FileVersion item (which I can get via CSOM or REST),
    and while it works some of the time, it's not reliable. I've also looked at the output from the lists.asmx GetVersion API but I don't see how that's useful either, as the Created property for all versions always seems to be just the date the file was originally
    created.
    It does seem odd to me that there's not a neat way of doing this - if I need to return information for several fields but just for a single version, I have to make a whole lot of requests that return far more info than I need, and then I need to figure out
    how to parse the returned text in the case of, say, multiple-value taxonomy fields etc.
    Anyone tried doing anything similar here?
    Thanks
    Dylan

    try these links:
    https://support.office.microsoft.com/en-us/article/Track-and-view-version-information-for-SharePoint-list-items-2d69d936-fb0b-4c84-830e-11708e6ec317?CorrelationId=f87cf6ea-8cbf-446a-a4a0-e2c3a86b3425&ui=en-US&rs=en-US&ad=US
    https://social.technet.microsoft.com/Forums/en-US/e48ff216-7ed1-4b20-9f21-d496b1583eea/how-to-get-item-field-values-for-old-versions?forum=sharepointdevelopment
    http://sharepoint.stackexchange.com/questions/20019/get-meta-data-from-a-previous-version-of-a-document-through-webservice-in-moss-2
    http://sharepoint.stackexchange.com/questions/121594/getting-information-from-previous-versions-of-a-sp-list-using-csom
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • How can I get instructions for old versions of Garage Band please, eg Garage Band 3 and Garage Band 6?

    How can I get instructions for old versions of Garage Band please, eg Garage Band 3 and Garage Band 6? thanks

    meredithfromkybybolite wrote:
    How can I get instructions for old versions of Garage Band please, eg Garage Band 3
    http://manuals.info.apple.com/en/GarageBand_3_getting_Started.pdf
    meredithfromkybybolite wrote:
    and Garage Band 6?
    GB6 is the latest version, so all current docs should directly refer to that.

  • How to validate a request for old version

    Hello all,
    I have a current 11g database. But I need to validate a request for *9i release 2* version (knowing that I do not have the old version in my hands).
    How I can validate if the following request correctly work in 9i release 2 ?
    SELECT MocID, MocUpdateDate, MocKeyFldValues, MocIsNew, MocPolitique, MocOrder, MfcID, fld.FldSql, MfcOldValue, MfcNewValue, MfcNewFldID, MocNewObjID
    FROM MetadataObjectChange moc JOIN MetaDataFieldChange mfc ON moc.MocID = mfc.MfcMocID
    LEFT OUTER JOIN Field fld ON mfc.MfcFldID = fld.FldID
    WHERE (moc.MocObjID = N'000000000000152b' or moc.mocNewObjID = N'000000000000152b')
    AND MocMdtID = N'00000000000364c2'
    AND UPPER(MocKeyFldValues) like N'%DOC%'
    UNION ALL SELECT MocID, MocUpdateDate, MocKeyFldValues, MocIsNew, MocPolitique, MocOrder, MfcID, fld.FldSql, MfcOldValue, MfcNewValue, MfcNewFldID, MocNewObjID
    FROM MetadataObjectChange moc JOIN MetaDataFieldChange mfc ON moc.MocID = mfc.MfcMocID
    LEFT OUTER JOIN Field fld ON mfc.MfcFldID = fld.FldID
    WHERE (moc.MocObjID = N'000000000000152b' or moc.mocNewObjID = N'000000000000152b')
    AND MocMdtID = N'00000000000364c2' AND (UPPER(MfcNewValue) like N'%DOC%' OR UPPER(MfcOldValue) like N'%DOC%') ORDER BY MocID
    Thank all & best regards
    Adrien

    973391 wrote:
    Yes but my problem is I haven't a 9i version ... and my client (who have this version), doesn't answer and cannot provide me an access to its database (production too ...)
    there any emulator exist?When I first started in this business in 1981, I got some words of wisdom from a programmer who at that time was at the same point in his career as I am now. I'll pass that wisdom along to you.
    If you are working in a warehouse, and the foreman says his top priority is to get a certain trailer unloaded but he doesn't allow you to use the forklift, then getting the truck unloaded is NOT his top priority.
    The unresponsive client has access to the database. The unresponsive client has the query they want 'verified'. It's just a SELECT statement .. doesn't modify any data. Your issue is not a technical one. It is a political issue.

  • Because you do not leave a short cut for old versions in the sites? Do not understand that the updating can bring us unpleasant surprises and perhaps it be necessary to do a downgrade of version?

    New versions not always work for all. Put in Your sites, '''CLEAR''' and '''of QUITE VISIBLE form''', a '''short cut''' for the '''old versions'''.

    Please be aware that anything except Firefox 10.0 and Firefox 3.6.26 don't have the latest security fixes, and Mozilla really doesn't want any other version to be downloaded. That is why Mozilla doesn't provide links to download any other version.
    You can get Firefox 3.6.26 from here: <br />
    http://www.mozilla.com/en-US/firefox/all-older.html

  • Compile for older versions

    Hi,
    I did some code and when trying to run the jar file in another computer i have the problem that the code was compiled in mine with version 1.6 and the other computer has java version 1.5.
    Is it possible to compile a jar file for older versions?
    Please help,
    Rodo.

    Here's an example of how flaky the -source and target flags are. This code compiles and runs fine under 1.5 (without flags):
    import java.io.*;
    public class VersionExample {
        public static void main(String[] args) throws IOException {
            PrintWriter out = new PrintWriter(new File("test.txt"));
            try {
                out.format("%s%n", "woops");
                out.flush();
            } finally {
                closeIt(out);
        static void closeIt (Closeable stream) {
            try {
                stream.close();
            } catch (IOException e) {
                e.printStackTrace();
    }Now supply flags -source 1.4 and -target 1.4 and you get one error message:
    path...\VersionExample.java:7: cannot find symbol
    symbol  : method format(java.lang.String,java.lang.String)
    location: class java.io.PrintWriter
                out.format("%s%n", "woops");It seems to be noting that format() was introduced in 1.5, right? But what about interface Closeable and constructor PrintWriter(File)? They were introduced in 1.5, too! Yet if you comment out line 7 above, the rest of the code compiles :-(. Odd...
    edit: I see what the compiler was choking on: format's use of varargs. If you rewrite the offending line as
    out.format("%s%n", new String[]{"woops"});it compiles with flags -source 1.4 -target 1.4 :-(

  • Do iTunes have a section for old versions on their website?

    Just wondering whether Apple have a section on their website where you can download older versions of iTunes directly from them? I had to go to another site instead, I did post about this but it was removed (as only software licensed and distributed by Apple can be posted here, didn't realise I was breaking a rule!). The software I did download was certainly genuine Apple iTunes software, but was just wondering if Apple did indeed have an old app section and if not, why not? Would save people relying on other sites (which could well be dodgy if not investigated properly), particularly when their own software updates spectacularly fail?
    Message was edited by: PrettyP0isoned

    Thank you, but I see that there are massive gaps in releases? I know for a fact there should be a version from January 2011 (10.1.2) in that list that would save some people reverting all the way back to version 9. Would be helpful if they listed all releases! Shall mark it as resolved for the basic fact that it did answer the initial question, but would like to see Apple allow downloads of more recent "old" versions!

  • Remove Enhanced DCS Deployment Support in additional installer for old Version

    How can I Remove Remove Enhanced DCS Deployment Support in additional installer list for old labview Versions.
    I installed labview 8.5 after installing labview 8.2 and I make a project and create setup for it but when I build, it has problem. it need labview 8.2 install directory (i.e. C:\National Instruments Downloads\LabVIEW\8.2) but I have removed It from my PC,I think I must remove labview 8.2 Enhanced DCS Deployment Support to solve this problem. How Can I do it.
    thanks

    Dear Jeniffer
    Only I checked these items:
    NI LabVIEW Rutime Engine 8.5
    NI-VISA Rutime 4.2
    see attached pictures.
    thanks
    Attachments:
    Additional Installer1.JPG ‏103 KB
    Additional Installer2.JPG ‏94 KB

  • How do I set javac to compile for older versions of java?

    I need to compile a ".java" file for version 1.4.0 of java in order to run it on Nintendo DS. However, my version of java is 1.6.0.
    In resume, I need to set javac to compile for version 1.4.0, but I haven't had much success figuring it out myself, so if anyone knows this, please?

    WalterLaan wrote:
    Note that you want to compile against the 1.4 libraries (rt.jar) as well to avoid NoSuchClass/MethodsErrors with the [ -bootclasspath option|http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#crosscomp-options]
    ++++ that.
    Using the -source/-target options are not a guarantee that the specified JRE will have the required classes, methods and attributes available. Those options only ensure the classes have a format that is 'reabable' by the target JRE.
    Using the -bootclasspath option guarantees the classes are not only readable, but that the VM will not throw 'NoSuchMethodError's or equivalent, at run-time.

  • AXAJ: support for old versions of browsers?

    Technilac preview version supports IE7, FireFox2 only.
    Are there plans for supporting old versions in future?

    IE 6.x support for ADF faces rich-client components..
    (there is no plan yet to support IE 6)

  • Will my serial number work for old versions?

    I am a teacher and have a newer version of the software than my students do. I would like to demo in the same version they use, but it is no longer sold - will my serial number work for older versions of the same program?

    No, the serial number is tied to the version/license you purchased.  Can't you acquire the software in the same way that your students have to?

  • Download link for old version of Photoshop

    I am currently using Photoshop version 12.1 on my laptop however has just purchased a new desktop computer and wpould like to install the program on it.
    Is there any way to download this old version ?
    I dont want to upgrade just yet.
    Any assistance appreciated.

    http://prodesigntools.com/all-adobe-cs5-direct-download-links.html
    Follow the download instructions carefully or the links will not work.

  • Migration key for old version SAP 3.1H

    Hi all
      i need  migration key for older version of SAP  3.1H,i believe this is same for all SID and host name.if any one had perform the migration with this version please share with me the migration key.
    Thanks and Regards
    Soumya

    Hi Soumya,
    This forum is for questions regarding IBM DB2 on z/OS and IBM system z. You may need to create a new thread under the correct forum.
    Regards,
    Hugo

  • Compiling for older versions

    Hi - I have a fairly simple java class which I want to compile so it will run on older versions - specifically 1.4.2_12. I have NetBeans 5.5 and JRE 1.6 and have downloaded the 1.4 SDK and added it to my platforms AND set the library to 1.4 but I get the feeling its still compiling using 1.6. For example, if I run the applet in AppletViewer specification.version reports 1.4 but if I compile it and run it in a browser it reports 1.6. Am I missing something? Is there someway of ensuring that the final class will work on 1.4.2_12.

    Because you have a 1.6 JRE and a 1.4 SDK (which you've used within NetBeans). Running your code within NetBeans (through the AppletViewer) will use Java 1.4. However, when at the browser, your browser plugin is at Java 1.6.
    This means that as long as you test within NetBeans, rest assured your applet will run on 1.4.
    If you want to test it in the browser, you may opt to use another machine that doesn't have a JRE/JDK other than version 1.4 (the version you want to use)
    Edited by: RyanRM on Nov 18, 2007 9:40 AM

Maybe you are looking for