• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting up classpath

 
Xyz Abc
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please tell me how I should set up the classpath? And if it's better to do it that way?
[ December 01, 2007: Message edited by: Xyz Abc ]
 
Akhilesh Trivedi
Ranch Hand
Posts: 1603
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the OS you are using Nicole? Windows or linux?
 
Xyz Abc
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm on Windows.
 
Doug Slattery
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nicole,

Originally posted by Nicole Facompre:
I have just started preparing for SCJP and was wondering if I should be using Eclipse to practice programs or set up the classpath?


There is a chapter in K&B which covers javac (the command line compiler). That means there'll probably be some questions on using javac on the exam. It's unlikely there'll be any platform dependent questions, but you will need to know the class and package path parameters as well as subdirectory delimiters (i.e. '\' on Windows and '/' on Unix/Linux).

For fooling around with code to see how it works, go ahead and use Eclipse after you get the hang of javac.

Hope this helps...
Aloha,
Doug

-- Nothing is impossible if I'mPossible
[ October 19, 2007: Message edited by: Doug Slattery ]
 
Xyz Abc
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Doug,

Thanks for the reply! I wouldn't mind using either of them, was just wondering which one's better and what everyone else does.
[ December 01, 2007: Message edited by: Xyz Abc ]
 
Charandeep Singh
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Nicole

If you target is SCJP
then you should be using notepad or something similiar like edit plus as your editor rather than Eclipse.
It will help you get good knowledge of stuff and also provide a good basis for the java development .
You will understand what I am trying to say when you use notepad as your IDE for writing code it will help you a lot in achieving your SCJP goal.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1603
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nicole Facompre:
Hey Doug,

Thanks for the reply! I wouldn't mind using either of them, was just wondering which one's better and what everyone else does.

Thanks,
Nicole.



IDEs are good helpers but bad teachers.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1603
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use textpad. (Google it. )
And to set classpath on windows by right clicking on
my computer--->properties-->advanced-->environment variables.
 
Charandeep Singh
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
don't set classpath using windows enironment variables
do it whn you are compiling you can set class path then
do that it will help you get good knowledge of classpath related issues in Java which is one important aspect of SCJP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic