Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: How to incl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 8 Topic 16026 of 16078
Post > Topic >>

Re: How to include *.class file with package in CLASSPATH?

by =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@[EMAIL PROTECTED] > Apr 26, 2008 at 11:33 AM

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.




 8 Posts in Topic:
How to include *.class file with package in CLASSPATH?
ulf2m@[EMAIL PROTECTED]   2008-04-26 15:17:50 
Re: How to include *.class file with package in CLASSPATH?
Lion-O <nosp@[EMAIL PR  2008-04-26 10:26:02 
Re: How to include *.class file with package in CLASSPATH?
Lew <lew@[EMAIL PROTEC  2008-04-26 22:03:53 
Re: How to include *.class file with package in CLASSPATH?
=?ISO-8859-1?Q?Arne_Vajh=  2008-04-26 11:33:48 
Re: How to include *.class file with package in CLASSPATH?
Roedy Green <see_websi  2008-04-27 10:44:42 
Re: How to include *.class file with package in CLASSPATH?
Joshua Cranmer <Pidgeo  2008-04-27 22:16:50 
Re: How to include *.class file with package in CLASSPATH?
CHAFIK Wassime <wassim  2008-04-28 17:12:48 
Re: How to include *.class file with package in CLASSPATH?
evan <evan.e.thomas@[E  2008-04-29 16:08:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 0:04:31 CDT 2008.