Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70493 - wrong version of jdk detected, eclipse can't compile.
Summary: wrong version of jdk detected, eclipse can't compile.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 12:12 UTC by Mathieu Jobin
Modified: 2004-11-08 16:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Jobin 2004-11-08 12:12:47 UTC
/usr/lib/portage/bin/ebuild.sh: line 95: [: 2_rc1: integer expression expected
Detected a JDK < 1.4.2
 * This package requires a Java VM version >= 1 4 2
 * Please use java-config -S to set the correct one

!!! ERROR: dev-util/eclipse-sdk-3.0.1-r1 failed.



kentoo root # java-config -L
[blackdown-jre-1.4.1] "Blackdown JRE 1.4.1" (/etc/env.d/java/20blackdown-jre-1.4.1)
[blackdown-jdk-1.4.2_rc1] "Blackdown JDK 1.4.2_rc1" (/etc/env.d/java/20blackdown-jdk-1.4.2_rc1) *
[blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1)



Reproducible: Always
Steps to Reproduce:
1.emerge -av eclipse-sdk
2.read
3.cry

Actual Results:  
kentoo root # USE=mozilla emerge -av eclipse-sdk 
 
These are the packages that I would merge, in order: 
 
Calculating dependencies ...done! 
[ebuild   R   ] dev-util/eclipse-sdk-3.0.1-r1  +gnome +gtk +kde +motif 
+mozilla* 0 kB 
 
Total size of downloads: 0 kB 
 
Do you want me to merge these packages? [Yes/No] 
>>> emerge (1 of 1) dev-util/eclipse-sdk-3.0.1-r1 to / 
>>> md5 src_uri ;-) eclipse-sourceBuild-srcIncluded-3.0.1.zip 
 
 * To build Eclipse, at least 768MB of RAM is recommended. 
 * Your machine has less RAM. Continuing anyway. 
 
/usr/lib/portage/bin/ebuild.sh: line 95: [: 2_rc1: integer expression expected 
Detected a JDK < 1.4.2 
 * This package requires a Java VM version >= 1 4 2 
 * Please use java-config -S to set the correct one 
 
!!! ERROR: dev-util/eclipse-sdk-3.0.1-r1 failed. 
!!! Function java-utils_ensure-vm-version-ge, Line 75, Exitcode 0 
!!! Active Java VM too old 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 
kentoo root #  

Expected Results:  
manage RC version
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-11-08 12:14:07 UTC
This isn't a portage bug, it's ebuild related...
If you're unsure, please leave it to the wrangler to assing.
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2004-11-08 12:15:36 UTC
i believe i fixed this a few days ago
when was the time you sync'ed ?

can you try sync'ing and tell me if me you still have the problem
Comment 3 Mathieu Jobin 2004-11-08 16:22:17 UTC
I'm sorry, next time I'll make sure my tree is up to date before submitting a bug.

I sink and it worked.

by the way the +mozilla option on eclipse is mandatory.

eclipse crash on startup if compile using -mozilla.

i dont know if I should submit a bug report about that.