Re: a little confused about packages...



[post re-ordered]

<jon23d@xxxxxxxxx> wrote in message news:1151570596.217426.170770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Petterson Mikael wrote:
jon23d@xxxxxxxxx wrote:
> I'm writing a program in an IDE (jbuilder 2005), but when I try to
> compile it I get errors about classes not being found. I figure out
> that it has something to do with the package, so I test it out using a
> smaller version.
[snip]

What do you type to run it?
[snip]

javac TestPkg.java <--- this works fine
java TestPkg <---- this doesn't!

This is what I've used up until I started using packages, and has
worked fine...


Bjorn gave you the solution, but you can probably avoid a lot of these headaches by just compiling and running your code directly from within the IDE.

- Oliver

.



Relevant Pages

  • Re: First day with production development on D2005
    ... > I've begun to use the manual approach when installing components and I ... > always install one at a time and then restart the IDE. ... > any settings the author of the package have set. ... don't use any libraries I don't have the source for and always compile ...
    (borland.public.delphi.non-technical)
  • Re: Delphi strategy against Lazarus
    ... Once upon a time Andreas Dorn wrote in ... You can queue up the packages so that the IDE recompiles only ... Package B contains some Components that use those classes ... Package C will no longer compile? ...
    (borland.public.delphi.non-technical)
  • Re: (j2ee n00b) Can I just compile from cmd like j2se?
    ... I just want to make a test servlet and run it, ... EE and to just run their test package, you need ant or some other IDE. ... You don't need ant or an ide to compile a servlet. ...
    (comp.lang.java.help)
  • Re: Dynamic Plug-in Loading with Ada
    ... Ada under GNAT/Linux. ... The package implemented procedures to run statements, ... compile subprograms and to compile packages. ... unsuited to Live Coding, but it *can* be made to work. ...
    (comp.lang.ada)
  • Re: Compile errors in VB6 running in VirtualPC
    ... using the "Shared Folders" functionality of VirtualPC. ... Trying to open VB6 projects would fail with "Path not found ... The VB6 IDE could now open and compile ...
    (microsoft.public.vb.com)