Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

class path  RSS feed

 
Nada Mohammed
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
i have the follwoing problems :
i create package myPackage .This myPackage contain number of classes (a,b, c, d,e,f,g) where each class in file and i want to use this package in example myExample.Therefore , i write :
package myPackage ;
in first line in each file(a,b,c,d,e,f)
and i write
import myPackage.* ;
in the first line in myExample file
where myPackage is in the following path :
c:\nada\myPackage\
and myExample in the follwoing path :
c:\nada\myExample.java
i use kawa interface and i try to add class path many times but still doesn't work .When i run myExample classes(a,b,..) not found
the question :
where i must add class path for myPackage
thanks alot
-Nada
 
Marcela Blei
Ranch Hand
Posts: 477
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This post doesn�t belongs to the Threads forum, I'm moving it to Java in General (intermediate) where you will get more help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!