aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Setting up classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Setting up classpath" Watch "Setting up classpath" New topic
Author

Setting up classpath

Xyz Abc
Greenhorn

Joined: Aug 24, 2007
Posts: 27
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

Joined: Jun 22, 2005
Posts: 1527
what is the OS you are using Nicole? Windows or linux?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Xyz Abc
Greenhorn

Joined: Aug 24, 2007
Posts: 27
I'm on Windows.
Doug Slattery
Ranch Hand

Joined: Sep 15, 2007
Posts: 294
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

Joined: Aug 24, 2007
Posts: 27
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

Joined: May 06, 2007
Posts: 57
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

Joined: Jun 22, 2005
Posts: 1527
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

Joined: Jun 22, 2005
Posts: 1527
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

Joined: May 06, 2007
Posts: 57
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting up classpath