Ken Okoli

Greenhorn
+ Follow
since Dec 19, 2003
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 Ken Okoli

kiran vydhyam
Error: Cannot read A.java, right?
I used to have a similar problem. I think the editor you are working on is adding it's own extension to your java file. For example when you save you have something like: A.java.txt right?
This time, when you save, include " ". For example, "A.java"
That should allow javac to read A
Maybe to hide extensions for known file types may be permanent.
19 years ago
Hi Lorylee
the problem maybe in your classpath or just path
i guess your compiler does not know where you put your program
1. make sure u save your files in the "bin" directory
i mean for example:
"save as" locate where you installed JDK. Typically, on "C drive" then "jdk1.4.1" then "bin" then "save"
2."start" then "run" then type "sysedit" then add:
set classpath=%classpath%;c:\jdk1.4.1\bin and then save your work.
3. Test by going to dos prompt and typing "path"
you should see your path added......at least that's what i think.
N.B always save your programes with extension ".java"
19 years ago
JVM = JavaVirtualMachine
JRE = JavaRuntimeEnvironment

The JVM sits between your program and the computer. It creats a hypothetic compter that has a program called an interpreter used to convert your written code into byte codes 1's and 0's which the JVM can handle with the help of your processor(hardware.
I think of the JRE as the process and eviroment in which you come in to say where what happens, maybe a console for javac and not the code editor itself.
JVM is included in JRE and runs your code. If you want to develop java apps, you need the JavaDeveloperKit (JDK).
i guess the JDK contains both.It's the Java Development Kit.
19 years ago