File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes CLASSPATH setting problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "CLASSPATH setting problem" Watch "CLASSPATH setting problem" New topic
Author

CLASSPATH setting problem

Arun C. Giridharan
Ranch Hand

Joined: Jul 11, 2010
Posts: 96
This is the format i set CLASSPATH=".;C:\Documents and Settings\admin\Desktop\basic_world;" ...........wen i run the program ...i get warnings....on CLASSPATH ...please guide me...i'm new to java....and programming too



warning: [path] bad path element "CLASSPATH=".": no such file or directory
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You should have replied there. I'll close the other thread.


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Where does this warning come from ? Ant ? What did you execute ?
Arun C. Giridharan
Ranch Hand

Joined: Jul 11, 2010
Posts: 96
warning: [path] bad path element "CLASSPATH=".": no such file or directory ...i'm using EDIT PLUS 3
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Sorry, I don't know this editor. Where did you set the CLASSPATH ?
Arun C. Giridharan
Ranch Hand

Joined: Jul 11, 2010
Posts: 96
Environment variables>User variables for admin.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Can you post a picture of it ?
Arun C. Giridharan
Ranch Hand

Joined: Jul 11, 2010
Posts: 96
picture is as shown ....
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I'd like to see a picture of the screen where you set the CLASSPATH. Can you make a screen copy and attach the image file here ?
Schumi Mic
Greenhorn

Joined: Apr 17, 2010
Posts: 4
@Arun: You can find information on setting classpath in-detail here


SCJP 1.5
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38793
    
  23
Why are you trying to set the classpath as an environment variable in the first place? You are better off setting it with each application with the -cp flag. More details here.
 
Don't get me started about those stupid light bulbs.
 
subject: CLASSPATH setting problem