• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

help please

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author
Posts: 23901
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at this JavaRanch FAQ...

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

This should get you started.

Henry
 
arthy loganathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you sir...
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 73257
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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."
 
Sheriff
Posts: 22257
119
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic