Re: How to include *.class file with package in CLASSPATH?
Ulf Meinhardt wrote:
Assume I have an already compiled java class in the following location:
D:\java\output\aaa\bbb\ccc\myclass.class
myclass.java contains the following package information:
package aaa.bbb.ccc;
The current path in the command prompt is
D:\java>
I want to compile another java class test.java which uses the class myclass e.g. in a statement like
myclass dummy = new myclass();
But when I enter a statement like:
javac -cp D:\java\output\aaa\bbb\ccc;%CLASSPATH% test.java
then the compiler complains that he cannot find myclass:
javac -cp D:\java\output;%CLASSPATH% test.java
Arne
PS: Class names are by convention capitalized.
.
Relevant Pages
- Re: How to include *.class file with package in CLASSPATH?
... myclass.java contains the following package information: ... I want to compile another java class test.java which uses the class myclass e.g. in a statement like ... Please remove or make sure it appears in the correct subdirectory of the classpath. ... (comp.lang.java.help) - Re: How to include *.class file with package in CLASSPATH?
... myclass.java contains the following package information: ... I want to compile another java class test.java which uses the class myclass e.g. in a statement like ... Please remove or make sure it appears in the correct subdirectory of the classpath. ... (comp.lang.java.help) - Implication of project dependencies
... I am working on a project with VC++ 2003 and it compile & link well, ... myclass & myclass::GetInstance ... responsible of that are the project dependencies. ... this manual reference and checked the project myclass in the project ... (microsoft.public.vsnet.ide) - Implication of project dependencies
... I am working on a project with VC++ 2003 and it compile & link well, ... myclass & myclass::GetInstance ... responsible of that are the project dependencies. ... this manual reference and checked the project myclass in the project ... (microsoft.public.vc.ide_general) - Re: Organising classes in C# in Visual Studio ?
... > Visual Studio copying the Solution to the folder that adds the MyClass? ... > don't want to compile it to a dll - I better like to have a link or ... > something to the source code file itself! ... (microsoft.public.dotnet.languages.csharp) |
|