public MethodDescriptor getMain() {
ClassDescriptor cd=getMainClass();
Set mainset=cd.getMethodTable().getSet("main");
+
for(Iterator mainit=mainset.iterator(); mainit.hasNext();) {
MethodDescriptor md=(MethodDescriptor)mainit.next();
if (md.numParameters()!=1)
.getType();
if (tpd.getArrayCount()!=1)
continue;
- if (!tpd.getSymbol().equals("String"))
+ if (!tpd.getSymbol().equals(StringClass))
continue;
-
if (!md.getModifiers().isStatic())
throw new Error("Error: Non static main");
return md;
# Setup class path
if $JNI
then
-JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/"
+JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ $ROBUSTROOT/classpath/vm/reference"
elif $MGCINTELFLAG
then
JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"