Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2008, 10:31 AM
Member
 
Join Date: Jan 2008
Posts: 83
Preethi is on a distinguished road
Classpath
i want to set classpath to execute my java file.
My java program was in "C:\Documents and settings\xmlfile"

Java was in "c:\Program Files\java\jdk1.5.0_08\bin"
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-19-2008, 07:39 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Go to System Properties.

@ the Advance tab,
click for Environmental Variables,

Look for "Path" or "path" variable under System Variables...
Click edit

add
Quote:
;C:\Program Files\java\jdk1.5.0_08\bin
after the last values

Test it....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by sukatoa : 05-26-2008 at 07:53 PM.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-21-2008, 09:09 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Quote:
Originally Posted by sukatoa View Post
after the last semicolon...
If there is no any semicolon at the end, better to add it first. Otherwise your previous settings on other applications can be clashed.

After that just open the command prompt and type javac. You'll get options you have with javac, if you do it correctly. This is the easiest way to do it.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-25-2008, 12:23 AM
Member
 
Join Date: May 2008
Posts: 3
farooqza is on a distinguished road
alternative
another way to do it if u don't have admin rights is to,
open ur dos prompt and type
@path=%path%;C:\Program Files\java\jdk1.5.0_08\bin;
this will be saved only for that perticler session though..
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 05-25-2008, 08:07 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Quote:
Originally Posted by farooqza View Post
another way to do it if u don't have admin rights is to,
open ur dos prompt and type
@path=%path%;C:\Program Files\java\jdk1.5.0_08\bin;
this will be saved only for that perticler session though..
There is much simpler way too. Wheather you have admin rights or not,

Code:
path=C:\Program Files\java\jdk1.6.0_05\bin\
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-20-2008, 11:00 AM
Member
 
Join Date: May 2008
Posts: 3
farooqza is on a distinguished road
yeah
%path% will allow u to keep existing entries of path variable....
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Path vs ClassPath JavaForums Java Blogs 0 05-05-2008 06:30 PM
Set classPath? rgbosque New To Java 3 02-07-2008 04:14 PM
GNU Classpath 0.96.1 JavaBean Java Announcements 0 11-01-2007 06:14 PM
GNU Classpath 0.96 JavaBean Java Announcements 0 10-16-2007 08:35 PM
Doubt with classpath fred New To Java 1 07-24-2007 03:58 AM


All times are GMT +3. The time now is 10:23 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org