Results 1 to 8 of 8
- 08-29-2011, 04:59 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 7
- Rep Power
- 0
I try to compile my source code, However it says javac: file not found: Hello.java
Hey,
I am trying to compile my source code i saved it as Hello.java on desktop but when i type into cmd:
javac Hello.java
It says:
I have java jdk and java installed i have set my environ mental lables up to jdk bin for path..Java Code:Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Havard>javac Hello.java javac: file not found: Hello.java Usage: javac <options> <source files> use -help for a list of possible options C:\Users\Havard>
Please help thanks!
P.S this might be wrong section not sure
- 08-29-2011, 05:17 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
- 08-29-2011, 05:39 PM #3
Use the dir command at the command prompt to see what files are in the current directory.
- 08-29-2011, 05:44 PM #4
Member
- Join Date
- Aug 2011
- Posts
- 7
- Rep Power
- 0
But i dont udnerstand why it oculdnt find it as i saved is as Hello.java on desktop
- 08-29-2011, 05:48 PM #5
Your were not on the desktop when you did this command:
C:\Users\Havard>javac Hello.java
Move Hello.java to the Havard folder and try again.
- 08-29-2011, 05:52 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
I bet your desktop isn't named 'Havard' ...
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 08-29-2011, 06:10 PM #7
If Hello.java is on the desktop you need to go to \Users\Desktop. Then run. Don't work? Reboot. Rebooting is always the elixir. Come on, you go to Havard University. <winks>
~MSP430 Lover~
- 08-29-2011, 06:35 PM #8
Member
- Join Date
- Aug 2011
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Javac, file not found
By Zorobay in forum New To JavaReplies: 1Last Post: 02-15-2010, 11:30 AM -
error while compile code using javac
By suri in forum New To JavaReplies: 3Last Post: 01-20-2010, 09:10 AM -
javac:file not found
By lovearora in forum New To JavaReplies: 3Last Post: 02-09-2009, 03:20 AM -
javac file not found
By teamkeff in forum New To JavaReplies: 6Last Post: 06-23-2008, 10:17 PM -
source code of 'javac'?
By Pooja Deshpande in forum Advanced JavaReplies: 2Last Post: 06-04-2008, 11:24 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks