|
Being a bit of a newbie I may be wrong but I think your
directory structure must match the package name: So the directory structure would be
something like: C:\x\com\multigarmenjaya\coba; And the class path: C:\x Can anyone confirm this? Kola -----Original Message----- You need
to specify the -d parameter on the javac command line. For
example, javac -d c:\x\classes c:\x\*.java Paul Franz Hallo again, I'm so thankful have find this mail list. :) I'm now have another problem and question. I have write a .java class, and I want to put the .class
file in a package. So I add a package statement like this: package com.multigarmenjaya.coba; and the CLASSPATH =
C:\x\classes;C:\x in which C:\x is my working folder and C:\x\classes is an
empty foder. I try to compile the source but the package folder doesn't
created. Instead the .class file exist in the working folder. Would someone
please tell me where I'm going wrong ? Another question, if a CLASSPATH
variable contains more than one folders and we compile a java source wich
contains package statament, in which folder the package will be located ? Thanks in advance. ::Lambok Sianturi:: ____________________________________________________ _______________________________________________ ____________________________________________________ To change your
JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be
respectful! Clean up your posts before replying
____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________ |
- [jdjlist] Re: package and CLASSPATH Kola Oyedeji
- [jdjlist] Re: package and CLASSPATH Roger Glover
- [jdjlist] Re: package and CLASSPATH Rick Alsopp
- [jdjlist] Re: package and CLASSPATH Rick Alsopp
- [jdjlist] String and other classes Lambok Sianturi
- [jdjlist] RE: String and other classes Scot Mcphee
