26
votes
5answers
20k views

Java JDK Source Code?? Where to find it?

I like to see what a method in the Java API does. So I want the JDK Source Code. Before I re-installed Linux I had the scr.zip package with all the official source code in it. I just had to tell ...
10
votes
7answers
14k views

Best source code formatter for Javascript?

I've been digging through Stack Overflow as well as a number of Google searches, and I cannot find a satisfactory code formatter for Javascript. I have found several related tools, such as syntax ...
33
votes
11answers
14k views

Java/Eclipse on MacOSX: where is the src.zip?

With the latest Java update on MacOSX 10.6, Eclipse does not find the Java sources anymore. I am not exactly sure (i.e. don't remember anymore) if I have downloaded the sources manually in the past ...
9
votes
9answers
6k views

Java Clustering Library

Thanks for reading my question. I am looking for a light weight clustering library in java. I don't need 100s of clustering algo in that library just 5 to 7 algo would be fine for me. I am sure, you ...
4
votes
6answers
1k views

How to count words in java

I am looking for an algorithm, hint or any source code that can solve my following problem. I have a folder it contains many text files. I read them and store all text in STRING. Now I want to to ...
2
votes
1answer
2k views

How are arrays implemented in java?

Arrays are implemented as objects in java right? If so, where could I look at the source code for the array class. I am wondering if the length variable in arrays is defined as a constant and if so ...
14
votes
4answers
4k views

How to protect compiled Java classes?

I know, many similar questions has been asked here. I am not asking if I can protect my compiled Java class - because obviously you will say 'no you can't'. I am asking what is the best known method ...
5
votes
4answers
5k views

Where can I find the source code for Java's Square Root function?

I know that Math.sqrt calls StrictMath.sqrt(double a) I was wanting to look at the actual code used to calculate it.
6
votes
4answers
8k views

What is “src” directory created by Eclipse?

I just installed Eclipse. The Eclipse created the "workspace" folder. In this folder I created a "game" sub-folder (for my class called "game"). I have already .java files for that project (I wrote ...
5
votes
1answer
469 views

How to get surrounding method in Java source file for a given line number

I have a line number of a Java source file and want to get the sourounding method for that line number programatically.
9
votes
5answers
7k views

How to get JRE/JDK with matching source?

I'd like to get at least one JRE/JDK level on my Windows machine where I have the JRE/JDK source that matches the exact level of the JRE/JDK. My purpose is to be able to go into the system classes ...
2
votes
3answers
829 views

Loading external source code and using them internally (by re-compiling or something)

Is there a way in using externally stored sourcecode and loading it into a Java programm, so that it can be used by it? I would like to have a program that can be altered without editing the complete ...
21
votes
2answers
19k views

How to generate a Java class which implements Serializable interface from xsd using JAXB?

I would like to introduce caching into an existing Spring project which uses JAXB to expose WebServices. Caching will be done on the level of end points. In order to do that classes generated from XSD ...
13
votes
7answers
4k views

What's the best way to share JARs across multiple projects?

When you have multiple projects that all use the same set of JAR libraries, it's tedious to include the same JARs over and over again with each project. If I'm working on 20 different projects, I'd ...
11
votes
13answers
4k views

How to manage @todo programming stuff?

For many years my code was full of this kind of comments : //TODO : Add ... ... /* *TODO : Fix ... * */ Now I think to create my own @todo javadoc annotation ... but before doing that I want to ...

1 2 3
15 30 50 per page