Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classpath in java

 
swati cha
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone

i need information about classpath,how can we create in command promt?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by swathi chava:
...i need information about classpath,how can we create in command promt?

Do you mean how to specify a classpath when compiling or running Java from the command line? Or do you mean how to set a system classpath using the command line? (If you mean setting a system classpath, please tell us what operating system you're running.)
 
swati cha
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using windows operating system ,i want to set the path and classpath to run the java program .
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by swathi chava:
i am using windows operating system ,i want to set the path and classpath to run the java program .

But is using the command prompt a requirement?

To set the system PATH to run Java, see step 4 of Sun's installation instructions for Windows (Java 1.6).

I recommend that you do not set any system CLASSPATH.

Let us know if this solves your problem.
[ August 13, 2007: Message edited by: marc weber ]
 
swati cha
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply ,i need one more information regarding java software,from wher i have to download
 
Red Smith
Ranch Hand
Posts: 136
1
Netscape Opera Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by swathi chava:
thanks for your reply ,i need one more information regarding java software,from wher i have to download


http://java.sun.com/javase/downloads/index.jsp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic