• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

doubt related to packages (To chandilya poppuru)

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

actually u "do need" to create a directory



sorry i meant u "dont need"
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic