Attatching Source Code To Eclipse IDE

Please please please can someone help me do this? Its driving me nuts
I am running JDK 5 and have downloaded Java 5 source cide - I have attatched the code to Eclipse and it still does not show it.
I have tried this on more then one machine with no luck
Does anyone know what might cause this and how it can be overcome?
How do you get the JDK source code available within Eclipse?

Steve_Johnson wrote:
I am running JDK 5 and have downloaded Java 5 source cideBut is your Eclipse actually using the JDK? Or just the JRE? Eclipse doesn't need a JDK to run, or to compile code, it'll work just fine with a JRE. Have a look at Windows->Preferences->Java->Installed JREs in your Eclipse, and see what it's actually using. If it's not a JDK, chances are it won't pick up the sources

Similar Messages

  • See source code in Eclipse

    Hi,
    I'd like to see the source code of standard java library in Eclipse without downloading source code. Is that possible and how to do that?
    Thank you very much.
    Ran

    Normally, when you download a Java SDK, and you install it, it automatically installs a src.zip with it inside the JDK (for ex. C:\Java\sdk1.5_013) .
    If you then right click your project, take properties, select java build path and go to the libraries tab, you can see your JRE unsed by eclipse.
    When you open thatone, you have rt.jar, and several other jar files.
    You can edit the source attachment of every jar file (i don't know which one is needed) to point to this src.zip, and then you can open the sources.

  • OSB - CVS Source code check-out to Eclipse (INDIGO OEPE11.1.1.8)

    Hi ,
    I am facing issue with CVS check-out. I have checkout the source code to eclipse from CVS and created one configuration project in the eclipse and drag and drop the OSB project into the configuration project but eclipse is showing so many errors and not displaying the code in designer mode. Could you please tell me the correct process to set up the OSB project in eclipse with the existing CVS source code, if I am wrong.
    sometimes when i do drag and drop to configuration project , getting below error in eclipse :
    Problems occurred moving the selected resources.
      Path for project must have only one segment.
      Path for project must have only one segment.

    Hi,
    You should be able to follow the document for the new version, check this link, may there is some difference...
    http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/developingeclipse.htm#OSBDV1385
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • How to view the design part of th source code

    hi
    i have a source code in NetBeans IDE.i have to view the design part of that source code.because i shared that design part through local address which is designed in another system .Ater sharing i got tha coding part of that design part.But i need designing part of that coding part.i searched that, but i couldnt get it.
    please helpme

    Sorry for this not being helpful, but if there ever was a stronger argument for not using NetBeans generated code, for learning to code Swing from the ground up, I'd like to see it.
    To the OP, this is not so much a Swing question as a NetBeans question. I recommend that you find a NetBeans forum or mail list, rephrase your question for clarity, and repost it there. Good luck.

  • Where to download Java EE 5 sdk source code?

    I want to attach the source code to eclipse source code dir that way I can see the method comment in eclipse. But I can't find such link. Anybody got it?
    thanks.

    tschodt wrote:
    robert.whane wrote:
    tschodt wrote:
    For which specific Java EE packages are you interested in seeing the source code? I don't think I will bother replying if your answer is "All of them".
    Why not? For Java SE SDK, src.jar is easy attachment for everything.Who has the rights for source code the classes in the Sun Java SE SDK distribution?on my system, the right are for me of course! This is very easy procedure. I use code in Eclipse, step into say String. Now Eclipse asks me.. where is source? I navigate to JDK install dir and attach src.jar. I no need special rights for this... simple click and source is there for me... (only sun.* packages, you need make extra download).
    >
    Why we not can have easy source attachment for the Java EE SDK?JEE is a spec. The Sun JEE SDK is a reference implementation (glassfish).I know SPEC... so maybe we have two src jars here. One with public interface, other with API implement. This no problem... okay, maybe I wrong in post earlier. Not 1, but then 2 src attachment jars is okay!
    Who has the rights for the source code for the Sun JEE SDK distribution?this is same thing. on my system, I am developer, I have rights to attach. I JDK implementation of my is SUN (Glassfish), I navigate to Glassfish install dir. If it is JBoss AS, I navigate to that... this is no problem, but is problem when src is simply not there...

  • Servlet source code

    i want to attche the servlet source code to my IDE. For starters, I just need to know where to find the source. But I'm also concerned about which source to get.
    The following is from my jar file's manifest
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.2
    Created-By: 1.4.2_06-b03 (Sun Microsystems Inc.)
    Name: javax/servlet/
    Specification-Title: Java API for Servlets
    Specification-Version: 2.4
    Specification-Vendor: Sun Microsystems, Inc.
    Implementation-Title: javax.servlet
    Implementation-Version: 2.4.public_draft
    Implementation-Vendor: Apache Software Foundation
    So, does this mean that i have the RI version of servlets, and if i can find the RI source for 2.4, I'll have the correct source for my project?

    Depends on the application server used. If it is open source then you can just download the sources at their homepage.
    As far as I can see in the manifest, this Servlet API is implemented by Apache. So I guess it's Tomcat. And it is fortunately open source. You can get the sources just straight from their homepage.

  • Source code doesn't seem to line up with the compiled classes in ECLIPSE

    I am trying to write a Tomcat servlet to parse an incoming message, however when I parse the message to get the parts out of it I get a a parse error that doesn't really tell me a lot.
    I have downloaded the source code for the Java Mail API 1.3.2 and attached it to the jar file in Eclipse.
    However when I debug the code and step through it I get two problems. 1) I get a warning that I can't see the local variables (not really a great problem). 2) The lines in the source code do not line up with where the stack says I am.
    I have checked the dates on the various classes and the source of the API and they seem to line up.
    I did try to recompile the classes just as an experiment but I am runing JDK_1.4.2_06 and the source seems to be set up for 1.5 and I have some missing classes. I can't switch to 1.5 because there are some other servlets running on this server that won't work on 1.5.
    Can anyone give me a clue how I can at least get the the correct line number.
    Thanks
    Brynn

    Has anyone any ideas on this please?

  • Ffox hangs when I try to view source code - any ideas how to stop this?

    Ffox hangs when I try to view source code - any ideas how to stop this?
    hangs forever... have to use control-alt-del to close :-(

    Usually a USB error. Read here:
    http://support.apple.com/kb/ts3694#4000

  • Eclipse - debug step is not synchronise with source code.

    Hi,
    I have an web application witch run on tomcat, when Idebug the application, the debug steps are not synchronize with the source code. Same thing when I change the code , after making the jar file and putting it in the WEB-INF/lib of the web application, the modifications didn't take place. It seem that the old code always remains. I looked at the compile class in the jar file and the modifications have been taken in to account.
    what can cause this kind of behavior ? I relaunch tomcat many times without succes ?
    any help ? thanks a lot.

    Can it be the case that you compile your JAR optimized, i.e. without debug information? Then your classes are also without debug information.
    This sounds very likely as a refresh problem. Be sure that both source files in Eclipse and class files in Tomcat have the same version (e.g. with simple system.out).

  • Suddenly all emails I recieved before 2 pm today are all hyperlin source code the new ones nsince then are all readable any ideas?

    suddenly all emails I received before 2 pm today are all hyperlink source code the new ones since then are all readable any ideas?

    right click the folder, select properties and then chose the repair button.
    Long term solution is to not allow your anti virus to scan the Thunderbird profile folders.

  • Source code for "Creating an Extended Web Dynpro Application"?

    Hello!
    I'm a rookie in the field of SAP Netweaver and I'm justing getting started with some tutorials. My problems with "Creating an Extended Web Dynpro Application" are to massive to be posted on this forum in this stage. What I want to have some help with is to find the source code for that tutorial so I can get som guidence from there.
    Following text is cut out of this page:
    http://help.sap.com/saphelp_nw70/helpdata/EN/5d/f42fef2eec724597a03b6bcc670c2c/frameset.htm
    Creating an Extended Web Dynpro Application
    You can download the Web Dynpro project for the current tutorial from the Software Developer Network SDN (http://sdn.sap.com -> Web Application Server -> Web Dynpro -> Sample Applications and Tutorials) in two versions: one skeleton version you can use for exercises and one final version (solution) for an immediate build, deployment and run on the Java engine of the SAP Web Application Server.
    How hard I try I can't find the specific source code on sdn.sap.com
    Does anyone have a clue where it is?
    Thanks!
    Best regards
    /Johan Månsson Lindströ

    Hi!
    I did what you said but I seem to miss the IDE folder. This is what it looks in my Explorer
    C: > Program Files > SAP > IDE > CE > eclipse > (no folder called "examples")
    I also did a search in this eclipse folder for "examples" but I did'nt find the example I'm looking for
    I am running a newer version of NWDS:
    SAP NetWeaver Developer Studio
    SAP NetWeaver 7.1 Composition Environment SP03 PAT0000
    Maybe that's why things don't look the same?

  • Any way to search for casts in java source code?

    Anyone know of a decent way to search your java source files to find all the casts?
    I ended up doing a simple text search for
         " = ("(quote marks not included) which works for my code because I am strict about writing my casts with spaces like
         String s = (String) iterator.next();Unfortunately, the above search has all kinds of problems with both false positives and negatives. It picks up lots of irrelevant lines like
         int index = (number > 0) ? 0 : 1;as well as misses casts that appear nested inside expressions like
         ((String) iter.next()).charAt(...)I suppose that one could do a regular expression search for any pair of open and close parens which bound non-blank text, but that would pick up even more non-cast expressions in typical java code.
    I think that the only way to properly do this is to have a tool which understands java syntax.
    Anyone know of an IDE which will do this? Does IntelliJ or Netbeans support this kind of search?
    In case you are wondering why I am interested in this, it is because I am refactoring some code to fully use generics, and searching for casts is one source of identifying candidates for genericity.

    cliffblob wrote:
    Better late than never?Yes!
    cliffblob wrote:
    ...The answer I found to ID unnecessary casts was, using Eclipse IDE, In compiler error and warning preferences to warn on unnecessary casts.Thanks for pointing IDEs out. I just opened IntelliJ, and going back to at least version 7.04 (maybe earlier) they have an inspection for "Redundant type cast".
    cliffblob wrote:
    I would still be interested to know if there is a way to identify casts in general in your source, perhaps now four years later there is a way?The only solutions that I can think of are either a complicated regex search, or you must use some tool like an IDE that understand Java syntax and can determine if a cast is happening.

  • Procedural ABAP refactoring or mass source code replacement

    I am trying to change hard coded values from multiple source codes with respective constant names. Is there a tool to find and replace them according to a rules table. I wouldn't mind even if this tool was not in SAP (eg. Eclipse).
    Thank you in advance,
    Michalis.

    Dear Thomas,
    thank you for your prompt response.
    My idea was (and is) that since the ABAP compiler is embedded in Netweaver, it would be smart to get the compiler functionality together with regular expressions declaration in order to do what unix like systems do for years, replace strings with other strings. The program you suggest is well known for finding literals (substrings) in source, but when it does you never know what is the role of the literal on the source code line (in the particular code statement).
    Of course I agree with you regarding the term refactoring, that a human eye is needed, if I was to do real source code pattern recognition and replacement, but my driving need is more simple and way far from that (at least for now).
    Please keep me posted in case you have any news on the subject.

  • How to compile JMF source code

    Hello,
    Im working in an application which uses Java Media Framework to code/decode and transmit/receive the video and audio. I need to modify the h.263 codec in order to get an especial issue related to video.
    I download the source code of jmf I found in this topic: http://ohmydear.tistory.com/attachment/48fd0e73b49f9C0.zip. But I dont know how to compile the jmf in eclipse tool. Does anybody know?
    If anybody doesn't, would anybody know how to modify the coding and decoding of h.263 in JMF. I have no idea how to get that?
    Thanks a lot and best regards.
    Pedro

    pedritomoreno wrote:
    I download the source code of jmf I found in this topic: http://ohmydear.tistory.com/attachment/48fd0e73b49f9C0.zip. But I dont know how to compile the jmf in eclipse tool. Does anybody know?
    If it's not just a straightforward build, then I doubt anyone has instructions on how to do it...
    If anybody doesn't, would anybody know how to modify the coding and decoding of h.263 in JMF. I have no idea how to get that?Well, if you look at the following link...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
    You'll see that for h.263, decryption is the only thing that's implemented in Java (the things that are in the windows pack but not in the cross platform pack are implemented in native code)... so if you're wanting to do h.263 encoding, you'll have to code that from the ground up...
    Read the following post for more information about writing your own codecs...
    [http://forums.sun.com/thread.jspa?messageID=10725041#10725041]

  • Needed: A bit more info on the source code structure

    Hi,
    I've downloaded the source code zip file and would like to link to BlazeDS's source code from a Flex Builder project, so that I can step through it in the debugger.
    As far as I can see the source code is split up in multiple sub-directories under the modules directory. It would be nice if there was a single folder that included all BlazeDS source, so that I wouldn't have to link to multiple folders in my project.
    Or, at least, some explanation in a read-me file explaining what I need to link to.
    Am I missing something? If so, where?
    Also, an explanation of the difference between 'java' and 'java15' folders would be helpful.
    Thanks,
    Douglas

    > Could you explain to me why flex.messaging.MessageBroker only exists in
    > /core/src/java/ and not in /core/src/java15/?
    Hi Douglas,
    The classes are merged together in to a single jar file. The java15 code is
    mainly code that needs to be compiled with the compiler in 1.5 mode. This
    is left over from before we released BlazeDS and supported Java 1.4. We
    expect to 'fix' all this moving forward and require Java 5 SDK and JVM as a
    minimum. We just haven't done that yet.
    In an IDE you can just ignore this and set the JVM level to be 1.5 and
    include both the java and java15 directories as source. The Eclipse
    projects (and IntelliJ IDEA projects) we provide should already take care of
    this for you. It shouldn't be too hard to do in any other Java IDE either.
    Tom Jordahl
    Adobe

Maybe you are looking for