You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Sean McCauliff <se...@narus.com> on 2000/07/12 19:48:30 UTC

Can't build JacORB, recursive ant uses wrong classpath

Sorry about posting this to the dev list, but there no user list.
This seems like an ant problem to me.  Any ideas about what is going on?

The error message I get is:
    Executing Target: portableserver
    [error] Unable to initialize threads: cannot find class java/lang/Thread
    [exec] Result: 1

I am using RedHat Linux 6.2
I am trying to compile JacOrb 1.1
JDKs installed: IBM JDK 1.1.8, IBM JDK 1.3 , Sun JDK 1.2.2

Environment:
I set JAVA_HOME to /opt/IBMJava2-13
I set CLASSPATH to /opt/IBMJava2-13/lib:/opt/IBMJava2-13/lib/tools.jar:/opt/IBMJava2-13/lib/dt.jar:/opt/IBMJava2-13/jre/lib:/opt/IBMJava2-13/jre/lib/rt.jar:.
I set the JAVACMD to
/opt/IBMJava2-13/bin/java -Xbootclasspath:/opt/IBMJava2-13/lib:/opt/IBMJava2-13/lib/tools.jar:/opt/IBMJava2-13/lib/dt.jar:/opt/IBMJava2-13/jre/lib:/opt/IBMJava2-13/jre/lib/rt.jar:.
PATH is
/opt/IBMJava2-13/bin:/opt/IBMJava2-13/bin:/export/home/seanm/jakarta-ant/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin




build.xml is attached

Thanks,
-Sean


Re: Can't build JacORB, recursive ant uses wrong classpath

Posted by Tom Cook <tc...@ardec.com.au>.
Sean McCauliff writes:
 > Tom Cook wrote:
 > 
 > > Sean McCauliff writes:
 > >  > Sorry about posting this to the dev list, but there no user list.
 > >  > This seems like an ant problem to me.  Any ideas about what is going on?
 > >  >
 > >  > The error message I get is:
 > >  >     Executing Target: portableserver
 > >  >     [error] Unable to initialize threads: cannot find class java/lang/Thread
 > >  >     [exec] Result: 1
 > > [snip!]
 > > classes.zip needs to be in your classpath.
 > >
 > 
 > But, I was using JDK 1.3.  rt.jar was in my CLASSPATH environment variable.

Can we see some build.xml please?

-- 
Tom Cook - Software Engineer

"The brain is a wonderful organ. It starts functioning the moment you get
up in the morning, and does not stop until you get into the office."
	- Robert Frost

LISAcorp - www.lisa.com.au

--------------------------------------------------
38 Greenhill Rd.          Level 3, 228 Pitt Street
Wayville, SA, 5034        Sydney, NSW, 2000

Phone:   +61 8 8272 1555  Phone:   +61 2 9283 0877
Fax:     +61 8 8271 1199  Fax:     +61 2 9283 0866
--------------------------------------------------

Re: Can't build JacORB, recursive ant uses wrong classpath

Posted by Sean McCauliff <se...@narus.com>.
Tom Cook wrote:

> Sean McCauliff writes:
>  > Sorry about posting this to the dev list, but there no user list.
>  > This seems like an ant problem to me.  Any ideas about what is going on?
>  >
>  > The error message I get is:
>  >     Executing Target: portableserver
>  >     [error] Unable to initialize threads: cannot find class java/lang/Thread
>  >     [exec] Result: 1
> [snip!]
> classes.zip needs to be in your classpath.
>

But, I was using JDK 1.3.  rt.jar was in my CLASSPATH environment variable.

Thanks,
-Sean


>
> Regards
> Tom
> --
> Tom Cook - Software Engineer
>
> "The brain is a wonderful organ. It starts functioning the moment you get
> up in the morning, and does not stop until you get into the office."
>         - Robert Frost
>
> LISAcorp - www.lisa.com.au
>
> --------------------------------------------------
> 38 Greenhill Rd.          Level 3, 228 Pitt Street
> Wayville, SA, 5034        Sydney, NSW, 2000
>
> Phone:   +61 8 8272 1555  Phone:   +61 2 9283 0877
> Fax:     +61 8 8271 1199  Fax:     +61 2 9283 0866
> --------------------------------------------------


Can't build JacORB, recursive ant uses wrong classpath

Posted by Tom Cook <tc...@ardec.com.au>.
Sean McCauliff writes:
 > Sorry about posting this to the dev list, but there no user list.
 > This seems like an ant problem to me.  Any ideas about what is going on?
 > 
 > The error message I get is:
 >     Executing Target: portableserver
 >     [error] Unable to initialize threads: cannot find class java/lang/Thread
 >     [exec] Result: 1
[snip!]
classes.zip needs to be in your classpath.

Regards
Tom
-- 
Tom Cook - Software Engineer

"The brain is a wonderful organ. It starts functioning the moment you get
up in the morning, and does not stop until you get into the office."
	- Robert Frost

LISAcorp - www.lisa.com.au

--------------------------------------------------
38 Greenhill Rd.          Level 3, 228 Pitt Street
Wayville, SA, 5034        Sydney, NSW, 2000

Phone:   +61 8 8272 1555  Phone:   +61 2 9283 0877
Fax:     +61 8 8271 1199  Fax:     +61 2 9283 0866
--------------------------------------------------

Re: Can't build JacORB, recursive ant uses wrong classpath

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "SM" == Sean McCauliff <se...@narus.com> writes:

 SM> I am using RedHat Linux 6.2 I am trying to compile JacOrb 1.1
 SM> JDKs installed: IBM JDK 1.1.8, IBM JDK 1.3 , Sun JDK 1.2.2

I'm affraid you are not running any of these but kaffe - which gets
installed on RedHat systems as /usr/bin/java IIRC.

This would explain why it works after you put classes.zip into your
CLASSPATH as well.

Stefan