The ./guilogon file's content

------------------------------------
#!/bin/sh

# Start script for PlatinGUI.
THISSCRIPT="guilogon"
STARTCLASS=""
STARTOPT=""
PLATINHOME=""

#--------------------------------------------------------------
# Shell function: followlink
#--------------------------------------------------------------
# follow symlink
# followlink <file>
followlink() {
    TARGET=$1
    # if we are called by symlink, follow it to its target
    while /usr/bin/test -L "$TARGET" ; do
        # keep dir where the symlink is
        DIR=`dirname "$TARGET"`
        
        # ask ls -l about the symlink's target
        LL_OUT=`ls -l "$TARGET"`
        TARGET=`expr "$LL_OUT" : '.*-> \(.*\)'`
        
        # for relative target, prefix with dir of symlink
        ABS=`expr "$TARGET" : '/.*'`
        if /usr/bin/test "$ABS" -eq 0 ; then
            TARGET="$DIR/$TARGET"
        fi
    done
    echo "$TARGET"
}

#--------------------------------------------------------------
# Main program
#--------------------------------------------------------------
# The following external variables are evaluated:
#    PLATIN_JAVA     Java Runtime Environment command
#                    defaults to "java"

# debugging
if /usr/bin/test $# -ge 1 -a x"$1" = "x-checkscript" ; then
        echo "$THISSCRIPT -checkscript output":
        echo "Before processing:"
        echo "  PLATINHOME      = $PLATINHOME"
        echo "  PLATIN_JAVA     = $PLATIN_JAVA"
        echo "  uname           = `uname`"
        echo "  PATH            = $PATH"
fi

# determine PLATINHOME
# resolve symlinks to invoked script
THISSCRIPTPATH=`followlink "$0"`
        
# find PLATINHOME
DIRNAME=`dirname "$THISSCRIPTPATH"`
DIRNAME=`cd "$DIRNAME"; /bin/pwd`
BASENAME=`basename "$DIRNAME"`

if /usr/bin/test x"$BASENAME" = x"gmux" ; then
    PLATINHOME=`dirname "$THISSCRIPTPATH"`/../..
else
    PLATINHOME=`dirname "$THISSCRIPTPATH"`/..
fi
PLATINHOME=`cd "$PLATINHOME"; /bin/pwd`
export PLATINHOME

# define necessary jars in classpath
START_JARS="$PLATINHOME/jar/GuiStartS.jar:$PLATINHOME/jar/platincoreS.jar"
JRE_ARGS="-Xms32M -Xmx128M"

# check for platin classes in PLATINHOME
OLDIFS=$IFS
IFS=":" 
for jar in $START_JARS; do
    if /usr/bin/test ! -r $jar; then
        echo "ERROR: $THISSCRIPT: File $jar not found in $PLATINHOME/jar" >&2
        exit 1
    fi
done
IFS=$OLDIFS

# check for correct invocation (at least one argument for everything
except guilogon)
if /usr/bin/test "$THISSCRIPT" != "guilogon" ; then
    if (/usr/bin/test $# -lt 1); then
        echo "ERROR: $THISSCRIPT: missing argument" >&2
        echo "    Usage  : $THISSCRIPT <connectstring>" >&2
        echo "    Example: $THISSCRIPT /H/binmain.wdf.sap-ag.de/S/3253" >&2
        exit 1
    fi
fi

if /usr/bin/test "x$PLATIN_JAVA" = "x" ; then
    PLATIN_JAVA=java
fi

STARTCLASS="com.sap.platin.Gui"

case "$THISSCRIPT" in 
    guistart)
        STARTOPT="-n -o"
        ;;
    guilogon)
        STARTOPT=""
        ;;
    sapgui)
        STARTOPT="-n -o"
        ;;
    *)
        echo "ERROR $THISSCRIPT: type not properly defined."
        exit 1
        ;;
esac

##############################################################################################
#
# For debugging purposes options for the gui (e.g. tracing) can be set
here:
# typical settings could be : PLATIN_DEBUG="-t RFC -l
/var/tmp/guitrace$$.log" 
# together with             : RFC_TRACE=3; export RFC_TRACE
#
##############################################################################################
PLATIN_DEBUG=""
# RFC_TRACE="3"; export RFC_TRACE
# DPTRACE="3"; export DPTRACE
##############################################################################################

STARTCOMMAND="$PLATIN_JAVA $JRE_ARGS -cp $START_JARS $STARTCLASS
$PLATIN_DEBUG $STARTOPT"

# debugging
if /usr/bin/test $# -ge 1 -a x"$1" = "x-checkscript" ; then
    echo "After processing:"
    echo "  THISSCRIPTPATH  = $THISSCRIPTPATH"
    echo "  PLATINHOME      = $PLATINHOME"
    echo "  PLATIN_JAVA     = $PLATIN_JAVA"
    echo "  PLATIN_DEBUG    = $PLATIN_DEBUG"
    echo "  JRE_ARGS        = $JRE_ARGS"
    echo "  START_JARS      = $START_JARS"
    echo "  STARTCLASS      = $STARTCLASS"
    echo "  RFC_TRACE       = $RFC_TRACE"
    echo "Command to start:"
    echo "  $STARTCOMMAND"
    exit 0
fi

exec $STARTCOMMAND "$@"



---------------------end of guilogon file----



2, can you suggest an enduser [frontend (client)] for Linux (fedora)
other than netweaver (java)..?




**********************************************************************
- In [email protected], Cgull Charlie <[EMAIL PROTECTED]> wrote:
>
> Is guilogon a script and if so can you show us the contents?
> Secondly, is there a more detailed log or error message?
> Third, have you put that jar in the correct location?
> Fourth, do you have all the necessary jars installed for the sapgui?
> Fifth can you do a "find" or "tree" on your installation folder and
show 
> us the list - thats if its not to big (i.e less than say 50 files)
> 
> I'm guessing something in guillogon (maybe even the jvm itself) is
using 
> java.lang.reflect to parse a jar file (i.e java library) to find a 
> main() method on a particular class.  main() is similar to main() in
the 
> c language so its like the entry point or point that execution begins.
> I'm also guessing then that the class cannot be found or that the jar 
> provided has no classes with main().
> Check the jar is in the correct folder, and if you have the tools,
check 
> the jar has a class with main()
> 
> All in all, I think you are missing the main jar that has the main() 
> required to bootstrap the application.
> 
> cGull
> 
> sangeeth512204 wrote:
> 
> >HI
> >I have installed PlatinGUI-Linux-640.jar on Fedora core release 4 .
> >The installation was sucessfull.But while running ./guilogon i got a
> >splash message of Netweaver Sapgui and disappear by giving an error
> >message like this on the terminal.
> >
> >cannot invoke main method () java.lang.reflect
> >
> > 
> >Help me please.
> >Thank you.
> >
> >
> >
> >
> >
> >
> >
> > 
> >Yahoo! Groups Links
> >
> >
> >
> > 
> >
> >
> >
> >
> >  
> >
>





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/dubailug/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to