Questions about Java compilation

zhaozj2021-02-16  101

I won't run the Java compiler, I hope that I have to give up, the following is my operation.

(1) I installed the Java compiler in the C-drive root directory, the folder name is the default (J2SDK1.4.1_02), written in the readme under this folder: The beginning is Readme

Java (TM) 2 SDK, STANDARD Edition

Version 1.4.1

The end is the Java 2 SDK, Standard Edition, IS A Product of Sun Microstems (TM),

Inc. This Product Includes Code licensed from RSA Security.

Copyright 2003 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,

California 95054, u.s.a. all rights reserved.

I don't know which Java development environment it is. Who can tell me that he is the development environment?

(2) I wrote the code Class Ilovejava in the NWD in the NWD.

Public static void main (String [] args) {

System.out.println ("i love java!");

}

}

And saved as "IloveJava.java" under the C disk JFiles folder, save the type of all Files

(3) Then I click on the operation in the start menu. After entering Command, I entered the C: / JFiles> directory, I can find the Java source file, but I can't compile as a byte code file; because I am in C: / Jfiles> Enter Javac IloveJava.java is displayed

Bad command or file name; I replaced it again: Enter the set classpath in C: / JFiles, enter the C: / JFiles directory Enter% javac ilovejava.java Enter, but BAD Command or File Name

Excuse me: Is there a problem with my Java compiler? If so, what should I do (I have been reloaded?

Who can tell me, I am wrong, what should I do, thank you?

转载请注明原文地址:https://www.9cbs.com/read-13576.html

New Post(0)