Joe Raszewski

Greenhorn
+ Follow
since Apr 14, 2012
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 Joe Raszewski


Joanne. Thank You. When I am working in Notepad it is very hard to distinguish Caps from small case. Until I copied that code into the forum, i could not see that the 'V' was capitalized. It now runs.

Thank you. I am on my way.
8 years ago
P.S. the indentations are missing after the copy but they line up and are in line as per the program in the book...
8 years ago
Thanks for everyone's help.

I finally got the PATH set and got my test program to compile and run. I am running a 2nd test with a program copied verbatim from my text. It's the I Rule The World progam and while I have copied it right from the book, i keep getting the missing return statement error. I cannot figure out the solution. I've tried placing the closing bracket in al positions, butt . Heres the program and the corresponding message. What am i doing wrong?





C:\Tracey's Files> javac MyFirstJavaApp.java
MyFirstJavaApp.java:7: error: missing return statement
}
^
1 error

C:\Tracey's Files>
8 years ago
Thanks Vince.

ok. i now know the software is operational because i was able to navigate to the bin folder and compile & run the HelloWorld program while in that directory. Therefore, i must not have my variables set properly. I also can't copy my java files into the bin for compile so i have to rely on PATH and CLASSPATH and must not have them set properly. Here's what i have set up.


User Variable

%JAVA_HOME% is set to: C:\Program Files\Java\jdk1.7.0_03\bin


System Variable

CLASSPATH is set to: .;C:\Program Files\Java\jdk1.7.0_03\bin

PATH is set to: %JAVA_HOME%\bin;C:\Windows\etc..other stuff....

This must be wrong. Got the ideas from other posts on setup. I presume that if they were set properly that i could run javac and java commands from any command prompt, correct? i think i made some progress today, but still not where i need to be.

Any guidance would be helpful. Thanks
8 years ago
hi Rajeev. Thanks for your reply. i see javac in my bin folder, but not javac.exe. I am trying to complie from the command line. A good example of the error is that when I try Javac Filename.java, it returns 'javac not recognized as an internal or external command...'. i tried uninstalling jdk today and reinstalling the latest 1.7 version. everything completed, but i still get same message whan attempting to compile and still do not see javac.exe in the 1.7 bin folder (I do see a file javac, but it has no extension).... This has to be something simple i am either missing in the download or install process. Everything else completes normally. I re-register with Oracle and i can see the java -version return the java 1.7, etc... I am still stumped. Any help would be really appreciated. Thanks
8 years ago
i am beginning a java programming class and have downloaded jdk1.6.0_30 and it recognizes the java command and confirms the version of java, but will not run the javac command and will not return a version for javac. I have spent hours retrying the download and can't get javac to work. one theory is that I originally doenloaded the JRE for 1.6.0_31 only to start and it created a separate folder in the Java folder for the jre6 vs. the jdk and the reinstall put the JRE in the 2nd file folder jre6 again. Does the jre6 need to be in the same folder as the remainder of the jdk1.6.0 files? that's just a guesss. I simply can't get javac to work and am going in cirlces. any helpm would be really welcome. Thank you.
8 years ago