Re: classfile has wrong name WRT package?




hawat.thufir@xxxxxxxxx skrev:


[mkdir] Created dir: C:\java\build\prod


The HelloWorldApp.java source file says that it's in package
thufir.bonjour, which is reflected by its path. So that's
correct, yes?

Yes.


When compiled, HelloWorldApp.class ends up at
C:\java\build\prod\thufir\bonjour which is also correct. Yes?

Yes.

You should be able run the class-file from:
C:\java\build\prod

With command:
java thufir.bonjour.HelloWorldApp

..ed

--

www.edmundkirwan.com

.



Relevant Pages

  • Re: Understanding Packages
    ... That's not a package setup. ... PACKAGES are a Java language concept. ... you use the simple name, Point, the compiler looks in the following ... It looks for a top-level class that is either in this source file ...
    (comp.lang.java.help)
  • Re: Cant fix java.lang.ClassNotFoundException problem
    ... package, but usually turns out to be more complicated. ... java version "1.6.0_10" ... src]$ ls ../bin ... you're trying to execute the source file rather than the class file. ...
    (comp.lang.java.help)
  • Re: java packages
    ... Common Java package name nomenclature is to use all ... > normal javac compile .. ... ...then Java source file FileTool.java ...
    (comp.lang.java.programmer)
  • Re: designing problem
    ... I have a little designing problem. ... Okay draw a box labelled code package. ... owner(original developer?), list of source file names, release ... If a developer is going to work on a source file, ...
    (comp.databases)
  • Re: Media Player not working in IE7
    ... ERROR: Package 'DefaultPlaylist'. ... ERROR: WMC_CopyFile: Could not find source file ... As far as I can tell so far, the install is succeeding, with the possible ... ERROR: Reg Parser: Missing required component attribute 'TYPE'. ...
    (microsoft.public.windowsmedia.player)