Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66824 - NetBeans 3.6.1 & ibm java sdk 1.4.2 (ppc, not x86)....
Summary: NetBeans 3.6.1 & ibm java sdk 1.4.2 (ppc, not x86)....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-08 16:25 UTC by Frank Hollenbach
Modified: 2004-10-28 12:06 UTC (History)
1 user (show)

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 Frank Hollenbach 2004-10-08 16:25:12 UTC
this is, to be honest a strange bug, because there is no output
netbeans just dies without any word....

java-config -L
[ibm-jdk-bin-1.4.2] "IBM JDK 1.4.2" (/etc/env.d/java/20ibm-jdk-bin-1.4.2) *

bash -x netbeans
++ java-config --jdk-home
+ jdkhome=/opt/ibm-jdk-bin-1.4.2
+ jreflags=
+ PRG=netbeans
+ '[' -h netbeans ']'
++ dirname netbeans
+ progdir=.
++ basename netbeans
+ progname=netbeans
+ idehome=./..
++ pwd
+ oldpwd=/home/frank
+ cd ./..
++ pwd
+ idehome=/home
+ cd /home/frank
+ unset oldpwd
+ defaults=/home/bin/.runide_defaults.sh
+ '[' -r /home/lib/branding ']'
+ . /home/bin/.runide_defaults.sh
/usr/bin/netbeans: line 60: /home/bin/.runide_defaults.sh: No such file or directory
+ jargs=
+ jargs=' -Dnetbeans.home="/home"'
+ jargs=' -Dnetbeans.home="/home" -Djava.security.policy="/home/bin/ide.policy"'
+ args=
+ prefixcp=
+ postfixcp=
+ updater_class=org.netbeans.updater.UpdaterFrame
+ ide_class_option=
+ '[' '!' -z /opt/ibm-jdk-bin-1.4.2 -a -z /opt/ibm-jdk-bin-1.4.2 ']'
+ '[' '!' -z '' -a -z /opt/ibm-jdk-bin-1.4.2 ']'
+ '[' -r /home/frank/ide.cfg ']'
+ '[' -r ./ide.cfg ']'
+ '[' -f /usr/j2se/opt/javahelp/lib/jhall.jar ']'
+ parse_args
+ '[' 0 -gt 0 ']'
+ '[' -z /opt/ibm-jdk-bin-1.4.2 ']'
+ '[' '!' -x /opt/ibm-jdk-bin-1.4.2/bin/java ']'
+ '[' '!' -z '' ']'
+ ulimit -n 1024
+ nbenvfile=/tmp/nbenv.2071
+ rm -f /tmp/nbenv.2071
+ '[' -f /tmp/nbenv.2071 ']'
+ '[' -r /proc/self/environ ']'
+ cat /proc/self/environ
+ nbenvnullsep=true
+ trap 'rm -f '\''/tmp/nbenv.2071'\''' EXIT
+ restart=yes
+ first_time_starting=yes
+ '[' yes ']'
+ cp=
+ updatercp=
+ build_cp /home
+ base=/home
+ append_jars_to_cp /home/lib/ext
+ dir=/home/lib/ext
+ for ex in jar zip
++ echo '/home/lib/ext/*.jar'
+ '[' '/home/lib/ext/*.jar' '!=' '/home/lib/ext/*.jar' ']'
+ for ex in jar zip
++ echo '/home/lib/ext/*.zip'
+ '[' '/home/lib/ext/*.zip' '!=' '/home/lib/ext/*.zip' ']'
+ append_jars_to_cp /home/lib/ext/locale
+ dir=/home/lib/ext/locale
+ for ex in jar zip
++ echo '/home/lib/ext/locale/*.jar'
+ '[' '/home/lib/ext/locale/*.jar' '!=' '/home/lib/ext/locale/*.jar' ']'
+ for ex in jar zip
++ echo '/home/lib/ext/locale/*.zip'
+ '[' '/home/lib/ext/locale/*.zip' '!=' '/home/lib/ext/locale/*.zip' ']'
+ '[' -f /home/lib/updater.jar ']'
+ for ex in jar zip
++ echo /opt/ibm-jdk-bin-1.4.2/lib/dt.jar /opt/ibm-jdk-bin-1.4.2/lib/tools.jar
+ '[' '/opt/ibm-jdk-bin-1.4.2/lib/dt.jar /opt/ibm-jdk-bin-1.4.2/lib/tools.jar' '!=' '/opt/ibm-jdk-bin-1.4.2/lib/*.jar' ']'
+ for x in '"${jdkhome}"/lib/*.$ex'
+ '[' '!' -z '' ']'
+ cp=/opt/ibm-jdk-bin-1.4.2/lib/dt.jar
+ for x in '"${jdkhome}"/lib/*.$ex'
+ '[' '!' -z /opt/ibm-jdk-bin-1.4.2/lib/dt.jar ']'
+ cp=/opt/ibm-jdk-bin-1.4.2/lib/dt.jar:
+ cp=/opt/ibm-jdk-bin-1.4.2/lib/dt.jar:/opt/ibm-jdk-bin-1.4.2/lib/tools.jar
+ for ex in jar zip
++ echo '/opt/ibm-jdk-bin-1.4.2/lib/*.zip'
+ '[' '/opt/ibm-jdk-bin-1.4.2/lib/*.zip' '!=' '/opt/ibm-jdk-bin-1.4.2/lib/*.zip' ']'
+ '[' '!' -z '' ']'
+ '[' '!' -z '' ']'
+ '[' '!' -z '' ']'
+ updatercp=/opt/ibm-jdk-bin-1.4.2/lib/dt.jar:/opt/ibm-jdk-bin-1.4.2/lib/tools.jar
+ '[' yes ']'
+ run_updater=
+ look_for_pre_runs /home
+ base=/home
+ dir=/home/update/download
++ echo '/home/update/download/*.nbm'
+ '[' -f /home/update/download/install_later.xml -a '/home/update/download/*.nbm' '!=' '/home/update/download/*.nbm' ']'
+ look_for_pre_runs ''
+ base=
+ dir=/update/download
++ echo '/update/download/*.nbm'
+ '[' -f /update/download/install_later.xml -a '/update/download/*.nbm' '!=' '/update/download/*.nbm' ']'
+ '[' '' ']'
+ first_time_starting=
+ eval '"/opt/ibm-jdk-bin-1.4.2/bin/java"' '-Djdk.home="/opt/ibm-jdk-bin-1.4.2"' -classpath '"/opt/ibm-jdk-bin-1.4.2/lib/dt.jar:/opt/ibm-jdk-bin-1.4.2/lib/tools.jar"' -Dnetbeans.osenv=/tmp/nbenv.2071 -Dnetbeans.osenv.nullsep=true '-Dnetbeans.home="/home"' '-Djava.security.policy="/home/bin/ide.policy"' org.netbeans.Main
++ /opt/ibm-jdk-bin-1.4.2/bin/java -Djdk.home=/opt/ibm-jdk-bin-1.4.2 -classpath/opt/ibm-jdk-bin-1.4.2/lib/dt.jar:/opt/ibm-jdk-bin-1.4.2/lib/tools.jar -Dnetbeans.osenv=/tmp/nbenv.2071 -Dnetbeans.osenv.nullsep=true -Dnetbeans.home=/home -Djava.security.policy=/home/bin/ide.policy org.netbeans.Main
The java class is not found:  org/netbeans/Main
+ exitcode=1
+ run_updater=
+ look_for_post_runs /home
+ base=/home
+ dir=/home/update/download
++ echo '/home/update/download/*.nbm'
+ '[' '!' -f /home/update/download/install_later.xml -a '/home/update/download/*.nbm' '!=' '/home/update/download/*.nbm' ']'
+ look_for_post_runs ''
+ base=
+ dir=/update/download
++ echo '/update/download/*.nbm'
+ '[' '!' -f /update/download/install_later.xml -a '/update/download/*.nbm' '!=' '/update/download/*.nbm' ']'
+ '[' '' ']'
+ restart=
+ '[' '' ']'
+ exit 1
+ rm -f /tmp/nbenv.2071


and this was ....
this looks curious : 
. /home/bin/.runide_defaults.sh
/usr/bin/netbeans: line 60: /home/bin/.runide_defaults.sh: No such file or directory
+ jargs=


I welcome any hint, as I must use Java and prefer netbeans. But I need to use 1.4.2 due to some SSL things changed from 1.4.1 to 1.4.2.

Cheers Frank
Comment 1 Jochen Maes (RETIRED) gentoo-dev 2004-10-11 01:15:20 UTC
I'm currently emergeing netbeans, i have the same jdk as you so the problem should be on my system also...

keep tuned...
Comment 2 Jochen Maes (RETIRED) gentoo-dev 2004-10-11 01:23:53 UTC
Hey, 


just installed netbeans, and the only way to get your error is to do: "# bash -x netbeans"
If i just go "# netbeans" then the application works ok. 

would you please check that? 

greetings, 
Comment 3 Frank Hollenbach 2004-10-11 12:54:00 UTC
bash -x gives ou just the command and how its processed.
if I say just netbeans (or runide.sh at the /opt/netbeans Path, it fails without any message.
Do you use Xfree or X.org ?
krgds Frank
Comment 4 Jochen Maes (RETIRED) gentoo-dev 2004-10-11 23:24:51 UTC
I have x.org, the problem i found with the bash -x netbeans is a path problem. 
It seems that the path isn't set correctly. 
The fact that it uses your /home as base dir isn't right at all. It should use /home/frank at least (cfr: jargs=' -Dnetbeans.home="/home" -Djava.security.policy="/home/bin/ide.policy"')

I cannot reproduce this error, have you emerged netbeans and then switched JDK? like emerged it with JDK 1.4.1 and then emerged the 1.4.2 jdk? 

thanks
Comment 5 Frank Hollenbach 2004-10-27 13:55:29 UTC
O just look more in depth to it (bash -x give you just the "echo" of done commands, its something like a debug feature in the shell)
[Loaded sun.awt.NativeLibLoader from /opt/ibm-jdk-bin-1.4.2/bin/../jre/lib/graphics.jar]
[Signaling in VM: java/lang/UnsatisfiedLinkError, message: /opt/ibm-jdk-bin-1.4.2/jre/bin/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory]
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2120)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1986)
        at java.lang.Runtime.loadLibrary0(Runtime.java:824)
        at java.lang.System.loadLibrary(System.java:908)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:76)
        at java.security.AccessController.doPrivileged1(Native Method)
        at java.security.AccessController.doPrivileged(AccessController.java:287)
        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:81)
        at java.awt.Color.<clinit>(Color.java:280)
        at javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTheme.java:61)
        at javax.swing.plaf.metal.MetalLookAndFeel.getCurrentTheme(MetalLookAndFeel.java:1374)
        at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(MetalLookAndFeel.java:1306)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1313)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:425)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:455)
        at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1118)
        at javax.swing.UIManager.initialize(UIManager.java:1214)
        at javax.swing.UIManager.maybeInitialize(UIManager.java:1197)
        at javax.swing.UIManager.getLookAndFeel(UIManager.java:393)
        at org.netbeans.swing.plaf.Startup.getLookAndFeel(Startup.java:137)
        at org.netbeans.swing.plaf.Startup.initialize(Startup.java:92)
        at org.netbeans.swing.plaf.Startup.<init>(Startup.java:85)
        at org.netbeans.swing.plaf.Startup.run(Startup.java:362)
        at org.netbeans.core.Main.initUICustomizations(Main.java:152)
        at org.netbeans.core.Main.run(Main.java:167)
        at org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:238)
        at org.netbeans.core.NbTopManager.get(NbTopManager.java:187)
        at org.netbeans.core.Main.start(Main.java:312)
        at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
        at java.lang.Thread.run(Thread.java:567)
[Loaded java.lang.UnsatisfiedLinkError from /opt/ibm-jdk-bin-1.4.2/bin/../jre/lib/core.jar]

and later

[Loaded java.awt.GraphicsEnvironment from /opt/ibm-jdk-bin-1.4.2/bin/../jre/lib/graphics.jar]
[Signaling in VM: java/lang/UnsatisfiedLinkError, message: initIDs]
        at java.awt.Component.<clinit>(Component.java:561)
        at org.netbeans.core.NbErrorManager.notify(NbErrorManager.java:229)
        at org.openide.ErrorManager$DelegatingErrorManager.notify(ErrorManager.java:529)
        at org.openide.ErrorManager.notify(ErrorManager.java:312)
        at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:93)
        at java.lang.Thread.run(Thread.java:567)
+ exitcode=0
+ run_updater=

so, for me it looks like an awt related things. It looks like it was compiled to another version of Xfree or X.org.

I have a second mac with Xfree, no probs.

Yes, emerged first 1.4.2 , the emerged netbeans.
but, to be honest, after it failed, i tried to get back a working version.
After a whiile without success, i re-emerged 1.4.2 and netbeans.

So for me the qestion : where, the hell, is libXp.so.6 ?

This awt related thing, I guess, is the reason why I get no ouput.

Cheers Frank
Comment 6 David Holm (RETIRED) gentoo-dev 2004-10-27 14:01:03 UTC
You must have the xprint USE-flag set when compiling xorg-x11, otherwise libXp won't be built.
Comment 7 Jochen Maes (RETIRED) gentoo-dev 2004-10-27 23:38:32 UTC
dholm is right, 
recompile your x server with "xprint" in your use-flags and it should work. That stacktrace was helpfull

i'm closing the bug as fixed.
If for some reason you still have a problem after emerging reopen the bug. 
Comment 8 Frank Hollenbach 2004-10-28 12:06:11 UTC
yes, after re-emerge of xorg with the use -flag xprint it runs.
btw, also with netbeans 4.1ea1.
and the latest eclipse ;-)