• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt related to packages (To chandilya poppuru)

 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
create a directory called pro and ur class file of test3 should exist in pro directory
 
shandilya popuru
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it`s shandilya not chandilya
u can refer me as sandy
 
shandilya popuru
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually u "do need" to create a directory


sorry i meant u "dont need"
 
Arun Prasath
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic