Src.zip in SDK 1.4.0

Almost all of the .java files are corrupt(I've tried two
unzip programs.) Is there a way to get a fresh copy of
src.zip from Sun?

I'm sure. Most are corrupt although I did find three that
were ok. I don't see a problem posted so I'd like to
download a fresh copy but I don't see this option on the
Java download pages.

Similar Messages

  • Cannot find SRC.ZIP or SRC.JAR

    Hello,
    I just installed JDK 6 SE and I cannot find the SRC.JAR and SRC.ZIP files. I want to use the debugger in Eclipse and it is telling me:
    The jar file rt.jar has no source attachment.
    but I cannot seem to find it in the installation directory C:\Sun\SDK or any of it's subdirectories.
    Can anyone help me with this?
    Thanks,
    Karl

    I think I'm right when I say the source
    doesn't come as standard.Nope. When you install the JDK, the installer asks you if you want to install the source code as well. The default option is "yes", so if you don't do anything, the file src.zip is stored in the JDK's root directory, which on Windows is C:\Program File\jdk1.6.0\...unless you specify a different location.

  • How does System.out.println(). Work inside src.zip file !

    Hello guyz,
    I was just wondering how System.out.println() worked so i opened up the src.zip file and checked the source code. But could not understand it. As written i remember
    "out is an object encapsulated in the System class."
    Thats ok. But i could not understand the code.
        public final static PrintStream out = nullPrintStream();
        private static PrintStream nullPrintStream() throws NullPointerException {
         if (currentTimeMillis() > 0) {
             return null;
         throw new NullPointerException();
        }Also when i ran the DJ Decompiler it decompiled it to this:
    public class One
         public static void main(String args[])
              System.out.println("hello world");
    import java.io.PrintStream;
    public class One
        public One()
        public static void main(String args[])
            System.out.println("hello world");
    }Also, why does it need to import PrintStream ?

    Peter__Lawrey wrote:
    I was just wondering how System.out.println() worked so i opened up the src.zip file and checked the source code.This value is a place holder. This value is changed as soon as enough of the JVM is initialised for printing to work.
    Also, why does it need to import PrintStream ? It doesn't, but it is used in the code so DJ is including it just in case.Sorry,
    But i don't understand at all.

  • Problems with src.zip

    Hi, I can't seem to find a similar problem anywhere so, here we go:
    I have just re-installed my WinXP Prof. on my workstation and installed j2sdk1.4.2 and thought that it was going to work, as it did before the re-install, but it doesn't.
    The problem is that I get 100 errors and 207 Warnings when compiling a small and simple file.
    It says that some of the source files in src.zip uses a deprecated api and that c:\j2sdk1.4.2\src.zip(java/nio/ByteBufferAsIntBufferB.java):34: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    (source unavailable)and
    c:\j2sdk1.4.2\src.zip(java/lang/IllegalArgumentException.java):20: class Illegal ArgumentException is public, should be declared in a file named IllegalArgumentException.java
    (source unavailable)this is just a small portion of the errors that is diplayed.
    I don't get it and neither does any of my colleges.
    Can anyone help me make sense of this.

    There is no reason for your JDK installation to look in the src.zip though your installation may be pointing to an older Java setup on your Win XP. Make sure that the CLASSPATH variable doesn't point to any other Java version other then the one you have. The source files, as far as I know, are provided for reference to the programmer only. They should not be included in any compilation.
    Check your "Internet Properties" as well. There should be an option to indicate whether you are using the built in version of Java that may come with Win XP or one from SUN.
    Also try moving the src.zip to another directory.
    You should also be able to specify in your "Java Plug-In" in Start -> Settings -> Control Panel. Make sure that it is pointing too and using your new Java installation (1.4.2).
    Regards,
    Devyn

  • Installing JDK 1.4, esp. the src.zip file

    I have some questions about installing JDK 1.4:
    1. After running the executable installation file, you get a src.zip file in the installation directory. Does anyone know what this is? The obvious answer is that it is the library of code for JDK 1.4. However, I have run programs on Forte Agent without unzipping this file.
    2. In previous versions of the JDK, when you decompress the src.jar (it is now a src.zip file in the 1.4 version) file, it creates a src folder and decompresses all the information into that. However, in JDK 1.4, it does not create a src folder, but rather, decompresses the files into the installation directory. Is this a fault of the new release or should I create a src folder and have the src.zip file decompress into that folder?
    I am running Windows 2000.

    I have some questions about installing JDK 1.4:
    1. After running the executable installation file, you
    get a src.zip file in the installation directory. Does
    anyone know what this is? The obvious answer is that
    it is the library of code for JDK 1.4. However, I have
    run programs on Forte Agent without unzipping this
    file.The src.zip is the source code for the JDK, not library. Note: The file is not the whole source code, it does not have any native library so you cannot compile it.
    >
    2. In previous versions of the JDK, when you
    decompress the src.jar (it is now a src.zip file in
    the 1.4 version) file, it creates a src folder and
    decompresses all the information into that. However,
    in JDK 1.4, it does not create a src folder, but
    rather, decompresses the files into the installation
    directory. Is this a fault of the new release or
    should I create a src folder and have the src.zip file
    decompress into that folder?
    I am running Windows 2000.No, it is just how Sun zip it. Anyway, as long as you don't care to look at the source, you can just leave it along.

  • What is the src.zip file used for?

    Just a few more question please.
    I've read through the JPDK install docs and it doesn't mention anything about the src.zip file. I noticed it has many references i'm interested in. What is this used for?
    I've loaded the EM and redeployed the ear file for the Oct JDPK. I've noticed after registering the Provider that about 1/2 of the Sample apps have a status of Loaded. But many indicate Not Loaded. For example: ExternalAppFlights. How do I get these loaded?
    Thanks
    Chase

    Hi Chase.
    oops i forgot to answer the second part of your question.
    The file integrating.external.provider.v2.html at %pdk_extract%\pdk\jpdk\v2\doc\externalApp contains all the details to deploy Fights of Fancy Application.
    Just go through the document & should be through.
    Regards,
    Abhinav

  • I can't find the build.xml in adobe-workspace-src.zip

    I imported the adobe-workspace-src.zip according to the 'customize workspace ui'. But I can't find the build.xml.So far I can't build the workspace project without it. Please advice how can I find build.xml?

    Hi,
    Can you confirm which version of LiveCycle you are using?
    Thanks,
    Matt MacKenzie
    Engineering Manager, LiveCycle Process Management ES

  • The src.zip file

    hi guys
    I'm rather a beginner to Java.
    I posted a question related to this one on another section.
    I'd like to know about the src.zip file
    Is it essential to set up your JRE_SRC variable to point to the src.zip file?
    What is the purpose of src.zip?
    If we want to reference types such as String or Boolean or Integer, do we need to have src.zip set up?
    Thanks very much

    Shane7070 wrote:
    I'm not sure what JRE_SRC does as i've seen very limited documentation but from my understanding it's the java runtime source and is supposed to contain the src.zip file. That's what i gather from the documentationAre you talking about some folder/directory? As I said I have never heard of it.
    flounder, is src.zip necessary in order to reference classes in the packages that it contains?
    In one place I read that it is necessary but in another place I read that it's just the source code to the classes that are compiled and located elsewhere in the jdk.As I said the src.zip file contains the source code, that is the .java files. To run Java programs you need the .class files and these have been placed inside a .jar file.

  • Java: JDK + src.zip

    Hi,
    is there a JDK for Mac OS X with the src.zip file out? I only saw one "Java141Developer.dmg.bin" which is a little bit old I think. A 1.4.2 or better 1.5.0 would be OK. I need the src.zip for debugging with eclipse etc.
    Thanks,
    Stefan
    PS: Remember I don't meen the "normal" Apple JDK I need the "Apple JDK for developer" with the src.zip file.
      Mac OS X (10.4.5)  

    Hi Steven
    I did not add the JDK source in my source path.
    The source was automaticly there after installing JDev9051. I needed to remove the source added by the installation to compile the project.
    If i did not remove it i got the error in the my first post.
    Best regards
    Jacob Mossin Andersen

  • How to exclude src.zip with java source files from archive

    Hello All.
    Our team have to prepare our SCs (Sowtware Components) for using outside the company. Meanwhile our source files should be protected. We tried a lot of ways to remove all sources from SCA archives.
    This SC should then be integrated in third-party product.
    Using build options in compartments gives no effect.
    Any ideas?
    Thanks in advance.
    Maxim Maltsev.

    Thanks a lot.
    To make code invisible for customer we should build an assembly with build option "include_sources"=false.
    DCs in such assemblies won't be visible in inactive branch and could be used as non-editable in active branch of track.
    The task is settled - client can modify his own code and use our code only via used DC and their public parts, he is not able to see our code.
    Also customer can not see private sources as he gets assemblies without sources. Remember - public parts of type assembly shouldn't be of Source type.
    Maxim Maltsev.
    Edited by: Maxim Maltsev on Dec 10, 2009 3:53 PM

  • SAML2 missing libraries during compilation.

    Hi,
    While recompiling an opensso class, I get error "package does not exists" for the following packages.
    I believe they should be in openssoclientsdk.jar, shouldn't they be there???
    import com.sun.identity.plugin.datastore.DataStoreProvider;
    import com.sun.identity.plugin.datastore.DataStoreProviderException;
    import com.sun.identity.plugin.datastore.DataStoreProviderManager;
    import com.sun.identity.saml2.idpdiscovery.IDPDiscoveryConstants;
    import com.sun.identity.saml2.plugins.DefaultSPAuthnContextMapper;
    import com.sun.identity.saml2.plugins.IDPAccountMapper;
    import com.sun.identity.saml2.plugins.SAML2ServiceProviderAdapter;
    import com.sun.identity.saml2.plugins.FedletAdapter;
    import com.sun.identity.saml2.plugins.SAML2IDPFinder;
    import com.sun.identity.saml2.plugins.SPAccountMapper;
    import com.sun.identity.saml2.plugins.SPAuthnContextMapper;
    import com.sun.identity.saml2.profile.AuthnRequestInfo;
    import com.sun.identity.saml2.profile.CacheCleanUpScheduler;
    import com.sun.identity.saml2.profile.IDPCache;
    import com.sun.identity.saml2.profile.SPCache;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.Cookie;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.sun.identity.saml2.plugins.JMQSAML2Repository;

    Hi Buso,
    I am not sure if its a good solution, but you can try it as follows :
    Use the source code that comes with Java SDK (src.zip in sdk ), extract the classes (and their dependant classes) to a different folder, compile them and make your own jar file. Keep this Jar file in in WTK's Lib folder.
    I suppose this should work.
    Cheers
    Sudarshan

  • Missing libraries for j2me?

    Hi!
    I have source code for Jess (java expert system) written in J2SE that I am trying to compile for J2ME. Of course, I keep getting compilation errors, since J2ME does not have e.g. java.util.Iterator or java.io.Serializable. What can I do (if anything?!) to solve this problem? Jess folks do not have a mobile device version. Are there additional libraries for J2ME I could download and happily compile my code? Thank you, I am really stuck with this!
    -Buso

    Hi Buso,
    I am not sure if its a good solution, but you can try it as follows :
    Use the source code that comes with Java SDK (src.zip in sdk ), extract the classes (and their dependant classes) to a different folder, compile them and make your own jar file. Keep this Jar file in in WTK's Lib folder.
    I suppose this should work.
    Cheers
    Sudarshan

  • Recent air sdk (air 4.0 beta) is still not support xxhdpi

    my application is set applicationDPI = '320'. and is working well in hdpi, xhdpi etc devices...
    but new devices like galaxy S4 is 1920x1080 xxhdpi.
    air 3.9, and this 4.0 version is not support that dpi, then my app layout is still broken.
    this bug is fixed on Apache Flex SDK. so I used that sdk. but i want official adobe air sdk. is have adobe plan of resolving this?..

    I agree - this is not working for me either. Here are more details:
    I'm having a similar issue where an iPad Mini w/ Retina display appears to be a low res deivce:
    Apache SDK 4.12
    FlashBuilder 4.7
    .ipa compiled on both Mac and PC
    tried pointing to an iOS 5.1 SDK during compile on both Mac and PC
    app descriptor:
    <iPhone>
            <InfoAdditions><![CDATA[
                 <key>UIDeviceFamily</key>
                 <array>
                        <string>1</string>
                        <string>2</string>
                   </array>
                   ]]>
            </InfoAdditions>
            <requestedDisplayResolution>high</requestedDisplayResolution>
    </iPhone>
    Test app reports -
    Capabilities.screenResolutionX: 768
    Capabilities.screenResolutionY: 1024
    Capabilities.screenDPI: 132
    stage.fullScreenWidth: 1024
    stage.fullScreenHeight: 768
    I'm expecting higher resolution and DPI. Any ideas why?
    Test code is here:
    https://www.dropbox.com/s/u072ou6enxa54k9/src.zip
    Please let me know what else I can provide in order to help troubleshoot.

  • Java 2 SDK, Standard Edition v. 1.4

    how do u completely install this version, just so i could get javac running cause its not running when i type it command prompt. i have win2k pro, and im very new with computers

    Once you download the software, install (extract) it to a local directory and then set the PATH and CLASSPATH variables.
    If you donot set the path variable, your system will not recognize javac or java commands
    To set the Path variable:
    1.right click on "My Computer" on your desktop and then click on properties.
    2. select the advanced tab
    3. click on the "Environment Variables" button.
    4. under "System variables" scroll down and select PATH and click edit.
    5. at the end ( or begning) add c:\<java installation root directory>\bin;c:\<java installation root directory>\lib;
    6. click on and then ok.
    This will make your system recognize teh javac and java commands.
    To add the class path click on "New" under System Variables" and then add the following
    Variable Name : CLASSPATH
    Variable Value : c:\j2sdk1.4.1\lib\dt.jar;c:\j2sdk1.4.1\lib\htmlconverter.jar;c:\j2sdk1.4.1\lib\tools.jar;c:\j2sdk1.4.1\src.zip;
    I installed java into j2sdk1.4.1 directory , if your directory name is different, change it. Also if you donot have src.zip and intsead you have src.jar change it in the above CLASSPATH
    Venkat

  • Deploying DC: warning in opening zip file

    Hi,
    I got this warning from Dev studio DC build on 04s SP08:
    packDeployArchive:
    [srcpacker] Creating source archive
    [srcpacker] Adding source archive from xxxxxxxx
    [srcpacker] WARNING: Could not open ZIP file C:\Documents and Settings\xxxxx\.dtc\LocalDevelopment\t\21FBE3BC3185FEB251FDBE23923FAB55\wda-pp\src\java\src.zip.HASH : error in opening zip file
    It's pointing to a HASH file not a zip file. The zip file 'src.zip' opens fine if I open it with explorer. I haven't tried if the hash is actually correct for the file or not.
    What does this mean then ? Should I care about it ?
    Jari

    Jari,
         I encounter the same problem. Have you got a solution yet?
    Helen

Maybe you are looking for