Java Programming

V

veontaiahmerion

I'm currently in a college course for Java Programming. However, trying to
compile my programs are difficult. I have downloaded the software required
but when I enter javac Welcome1.java it says javac: file not found: I did a
DIR check to see if the file Welcome1.class file was there, but it is not.
My instructor said that before I can run the .class file, I will need to
compile it with java first. I'm struggling with this very much and do not
know where to go from here or where the problem is coming from. From the
command prompt, i entered javac.exe and it brought up all kinds of info.

Usage: javac <options> <source files>
where possible options include
-g generate all debugging info
-g: none generate no debugging info
-g: {lines, var, source} generate only some debugging info
-nowarn generate no warnings
-verbose output messages about what the compiler is doing
depreciation output source locations where depreciated API's are used

-classpath <path> specify where to find user class files and annotations
on processors
-cp <path> specify where to find user class files and
annotations
on processors
-source path <path> specify where to find input source files
-boot class path <path> overide location of bootstrap class files

My instructor says that I have the software installed correctly, but I
cannot run any of my programs that I write in notepad. Can somebody please
help me?
 
U

Uncle Grumpy

My instructor says that I have the software installed correctly, but I
cannot run any of my programs that I write in notepad. Can somebody please
help me?

Not here. This isn't an Windows XP operating system issue. Find a
Java support group to ask your question.
 
H

HeyBub

veontaiahmerion said:
I'm currently in a college course for Java Programming. However,
trying to compile my programs are difficult. I have downloaded the
software required but when I enter javac Welcome1.java it says javac:
file not found: I did a DIR check to see if the file Welcome1.class
file was there, but it is not. My instructor said that before I can
run the .class file, I will need to compile it with java first. I'm
struggling with this very much and do not know where to go from here
or where the problem is coming from. From the command prompt, i
entered javac.exe and it brought up all kinds of info.

Usage: javac <options> <source files>
where possible options include
-g generate all debugging info
-g: none generate no debugging info
-g: {lines, var, source} generate only some debugging info
-nowarn generate no warnings
-verbose output messages about what the compiler is doing
depreciation output source locations where depreciated API's are
used

-classpath <path> specify where to find user class files and
annotations on processors
-cp <path> specify where to find user class files and
annotations
on processors
-source path <path> specify where to find input source files
-boot class path <path> overide location of bootstrap class files

My instructor says that I have the software installed correctly, but
I cannot run any of my programs that I write in notepad. Can
somebody please help me?

Your source code written in notepad is unintelligible to a computer. It must
first pass through a translator to be rendered into something the computer
can understand. This translator is called a "compiler." In some
enviornments, the output of the compiler must then pass through another tool
(program) called a "linkage editor." The output of the compiler (or linker)
is then ready to be executed by the computer.

Source code (your stuff) => compiler (JAVA) => executable.

Look at the section of your text on "Compiling."
 
V

veontaiahmerion via WindowsKB.com

Uncle said:
Not here. This isn't an Windows XP operating system issue. Find a
Java support group to ask your question.
I appreciate your response, however, I was going off of what my instructor
said. He told me that it was not a Java issue that it was a Windows issue.
 
V

veontaiahmerion via WindowsKB.com

HeyBub said:
I'm currently in a college course for Java Programming. However,
trying to compile my programs are difficult. I have downloaded the
[quoted text clipped - 27 lines]
I cannot run any of my programs that I write in notepad. Can
somebody please help me?

Your source code written in notepad is unintelligible to a computer. It must
first pass through a translator to be rendered into something the computer
can understand. This translator is called a "compiler." In some
enviornments, the output of the compiler must then pass through another tool
(program) called a "linkage editor." The output of the compiler (or linker)
is then ready to be executed by the computer.

Source code (your stuff) => compiler (JAVA) => executable.

Look at the section of your text on "Compiling."
Thank you for your response. I appreciate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top