Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9182

Re: Unable to use package...why ???

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Unable to use package...why ???
Date 2011-10-25 15:57 -0700
Organization A noiseless patient Spider
Message-ID <j87et9$v0i$1@dont-email.me> (permalink)
References (1 earlier) <9gne1vFvskU1@mid.individual.net> <02de641c-1c6a-420b-b059-c17444e1ff3e@g25g2000yqh.googlegroups.com> <9gnn4cFbaqU1@mid.individual.net> <j86i64$j5u$1@dont-email.me> <90be2370-ecdc-4da7-839c-26dbeee92e9d@c1g2000vbw.googlegroups.com>

Show all headers | View raw


On 10/25/2011 3:21 PM, PortisHead wrote:
>
> Showbcard , imports Getbcard in its scripting.
> So it makes pretty much good sense to include the "c:\myclasses"


I think this is the problem here.  "Import" doesn't really import 
anything.  It just tells the compiler that the class is in use.  It's 
the java command that does the importing.  It needs the directory of 
each and every class you use, and it needs the .class files, not the 
.java files.

Go look at the location of the .class files you are using, and I think 
it'll make sense.

You can actually see the java command load classes if you use the 
-verbose option.


   java -verbose -cp c:\myclasses;c:\examples Showbcard

<http://download.oracle.com/javase/7/docs/technotes/tools/windows/java.html>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Unable to use package...why ??? PortisHead <massivetdm850@gmail.com> - 2011-10-25 00:06 -0700
  Re: Unable to use package...why ??? Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-10-25 10:32 +0100
    Re: Unable to use package...why ??? PortisHead <massivetdm850@gmail.com> - 2011-10-25 04:10 -0700
      Re: Unable to use package...why ??? Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-10-25 13:07 +0100
        Re: Unable to use package...why ??? markspace <-@.> - 2011-10-25 07:47 -0700
          Re: Unable to use package...why ??? PortisHead <massivetdm850@gmail.com> - 2011-10-25 15:03 -0700
            Re: Unable to use package...why ??? PortisHead <massivetdm850@gmail.com> - 2011-10-25 15:10 -0700
              Re: Unable to use package...why ??? Martin Gregorie <martin@address-in-sig.invalid> - 2011-10-26 00:06 +0000
                Re: Unable to use package...why ??? Martin Gregorie <martin@address-in-sig.invalid> - 2011-10-26 00:08 +0000
              Re: Unable to use package...why ??? Martin Gregorie <martin@address-in-sig.invalid> - 2011-10-26 00:06 +0000
          Re: Unable to use package...why ??? PortisHead <massivetdm850@gmail.com> - 2011-10-25 15:21 -0700
            Re: Unable to use package...why ??? markspace <-@.> - 2011-10-25 15:57 -0700
            Re: Unable to use package...why ??? Lew <lewbloch@gmail.com> - 2011-10-25 20:05 -0700
          Re: Unable to use package...why ??? Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-10-26 09:55 +0100
            Re: Unable to use package...why ??? PortisHead <massivetdm850@gmail.com> - 2011-10-26 13:08 -0700
  Re: Unable to use package...why ??? Roedy Green <see_website@mindprod.com.invalid> - 2011-10-27 07:20 -0700
  Re: Unable to use package...why ??? Lew <lewbloch@gmail.com> - 2011-10-27 07:33 -0700
    Re: Unable to use package...why ??? PortisHead <massivetdm850@gmail.com> - 2011-10-28 12:57 -0700

csiph-web