Hi,

I've been playing with the VncViewer.jar java applet, but it seems to
be broken since the rename to tigervnc.
Since all the java files are now in a package(com.tigervnc.vncviewer),
the MANIFEST.MF, index.html and Makefile have to be adjusted to get it
to work.

I'm by no means a Java expert, but I've written an Ant file which does
a proper build.

The attached patch is against trunk. What do you think?

Regards,

Ruben Kerkhof

Index: java/build.xml
===================================================================
--- java/build.xml      (revision 0)
+++ java/build.xml      (revision 0)
@@ -0,0 +1,27 @@
+<project default="jar">
+    <target name="clean">
+        <delete dir="build" />
+        <delete file="VncViewer.jar" />
+    </target>
+
+    <target name="compile" depends="clean">
+       <mkdir dir="build" />
+        <javac srcdir="src" destdir="build" target="1.5" />
+    </target>
+
+    <target name="jar" depends="compile">
+        <jar destfile="VncViewer.jar" basedir="build" includes="**/*.class">
+            <manifest>
+                <attribute name="Main-Class"
value="com.tigervnc.vncviewer.VncViewer" />
+            </manifest>
+        </jar>
+    </target>
+
+    <target name="run" depends="jar">
+        <java jar="VncViewer.jar" fork="true">
+            <arg line="HOST localhost" />
+        </java>
+    </target>
+
+
+</project>

Attachment: tigervnc-build-java-viewer.patch
Description: Binary data

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to