From: Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Date: Wed, 18 Apr 2018 10:09:17 +0200
Subject: Fix exporting as an applet

When exporting the worksheet as applet, use the classes distributed
by the upstream site (which have embedded dependencies).
---
 geogebra/export/WorksheetExportDialog.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/geogebra/export/WorksheetExportDialog.java b/geogebra/export/WorksheetExportDialog.java
index 9648a8b..712e304 100644
--- a/geogebra/export/WorksheetExportDialog.java
+++ b/geogebra/export/WorksheetExportDialog.java
@@ -1086,10 +1086,15 @@ public class WorksheetExportDialog extends JDialog {
 	 * unsigned applet is needed for the options set.
 	 */
 	private URL getAppletCodebase() {
-		URL codebase = Application.getCodeBase();
+		URL codebase = null;
+		try {
+			codebase = new URL("http://www.geogebra.org/webstart/");
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
 		if (!cbSavePrint.isSelected()) {
 			try {
-				codebase = new URL(Application.getCodeBase(), "unsigned/");
+				codebase = new URL(codebase, "unsigned/");
 			} catch (Exception e) {
 				e.printStackTrace();
 			}
