Click here to Skip to main content
15,888,461 members
Home / Discussions / Java
   

Java

 
AnswerRe: Understanding Java Integer Pin
jschell19-Nov-13 10:58
jschell19-Nov-13 10:58 
AnswerRe: Understanding Java Integer Pin
Oscar020-Nov-13 6:35
Oscar020-Nov-13 6:35 
Questiontrying to find the real import files Pin
tiwal17-Nov-13 21:10
tiwal17-Nov-13 21:10 
AnswerRe: trying to find the real import files Pin
Richard MacCutchan17-Nov-13 22:32
mveRichard MacCutchan17-Nov-13 22:32 
GeneralRe: trying to find the real import files Pin
tiwal17-Nov-13 23:35
tiwal17-Nov-13 23:35 
GeneralRe: trying to find the real import files Pin
Richard MacCutchan18-Nov-13 0:43
mveRichard MacCutchan18-Nov-13 0:43 
GeneralRe: trying to find the real import files Pin
tiwal18-Nov-13 1:18
tiwal18-Nov-13 1:18 
AnswerRe: trying to find the real import files Pin
Oscar020-Nov-13 6:54
Oscar020-Nov-13 6:54 
The direct answer to your question is yes, there is a direct correspondence between the dotted package names and the directory hierarchy.

So for example, "java.nio.Buffer" is found in the directory "java/nio" and the file the loader looks for (in that directory) is called: "Buffer.class".

What directory? you ask. The answer is any and all directories in the classpath are candidates (that includes jar files).

A jar file is nothing more than a zip file with a different file extension. So open "rt.jar" in Winzip (or whatever zip file viewer you have lying around.

In there you will see all the standard Java library directories, like "javax/swing/tree", "java/awt/font" etc. (these would correspond to packages javax.swing.tree.*, java.awt.font.*).

And in the directory "java/nio" you should find all the java.nio files.

EDIT: by the way, rt.jar is found in the jre/lib directory. So in Windows that would be "/Program Files/Java/jre/lib" or "/Program Files/Java/jdk/jre/lib"

modified 20-Nov-13 13:04pm.

QuestionOpenGTS with eclipse Pin
Member 1026351915-Nov-13 23:54
Member 1026351915-Nov-13 23:54 
AnswerRe: OpenGTS with eclipse Pin
Richard MacCutchan16-Nov-13 0:17
mveRichard MacCutchan16-Nov-13 0:17 
GeneralRe: OpenGTS with eclipse Pin
Member 1026351916-Nov-13 0:43
Member 1026351916-Nov-13 0:43 
Questionhelp!!! seasar framework ... Pin
thetime110214-Nov-13 17:47
thetime110214-Nov-13 17:47 
AnswerRe: help!!! seasar framework ... Pin
Richard MacCutchan14-Nov-13 21:40
mveRichard MacCutchan14-Nov-13 21:40 
GeneralRe: help!!! seasar framework ... Pin
thetime110214-Nov-13 22:12
thetime110214-Nov-13 22:12 
AnswerRe: help!!! seasar framework ... Pin
Marco Bertschi14-Nov-13 21:56
protectorMarco Bertschi14-Nov-13 21:56 
GeneralRe: help!!! seasar framework ... Pin
thetime110214-Nov-13 22:18
thetime110214-Nov-13 22:18 
GeneralRe: help!!! seasar framework ... Pin
Marco Bertschi14-Nov-13 22:23
protectorMarco Bertschi14-Nov-13 22:23 
QuestionSearch data in Java RMI Pin
Cyber1213-Nov-13 21:26
Cyber1213-Nov-13 21:26 
AnswerRe: Search data in Java RMI Pin
Richard MacCutchan13-Nov-13 21:41
mveRichard MacCutchan13-Nov-13 21:41 
QuestionJava Web Service-RPC+RMI Sample Project Pin
Cyber128-Nov-13 1:50
Cyber128-Nov-13 1:50 
AnswerRe: Java Web Service-RPC+RMI Sample Project Pin
Richard MacCutchan8-Nov-13 1:58
mveRichard MacCutchan8-Nov-13 1:58 
QuestionClient Server Communication in Java Pin
Cyber128-Nov-13 1:15
Cyber128-Nov-13 1:15 
AnswerRe: Java Sample Project RPC & RMI Pin
Richard MacCutchan8-Nov-13 1:25
mveRichard MacCutchan8-Nov-13 1:25 
GeneralMessage Closed Pin
8-Nov-13 1:34
Cyber128-Nov-13 1:34 
GeneralRe: Java Sample Project RPC & RMI Pin
Richard MacCutchan8-Nov-13 1:57
mveRichard MacCutchan8-Nov-13 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.