wood burning stoves*
The moose likes Beginning Java and the fly likes new to programming, sadly already snagged before i can start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "new to programming, sadly already snagged before i can start" Watch "new to programming, sadly already snagged before i can start" New topic
Author

new to programming, sadly already snagged before i can start

harry winkler
Greenhorn

Joined: Mar 29, 2012
Posts: 8
trying to set up the path variable.

i downloaded and installed java 1.7 jdk.

copied the path to the bin folder and pasted it in the path environment variable. I am trying to run my simple java.class from command line. Keep getting this error.

>%java MyFirstApp
'%java' is not recognized as an internal or external command,
operable program or batch file.

% java MyFirstApp
'%' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files\Java\jdk1.7.0_03\bin;C:\Program Files (x86)\AMD APP\bin\x86;C:\Users\bkramer\Documents\AMD APP\bin\x86_64;C:\Users\bkramer\Documents\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\AMD APP\tools\AMD APP KernelAnalyzer 1.9\;C:\Program Files\Java\jre7\bin;

i know stupid question but its really bothering me.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11231
    
  16

i'm not sure what operating system you are using...but i think you are using windows. the example is probably for a unix-like system.

The upshot being...don't type the "%".


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
harry winkler
Greenhorn

Joined: Mar 29, 2012
Posts: 8
fred rosenberger wrote:i'm not sure what operating system you are using...but i think you are using windows. the example is probably for a unix-like system.

The upshot being...don't type the "%".


wow, well that was the answer.

thanks.

I am an idiot.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38363
    
  23
No, somebody has confused you by showing the prompt, which is not actually %.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11231
    
  16

There is a lot to learn when you first start programming. And, us old-timers forget how much stuff we assume everyone knows, when it is not necessarily true.

Don't feel like an idiot. Ask questions - it's why we're here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to programming, sadly already snagged before i can start