Java Calendar SDK Problems

In J2SE 1.4.2, I cant seem to run the demo java application.
Every time I do so, I get the following error as a windows prompt:
The procedure entry point CAL_AttrValueDate could not be located in the dynamic link library ctcalcli.dll.
After I click ok on the prompt I get this at the java output:
java.lang.UnsatisfiedLinkError: C:\capi\java\csdkjni.dll: The specified procedure could not be found
     at java.lang.ClassLoader$NativeLibrary.load (Native Method)
     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
     at java.lang.Runtime.loadLibrary0(Runtime.java:788)
     at java.lang.System.loadLibrary(System.java:834)
     at oracle.calendar.sdk.Api.<clinit>(Api.java:63)
     at CalendarTest.main(CalendarTest.java:13)
Please help me! :)

Hi Felix,
On Windows, make sure that BOTH the CSDK runtime libraries (normally installed in capi/lib inside your installation target directory) as well as the CSDK JNI library (normally installed in capi/java) are in your PATH environment variable before running (and not the LD_LIBRARY_PATH environment variable as indicated in the java demo's README file).
Graham

Similar Messages

  • Java 2 SDK problem under Redhat 7.0

    I'm using RedHat Linux 7.0 (kenerl 2.2.16.22, libc-2.1.92.so).
    I downloaded Java 2 SDK v 1.2.2_008 for Linux from sun.java.com, and installed it to /usr/local/jdk1.2.2
    However, I couldn't run any Java command. When I try to compile any java source code, for example:
    /usr/local/jdk1.2.2/bin/javac HelloWorldApp.java
    I always get error message:
    Segmentation fault (core dumped)
    Please give me some idea as soon as possible.
    Thank you for your help!
    Attach: HelloWorldApp.java
    Class HelloWorldApp {
    public static void main(String[] args) [
    System.out.println("Hello World!");
    Tony T.

    update your kernel, redhat 7.0 is full of bad links and missing links

  • Java Card SDK problem

    Hello,
    I have downloaded :
    *>java_card_kit-2_1_1-unix.tar.Z
    I am using Linux Mandrake 8.1 and j2sdk1.4.0_01.
    After installing and setting env vars I tried
    to run "jcwde" but it returned with:
    *>Error: native VM not supported
    I didn't find a linux specific download but I guess the unix download should work?!
    If the error comes because of wrong download, does anybody knows if there is one
    for Linux?
    thank you,
    John

    I find it hard to beleive that the kit didn't come with a README since I'm reading it right now !
    This is taken directly from it.
    Java Card 2.2
    " Supported Platforms
    * Windows� NT 4.0 with Service Pack 6
    * Solaris� 8 (SunOS 5.8) Operating Environment (SPARCTM platforms)
    Java Development Kit: Java2 SDK, Standard Edition (version 1.3) "
    Java Card 2.1
    Supported Platforms
    o Windows NT 4.0 with Service Pack 4
    o Solaris(TM) 2.6 (SunOS 5.6) Operating Environment (SPARC(TM) platforms)
    o Solaris 7 (SunOS 5.7) Operating Environment (SPARC(TM) platforms)
    o Solaris 8 (SunOS 5.8) Operating Environment (SPARC(TM) platforms)
         Java Development Kit: Java2 SDK, Standard Edition (version 1.2.2 or 1.3)

  • Java Calendar problem

    Hello
    I have problems with Java Calendar class:
    Problem 1:
    I try to set Java calendar to specific date, but an exception is thrown. Problematic dates are 19210501 and 19420403 (yyyymmdd) at midnight (hour of day = 0, minutes = 0, seconds = 0, milliseconds = 0). Setting other dates between 15000101 and 22000101 work OK. Exception is thrown when calendar calculates new values. Note that exception is NOT thrown if I do not set hour / minute / second fields!
    Problem 2:
    I set Java calendar to specific date A and convert that date to timeInMillis. Then I set this timeInMillis to calendar and convert it to date B. For certain dates A != B. Problematic dates are 19210501 and 19420403 (yyyymmdd) at midnight (hour of day = 0, minutes = 0, seconds = 0, milliseconds = 0). Setting other dates between 15000101 and 22000101 work OK.
    These problems occur if timeZone = "Europe/Helsinki". Problem does not occur if timeZone = "EET" or "GMT".
    Example code of this problem is below:
    ==================
    package z_javaexperiments5;
    import java.util.Calendar;
    import java.util.TimeZone;
    public class CalendarProblem {
    public static void main(String[] args) {
    CalendarProblem main = new CalendarProblem();
    System.out.println( "RunSetCalendars" );
    TimeZone timeZone = TimeZone.getTimeZone( "GMT" );
    main.runSetCalendars( timeZone, 19420403000000000L );
    main.runSetCalendars( timeZone, 19210501000000000L );
    main.runSetCalendars( timeZone, 19210502000000000L );
    timeZone = TimeZone.getTimeZone( "EET" );
    main.runSetCalendars( timeZone, 19420403000000000L );
    main.runSetCalendars( timeZone, 19210501000000000L );
    main.runSetCalendars( timeZone, 19210502000000000L );
    timeZone = TimeZone.getTimeZone( "Europe/Helsinki" );
    main.runSetCalendars( timeZone, 19420403000000000L );
    main.runSetCalendars( timeZone, 19210501000000000L );
    main.runSetCalendars( timeZone, 19210502000000000L );
    Calendar setCalendar1( TimeZone timeZone, long dateTimeYYYYMMDDHHMMSSsss ) {
    Calendar calendar = Calendar.getInstance(timeZone);
    calendar.clear();
    System.out.println( "setCalendar1 timeZone = " + calendar.getTimeZone().getID());
    int year = (int)( dateTimeYYYYMMDDHHMMSSsss / 10000000000000L );
    int month = (int)(( dateTimeYYYYMMDDHHMMSSsss % 10000000000000L ) / 100000000000L ) - 1;
    int day = (int)(( dateTimeYYYYMMDDHHMMSSsss % 100000000000L ) / 1000000000 );
    int hour = (int)(( dateTimeYYYYMMDDHHMMSSsss % 1000000000 ) / 10000000 );
    int min = (int)(( dateTimeYYYYMMDDHHMMSSsss % 10000000 ) / 100000 );
    int sec = (int)(( dateTimeYYYYMMDDHHMMSSsss % 100000 ) / 1000 );
    int mSec = (int)( dateTimeYYYYMMDDHHMMSSsss % 1000 );
    System.out.println( year + "." + (month+1) + "." + day + " " + hour + ":" + min + ":" + sec + "." + mSec );
    calendar.set( year, month, day );
    calendar.set( Calendar.HOUR_OF_DAY, hour );
    calendar.set( Calendar.MINUTE, min );
    calendar.set( Calendar.SECOND, sec );
    calendar.set( Calendar.MILLISECOND, mSec );
    calendar.setLenient( false ); // Reject illegal values
    try {
    calendar.get( Calendar.SECOND ); // Recalc values
    } catch ( IllegalArgumentException e ) {
    throw new RuntimeException("Invalid argument: Cannot convert long to dateTimeYYYYMMDDHHMMSSsss, long = " + dateTimeYYYYMMDDHHMMSSsss + " Exception message = " + e.getMessage());
    return calendar;
    Calendar setCalendar2( TimeZone timeZone, long dateTimeYYYYMMDDHHMMSSsss ) {
    Calendar calendar = Calendar.getInstance(timeZone);
    System.out.println( "setCalendar2 timeZone = " + calendar.getTimeZone().getID());
    calendar.clear();
    int year = (int)( dateTimeYYYYMMDDHHMMSSsss / 10000000000000L );
    int month = (int)(( dateTimeYYYYMMDDHHMMSSsss % 10000000000000L ) / 100000000000L ) - 1;
    int day = (int)(( dateTimeYYYYMMDDHHMMSSsss % 100000000000L ) / 1000000000 );
    int hour = (int)(( dateTimeYYYYMMDDHHMMSSsss % 1000000000 ) / 10000000 );
    int min = (int)(( dateTimeYYYYMMDDHHMMSSsss % 10000000 ) / 100000 );
    int sec = (int)(( dateTimeYYYYMMDDHHMMSSsss % 100000 ) / 1000 );
    int mSec = (int)( dateTimeYYYYMMDDHHMMSSsss % 1000 );
    System.out.println( "Initial dateTime = " + year + "." + (month+1) + "." + day + " " + hour + ":" + min + ":" + sec + "." + mSec );
    calendar.set( year, month, day );
    if ( hour != 0 )
    calendar.set( Calendar.HOUR_OF_DAY, hour );
    else
    calendar.clear( Calendar.HOUR_OF_DAY );
    if ( min != 0 )
    calendar.set( Calendar.MINUTE, min );
    else
    calendar.clear( Calendar.MINUTE );
    if ( sec != 0 )
    calendar.set( Calendar.SECOND, sec );
    else
    calendar.clear( Calendar.SECOND );
    if ( mSec != 0 )
    calendar.set( Calendar.MILLISECOND, mSec );
    else
    calendar.clear( Calendar.MILLISECOND );
    calendar.setLenient( false ); // Reject illegal values
    try {
    calendar.get( Calendar.SECOND ); // Recalc values
    } catch ( IllegalArgumentException e ) {
    throw new RuntimeException("Invalid argument: Cannot convert long to dateTimeYYYYMMDDHHMMSSsss, long = " + dateTimeYYYYMMDDHHMMSSsss + " Exception message = " + e.getMessage());
    long millis = calendar.getTimeInMillis();
    //System.out.println( "Initial dateTime = " + millis );
    calendar = Calendar.getInstance(timeZone);
    calendar.clear();
    calendar.setTimeInMillis( millis );
    int year2 = calendar.get( Calendar.YEAR );
    int month2 = calendar.get( Calendar.MONTH );
    int day2 = calendar.get( Calendar.DAY_OF_MONTH );
    int hour2 = calendar.get( Calendar.HOUR_OF_DAY );
    int min2 = calendar.get( Calendar.MINUTE );
    int sec2 = calendar.get( Calendar.SECOND );
    int mSec2 = calendar.get( Calendar.MILLISECOND );
    System.out.println( "Final dateTime = " + year2 + "." + (month2+1) + "." + day2 + " " + hour2 + ":" + min2 + ":" + sec2 + "." + mSec2 );
    if (( year != year2 ) || ( month != month2 ) || ( day != day2 ) || ( hour != hour2 ) || ( min != min2 ) || ( sec != sec2 ) || ( mSec != mSec2 ))
    System.out.println( "setCalendar2 failed, dates are not equal" );
    return calendar;
    void runSetCalendars( TimeZone timeZone, long dateTimeYYYYMMDDHHMMSSsss ) {
    System.out.println( "" );
    System.out.println( "runSetCalendars dateTimeYYYYMMDDHHMMSSsss = " + dateTimeYYYYMMDDHHMMSSsss );
    try {
    setCalendar1( timeZone, dateTimeYYYYMMDDHHMMSSsss );
    } catch ( RuntimeException e ) {
    System.out.println( "setCalendar1 failed, dateTimeYYYYMMDDHHMMSSsss = " + dateTimeYYYYMMDDHHMMSSsss + " Exception = " + e.toString());
    Calendar calendar = null;
    try {
    calendar = setCalendar2( timeZone, dateTimeYYYYMMDDHHMMSSsss );
    long timeInMillis = calendar.getTimeInMillis();
    calendar.clear();
    calendar.setTimeInMillis( timeInMillis );
    } catch ( RuntimeException e ) {
    System.out.println( "setCalendar2 failed, dateTimeYYYYMMDDHHMMSSsss = " + dateTimeYYYYMMDDHHMMSSsss + " Exception = " + e.toString());
    ==================
    Program output is below:
    ==================
    RunSetCalendars
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19420403000000000
    setCalendar1 timeZone = GMT
    1942.4.3 0:0:0.0
    setCalendar2 timeZone = GMT
    Initial dateTime = 1942.4.3 0:0:0.0
    Final dateTime = 1942.4.3 0:0:0.0
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210501000000000
    setCalendar1 timeZone = GMT
    1921.5.1 0:0:0.0
    setCalendar2 timeZone = GMT
    Initial dateTime = 1921.5.1 0:0:0.0
    Final dateTime = 1921.5.1 0:0:0.0
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210502000000000
    setCalendar1 timeZone = GMT
    1921.5.2 0:0:0.0
    setCalendar2 timeZone = GMT
    Initial dateTime = 1921.5.2 0:0:0.0
    Final dateTime = 1921.5.2 0:0:0.0
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19420403000000000
    setCalendar1 timeZone = EET
    1942.4.3 0:0:0.0
    setCalendar2 timeZone = EET
    Initial dateTime = 1942.4.3 0:0:0.0
    Final dateTime = 1942.4.3 0:0:0.0
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210501000000000
    setCalendar1 timeZone = EET
    1921.5.1 0:0:0.0
    setCalendar2 timeZone = EET
    Initial dateTime = 1921.5.1 0:0:0.0
    Final dateTime = 1921.5.1 0:0:0.0
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210502000000000
    setCalendar1 timeZone = EET
    1921.5.2 0:0:0.0
    setCalendar2 timeZone = EET
    Initial dateTime = 1921.5.2 0:0:0.0
    Final dateTime = 1921.5.2 0:0:0.0
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19420403000000000
    setCalendar1 timeZone = Europe/Helsinki
    1942.4.3 0:0:0.0
    setCalendar1 failed, dateTimeYYYYMMDDHHMMSSsss = 19420403000000000 Exception = java.lang.RuntimeException: Invalid argument: Cannot convert long to dateTimeYYYYMMDDHHMMSSsss, long = 19420403000000000 Exception message = HOUR_OF_DAY
    setCalendar2 timeZone = Europe/Helsinki
    Initial dateTime = 1942.4.3 0:0:0.0
    Final dateTime = 1942.4.3 1:0:0.0
    setCalendar2 failed, dates are not equal
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210501000000000
    setCalendar1 timeZone = Europe/Helsinki
    1921.5.1 0:0:0.0
    setCalendar1 failed, dateTimeYYYYMMDDHHMMSSsss = 19210501000000000 Exception = java.lang.RuntimeException: Invalid argument: Cannot convert long to dateTimeYYYYMMDDHHMMSSsss, long = 19210501000000000 Exception message = MINUTE
    setCalendar2 timeZone = Europe/Helsinki
    Initial dateTime = 1921.5.1 0:0:0.0
    Final dateTime = 1921.5.1 0:20:8.0
    setCalendar2 failed, dates are not equal
    runSetCalendars dateTimeYYYYMMDDHHMMSSsss = 19210502000000000
    setCalendar1 timeZone = Europe/Helsinki
    1921.5.2 0:0:0.0
    setCalendar2 timeZone = Europe/Helsinki
    Initial dateTime = 1921.5.2 0:0:0.0
    Final dateTime = 1921.5.2 0:0:0.0
    ==================
    Why does the program fail when timeZone = "Europe/Helsinki"?

    Could it be related to the time zone changes which occurred at about this time?
    http://www.timeanddate.com/worldclock/clockchange.html?n=101&year=1921

  • Java ME SDK 3.0 Problems

    I need to develop J2me (Midlet for graduation project)...I installed Java ME SDK 3.0 after installing JDK 6.0
    I was running Java ME SDK 3.0 and I faced some errors:
    An error: A java.io.IOException exception has occurred
    java.net.ConnectException:connection refused
    This error keeps poping up 100 times+ while the Java ME SDK is launching...
    After that when it launches the sample application don't run because of the following:
    Reference Problem:"CLDC Sun Java(TM) MicroEdition SDK 3.0EA" platform couldn't be found
    As a result I try to solve reference problem a pop up window appears saying:
    "Use java docs to register the API documentation for your JDK in the IDE
    Click Add Platform to register other Java SE and Java ME platform versions"
    I posted before at Nokia forums and got no useful answer so if any one want to know more ifo Please refer to:
    http://discussion.forum.nokia.com/fo...962#post731962

    Don't double post. I've removed the thread you started in the Java Programming forum with the identically same question.
    db

  • INSTALLING JAVA 2 SDK 1.4 PROBLEMS

    Hi !!!
    I am new to java and followed the installation notes Java 2 SDK standard edition to install this application. Well i have tried 10 times restalling this application I always get the same problem that is, when the application is uploaded I open it and a message prompts saying the files can not be extracted there is a corruption. I have even deleted the files from control panel and tried many time again keep getting same problem I have also downloaded the application from different sites.
    What do I do??? My start to java is hell!!
    Please some one help me!

    Make sure you are logged in as admin or equivalent (assuming you have NT/Win2k/XP) and see if that clears up the problem. If you keep getting this error even after downloading from multiple sites, it hints at a deeper problem...perhaps bad internet connection, or a virus. THOUSANDS of copies of this have been downloaded over time and if there was some major problem with it, more users would complain.

  • Java ME SDK 8.0 EA Netbeans plugin installation problem

    We have been getting reports that some developer had trouble installing the Java ME SDK 8 EA plugins into NetBeans. We are working on fixing the issue, in the meantime please try the workaround posted in the Java ME SDK forum:
    Java ME SDK 8.0 EA Netbeans plugin installation problem
    Also be sure to check the latest ME SDK 8 EA Release Notes for late-braking information:
    http://docs.oracle.com/javame/dev-tools/jme-sdk-8/release-notes/html/Release_Notes/Release_Notes.html
    Sorry for the inconvenience.
    Best,
    -- Terrence

    Hi,
    For the Raspberry Pi, tooling over serial port is not supported. The simplest solution is to use standard IP networking over Ethernet. This can be a direct connection between the PC and the Raspberry Pi, as long as the cable is twisted and the IP addressing is correct (e.g. manual IP addressing or DHCP server on the PC).
    Regarding "Connecting to a UART Device": This is meant for attaching and controlling serial devices from the Raspberry Pi, not for tooling connections between the Raspberry Pi and the PC.
    Hope this helps,
    -- Terrence

  • Java ME SDK 3.4 problem running IMP-NG Midlets

    Hello!
    I downloaded and installed the Java ME SDK 3.4 and I'm having trouble running a IMP-NG JAD. I don't know if it's a environment problem or a SDK bug...
    If I make a JAD IMP-NG, I get a IllegalArgumentException when launching, even if we run using the Device Selector window, right-click on IMPNGDevice1. If I make it a IMP-1.0, it runs on simulator, but doesn't show in right-click on IMPNGDevice1... It seems to be checking the version (IMP-NG is 2.0, and simulator is 1.0?) but I don't see what's wrong.
    Thanks for any help!
    Stacktrace:
    Installing suite from: file:///C:/devel/ecl_ng2/workspace/Hello1/.mtj.tmp/emulation/Hello1.jad
    TRACE: <at java.lang.IllegalArgumentException>,
    java.lang.IllegalArgumentException
    - com.sun.midp.installer.Version.initFromComponents(), bci=149
    - com.sun.midp.installer.Version.<init>(), bci=22
    - com.sun.midp.installer.Version.createFromString(), bci=33
    - com.sun.midp.installer.Version.compare(), bci=6
    - com.sun.midp.installer.Installer.matchVersion(), bci=81
    - com.sun.midp.installer.Installer.isSupportedProfile(), bci=23
    - com.sun.midp.installer.Installer.matchProfile(), bci=212
    - com.sun.midp.installer.Installer.installStep10(), bci=19
    - com.sun.midp.installer.Installer.performInstall(), bci=188
    - com.sun.midp.installer.Installer.resumeInstallation(), bci=7
    - com.sun.midp.installer.MidpInstaller$StartAction.run(), bci=10
    - com.sun.j2me.security.AccessController.doPrivileged(), bci=12
    - com.sun.midp.installer.MidpInstaller$InstallThread.run(), bci=9
    - java.lang.Thread.run(), bci=5
    JAD
    MIDlet-Version: 1.0.0
    MIDlet-Vendor: MIDlet Suite Vendor
    MIDlet-Jar-URL: Hello1.jar
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-1: Hello1,,mobi.v2com.zion.test.Hello1
    MicroEdition-Profile: IMP-NG-2.0
    MIDlet-Name: Hello MIDlet Suite
    Midlet
    package mobi.v2com.zion.test;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import com.oracle.util.logging.Level;
    import com.oracle.util.logging.Logger;
    public class Hello1 extends MIDlet {
      private Logger logger = Logger.getLogger(getClass().getName());
      public Hello1() {
      // TODO Auto-generated constructor stub
      protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
      // TODO Auto-generated method stub
      protected void pauseApp() {
      // TODO Auto-generated method stub
      protected void startApp() throws MIDletStateChangeException {
      logger.log(Level.INFO, "Hello1");
      System.out.println("Hello!");

    I had the same problem and I got it to work by removing the "-2.0" in MicroEdition-Profile line in JAD file "by hand":
    MicroEdition-Profile: IMP-NG
    But it's not possible to achieve this using the combo box to select the Microedition Profile. Only changing the file in text mode.

  • Problems Installing JAVA 2 SDK and Forte4J CE 3.0 on Win98  - HELP !!!!

    I have downloaded JAVA 2 SDK, SE v.1.4.0 and Forte for Java CE 3.0 without any trouble, but when I go to install it, I get stuck at the SDK installation screen, and nothing happens.
    I did restart my computer after downoading the file, but that did not help. I have been looking at the installation screen now for about an hour. What do I do? Please, somebody help me.
    Thanks.
    Iwona

    I had a similar problem with J2SDK 1.4.0 and Forte
    3.0 on a Win98 box. Realizing that J2SDK 1.4.0 is a
    BETA release, I dropped back to J2SDK 1.3.0_02. It
    works fine!
    Regards,
    Mark

  • WTK and Java Card SDK 2.2.2 emulator( cref ) communication problem.

    Hello everybody
    Just for own interest I was playing with the Java Card SDK 2.2.2 and WTK 2.5.2. But I am getting "Protocol mismatch error" as WTK runs on T=0 and cref runs on T=1. Does anybody have ever faced this problem and how to get rid of it?
    Thanks in advance.
    Shan!!!

    [email protected] wrote:
    Hi friends,
    I am new to Java Card technologies, previously i worked in SCOSTA cards using java application. Now i want to develop java applet and mask into the javacard.
    I tried Java_card_kit-2.2.1 package to build cap file using sample class files based on the specification.
    In command prompt, i configured path and classpath perfectly....
    But when i tried to make cap file by using the following command i am getting error.
    set JC_HOME=C:\java_card_kit-2_2_1
    set JAVA_HOME=C:\j2sdk1.4.2_09
    SET PATH=%JC_HOME%\bin;%PATH%
    SET CLASSPATH=%JC_HOME%\lib\api21.jar;%CLASSPATH%
    converter.bat -out JCA -classdir %JC_HOME%\samples\classes\com\sun\javacard\samples\HelloWorld 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.10I am getting the following error,
    error: invalid AID 1.0.
    Usage:  converter  <options>  package_name  package_aid  major_version.minor_versionSo kindly help me the best way to make cap file.
    regards,
    dhaya.You could try the following:
    converter.bat -classdir %JC_HOME%\samples\classes com.sun.javacard.samples 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.0You only need to specify the base directory for the classes and you need to specify the package separately.
    If you only want to convert to a JCA file you would use the following otherwise all 3 artifacts will be gernerated (CAP, JCA and EXP)
    converter.bat -out JCA -classdir %JC_HOME%\samples\classes com.sun.javacard.samples 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.0I hope this helps.
    Shane

  • Java EE SDK Installation problems...

    I have been having a great deal of difficulty installing the
    Java EE SDK application from this downloaded file
    java_ee_sdk-5_02-windows.exe
    The installation appears to proceed normally for a while then aborts with a dialog that references the installation log.
    I have tried installing this a couple of times and every time it fails, I have deleted the C:\SUN\... folder and the installation script tells me that the folder is still present and requires a new folder for installation.
    I assume that there is some leftover junk in the registry that is upsetting things, but this still doesn't explain why the installation log is complaining that it can't find some path somewhere...
    Can someone point me in the right direction? See the log file contents below:
    Installation Log:
    INFO - start JRE installation
    INFO - end JRE installation
    INFO - Start Sun Java System Message Queue configuration
    INFO - End Sun Java System Message Queue configuration
    INFO - unpacked jar file: C:\Sun\SDK3\lib\admin-cli.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\appserv-cmp.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\appserv-deployment-client.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\appserv-ext.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\appserv-jstl.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\appserv-rt.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\appserv-tags.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\appserv-ws.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\com-sun-commons-launcher.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\j2ee-svc.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\javaee.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\sun-appserv-ant.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\lib\deployment\sun-as-jsr88-dm.jar.pack.gz
    INFO - Start core server configuration.
    ERROR - default domain creation returned following exception: abnormal subprocess termination: Detailed Message:The system cannot find the path specified.
    The system cannot find the path specified.
    INFO - End core server configuration.
    INFO - Start Java DB Configuration.
    INFO - End Java DB Configuration.
    INFO - Start samples configuration.
    INFO - End samples configuration.
    INFO - Start Java EE 5 samples configuration.
    INFO - End Java EE 5 samples configuration.
    INFO - unpacked jar file: C:\Sun\SDK3\blueprints\bpcatalog\lib\bp-ui-14.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\blueprints\petstore\lib\bp-ui-14.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\blueprints\petstore\lib\bp-ui-5.jar.pack.gz
    INFO - unpacked jar file: C:\Sun\SDK3\blueprints\petstore\lib\lucene-core-2.0.0.jar.pack.gz
    INFO - Start OpenESB installation.
    INFO - Addon jar getting installed: jbi-installer.jar
    INFO - Main class invoked: com.sun.jbi.installer.OpenEsbInstaller
    INFO - End OpenESB installation.

    There is one correction to the statement i made before ..server is not starting ..for some time it hangs and throws a socket time out exception...
    com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.net.SocketTimeoutException: Read timed out]
         at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:127)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
         at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
    Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.net.SocketTimeoutException: Read timed out]
         at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
         at com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:196)
         at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:118)
         ... 9 more
    Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.net.SocketTimeoutException: Read timed out]
         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
         at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
         at javax.naming.InitialContext.bind(InitialContext.java:400)
         at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
         ... 11 more
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.net.SocketTimeoutException: Read timed out
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
         ... 15 more
    Caused by: java.net.SocketTimeoutException: Read timed out
         at com.sun.enterprise.server.ss.provider.ASInputStream.waitForSelect(ASInputStream.java:141)
         at com.sun.enterprise.server.ss.provider.ASInputStream.read(ASInputStream.java:99)
         at com.sun.enterprise.server.ss.provider.ASInputStream.read(ASInputStream.java:91)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
         at java.io.DataInputStream.readByte(DataInputStream.java:248)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)
         ... 19 more
    what i strongly believe is i have mcafee installled in my pc and it is blocking some ports ..i tried disabling fire wall also , but no luck ....
    Have u tried installing server on windows vista home premium ???is it compatable ???
    Message was edited by:
    vijay.rk

  • Calendar SDK on Win XP

    Hi,
    I have problems to run my java program on XP to access the calendar via calendar sdk.
    I got the error message:
    java.lang.UnsatisfiedLinkError: C:\Java\Calendar\capi\java\csdkjni.dll: %1 is not a valid Win32 application
    Any idea what could be happend?
    Best regards
    Oliver

    Hi Oliver,
    I would guess a corrupted dll or something like that but I don't have much context here.
    Which version of the calendar sdk are you using?
    What are your environment variables?
    Are you sure all the dependencies to csdkjni.dll are accessible?
    Did you compare the dll's you have in your setup to the dll's from the source to make sure they are the same?
    Cheers,
    Jean-Philippe

  • Focus issue with CardLayout (Java 2 SDK, Standard Edition 1.4.0_01)

    I am having an issue with focus and CardLayout with Java 2 SDK, Standard Edition 1.4.0_01. I have created a small sample application to illustrate my problem. In general, I am trying to create a "Wizard" that the user will enter information and then press a "Next" button to proceed to the next step.
    When the first card is displayed, the focus is on the first text field as expected.
    When I go to the next card by clicking "Next", the focus is not on the text field that has requested it (through the requestFocusInWindow method). The focus is on the "Cancel" button, which is the next component to receive focus after the "Next" button on that panel. I do notice that if I use my mouse to bring focus to the window the text field will gain focus.
    Similarly, when I proceed to the last card, the focus is not on the "Finish" button until the mouse moves over the window.
    Is there something I am doing wrong or is there a bug with focus and CardLayout?
    One other problem I have noticed is that the buttons no longer respond to the "Enter" key press and instead respond to the space bar. Any suggestions as to why this is the case?
    Thanks,
    S.L.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CardWindow extends JFrame implements ActionListener {
    public CardWindow() {       
    setTitle("Focus Problems with CardLayout");
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    cards = new JPanel();
    cardLayout = new CardLayout();
    cards.setLayout(cardLayout);
    cards.add(createFirstNamePanel(), "FirstNamePanel");
    cards.add(createLastNamePanel(), "LastNamePanel");
    cards.add(createFullNamePanel(), "FullNamePanel");
    getContentPane().add(cards,BorderLayout.CENTER);
    getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
    resetButtonPanel();
    pack();
    private JPanel createFirstNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your first name:");
    txtFirstName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtFirstName);
    return panel;
    private JPanel createLastNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your last name:");
    txtLastName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtLastName);
    return panel;
    private JPanel createFullNamePanel(){
    JPanel panel = new JPanel();
    lblFullName = new JLabel();
    resetTextOnFullNamePanel();
    panel.add(lblFullName);
    return panel;
    private JPanel createButtonPanel() {
    buttonPanel = new JPanel();
    btnPrevious = new JButton("< " + "Back");
    btnPrevious.setMnemonic('B');
    btnPrevious.addActionListener(this);
    btnNext = new JButton("Next" + " >");
    btnNext.setMnemonic('N');
    btnNext.addActionListener(this);
    btnCancel = new JButton("Cancel");
    btnCancel.setMnemonic('C');
    btnCancel.addActionListener(this);
    btnFinish = new JButton("Finish");
    btnFinish.setMnemonic('F');
    btnFinish.addActionListener(this);
    buttonPanel.add(btnPrevious);
    buttonPanel.add(btnNext);
    buttonPanel.add(btnCancel);
    buttonPanel.add(btnFinish);
    return buttonPanel;
    private void resetTextOnFullNamePanel(){
    lblFullName.setText("Your name is: " + getFirstName() + " " + getLastName());
    private void resetButtonPanel(){
    Component c[] = buttonPanel.getComponents();
    for(int i = 0; i < c.length; i++){
    c.setVisible(false);
    switch(iWizardStep){
    case FIRSTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case LASTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case FULLNAMEPANEL:
    btnFinish.setVisible(true);
    break;
    buttonPanel.validate();
    public void actionPerformed(ActionEvent e) {
    Object object = e.getSource();
    if (object == btnNext) {           
    btnNextPressed();
    } else if (object == btnPrevious) {           
    btnPreviousPressed();
    } else if (object == btnFinish) {
    System.exit(0);
    } else if (object == btnCancel) {
    System.exit(0);
    private void btnNextPressed() {       
    switch (iWizardStep) {
    case FIRSTNAMEPANEL:
    setFirstName(txtFirstName.getText());
    break;
    case LASTNAMEPANEL:
    setLastName(txtLastName.getText());
    resetTextOnFullNamePanel();
    break;
    iWizardStep++;
    resetButtonPanel();
    this.cardLayout.next(this.cards);
    switch (iWizardStep) {             
    case LASTNAMEPANEL:
    txtLastName.requestFocusInWindow();
    break;
    case FULLNAMEPANEL:
    btnFinish.requestFocusInWindow();
    break;
    private void btnPreviousPressed() {
    iWizardStep--;
    resetButtonPanel();
    this.cardLayout.previous(this.cards);
    public void setFirstName(String value) {
    firstName = value;
    public String getFirstName() {
    return firstName;
    public void setLastName(String value) {
    lastName = value;
    public String getLastName() {
    return lastName;
    public static void main (String[] args) {
    CardWindow c = new CardWindow();
    c.show();
    private CardLayout cardLayout;
    private JPanel cards, buttonPanel;
    private JTextField txtLastName, txtFirstName;
    private JLabel lblFullName;
    private JButton btnNext, btnPrevious, btnCancel, btnFinish;
    private String firstName = "";
    private String lastName = "";
    private int iWizardStep = 0;
    private static final int FIRSTNAMEPANEL = 0;
    private static final int LASTNAMEPANEL = 1;
    private static final int FULLNAMEPANEL = 2;

    Manfred,
    Thanks for your reply. I tried requestFocus() and it gives the same results. Also Sun's 1.4.0 API (http://java.sun.com/j2se/1.4/docs/api/) mentions the following with respect to the requestFocus() method in the JComponent class:
    Because the focus behavior of this method is platform-dependent, developers are strongly encouraged to use requestFocusInWindow when possible.
    That is why I used requestFocusInWindow.
    S.L.

  • Java 2 SDK SE 1.4.2 - INSTALL ERROR ...... 1335 ....

    Hello,
    I have tried to install Java 2 SDK SE 1.4.2 but get the following error during install:
    Error 1335. The cabinet file 'Data1.cab' required for this installation is corrupt and cannot be used. The file is 42.7MB and is not something I want to re-download in a hurry.
    Is there a work-around for this error. Have had a look but have found no other occurances of this problem.
    Thanks in advance for your help.
    Jon

    Well, I'm not sure what to say. I've had problems much like that, except for Java 2 SDK 1.2.*. I got rid of my problems (which sometimes included "clean" installation but then broken parts, such as javac.exe) by updating and trying again. It wasn't very much fun, especially back in my dialup days.
    - CD

  • Errors when starting Java ME SDK 3 - Windows 7 x64

    Hi,
    I am having trouble running the Java ME SDK 3 on a Windows 7 x64 computer. When trying to run the installed SDK using the shortcut link on my desktop, I receive a number of erros such as
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:186)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    Caused: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    Caused: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    Caused: java.io.IOException: Failed to retrieve RMIServer stub
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.lookupMBean(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.findObject(Unknown Source)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.openConnection(DevicemanagerHelper.java:53)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(DevicemanagerHelper.java:86)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(AutoInstaller.java:292)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.restored(AutoInstaller.java:63)
         at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:421)
         at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:342)
         at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
         at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
         at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
         at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
         at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165)
         at org.netbeans.core.startup.Main.start(Main.java:312)
         at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
    [catch] at java.lang.Thread.run(Thread.java:619)--------------------------------------------------------------------------------------------------
    Does anybody know where this comes from? Is it an incompatibility with Windows 7 x64? I have installed the latest Java SDK for Win64.
    I have another issue consisting in the fact that the Eclipse MJT plug-in is not abel to find any devices in the Java ME SDK 3 folder (see my post in the Eclipse forum [Post in Eclipse MJT forum|http://www.eclipse.org/forums/index.php?t=msg&th=156515&start=0&S=6f25cc6925ad7008453ee93ca55525a2]), does this have anything to do with the problem described above?
    Thanks for your help,
    Markus
    Edited by: acm821 on Oct 28, 2009 2:06 PM

    Edit file "C:\Java_ME_platform_SDK_3.0\bin\java", replace the path of x64 jdk by path of x32 jdk.
    For example, my file contains "C:\Program Files\Java\jdk1.6.0_21" and I change to "C:\Program Files (x86)\Java\jdk1.6.0_21".
    You need have a 32 bits jdk installed. Restart device managar after the change.
    Obs.: This happens because device manager need load a 32 bits DLL. So you need run they with a 32 bits jdk.
    With this method you don't need remove x64 jdk. You can stay with both jdk.

Maybe you are looking for