• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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.
 
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic