aspose file tools*
The moose likes Beginning Java and the fly likes help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help please" Watch "help please" New topic
Author

help please

arthy loganathan
Greenhorn

Joined: Sep 12, 2008
Posts: 7
im a beginner to java...i installed java6 from net...if i compiled using javac,the command prompt shows an error message...how to run the java program...how to set the path...
[ October 06, 2008: Message edited by: Bear Bibeault ]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19059
    
  40

Take a look at this JavaRanch FAQ...

http://faq.javaranch.com/java/JavaBeginnersFaq

This should get you started.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
arthy loganathan
Greenhorn

Joined: Sep 12, 2008
Posts: 7
thank you sir...
ruban raj
Greenhorn

Joined: Aug 05, 2008
Posts: 7
For running java program ,You have to set classpath and JAVA_HOME.


CLASSPATH:%JAVA_HOME%\lib\tools.jar

JAVA_HOME:here We have to give jdk path.For example: C:\program files\java\jdk1.6

Compile java program using following command:

javac classname.java

run java program using following command:

java classname

i hope this will help You

thanks and regards,

ruban
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40027
    
  28
No, you don't have to do anything with the CLASSPATH. There are instructions for setting the PATH on Windows on this "common problems" page. The PATH you want starts with / on *nix or the drive letter (usually C) on Windows and always ends with bin.

When the instructions say "optional" you pronounce o-p-t-i-o-n-a-l "absolutely definitely compulsory."
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19781
    
  20

Also, never include any JAR file in the Java home folder in your classpath. If one of those doesn't get recognized from the start, you've put it in the wrong place yourself. All the JAR files that are there when you install the JDK / JRE are right where they belong and are included automatically.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help please