fre 2009-03-13 klockan 11:45 +0100 skrev Adam Tkac:
> On Fri, Mar 13, 2009 at 10:07:12AM +0100, Pierre Ossman wrote:
> > On Wed, 4 Mar 2009 13:50:36 +0100
> > Pierre Ossman <oss...@cendio.se> wrote:
> > 
> > > It seems like the java client was last rebuilt in 2006. I propose
> > > nuking the checked in copy, along with the RealVNC gif in the same
> > > directory as there is no reference to it in the existing Java code.
> > > 
> > 
> > It's now gone.
> 
> Cool.
> 
> Now we should decide how make java client working again because
> current source is not compilable via OpenJDK (1.6.0) nor GCJ 4.3/4.4
> series.
> 
> If we start porting to newer compilers I propose to switch to GCJ
> as a default compiler because we already have GCC as our default
> C/C++ compiler. Do you have any comment?
> 
> For 1.0.0 we could leave code as is and simply compile it with old
> compiler (AFAIK that code should be compilable via RHEL5 compiler).
> 
> Regards, Adam

With the attached patch applied to the Makefile, I've managed to build
the Java client with both openjdk-6-jdk and sun-java6-jdk on Ubuntu
8.10, as well as java-1.6.0-openjdk-devel on Fedora 10. I couldn't
manage to get it to target an older Java VM than 1.5, but this may be
down to my build environment lacking the Java libraries for anything
older than 1.5.

-- 
Karl Mikaelsson,        derf...@cendio.se
Cendio AB               +46 13-29 08 63
Wallenbergs Gata 4      http://www.cendio.com/
583 30 Linköping

Index: java/src/com/tightvnc/vncviewer/Makefile
===================================================================
--- java/src/com/tightvnc/vncviewer/Makefile	(revision 3668)
+++ java/src/com/tightvnc/vncviewer/Makefile	(arbetskopia)
@@ -4,7 +4,7 @@
 
 CP = cp
 JC = javac
-JCFLAGS = -target 1.1
+JCFLAGS = -target 1.5 -classpath ../../../
 JAR = jar
 ARCHIVE = VncViewer.jar
 MANIFEST = MANIFEST.MF
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to