Sky Mendoza

Greenhorn
+ Follow
since Jan 11, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sky Mendoza

This is the variable value of my Path in the environment %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\;C:\Program Files (x86)\Java\jdk1.7.0_10\bin

I dont know if this is correct.
11 years ago
A long post appeared. I tried running my program but still it says javac is not recognized blah blah.



And btw, what should be the variable value in the Path?
11 years ago
Oh sorry. I just typed %PATH% but i tried echo %PATH% and this is C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShel l\v1.0\;C:\Program Files (x86)\Java\jdk1.7.0_10\bin
11 years ago
It says C:\Windows\system32 is not recognized as an internal or external command, operable program or batch file.
11 years ago
Yep. I installed JDK 1.7
11 years ago
Im just starting as a programmer. When im at school, i can compile at java. But when i try to compile a program at home, it says javac is not recognized as an internal or external command error. I really dont know what to do. I tried changing the environment settings but still, nothing happened. What should i do?
11 years ago
The hell i dont know what to do with javac. it just dont work. help.. thanks! i keep on having problem about the javac part. oh god help.
11 years ago
Oh thanks. Im not really good at programming because i'm only 1st year college.
I am able to compile it but I cant let it run. I dont even know if the code I did is right or what. But here it is:
public class OddOrEven{
public static void main(String []args){
int x = 1;
if (x > 1000){
if (x < 1){
System.out.println("Accepted");
}else if (x < 1000){
System.out.println("Error");
}else if (x > 1){
System.out.println("Error");
if (x % 2 == 0){
System.out.println("Even");
}else{
System.out.println("Odd");
}
}
}
}
}




I should make a code that only accepts 0-1000 else print error then it should show if it is even or odd. Thanks in advance and sorry for my english. Haha