Index: src/gnu/gcjwebplugin/AppletTag.java =================================================================== RCS file: /cvsroot/gcjwebplugin/gcjwebplugin/src/gnu/gcjwebplugin/AppletTag.java,v retrieving revision 1.32 diff -u -r1.32 AppletTag.java --- src/gnu/gcjwebplugin/AppletTag.java 27 Apr 2006 19:09:56 -0000 1.32 +++ src/gnu/gcjwebplugin/AppletTag.java 5 May 2006 13:46:48 -0000 @@ -123,7 +123,19 @@ } if (archives.size() == 0) - archives = TagParser.parseArchives(appElement.getArchive(), this); + { + String arcs = ""; + String arch = appElement.getArchive(); + + if (code.indexOf(".") < 0) + arcs = code + ".jar"; + + if (!arch.equals("")) + arcs += ", " + arch; + + if (!arcs.equals("")) + archives = TagParser.parseArchives(arcs, this); + } } /** @@ -186,11 +198,20 @@ if (archives.size() == 0) { - ArrayList jarch = TagParser.parseArchives(embElement.getJavaArchive(), this); - if (jarch.size() != 0) - archives = jarch; - else - archives = TagParser.parseArchives(embElement.getArchive(), this); + String arcs = ""; + String jarch = embElement.getJavaArchive(); + String arch = embElement.getArchive(); + + if (code.indexOf(".") < 0) + arcs = code + ".jar"; + + if (!jarch.equals("")) + arcs += ", " + jarch; + else if (!arch.equals("")) + arcs += ", " + arch; + + if (!arcs.equals("")) + archives = TagParser.parseArchives(arcs, this); } } @@ -259,11 +280,20 @@ if (archives.size() == 0) { - ArrayList jarch = TagParser.parseArchives(objElement.getJavaArchive(), this); - if (jarch.size() != 0) - archives = jarch; - else - archives = TagParser.parseArchives(objElement.getArchive(), this); + String arcs = ""; + String jarch = objElement.getJavaArchive(); + String arch = objElement.getArchive(); + + if (code.indexOf(".") < 0) + arcs = code + ".jar"; + + if (!jarch.equals("")) + arcs += ", " + jarch; + else if (!arch.equals("")) + arcs += ", " + arch; + + if (!arcs.equals("")) + archives = TagParser.parseArchives(arcs, this); } }