From: DRC Date: Tue, 3 Aug 2010 04:33:42 +0000 (+0000) Subject: Fix JAR file so that Java viewer can be run without a web server X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fheads%2F1.0-branch;p=tigervnc.git Fix JAR file so that Java viewer can be run without a web server git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@4114 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/java/src/com/tigervnc/vncviewer/MANIFEST.MF b/java/src/com/tigervnc/vncviewer/MANIFEST.MF index 9ddbfbcc..b3574fe2 100644 --- a/java/src/com/tigervnc/vncviewer/MANIFEST.MF +++ b/java/src/com/tigervnc/vncviewer/MANIFEST.MF @@ -1,2 +1,2 @@ Manifest-Version: 1.0 -Main-Class: VncViewer +Main-Class: com.tigervnc.vncviewer.VncViewer diff --git a/java/src/com/tigervnc/vncviewer/Makefile b/java/src/com/tigervnc/vncviewer/Makefile index 01cf48b1..46752ab1 100644 --- a/java/src/com/tigervnc/vncviewer/Makefile +++ b/java/src/com/tigervnc/vncviewer/Makefile @@ -35,7 +35,12 @@ $(CLASSES): $(SOURCES) $(JC) $(JCFLAGS) -O $(SOURCES) $(ARCHIVE): $(CLASSES) $(MANIFEST) - $(JAR) cfm $(ARCHIVE) $(MANIFEST) $(CLASSES) + cd ../../..; \ + $(JAR) cfm com/tigervnc/vncviewer/$(ARCHIVE) \ + com/tigervnc/vncviewer/$(MANIFEST) \ + com/tigervnc/vncviewer/*.class \ + com/tigervnc/decoder/*.class \ + com/tigervnc/decoder/common/*.class install: $(CLASSES) $(ARCHIVE) $(CP) $(CLASSES) $(ARCHIVE) $(PAGES) $(INSTALL_DIR) @@ -44,4 +49,4 @@ export:: $(CLASSES) $(ARCHIVE) $(PAGES) @$(ExportJavaClasses) clean:: - $(RM) *.class *.jar + $(RM) *.class *.jar ../decoder/*.class ../decoder/common/*.class diff --git a/java/src/com/tigervnc/vncviewer/index.html b/java/src/com/tigervnc/vncviewer/index.html index 96805dc5..a582b2d0 100644 --- a/java/src/com/tigervnc/vncviewer/index.html +++ b/java/src/com/tigervnc/vncviewer/index.html @@ -20,7 +20,7 @@ TigerVNC desktop - diff --git a/java/src/com/tigervnc/vncviewer/index.vnc b/java/src/com/tigervnc/vncviewer/index.vnc index f24df7c5..ba9e57c9 100644 --- a/java/src/com/tigervnc/vncviewer/index.vnc +++ b/java/src/com/tigervnc/vncviewer/index.vnc @@ -15,7 +15,7 @@ $USER's $DESKTOP desktop ($DISPLAY) - $PARAMS