Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,256
Total Threads: 106,575
Total Posts: 592,698
There are 78 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Other Programming Languages :

Javacompilation problem (javac won't work)

Thread title: Javacompilation problem (javac won't work)
Closed Thread    
    Thread tools Search this thread Display Modes  
10-09-2008, 05:00 PM
#1
.Cyanide is offline .Cyanide
Status: Senior Member
Join date: Mar 2006
Location: Stockholm,Sweden
Expertise: Web Design, Coding
Software: Phoshop CS3
 
Posts: 757
iTrader: 4 / 100%
 

.Cyanide is an unknown quantity at this point

Send a message via MSN to .Cyanide

  Old  Javacompilation problem (javac won't work)

Hey

I'm trying to compile (compliate?) my javaprogram but the command "javac" won't work on my computer. Does anyone know a way to solve this problem?

I get an error message saying Javac is not a valid command or something.

And I've tried tutorials saying I should change Path and Classpath but none of the tutorials I found on Google seems to work

Thanks,
Jake

10-09-2008, 10:27 PM
#2
dynamic313 is offline dynamic313
Status: Junior Member
Join date: Jul 2008
Location:
Expertise:
Software:
 
Posts: 52
iTrader: 0 / 50%
 

dynamic313 is on a distinguished road

Send a message via MSN to dynamic313

  Old

Originally Posted by .Cyanide View Post
Hey

I'm trying to compile (compliate?) my javaprogram but the command "javac" won't work on my computer. Does anyone know a way to solve this problem?

I get an error message saying Javac is not a valid command or something.

And I've tried tutorials saying I should change Path and Classpath but none of the tutorials I found on Google seems to work

Thanks,
Jake
What OS are you running? and what JDK?

Have you tried pointing to it fully like in cmd (if windows) go to the directory
Code:
C:\Program Files\Java\jre1.6.0_05\bin
change the jre1.6.0_05 for whatever version your using and then type javac if it works then there is definatly somthing wrong with either/or both of the path and classpath settings.

If that doesnt work try running it all in 1 like C:\Program Files\Java\jre1.6.0_05\bin\javac.exe see if that does anything, if it doesnt maybe simple uninstalling and reinstalling may fix this issues it happend to me once i found a re-install worked for me.

10-11-2008, 11:24 AM
#3
.Cyanide is offline .Cyanide
Status: Senior Member
Join date: Mar 2006
Location: Stockholm,Sweden
Expertise: Web Design, Coding
Software: Phoshop CS3
 
Posts: 757
iTrader: 4 / 100%
 

.Cyanide is an unknown quantity at this point

Send a message via MSN to .Cyanide

  Old

I'm running Windows Vista, and JDK 6. How do you mean "pointing to it fully in cmd"? I'm new to all this, just started learning Java so I pretty much know nothing.

If I search for the program "javac.exe" i get an error message saying it doesn't exist :S

10-16-2008, 12:41 AM
#4
dynamic313 is offline dynamic313
Status: Junior Member
Join date: Jul 2008
Location:
Expertise:
Software:
 
Posts: 52
iTrader: 0 / 50%
 

dynamic313 is on a distinguished road

Send a message via MSN to dynamic313

  Old

Originally Posted by .Cyanide View Post
I'm running Windows Vista, and JDK 6. How do you mean "pointing to it fully in cmd"? I'm new to all this, just started learning Java so I pretty much know nothing.

If I search for the program "javac.exe" i get an error message saying it doesn't exist :S
If your searching for javac.exe and cant find it then its not on your computer, i in this case i would suggest uninstalling the jdk you have installed and try re-installing the latest one which i belive is jdk1.6.0_10 and try again as obviously javac.exe needs to be in the bin directory of the jdk folder for it to be used.

If you get problems you can pm me as i may not notice you replied to this

Closed Thread    


Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed