Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Javac.exe question

Thread view: 
Edward H. Fabrega - 26 Jun 2004 07:54 GMT
I just downloaded J2SE 1.4.2_04, installed it, and it doesn't have javac.exe
in the bin. Doesn't javac come with the SDK anymore? The previous version on
my computer is 1.4.0 and it doesn't have javac either. How am I supposed to
compile java programs? I've got a WINTEL machine with XP Pro if that makes a
difference. This is probably a stupid question, right? TIA
Christophe Vanfleteren - 26 Jun 2004 08:05 GMT
> I just downloaded J2SE 1.4.2_04, installed it, and it doesn't have
> javac.exe in the bin. Doesn't javac come with the SDK anymore? The
> previous version on my computer is 1.4.0 and it doesn't have javac either.
> How am I supposed to compile java programs? I've got a WINTEL machine with
> XP Pro if that makes a difference. This is probably a stupid question,
> right? TIA

The SDK should include javac.
Are you sure you haven't just downloaded the JRE instead?

Signature

Kind regards,
Christophe Vanfleteren

Frustrated in Illinois - 27 Aug 2006 17:12 GMT
>> I just downloaded J2SE 1.4.2_04, installed it, and it doesn't have
>> javac.exe in the bin. Doesn't javac come with the SDK anymore? The
[quoted text clipped - 5 lines]
>The SDK should include javac.
>Are you sure you haven't just downloaded the JRE instead?

I am in a class where we were given a program to compile and it compiled and
ran on the school computers using commands "javac" and "java" from the DOS
cmd window.

First I downloaded the J2EE, which I feel should be documented clearly that
it requires a Server, and doesn't run in Windows XP Home Edition, and
recommendations for another version that will.

In this class we were told to use version 1.5+ of J2.  The only reference I
could find to 1.5 was a beta version codenamed "tiger."  I assumed that J2SE
version 5.0 should be a later release containing the same capabilities as
version 1.5.  

After downloading what appeared to be both the J2EE latest version and the
J2SE latest version (Java Beans).  Both files were well over 150 MB and
neither contained javac.exe.  

On a positive note, it appeared that the example project set up to show the
new features of J2SE JavaBeans did compile and run properly.  However, it
seemed to be an atrocious amount of effort to create a file which says "Hello,
" and as a new user, I am completely nonplussed by the new features, as I
have not been exposed to the previous editions.

For comparison, in Basic, this program would have been something like:
10  Print "Hello"
save c:\"Hello"
Run

Of course the Basic program would have only run under very specific
circumstances, and certainly couldn't be put into an applet, but you can know
whether the "Basic SDK" works on your computer or not in just a few seconds.

This is especially frustrating to go through all these steps when so many
SDK's have undocumented incompatibilities with XP Home Edition, which you
only find out after going through hours of painful step-by-step instruction,
after compiling and running and opening up a window that says 404 not found.
(I aim this criticism more at Microsoft's SDK.

In this case, I was happy that this did not happen.  Instead of leading me
like a cow to the slaughter, this example actually led me like a cow to
something that looked a little more like a trough.  However, it wasn't the
trough I wanted, and I don't really like being led like a cow.

Anyway, my main point is that javac.exe does not appear to be in any of your
latest releases, and in the download pages, there don't seem to be any entry-
level descriptions or overview of the different releases.

Because there will be some people that want to use Java for different things:

1.  Java applets that work on the client side.
2.  Java applets that work on the server side.
3.  Java programs that can be made into executables.

I don't know what else is available, and I am only hypothesizing that J2EE,
J2SE, and J2ME have something to do with these.

Frustrated in Illinois
JDoolin - 28 Aug 2006 04:15 GMT
>>> I just downloaded J2SE 1.4.2_04, installed it, and it doesn't have
>>> javac.exe in the bin. Doesn't javac come with the SDK anymore? The
[quoted text clipped - 59 lines]
>
>Frustrated in Illinois

Well, my post from earlier today seems to have been lost to history.  Anyway,
the compiler, javac.exe appeared after all, in

C:\Program Files\Java\jdk1.5.0_07\bin

java.exe was in a directory in the %path% and javac.exe was copied somewhere
else, making me think that java was there, and javac wasn't.  

So my little "Hello World" program compiled.  Of course it doesn't run; one
shouldn't expect such extraordinary success of getting a computer program to
say "Hello World" without at least three days work, and I'm only on day 2.  

Tomorrow, I suspect I'll find out how to download the necessary "swing" class
libraries that allow java to output data to the screen.  These things rarely
go as I foresee, though.

Now maybe I don't understand the philosophy behind the java programming
language, but shouldn't a programming language have the ability to perform
basic input/output functions without importing custom user-defined functions
and class libraries?

I guess I'm just an old-timer.

~Frustrated.

Reply to this message

Don't worry about answering these things.  I've looked around a little on the
site and it really does look to me like you've been taking care of your
newbies.  Since I'm in a class, I'm sure I'll get all my questions answered,
and since it compiles and runs on the lab computers, it's not at all urgent.
I just hope to be able to continue to use Java once the class is over...

Just wanted to gripe a little bit.  So you can commiserate, or give some
helpful advice, or yell at me for not reading the right tutorials, which your
primarily volunteer staff has slaved over, and probably doesn't get nearly
enough appreciation.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.