Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2008, 02:08 PM
Senior Member
 
Join Date: Nov 2007
Posts: 111
bugger is on a distinguished road
Not able to compile
When I try to compile the java files, I get the following error message:

Code:
'javac' is not recognized as an internal or external command, operable program or batch file
I checked, I have Java 1.5 on my machine. Its a strange error for me. Please advice.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-09-2008, 04:07 PM
Member
 
Join Date: Jan 2008
Posts: 2
vagarwal_mca is on a distinguished road
u have not set the path of the bin directory
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-10-2008, 12:13 AM
gibsonrocker800's Avatar
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
Quote:
Originally Posted by vagarwal_mca View Post
u have not set the path of the bin directory
Yep, he's right. The thing is that i had this problem when i first started and someone told me that, but i didn't know what it meant. So, here's what you do (im assuming that you're using windows, i don't know how to do it with any other OS).

Ok, find out where your compiler is located. It's most likely going to be in C:\Program Files\Java\jdk1.6.0_02\bin (or whatever version of jdk you have). So, get the location of the bin folder in your JDK, and copy it.

Now, go to Start, Control Panel, Performance and Maintenance, System, Advanced tab, Environment variables, then go to the section labeled "System", and highlight the part called "Path" and and click Edit. Now, at the end of the text, put a semicolon (; ... if there isn't one already) and then paste the file path of your bin directory that you copied before. Make sure there's no space in between the semicolon and the filepath. Now click OK, and everything should work.

Let me know if you have any problems
__________________
//Haha javac, can't see me now, can ya?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Trouble adelgado0723 New To Java 5 04-21-2008 04:02 AM
How to compile an applet to an exe elizabeth Java Applets 4 02-18-2008 05:57 AM
Unable to compile gapper New To Java 2 01-14-2008 06:31 PM
compile error dirtycash New To Java 6 12-12-2007 08:00 PM
Compile a program toby New To Java 2 07-30-2007 11:09 AM


All times are GMT +3. The time now is 01:54 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org