File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes doubt related to packages (To chandilya poppuru) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "doubt related to packages (To chandilya poppuru)" Watch "doubt related to packages (To chandilya poppuru)" New topic
Author

doubt related to packages (To chandilya poppuru)

Arul Jose
Ranch Hand

Joined: Jan 14, 2005
Posts: 131
i ran your code without changing it.

this is the error message i got.(below)

i tried just this before.

can you try it for me once?

should we set any classpath?

how to do it in windows?

jose.

C:\Documents and Settings\Aruljose\Desktop>javac test1.java
test.java:1: package pro does not exist
import pro.test3;
^
test.java:8: cannot resolve symbol
symbol : class test3
location: class test
test3 t=new test3();
^
test.java:8: cannot resolve symbol
symbol : class test3
location: class test
test3 t=new test3();
^
3 errors
shandilya popuru
Ranch Hand

Joined: Dec 21, 2004
Posts: 95
create a directory called pro and ur class file of test3 should exist in pro directory


sandy
shandilya popuru
Ranch Hand

Joined: Dec 21, 2004
Posts: 95
it`s shandilya not chandilya
u can refer me as sandy
shandilya popuru
Ranch Hand

Joined: Dec 21, 2004
Posts: 95
actually u do need to create a directory
try setting class path to the current directory

here i have my test3 in d:\java\pro
and test1 in d:\java
set classpath=%classpath%;d:\java

hope this wud help
shandilya popuru
Ranch Hand

Joined: Dec 21, 2004
Posts: 95
actually u "do need" to create a directory


sorry i meant u "dont need"
Arun Prasath
Ranch Hand

Joined: Sep 17, 2003
Posts: 192
Originally posted by jose jose:
i ran your code without changing it.

this is the error message i got.(below)

i tried just this before.

can you try it for me once?

should we set any classpath?

how to do it in windows?

jose.



Jose,
looks like this is a continuation of this thread. If you could reply, in that thread, it will be like a conversation, rather than into bits and pieces.


SCJP 1.4, SCDJWS , SCJA<br />I can do ALL things through CHRIST who strengthens me.
 
 
subject: doubt related to packages (To chandilya poppuru)