| View previous topic :: View next topic |
| Author |
Message |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Sun Jun 03, 2007 5:07 pm Post subject: [Help]Javac error |
|
|
| I downloaded the JDK6 thing from the java sun website, and then i read some HelloWorld tutorial.. after running the compile.bat, it says 'javac' is not an internal or external command. Can someone help me? the tutorial said it was a common mistake and I googled it and couldn't find any answers.
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sun Jun 03, 2007 5:18 pm Post subject: |
|
|
You need to add javac to the list of global commands.
Or you could point your directory to the compiler with (CD) then use javac.
Whatever floats your boat.
|
|
| Back to top |
|
 |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Sun Jun 03, 2007 5:22 pm Post subject: |
|
|
Where's the list? I'm really bad at this, you'll have to break it down... -.- sry
Edit: +rep
Last edited by muffinman177 on Sun Jun 03, 2007 6:32 pm; edited 1 time in total |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sun Jun 03, 2007 5:25 pm Post subject: |
|
|
| muffinman177 wrote: | | Where's the list? I'm really bad at this, you'll have to break it down... -.- sry |
Select Start -> Control Panel -> System -> Advanced -> Environment Variables -> System Variables -> Path.
Stick C:\Program Files\Java\jdk1.5.0_06\bin; (Or whatever your directory is.) at the beginning of Path.
|
|
| Back to top |
|
 |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Sun Jun 03, 2007 6:11 pm Post subject: |
|
|
| So i select path and click the edit button and change it to C:\Program Files\Java\Jdk1.6.0_0bin?
|
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Sun Jun 03, 2007 6:18 pm Post subject: |
|
|
| muffinman177 wrote: | | So i select path and click the edit button and change it to C:\Program Files\Java\Jdk1.6.0_0bin? |
No, don't change it. Just add it to the beginning of what's there. Remember to add a semicolon at the end.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Sun Jun 03, 2007 6:32 pm Post subject: |
|
|
Oh.... Thanks.
Edit: Oh yay.. it works:)
|
|
| Back to top |
|
 |
|