Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bonni Garcia   on Mar 12 In Java Category.

  
Question Answered By: Frank Butler   on Mar 12

Set your environment variable on your system
first, i.e. path=c:\;c:\jdk1.4\lib. Your problem is your
environment is not set. Once you write your java  program and
get ready to save it, in the save box do
this..."MyJavaProgram.java" The emphasis here is to put what ever the program
name is in quotes("") before saving it. This will make
certain that it don't end up like
'MyJavaProgram.txt.java' With all this done, just go to the command line,
to the directory  you saved the file and type javac
MyJavaProgram.java, after it compiles and return to the command
prompt, type java MyJavaProgram and the program should
run and you should be able to sleep.<br>So, your
solution should be (1)Set Environment variable and (2)Save
your files in Quotes("..java").

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Installing Java on XP Or get search suggestion and latest updates.


Tagged: