Java install problem
Eric Buda
eric "at" navipath.net
Fri, 22 Sep 2000 21:42:17 +0000
These are declared as 'final int' not 'static final int' in rfbProto.java,
I tried 'static final int' and 'final static int' with no joy. This must
work for most people, it must be something unique to me. I'm using JDK1.3 to
compile, could it be the version of my javac?
Here is a snip from rfbProto.java as it came:
##########################################################################
class rfbProto {
final String versionMsg = "RFB 003.003\n";
final int ConnFailed = 0, NoAuth = 1, VncAuth = 2;
final int VncAuthOK = 0, VncAuthFailed = 1, VncAuthTooMany = 2;
final int FramebufferUpdate = 0, SetColourMapEntries = 1, Bell = 2,
ServerCutText = 3;
final int SetPixelFormat = 0, FixColourMapEntries = 1, SetEncodings = 2,
FramebufferUpdateRequest = 3, KeyEvent = 4, PointerEvent = 5,
ClientCutText = 6;
final static int EncodingRaw = 0, EncodingCopyRect = 1, EncodingRRE = 2,
EncodingCoRRE = 4, EncodingHextile = 5;
##########################################################################
Eric
> >I'm getting errors compiling the java src. The problems are all with the
> >case statements, can anyone tell me what I need to do to get past this?
>
> >javac -O vncviewer.java
> >vncviewer.java:191: constant expression required
> > case rfb.NoAuth:
>
> The rfb object clearly contains a series of constants, which are being
> checked against by those case statements. Someone needs to check whether
> those are actually declared as 'static final int' which is needed for this
> to work.
>
> --------------------------------------------------------------
> from: Jonathan "Chromatix" Morton
> mail: chromi "at" cyberspace.org (not for attachments)
> uni-mail: j.d.morton "at" lancaster.ac.uk
>
> The key to knowledge is not to rely on people to teach you it.
>
> Get VNC Server for Macintosh from http://chromatix.autistics.org/vnc/
>
> -----BEGIN GEEK CODE BLOCK-----
> Version 3.12
> GCS$/E/S dpu(!) s:- a19 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS
> PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r- y+
> -----END GEEK CODE BLOCK-----
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to majordomo "at" uk.research.att.com
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------