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 / First Aid / October 2006

Tip: Looking for answers? Try searching our database.

help with installation

Thread view: 
Cleverbum@hotmail.com - 04 Oct 2006 17:12 GMT
I've been programming in java for some time now, but always on a
university machine that was already set up to do so.
I'm having trouble setting up my own machine to use the compiler. I've
downloaded and installed " J2SE(TM) Development Kit 5.0 Update 9" for
the right version of windows, but whenever I type "javac myclass.java"
at the command prompt it tells me javac is not recognised... where am I
going wrong?
ge0rge - 04 Oct 2006 18:24 GMT
> I've been programming in java for some time now, but always on a
> university machine that was already set up to do so.
[quoted text clipped - 3 lines]
> at the command prompt it tells me javac is not recognised... where am I
> going wrong?

Set yout PATH to the java bin directory.
On Windows, this is done in Control panel .... environment variables.
On Linux/Unix, there are various places you can do this.

Signature

Of course there's no reason for it, it's just our policy.

adwords@pulpjava.com - 05 Oct 2006 03:33 GMT
Getting a Java program to compile can be one of the must frustrating
experiences, but it is absolutely required if you want to have any
street cred in the Java community.

Sometimes text editors append a .txt to the end of the Java file. Be
careful. Also, everything is case sensitive. Be careful of that.

Here are some multimedia tutorials on how to compile a Java class using
javac and J2SE version 1.5. It's the basic HelloWorld.java stuff, but
it shows you everything you need.

http://www.technicalfacilitation.com/examscam/get.php?link=../scja/tutorials

There's also some tutorials in there and mock exam questions that will
help you if you're studying for the Sun SCJA exam (Sun Certified Java
Associate)

Cheers!

-Cameron McKenzie

www.scja.com www.pulpjava.com www.cameronmckenzie.com

> > I've been programming in java for some time now, but always on a
> > university machine that was already set up to do so.
[quoted text clipped - 7 lines]
> On Windows, this is done in Control panel .... environment variables.
> On Linux/Unix, there are various places you can do this.


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.