Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
jedit and gcc3?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sypher7
n00b
n00b


Joined: 23 Jul 2002
Posts: 21
Location: IL, USA

PostPosted: Tue Jul 23, 2002 10:44 pm    Post subject: jedit and gcc3? Reply with quote

Hi. I'm having trouble getting jedit to compile with my Gentoo 1.3b system. I've been looking around and it seems that gcc3.1 and java don't get along well? Anyhow, I was wondering if anyone has had similiar troubles compiling jedit with gcc3.1. This is the error I get:

Code:

Calculating dependencies ...done!
>>> emerge app-editors/jedit-4.0.3-r1 to /
>>> md5 ;-) jedit403source.tar.gz
>>> Unpacking source...
>>> Unpacking jedit403source.tar.gz
>>> Source unpacked.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 10, Exitcode 1
!!! compile problem

!!! emerge aborting on  /usr/portage/app-editors/jedit/jedit-4.0.3-r1.ebuild .


I've tried refetching the source code and I recompiled ant since that's really the only thing it mentioned that I knew about. If anyone has some pointers I could really use 'em :wink:

Thanks in advance.
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Wed Jul 24, 2002 12:15 am    Post subject: Reply with quote

i dont know bout anyone else, but my java works perfect on my 1.3b installation. i use mostely sun-jdk-1.4.0

what problems have people encountered, i think the java binaries would be statically linked to endsure maximum compatibility...

proxy
Back to top
View user's profile Send private message
RAGOnline
n00b
n00b


Joined: 24 Jul 2002
Posts: 5

PostPosted: Wed Jul 24, 2002 9:17 pm    Post subject: Here too! Reply with quote

I get the exact same problem with jedit here too. And I'm using gentoo v1.3b.

And I really would like to get jedit working...
Back to top
View user's profile Send private message
sypher7
n00b
n00b


Joined: 23 Jul 2002
Posts: 21
Location: IL, USA

PostPosted: Wed Jul 24, 2002 10:10 pm    Post subject: Reply with quote

Yeah I still haven't figured out the problem. re-emerge'd blackdown, jikes, tried sun jdk. Just can't pinpoint what's wrong. I just downloaded the java installer from jedit's site and installed it that way. Wish I could get it to compile, though. Just have to sit tight and see if anyone else has some ideas.
Back to top
View user's profile Send private message
sypher7
n00b
n00b


Joined: 23 Jul 2002
Posts: 21
Location: IL, USA

PostPosted: Thu Jul 25, 2002 2:16 am    Post subject: Reply with quote

Okay it appears that this problem is not exclusive to gcc3. My roommate just installed gentoo 1.2 on his desktop and he was also unable to emerge jedit 4.0.3-r1 -- his emerge failed the same way mine did. His setup is rather different too, which is strange. Even stranger is that jedit 4.0 ebuild also fails the exact same way. So it's not just a problem with the ebuild file for 4.0.3-r1 I guess.
Back to top
View user's profile Send private message
RAGOnline
n00b
n00b


Joined: 24 Jul 2002
Posts: 5

PostPosted: Thu Jul 25, 2002 3:18 pm    Post subject: Reply with quote

Ok, nice to know one isn't alone at least...

I also tried to switch java environment to Suns jdk 1.4 but didn't work...So I also installed with the java installer.
Would be nice to be able to do an emerge but at least I have Jedit running...
Back to top
View user's profile Send private message
dioxmat
Bodhisattva
Bodhisattva


Joined: 04 May 2002
Posts: 709
Location: /home/mat

PostPosted: Thu Jul 25, 2002 3:26 pm    Post subject: Reply with quote

wondering, isnt jedit a java only editor ?
then I dont see why the gcc version should make any difference :)
_________________
mat
Back to top
View user's profile Send private message
sypher7
n00b
n00b


Joined: 23 Jul 2002
Posts: 21
Location: IL, USA

PostPosted: Thu Jul 25, 2002 4:08 pm    Post subject: Reply with quote

well, at the time i had just upgraded to gentoo 1.3b from 1.2, and jedit stopped working. so i figured that gcc3 may have indirectly caused problems for jedit through compiling jikes or ant or something strange like that; however, that's not the case since my roommate is having the same problems with gentoo 1.2, whereas a few days ago neither of us had problems getting it to work.

so initially that's why the thread title was named so. it's sorta misleading now because gcc3 has more or less been ruled out as the culprit.
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Thu Jul 25, 2002 8:10 pm    Post subject: Reply with quote

just a thought on that error..looks like a classpath problem to me..

try this:

Code:
CLASSPATH=$CLASSPATH:.


that will add "this directory" to the classpath so that can find the neccessary classes.

let me know if that helps...
Back to top
View user's profile Send private message
sypher7
n00b
n00b


Joined: 23 Jul 2002
Posts: 21
Location: IL, USA

PostPosted: Thu Jul 25, 2002 8:16 pm    Post subject: Reply with quote

hrm that was a good idea, but it didn't work. i tried both:
Code:
CLASSPATH=$CLASSPATH:.

and
Code:
export CLASSPATH=$CLASSPATH:.
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Thu Jul 25, 2002 8:20 pm    Post subject: Reply with quote

looking more carefully at that error, it looks as if it cannot find the classes for "ant" which jedit depends on...try (re-)emerging that

Code:
emerge unmerge dev-java/ant
emerge dev-java/ant


then try emerging jedit

BTW: it installs with no probs over here :-/
Back to top
View user's profile Send private message
sypher7
n00b
n00b


Joined: 23 Jul 2002
Posts: 21
Location: IL, USA

PostPosted: Fri Jul 26, 2002 8:24 am    Post subject: Reply with quote

unfortunately that was one of the first things i tried, since ant was the only thing i recognized clearly in that error. could it be something to do with JRE/JDK conflicts? my JAVA_HOME is set to /opt/blackdown-jre-1.3.1 ... i tried changing it to /opt/blackdown-jdk-1.3.1 but it wouldn't stick, so i'm not sure if it failed with that as the java home too or if it wasn't changed in the first place. changes to /etc/profile.env didn't stick either. I wonder if it needs to be jdk in order to compile jedit. i haven't messed with sun jdk yet.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Aug 19, 2002 1:42 am    Post subject: Reply with quote

GCC3 to Portage & Programming, on the slim justification that jedit sounds like a programming editor and there's CLASSPATH stuff in here. A case could be made for OTG.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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