Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xerces don't want to compile [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rogerius
n00b
n00b


Joined: 04 May 2005
Posts: 30
Location: Hungary

PostPosted: Wed Feb 22, 2006 5:38 pm    Post subject: xerces don't want to compile [solved] Reply with quote

Hello everybody!

I have met with a problen during emerge -uDN world.

The dev-java/xerces packages need to be updated to 2.7.1 But it has some problem:

Code:
 
.
.
.
.

   [xjavac] symbol  : class String
   [xjavac] location: class org.apache.xerces.dom.ParentNode
   [xjavac]     public String getTextContent() throws DOMException {
   [xjavac]            ^
   [xjavac] /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/src/org/apache/xerces/dom/ParentNode.java:633: cannot find symbol
   [xjavac] symbol  : class StringBuffer
   [xjavac] location: class org.apache.xerces.dom.ParentNode
   [xjavac]     void getTextContent(StringBuffer buf) throws DOMException {
   [xjavac]                         ^
   [xjavac] /var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build/src/org/apache/xerces/dom/ParentNode.java:655: cannot find symbol
   [xjavac] symbol  : class String
   [xjavac] location: class org.apache.xerces.dom.ParentNode
   [xjavac]     public void setTextContent(String textContent)
   [xjavac]                                ^
   [xjavac] Note: * uses or overrides a deprecated API.
   [xjavac] Note: Recompile with -Xlint:deprecation for details.
   [xjavac] Note: Some input files use unchecked or unsafe operations.
   [xjavac] Note: Recompile with -Xlint:unchecked for details.
   [xjavac] 100 errors

BUILD FAILED
/var/tmp/portage/xerces-2.7.1/work/xerces-2_7_1/build.xml:252: Compile failed; see the compiler error output for details.

Total time: 1 minute 8 seconds

!!! ERROR: dev-java/xerces-2.7.1 failed.
!!! Function src_compile, Line 50, Exitcode 1
!!! Compile failed.
!!! If you need support, post the topmost build error, NOT this status message.


I don't know which other packages required this, and don't know what to do.

Anyone can help?


Last edited by rogerius on Tue Mar 07, 2006 9:30 am; edited 2 times in total
Back to top
View user's profile Send private message
andybotting
n00b
n00b


Joined: 06 Jun 2005
Posts: 16

PostPosted: Tue Feb 28, 2006 5:57 am    Post subject: Reply with quote

I'm having the same problem, using the ibm-jdk-bin-1.5.0. I'm tring to install eclipse, but this is a bit of a show stopper. I have also tried using ibm-jdk-1.4.2.03 and .04, but then I get segmentation faults from javac trying to emerge ant. Pretty annoying!
Back to top
View user's profile Send private message
andybotting
n00b
n00b


Joined: 06 Jun 2005
Posts: 16

PostPosted: Thu Mar 02, 2006 4:41 am    Post subject: Reply with quote

I just had a read of some of the Java on Gentoo guides, and noticed they recommend using a 1.4.2 JVM as the system default, then using 1.5.0 as the user's default JVM.

I don't know what was going on with the seg faults, but I am using my old gentoo install (on another partition) and everything worked sweet with ibm-jdk-bin-1.4.2.03.

I emerge eclipse-sdk no problems, and now I'll probably install ibm-jdk-1.5.0 for the java plugin ;)
Back to top
View user's profile Send private message
rogerius
n00b
n00b


Joined: 04 May 2005
Posts: 30
Location: Hungary

PostPosted: Tue Mar 07, 2006 8:30 am    Post subject: Reply with quote

Hello!

Good idea! I'm using 1.5 as default. I will emerge that 1.4.2 and leave 1.5 in /opt to be optional... :) I'll see.

Thanks for the info!
Back to top
View user's profile Send private message
rogerius
n00b
n00b


Joined: 04 May 2005
Posts: 30
Location: Hungary

PostPosted: Tue Mar 07, 2006 9:17 am    Post subject: Reply with quote

Ok, it's seems like working! Using ibm-jdk-bin-1.4.2.03 is a good choice.
Java test pages are working, Opera does not exit on Java pages...

Eclipse-sdk needed that xerces package. I have removed it since it was bit slow on my machine, and now usin kdevelop instead. (It does not have too much Java support, but simple Java programs can be compiled and run in console anyway...)

Thank you for the help!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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