BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Ant failure: can't find java.lang??

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Lori M Olson (TeamB)
Guest





PostPosted: Wed Jun 25, 2003 2:06 am    Post subject: Re: Ant failure: can't find java.lang?? Reply with quote



Chris Leon wrote:
Quote:
Other information:

JBuilder 9 personal edition, version 9.0.125.0

And this is my correct contact info.

"news.bellatlantic.net" <vze3yn6z (AT) verizon (DOT) net> wrote in message
news:3ef8de3d$1 (AT) newsgroups (DOT) borland.com...

Hello,

Using Ant from inside JBuilder suddenly stopped working. For each class
that the Ant target tries to compile, I get the message:

[javac] error: Fatal Error: Unable to locate package java.lang

in

classpath or bootclasspath

Which sounds pretty bad.

However, running Ant from the command line on the same build.xml file

works

fine. So does compiling from JBuilder itself.

Some more info:
- I did just install today Ant 1.5.3-1 from Apache. However, everything

was

working after that, so I'm not sure what changed.
- I pointed JBuilder towards the new Ant by setting up a Library in User
Home, which includes ant.jar and optional.jar. When Ant stopped working
from JBuilder, I deleted the original Library reference from JBuilder, no
help. I then removed the new Library reference, and readded the original
(hopefully identically). Also no help.

For reference, the execution line that JBuilder seems to be trying is:

Error executing Ant:


C:/JBuilder9/jdk1.4/bin/java -Dbuild.compiler=com.borland.jbuilder.ant.compi

ler.Bmj -Xbootclasspath:C:JBuilder9libjavac.jar;C:JBuilder9libjbuilder

.jar;C:JBuilder9jdk1.4jrelibrt.jar;C:JBuilder9jdk1.4jrelibi18n.jar

;C:JBuilder9jdk1.4jrelibsunrsasign.jar;C:JBuilder9jdk1.4jrelibjsse

.jar;C:JBuilder9jdk1.4jrelibjce.jar;C:JBuilder9jdk1.4jrelibcharset

s.jar;C:JBuilder9jdk1.4jreclasses;C:JBuilder9jdk1.4libtools.jar;C:J

Builder9libjbuilder.jar;C:JBuilder9libant.jar;C:JBuilder9liboptional

.jar;C:librariesxerces-2_4_0xercesImpl.jar;C:librariesxerces-2_4_0xmlP

arserAPIs.jar;C:librariesjunit.jar org.apache.tools.ant.Main -buildfile
build.xml -inputhandler
com.borland.jbuilder.build.AntBuildTask$AntInputHandler compile_targets

which looks reasonable enough.

Does anyone have any ideas? Am I missing something about how to tell
JBuilder to use the new Ant version? I'd really rather not have to rely

on

the command line to use Ant.

Thanks,

c






Note that there is an ant.jar and optional.jar in the bootclasspath
which reside in <JBuilder>lib

You might want to save those, then replace them with the new ones.

--

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html


Back to top
Chris Leon
Guest





PostPosted: Wed Jun 25, 2003 3:24 am    Post subject: Re: Ant failure: can't find java.lang?? Reply with quote




"Lori M Olson (TeamB)" <javadragon (AT) techie (DOT) com> wrote

Quote:
Chris Leon wrote:
Other information:

JBuilder 9 personal edition, version 9.0.125.0

And this is my correct contact info.

"news.bellatlantic.net" <vze3yn6z (AT) verizon (DOT) net> wrote in message
news:3ef8de3d$1 (AT) newsgroups (DOT) borland.com...

Hello,

Using Ant from inside JBuilder suddenly stopped working. For each class
that the Ant target tries to compile, I get the message:

[javac] error: Fatal Error: Unable to locate package java.lang

in

classpath or bootclasspath

Which sounds pretty bad.

However, running Ant from the command line on the same build.xml file

works

fine. So does compiling from JBuilder itself.

Some more info:
- I did just install today Ant 1.5.3-1 from Apache. However, everything

was

working after that, so I'm not sure what changed.
- I pointed JBuilder towards the new Ant by setting up a Library in User
Home, which includes ant.jar and optional.jar. When Ant stopped working
from JBuilder, I deleted the original Library reference from JBuilder,
no
help. I then removed the new Library reference, and readded the
original
(hopefully identically). Also no help.

For reference, the execution line that JBuilder seems to be trying is:

Error executing Ant:



C:/JBuilder9/jdk1.4/bin/java -Dbuild.compiler=com.borland.jbuilder.ant.compi


ler.Bmj -Xbootclasspath:C:JBuilder9libjavac.jar;C:JBuilder9libjbuilder


..jar;C:JBuilder9jdk1.4jrelibrt.jar;C:JBuilder9jdk1.4jrelibi18n.jar


;C:JBuilder9jdk1.4jrelibsunrsasign.jar;C:JBuilder9jdk1.4jrelibjsse


..jar;C:JBuilder9jdk1.4jrelibjce.jar;C:JBuilder9jdk1.4jrelibcharset


s.jar;C:JBuilder9jdk1.4jreclasses;C:JBuilder9jdk1.4libtools.jar;C:J


Builder9libjbuilder.jar;C:JBuilder9libant.jar;C:JBuilder9liboptional


..jar;C:librariesxerces-2_4_0xercesImpl.jar;C:librariesxerces-2_4_0xmlP

arserAPIs.jar;C:librariesjunit.jar
org.apache.tools.ant.Main -buildfile
build.xml -inputhandler
com.borland.jbuilder.build.AntBuildTask$AntInputHandler compile_targets

which looks reasonable enough.

Does anyone have any ideas? Am I missing something about how to tell
JBuilder to use the new Ant version? I'd really rather not have to rely

on

the command line to use Ant.

Thanks,

c



Note that there is an ant.jar and optional.jar in the bootclasspath
which reside in <JBuilder>lib

You might want to save those, then replace them with the new ones.

--

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html


That command line was from a run where I had removed the User Home library
entry for Ant. When I readd the User Home library entry, the ant.jar and
optional.jar entries point back to the newer version of Ant.

It doesn't work with either the new ant jars in the <JBuilder>/lib, or the
old ones, with either the User Home library set or not, with the JBuilder
library entry for Ant or not. =/

Any other ideas?

Thanks,

Chris



Back to top
Rolf Hemmerling
Guest





PostPosted: Mon Aug 14, 2006 4:57 am    Post subject: Re: JBuilder 2006 ent trial + fundation license problem Reply with quote



Same problem here:

If I call Jbuilder 2006 Trial, Internet Download, ( before the 30 days expiration ) each time I am asked for the registration file,

so somehow Jbuilder does not look for the location I point to.
It does NOT matter where to put the registration file, so the "user home directory" is no better place than any other place if Jbuilder does not remember WHERE the file is.

The same if I call the Borland License Manager - it does NOT remember the location of the key.

Somehow, this did NOT happen the first days when I called Jbuilder 2006 Trial.
Now there are "16 days left".
Indeed, I am just interested in the foundation version, as student, currently,
so the re-offer of the just-foundation version would be very nice ( without a license problem, without the need for a 500+ megabytes download..)

Sometimes I am able to load Jbuilder after 2 or 3 registrations... but mostly not. Especially I cannot call third-party plugins like "Visual Paradigm SDE 5.3 for JBuilder ), as the need to re-registration prevents me from loading JBuilder with this too.s

A new download offer with a fix for the problem would be NICE.

Machine: W2k, SP4 **freshly installed system**.

Sincerely
Rolf
Back to top
Rolf Hemmerling
Guest





PostPosted: Mon Aug 14, 2006 5:11 am    Post subject: Re: JBuilder 2006 ent trial + fundation license problem Reply with quote

I just installed JBuilder foundation versions before, this is the first Enterprise trial.

Indeed, JBuilder acts differently if the license file is at different locations.
With other Jbuilder versions, I was allowed to put it anywhere.

now the ONLY place is

Documents and Settings / xxxxxx

where XXXX is the user, typically "Administrator".
Even "All users" is a bad place, and any other location too.

So the registration software is JUST willing to remember the license file IF it is at

Documents and Settings / Administrator

if you work as "Administrator".

I am shure that I put the registration file for earlier JBuilder foundation versions at different locations, successfully, e.g. at "All users" or even at totally different places...

I still cannot call VIsual Paradigm SDE 5.3 for JBuilder, though, as there the registration message appears each time I start.

Sincerely
Rolf
Back to top
Rolf Hemmerling
Guest





PostPosted: Mon Aug 14, 2006 5:41 am    Post subject: Re: JBuilder 2006 ent trial + fundation license problem Reply with quote

If I put the Borland registration file at the proper location, Jbuilder works :-)

The SDE 5.3 for Jbuilder problem is another problem ( it does not load even if the Borland registration file is at the proper location), I talk to Visual Paradigm.

So good news for JBuilder!

Sincerely
Rolf
Back to top
Lori M Olson [TeamB]
Guest





PostPosted: Tue Aug 15, 2006 8:11 pm    Post subject: Re: JBuilder 2006 ent trial + fundation license problem Reply with quote

Rolf Hemmerling wrote:
Quote:
I just installed JBuilder foundation versions before, this is the
first Enterprise trial.

Indeed, JBuilder acts differently if the license file is at different
locations. With other Jbuilder versions, I was allowed to put it
anywhere.

now the ONLY place is

Documents and Settings / xxxxxx

where XXXX is the user, typically "Administrator". Even "All users"
is a bad place, and any other location too.

So the registration software is JUST willing to remember the license
file IF it is at

Documents and Settings / Administrator

if you work as "Administrator".

I am shure that I put the registration file for earlier JBuilder
foundation versions at different locations, successfully, e.g. at
"All users" or even at totally different places...


Depends on how old the earlier Foundation version was. Sanctuary (the
license manager for many, many versions now) is designed to limit
licenses PER USER. So you cannot place the license file anywhere except
in the current user's home directory.

I'm glad you got it straightened out.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.