Help to_understand_please.

In advance I apologize, I do not know foreign languages, and on скльку Russian I write as I am able.:) at me a little simple questions.1) at input in a command line of a command " javac name_file.java " the mistake stands out. The mistake is given out not with the compiler, simply a computer does not find such program. How to adjust? 2) it is necessary to establish variable environments PATH and JAVA_HOME. please how ето to make? 3) with pregoing problems it was possible to me скомпелировать a file. Has appeared new (name_file.class) .at to attempt it to start nothing I activated it comands " java name_file" .tekst programs:

class HelloWorld

{

public static void main(String[] args)

{

System.out.println("Hello World");

}

}

[921 byte] By [Help_to_understand_please.a] at [2007-10-2 5:45:48]
# 1

1) and 2) are somewhat dependent on the operating system you use on your computer. Which operating system do you have? This link might help.

http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

In reference to 3), I don't understand your question. Did you successfully create a name_file.class? I think that you did. When you tried "java name_file" what happened? You should have HelloWorld.class file and you should use "java HelloWord" Do not use .class at the end of HelloWorld.

atmguya at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 2
http://www.apl.jhu.edu/~hall/java/beginner/settingup.html
kilyasa at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 3

Compilation has gone right also a name of a file I it seems has specified correctly, I already time 5 has re-read the grant has not found. And system at me windows xp

When I write in a command line java HelloWorld, not the screen on pair seconds there is an empty window, after disappears.

Help_to_understand_please.a at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 4

Perfectly, thanks huge. I could adjust variables, тепер the command line finds a command javac, but on former does not wish to carry out the program. Tell please, фаилы which should be started should be in the certain folder? Or they can be kept anywhere?

Help_to_understand_please.a at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 5

> When I write in a command line java HelloWorld, not

> the screen on pair seconds there is an empty window,

> after disappears.

Try to "cd" to the directory where HelloWorld.class file is. Then use "java -classpath . Helloworld"

Also, if you have an error message can you post it here?

atmguya at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 6
In it all and business, messages on a mistake are not present. Only a black window on pair seconds.
Help_to_understand_please.a at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 7

> When I write in a command line java HelloWorld, not

> the screen on pair seconds there is an empty window,

> after disappears.

Sounds like you are doing:

[Start] -> [Run] -> [javac HelloWorld.java]

You should be doing:

[Start] -> [Run] -> [cmd]

Then in the "DOS" prompt window that opens, you type

C:\Documents and Settings\username> cd my documents

C:\...\My Documents> javac HelloWorld.java

If you get "javac is not recognized ..." your PATH is not correct.

tschodta at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 8

Has made. Works, only it was necessary to write a file *.bat with a pause.

But works.:)

At me 羼麇 a question, here before the announcement of a variable p鄑h at me it 礤猁腩 and when I it have entered many programs were indignant, why?

It is possible where 龛狍潼 to find value of the given variable by default?

Help_to_understand_please.a at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...
# 9

> Has made. Works, only it was necessary to write a

> file *.bat with a pause.

> But works.:)

This probably means you are running the *.bat file from [Start]->[Run]

instead of from a DOS prompt window.

> At me 羼麇 a question, here before the announcement

> of a variable p鄑h at me it 礤猁腩 and when I it have

> entered many programs were indignant, why?

> It is possible where 龛狍潼 to find value of the

> given variable by default?

Control Panel -> System -> Advanced -> Environment Variables

If you are setting the path once you have a DOS prompt:

C:\..> set PATH=C:\j2sdk1.4.2_09\bin;%PATH%

tschodta at 2007-7-16 1:55:39 > top of Java-index,Desktop,Runtime Environment...