jkim
08-01-2007, 09:48 AM
Hi,
This is my first post here. Anyway, I am very experienced in using Sun JDK, but I have a problem that I need resolved by someone experienced in Microsoft JDK.
I am coding a cross-platform piece of code, which explicitly needs to be backwards (and forwards) compatible, between various versions of Java.
However, another problem is that it also needs to be VM cross compatible (between Sun JVM 1.2+ and Microsoft JVM 6.0+).
The requirement is to compile using Microsoft JDK (jvc.exe) 6.00.8343.
I have a piece of code that looks something like this:
long time = Calendar.getInstance(TimeZone.get...).getTimeInMillis();
This works fine under Sun JDK (1.3.1), but under Microsoft, it spits out the following error:
java\xxx\yyy\Zzzzz.java(4129,57) : error J0203: Cannot access protected member 'long getTimeInMillis()' in class 'Calendar' from class 'Zzzzz.Zinner'
My question is this:
Where could I find the API specification document for the Microsoft JDK Calendar class; or what would be another way of achieving this (another method thats both public and common to both JDK perhaps)?
This is my first post here. Anyway, I am very experienced in using Sun JDK, but I have a problem that I need resolved by someone experienced in Microsoft JDK.
I am coding a cross-platform piece of code, which explicitly needs to be backwards (and forwards) compatible, between various versions of Java.
However, another problem is that it also needs to be VM cross compatible (between Sun JVM 1.2+ and Microsoft JVM 6.0+).
The requirement is to compile using Microsoft JDK (jvc.exe) 6.00.8343.
I have a piece of code that looks something like this:
long time = Calendar.getInstance(TimeZone.get...).getTimeInMillis();
This works fine under Sun JDK (1.3.1), but under Microsoft, it spits out the following error:
java\xxx\yyy\Zzzzz.java(4129,57) : error J0203: Cannot access protected member 'long getTimeInMillis()' in class 'Calendar' from class 'Zzzzz.Zinner'
My question is this:
Where could I find the API specification document for the Microsoft JDK Calendar class; or what would be another way of achieving this (another method thats both public and common to both JDK perhaps)?