Newsgroup: it.comp.os.linux.iniziare
Titolo: aiutatemi a configurare questo file, perfavore. GRAZIE!

Vorrei utilizzare Forte for Java con la Redhat 7.1 ma sembra che ci siano
dei problemi.
Cosě sono andato sul sito e ho trovato la "solouzione" ma non riesco a
risolverla.
La soluzione č questa (presa dalla pagina
http://forte.sun.com/cgi-bin/WebX?1...@124.V9unaXgKabR
^3@.ee75164 
):
__________________________________________________________________________________________
                         if you plan to use the IDE with RH 7.1, please read their README file. It seems that RedHat
                         7.1 includes processor model-specific libraries for pthreads (libpthread.so.0) that causes
                         Sun's and IBM's JDKs to fail on signal 11 or hang up. Event "java -version" hangs and prints
                         out a native stack trace if terminated by CTRL-C. 
                         There are several solutions to this: 
                         1. delete (or move somewhere else) /lib/i686/libpthread.so.0 (substitute your architecture ID
                         for i686). It's not recommended, because it will affect all executables on the system, not
                         just the buggy ones :-) 
                         2. modify runide.sh - put export "LD_ASSUME_KERNEL=2.2.5" after the leading comments. This
                         will allow you to start the IDE. 
                         3. if your JDK distribution uses shell wrappers for starting the JVM (Sun, IBM and Blackdown
                         JDKs do), put the above statement in the wrapper shell script instead of runide.sh 
__________________________________________________________________________________________
Io ho scelto di effettuare la 2.
Ma come fare?
quali sono le modifiche da fare?
Di seguito vi invio l' "originale" non modificato runide.sh
GRQAZIE IN ANTICIPO, Mario.
__________________________________________________________________________________________
#!/bin/sh
#                 Sun Public License Notice
# 
# The contents of this file are subject to the Sun Public License
# Version 1.0 (the "License"). You may not use this file except in
# compliance with the License. A copy of the License is available at
# 
http://www.sun.com/
# 
# The Original Code is NetBeans. The Initial Developer of the Original
# Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
# Microsystems, Inc. All Rights Reserved.
# loader for IDE
#
# $Id: runide.sh,v 1.3.2.2 2000/10/18 15:16:28 ttran Exp $
#
# customization
#
# the value set here can be overriden by $JAVA_PATH or the -jdkhome switch
jdkhome=""
jreflags="-Xmx96m"
#
# end of customization 
#
PRG=$0
#
# resolve symlinks
#
while [ -h "$PRG" ]; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null`
    if expr "$link" : '^/' 2> /dev/null >/dev/null; then
	PRG="$link"
    else
	PRG="`dirname $PRG`/$link"
    fi
done
progdir=`dirname $PRG`
progname=`basename $0`
idehome="$progdir/.."
# absolutize idehome
oldpwd=`pwd` ; cd ${idehome}; idehome=`pwd`; cd $oldpwd; unset oldpwd
thread_flag=""
jargs=${jreflags}
jargs="$jargs -Dnetbeans.home=$idehome"
jargs="$jargs -Djava.security.policy=$idehome/bin/ide.policy"
args=""
prefixcp=""
postfixcp=""
userdir=""
updater=org.netbeans.updater.UpdaterFrame
ide=org.netbeans.Main
#
# defaults
#
# if JAVA_PATH is set it overrides the default in the script
if [ ! -z "$JAVA_PATH" ] ; then
    jdkhome=$JAVA_PATH
fi
#
# parse arguments
#
while [ $# -gt 0 ] ; do
    case "$1" in
        -h|-help) cat <<EOF
Usage: $0 {options} arguments
Options can be
   -h -help
        shows usage
   -jdkhome <path>
        specifies the JDK directory
   -hotspot
   -classic
   -native
   -green
        specifies the type of JVM
 
   -J<jvm_options>
        passes <jvm_option> to JVM
   -userdir <path>
        specifies userdir
   -cp:p <classpath>
        prepends <classpath> to IDE's classpath
   -cp:a <classpath>
        appends <classpath> to IDE's classpath
All other options and arguments are passed to the IDE.
See documentations for details
EOF
exit 1
;;
        -jdkhome) shift; if [ $# -gt 0 ] ; then jdkhome=$1; fi;;
        -userdir) shift; if [ $# -gt 0 ] ; then userdir=$1; fi;;
        -cp|-cp:a)
            shift;
            if [ $# -gt 0 ] ; then
                if [ ! -z "$postfixcp" ] ; then postfixcp="$postfixcp:" ; fi
                postfixcp=$postfixcp$1;
            fi
            ;;
 
        -cp:p)
            shift;
            if [ $# -gt 0 ] ; then
                if [ ! -z "$prefixcp" ] ; then prefixcp="$prefixcp:" ; fi
                prefixcp=$prefixcp$1;
            fi
            ;;
 
        -hotspot|-classic|-native|-green) thread_flag=$1;;
        -J-hotspot|-J-classic|-J-native|-J-green) thread_flag=`expr $1 : '-J\(.*\)'`;;
        -J*) jopt=`expr "$1" : '-J\(.*\)'`; jargs="$jargs \"$jopt\"";;
        *) args="$args \"$1\"" ;;
    esac
    shift
done
#
# check JDK
#
if [ -z "$jdkhome" ] ; then
    echo "Cannot find JDK. Please set the JAVA_PATH environment variable to point"
    echo "to your JDK installation directory, or use the -jdkhome switch"
    echo ""
    exit 1
fi
if [ ! -x "${jdkhome}/bin/java" ] ; then
    echo "Cannot find JDK at ${jdkhome}. Please set the JAVA_PATH"
    echo "environment variable to point to your JDK installation directory,"
    echo "or use the -jdkhome switch"
    echo ""
    exit 1
fi
#
# check userdir
#
if [ ! -z "$userdir" ] ; then
    if id | grep 'uid=0[^0-9]' >/dev/null; then
        echo "You are running IDE as root. Configurations, updated modules and"
        echo "possibly development files will be stored in the shared installation"
        printf "directory. Continue? (y/n): "
        read answer
        while [ $answer != y -a $answer != Y -a $answer != n -a $answer != N ] ; do
            printf "Please answer y or n: "
            read answer
        done
        if [ $answer != y -a $answer != Y ] ; then
            exit 1
        fi
        userdir=""
    else
        #
        # setup userdir if needed
 
        echo "Using ${userdir} as user directory...";
        if [ ! -d "${userdir}/system" ] ; then
            echo "User directory does not exist."
            echo "Setting up this user for the IDE..."
            mkdir -p "${userdir}" 2>/dev/null
            cp -r "${idehome}/Development" "${userdir}"
 
            mkdir "${userdir}/system"
            touch "${userdir}/system/project.last_hidden"
            touch "${userdir}/system/project.basic_hidden"
            mkdir "${userdir}/system/Projects" 2>/dev/null
            touch "${userdir}/system/Projects/workspace.ser_hidden"
 
            mkdir "${userdir}/modules"
            mkdir "${userdir}/lib"
            mkdir "${userdir}/lib/ext"
            mkdir "${userdir}/lib/patches"
        fi
 
        jargs="$jargs -Dnetbeans.user=$userdir"
    fi
fi
#
# increase file descriptor's limit, on Solaris it's set to 64, too small for
# fastjavac
#
ulimit -n 1024
#
# main loop
#
while true; do
    #
    # build CLASSPATH
    #
 
    cp=""
    #
    # userdir comes first
    #
 
    if [ ! -z "$userdir" ] ; then
        base=$userdir
 
        # patches
 
        for ex in jar zip ; do
            if [ "`echo ${base}/lib/patches/*.$ex`" != "${base}/lib/patches/*.$ex" ] ; then
                for x in ${base}/lib/patches/*.$ex ; do
                    if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                    cp="$cp$x"
                done
            fi
        done
        # ext
        for ex in jar zip ; do
            if [ "`echo ${base}/lib/ext/*.$ex`" != "${base}/lib/ext/*.$ex" ] ;then
                for x in ${base}/lib/ext/*.$ex ; do
                    if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                    cp="${cp}$x"
                done
            fi
        done
        # ide jars
        if [ -d "$base/lib" ] ; then
            if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
            cp="${cp}${base}/lib"
        fi
 
        for ex in jar zip ; do
            if [ "`echo ${base}/lib/*.$ex`" != "${base}/lib/*.$ex" ] ;then
                for x in ${base}/lib/*.$ex ; do
                    if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                        cp="${cp}$x"
                done
            fi
        done
    fi
    #
    # idehome comes second
    #
 
    base=$idehome
 
    # patches
 
    for ex in jar zip ; do
        if [ "`echo ${base}/lib/patches/*.$ex`" != "${base}/lib/patches/*.$ex" ] ; then
            for x in ${base}/lib/patches/*.$ex ; do
                if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                cp="$cp$x"
            done
        fi
    done
 
    # ext
    for ex in jar zip ; do
        if [ "`echo ${base}/lib/ext/*.$ex`" != "${base}/lib/ext/*.$ex" ] ;then
            for x in ${base}/lib/ext/*.$ex ; do
                if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                cp="${cp}$x"
            done
        fi
    done
    # ide jars
    if [ -d "$base/lib" ] ; then
        if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
        cp="${cp}${base}/lib"
    fi
 
    for ex in jar zip ; do
        if [ "`echo ${base}/lib/*.$ex`" != "${base}/lib/*.$ex" ] ;then
            for x in ${base}/lib/*.$ex ; do
                if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                cp="${cp}$x"
            done
        fi
    done
    #
    # JDK tools
    #
 
    for ex in jar zip ; do
        if [ "`echo ${jdkhome}/lib/*.$ex`" != "${jdkhome}/lib/*.$ex" ] ;then
            for x in ${jdkhome}/lib/*.$ex ; do
                if [ ! -z "$cp" ] ; then cp="$cp:" ; fi
                cp="${cp}$x"
            done
        fi
    done
    #
    # user-specified prefix and postfix CLASSPATH
    #
 
    if [ ! -z "${prefixcp}" ] ; then
        cp="${prefixcp}:$cp"
    fi
 
    if [ ! -z "${postfixcp}" ] ; then
        cp="$cp:${postfixcp}"
    fi
    #
    # ${CLASSPATH}
    #
#      if [ ! -z "${CLASSPATH}" ] ; then
#          cp="$cp:${CLASSPATH}"
#      fi
 
    #
    # let's go
    #
 
    eval $jdkhome/bin/java $thread_flag $jargs -classpath "\"$cp\"" $ide $args
    # AutoUpdate exit?
 
    rc=$?
    if [ $rc -ne 66 ] ; then
        exit $rc
    fi
    # runs updater
 
    eval $jdkhome/bin/java $thread_flag $jargs -classpath "\"$cp\"" $updater
done
__________________________________________________________________________________________

RISOLTO: GRAZIE!!!
bastava semplicemente inserire :
export "LD_ASSUME_KERNEL=2.2.5"
e non 
LD_ASSUME_KERNEL=2.2.5

 quali sono le modifiche da fare?
Quello che c'è scritto...
aggiungi all'inizio (non sulla prima riga!) del file la riga
export LD_ASSUME_KERNEL=2.2.5
Ciao,
Davide