Hardly a Java question, but I'll try my luck.
I've just installed JDK (JDK-1_5_0_04-windows-i586-p.exe) on a Windows
XP machine; or thought that I did. 'java'(.exe) is there in the
relevant \bin directory. But no 'javac'? Am I going mad?
TIA,
Jon C.
Knute Johnson - 22 Jul 2005 16:47 GMT
> Hardly a Java question, but I'll try my luck.
>
[quoted text clipped - 5 lines]
>
> Jon C.
Jon:
You need to add the compiler bin to your path:
C:\progra~1\Java\jdk1.5.0_04\bin
in my XP installation.

Signature
Knute Johnson
email s/nospam/knute/
jg.campbell.ng@gmail.com - 22 Jul 2005 17:05 GMT
> > Hardly a Java question, but I'll try my luck.
> >
[quoted text clipped - 13 lines]
>
> in my XP installation.
I have been able to run 'java' okay. There is no 'javac.exe' in the
\bin directory. I've set 'JAVA_HOME' and 'PATH' via 'Environment
Variables'.
(I should explain that a five hours in XP has me in a pretty anxious
state -- I normally use Linux. But that's hardly an explanation of this
madness.)
Thanks,
Jon C.
jg.campbell.ng@gmail.com - 22 Jul 2005 17:16 GMT
jg.campbell...@gmail.com wrote:
> > > Hardly a Java question, but I'll try my luck.
> > >
[quoted text clipped - 17 lines]
> \bin directory. I've set 'JAVA_HOME' and 'PATH' via 'Environment
> Variables'.
Sorry to labour the point, the download was from here:
http://java.sun.com/j2se/1.5.0/download.jsp
and the relevant section:
"...
JDK 5.0 Update 4 includes the JVM technology
The J2SE Development Kit (JDK) supports creating J2SE applications.
More info...
Download JDK 5.0 Update 4
..."
Best regards,
Jon C.
Monique Y. Mudama - 22 Jul 2005 17:49 GMT
> Hardly a Java question, but I'll try my luck.
>
> I've just installed JDK (JDK-1_5_0_04-windows-i586-p.exe) on a
> Windows XP machine; or thought that I did. 'java'(.exe) is there in
> the relevant \bin directory. But no 'javac'? Am I going mad?
Is it at all possible that you misclicked and downloaded the JRE, not
the JDK?

Signature
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Bryce - 22 Jul 2005 17:55 GMT
>Hardly a Java question, but I'll try my luck.
>
>I've just installed JDK (JDK-1_5_0_04-windows-i586-p.exe) on a Windows
>XP machine; or thought that I did. 'java'(.exe) is there in the
>relevant \bin directory. But no 'javac'? Am I going mad?
sounds like you downloaded the JRE instead of the JDK (although, if
the filename you quoted above it true, it sounds like the correct one.
--
now with more cowbell
jg.campbell.ng@gmail.com - 22 Jul 2005 18:03 GMT
> Hardly a Java question, but I'll try my luck.
>
> I've just installed JDK (JDK-1_5_0_04-windows-i586-p.exe) on a Windows
> XP machine; or thought that I did. 'java'(.exe) is there in the
> relevant \bin directory. But no 'javac'? Am I going mad?
Yes -- to last question ;-) And I know that most of you agree.
But I'm now reinstalling -- last time, and the previous (on another
machine), I assumed that everything (from memory: SDK, Demos, Examples,
JRE) would have been installed. Now I'm presented with a pretty vague
menu. More later.
Best regards,
Jon C.
jg.campbell.ng@gmail.com - 23 Jul 2005 13:59 GMT
> > Hardly a Java question, but I'll try my luck.
> >
> > I've just installed JDK (JDK-1_5_0_04-windows-i586-p.exe) on a Windows
> > XP machine; or thought that I did. 'java'(.exe) is there in the
> > relevant \bin directory. But no 'javac'? Am I going mad?
[...]
> But I'm now reinstalling -- last time, and the previous (on another
> machine), I assumed that everything (from memory: SDK, Demos, Examples,
> JRE) would have been installed. Now I'm presented with a pretty vague
> menu. More later.
Apologies for the delay in following up -- Windows suggested that it
clear some space on the C: partition; I agreed, not realising that the
task would take more than one hour. I was installing JDK onto another
partition, but maybe the shortage of space on C: is a clue to the odd
behaviour descibed.
In any case, the reinstallation (from the /same/ .exe file) worked and
everything is as expected; 'javac.exe' is now in 'jdk...\bin'.
So, there are things in 'jdk...\bin' that were absent earlier, e.g.
'javac.exe'. And 'tools.jar' is in 'jdk...\lib' -- also absent earlier.
And there are files missing from 'jdk...\' that were present earlier --
I've forgotten the details, but a bunch of files with names suggestive
of foreign languages.
The 'pretty vague menu' (asking what needs to be installed -- jdk, jre,
etc.) mentioned above is now clear enough; initially, the method and
indication of selection was incomprehensible to me.
The other difference with the second installation is that it asked
about registering with both installed browsers (IE and Firefox), wheras
the original asked only about IE.
So, the original installation must somehow have got confused -- perhaps
by the lack of space on C:.
Thanks everyone. But probably not the last you have heard from me :-)
Jon C.
"." - 22 Jul 2005 22:14 GMT
> Hardly a Java question, but I'll try my luck.
>
> I've just installed JDK (JDK-1_5_0_04-windows-i586-p.exe) on a Windows
> XP machine; or thought that I did. 'java'(.exe) is there in the
> relevant \bin directory. But no 'javac'? Am I going mad?
Two thoughts. 1) you downloaded the JRE. 2) Sun packaged the JRE in the
JDK installer. The fact that you listed the executable as
JDK-1_5_0_04-windows-i586-p.exe leads me to believe that you downloaded
the JDK and not the JRE. So the remaining possibility is that the build 4
of 1.5.0 is messed up. I'd try downloading the installer again and see if
the new installer is a different size (i.e. they fixed the mistake). If
not, send a message to someone at Sun letting them know of the problem.

Signature
Send e-mail to: darrell dot grainger at utoronto dot ca