URGENT java to_char(..,'IW') vs java Calendar WEEK_OF_YEAR

Hi all;
I have written a sql stmt that groups values as to_char(date1,'IW'). Result of each group is saved in an Vector array length of 54. On JSP, I get values by calendar1.WEEK_OF_YEAR. When I check end and begining of each year there is difference between oracle value and calendar object value. How can I match oracle value vs calendar object value.
Thanks.

My database is set TURKEY_TURKISH from nls_session_parameters and calendar object locale is "tr"-"TR". It seems correct. Oracle calculates day_of_year/7 +1 as week_of_year. But java calculates from monday to sunday and takes first day of year and its week as first week then etc.These two methods are completely different. I need a mechanism that calculates oracle week_of_year like java.

Similar Messages

  • Why not Deprecate java.util.Date and java.util.Calendar

    With the introduction of java.time, why did you not flag java.util.Date and java.util.Calendar. These classes have been a bane to every Java developer and should never be used again with the introduction of Java 1.8.

    Adding the @Deprecated annotation would only just provide a warning about an old API and recommendation to the developer(s) to no longer use it. Doing so would not break any existing library out there; in fact quite a number of constructors and methods on the Date class have already been flagged deprecated.
    The new java.time package is far superior to Date/Calendar.

  • Convert java.sql.Timestamp to java.util.Calendar?

    What's the best way to convert java.sql.Timestamp to java.util.Calendar?

    Use Calendar's setTime(Date date) method.
    java.sql.Timestamp extends java.util.Date.
    -Roy

  • URGENT: XML Report with warning(java.lang.StackOverflowError)

    Hello,
    I have created a custom report using XML Publisher(with PDF output). The report runs fine for limited data. But when more than 3 Lakh records are retrieved, the report gets completed with Warning.
    The log details show the following error message:
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 18175653 on node PWXS3Q-E at 25-JUL-2008 06:56:22.
    Post-processing of request 18175653 failed at 25-JUL-2008 06:58:01 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    The OPP log shows the following message:
    [7/24/08 10:37:04 PM] [main] Starting GSF service with concurrent process id = 297839.
    [7/24/08 10:37:04 PM] [main] Initialization Parameters:
    oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [7/24/08 10:37:05 PM] [Thread-25] Service thread starting up.
    [7/24/08 10:37:05 PM] [Thread-26] Service thread starting up.
    [7/25/08 6:56:23 AM] [OPPServiceThread1] Post-processing request 18175653.
    [7/25/08 6:56:23 AM] [297839:RT18175653] Executing post-processing actions for request 18175653.
    [7/25/08 6:56:24 AM] [297839:RT18175653] Starting XML Publisher post-processing action.
    [7/25/08 6:56:24 AM] [297839:RT18175653]
    Template code: PFOA249P
    Template app: XXPOP
    Language: nl
    Territory: NL
    Output type: PDF
    [7/25/08 6:58:00 AM] [UNEXPECTED] [297839:RT18175653] java.lang.reflect.InvocationTargetException
    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:324)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:580)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:378)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:197)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
    at
    oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1816)
    at
    oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1278)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    Caused by: java.lang.StackOverflowError
    [7/25/08 6:58:01 AM] [297839:RT18175653] Completed post-processing actions for request 18175653.
    Any help would be greatly appreciated

    Note:315477.1 : XML Report Publisher Fails With java.lang.OutOfMemoryError.
    Could any one point me to the right place where i can find this note. I searched in Oracle metalink and google but no success.Here you go ..
    Note: 315477.1 - XML Report Publisher Fails With java.lang.OutOfMemoryError
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=315477.1

  • URGENT: How to run a Java program from a different directory?

    Hi.
    How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
    What would be the command to run the Java file from c:\Java.
    I can't remember it and I need it asap.
    Cheers.

    If the class you are trying to run is MyApp.class, try
    c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
    Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
    The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)".

  • URGENT - Running Webstart manually (with java.exe)

    Hi,
    A couple of months ago, someone from SUN gave me a (very long) command line to start java web start using java -cp etc...
    At that time, I needed to be able to CTRL-C javaws to get a stack trace location of where JWS was stuck.
    Well I need that command again! Does anyone know it ? I'm trying to find it by guessing, but it won't work...

    http://www.vamphq.com/jwsfaq.html#debug
    Have a nice debug.
    JB.
    http://www.up2go.net - WebStart @ the MAX !

  • URGENT!! all the JAVA EXPERTS plssss help me!!

    thanks for replying me....i m actually doing a coursework that i have to submit by next monday 29/4/2002. and i havent finish it yet.... ok .. finally i have finish level 1, now i m doing level two...
    my program in level 2 should :
    a.) Allow the user to specify certain criteria for a room that they wish to book on a particular day. e.g. X number of people, video conferencing, your program should find an appropriate room for them that is free on that day.
    b.) Allow the user to add more rooms to the system and make these available to the user to book.
    c.) Allow a user to attempt to delete a room. The room will only be deleted if it has no bookings.
    d.) Allow the user to ask the system to find the minimum fit room free e.g.
    * the smallest room to hold X people that has a connection to the internet.
    * if the user requests a room for 40 people and there are rooms free for 50 and 60 people, then
    it will allocate them the room for 50.
    i really donno how to do....pls help me....
    there is something wrong in the METHOD --> AddDeleteRoom()
    and i donno how to code the AddNewRoom()
    i need to add more rooms into my array
    u can download these coding .....i got three files, 1 is the main class call CC.java, another 1 is the class filewhich is Rooms.java and the third file is CC.html file.
    dont worry, u can save all the coding in here.... i try b4 it can run.....
    <<save as CC.java>>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.JApplet;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.JOptionPane;
    public class CC extends JApplet implements ActionListener,ItemListener
    JPanel pnlPane = new JPanel();
    JPanel pnlChoise = new JPanel();
    JPanel pnlButton2 = new JPanel();
    JPanel pnlRoomDisplay = new JPanel();
    JPanel pnlRoom = new JPanel();
    JPanel pnlDisplay = new JPanel();
    JPanel pnlClear = new JPanel();
    JButton btnDisplay = new JButton("Display");
    JButton btnBookRoom = new JButton("Book Room");
    JButton btnDelBookRoom = new JButton("Delete Booking");
    JButton btnDelRoom = new JButton("Delete Room");
    JButton btnAddNewRoom = new JButton("Add New Room");
    JButton btnClear = new JButton("Clear");
    JButton btnRoomQuery = new JButton("Room Query");
    Rooms []room = new Rooms[11];
    String[] Days = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
    int [][] book = new int[11][7];
    public int R, D;
    JLabel lblRoomName = new JLabel();
    JLabel lblCapacity = new JLabel();
    JLabel lblInternet = new JLabel();
    JLabel lblVideo = new JLabel();
    JLabel lblStatus = new JLabel();
    JComboBox cDays= new JComboBox(Days);
    JComboBox cRooms = new JComboBox();
    JTextField txtRoomName1 = new JTextField();
    JTextField txtCapacity1 = new JTextField();
    JCheckBox chkInternet = new JCheckBox("Internet Connection");
    JCheckBox chkVideo = new JCheckBox("Video Conferencing");
    JTextArea txtDisplay = new JTextArea("*****Rooms Detail*****" + "\n",12,30);
    public void init()
    pnlPane.add(pnlChoise);
    pnlPane.add(pnlButton2);
    pnlPane.add(pnlRoomDisplay);
    pnlPane.add(pnlRoom);
    pnlPane.add(pnlDisplay);
    pnlPane.add(pnlClear);
    pnlPane.setBorder(new TitledBorder(new BevelBorder(BevelBorder.RAISED),"Room Booking System"));
    setContentPane(pnlPane);
    AddChoisePanel();
    AddButton2Panel();
    AddRoomDisplayPanel();
    AddRoomPanel();
    AddDisplayAreaPanel();
    AddClearPanel();
    public void AddChoisePanel()
    pnlChoise.setLayout(new GridLayout(1,3,5,5));
    room[0]=new Rooms("Barrington","15","No","Yes");
    room[1]=new Rooms("Carlton","25","Yes","No");
    room[2]=new Rooms("Debyshire","35","No","No");
    room[3]=new Rooms("Edwards","30","Yes","Yes");
    room[4]=new Rooms("Farley","70","Yes","No");
    room[5]=new Rooms("Goodwin","80","Yes","Yes");
    room[6]=new Rooms("Harlow","90","No","Yes");
    room[7]=new Rooms("IlFord","85","No","No");
    for (int i=0; i<8; i++)
    cRooms.addItem(room.rName);
    pnlChoise.add(cRooms);
    pnlChoise.add(cDays);
    pnlChoise.add(btnRoomQuery);
    btnRoomQuery.addActionListener(this);
    cRooms.addItemListener(this);
    public void AddButton2Panel()
    pnlButton2.setLayout(new GridLayout(1,2,5,5));
    pnlButton2.add(btnBookRoom);
    pnlButton2.add(btnDelBookRoom);
    btnDelBookRoom.addActionListener(this);
    btnBookRoom.addActionListener(this);
    public void AddRoomDisplayPanel()
    pnlRoomDisplay.setLayout(new GridLayout(6,2,5,2));
    pnlRoomDisplay.add(new JLabel("Room Name" ));
    pnlRoomDisplay.add(lblRoomName);
    pnlRoomDisplay.add(new JLabel("Room Capacity"));
    pnlRoomDisplay.add(lblCapacity);
    pnlRoomDisplay.add(new JLabel("Internet Connection"));
    pnlRoomDisplay.add(lblInternet);
    pnlRoomDisplay.add(new JLabel("Video Conferencing"));
    pnlRoomDisplay.add(lblVideo);
    pnlRoomDisplay.add(new JLabel("Room Status"));
    pnlRoomDisplay.add(lblStatus);
    pnlRoomDisplay.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED),"Rooms Detail"));
    pnlRoomDisplay.add(btnDelRoom);
    btnDelRoom.addActionListener(this);
    public void AddRoomPanel()
    pnlRoom.setLayout(new GridLayout(6,2,2,2));
    pnlRoom.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED),"Add New Rooms"));
    pnlRoom.add(new Label("Room Name"));
    pnlRoom.add(txtRoomName1);
    pnlRoom.add(new Label("Capacity"));
    pnlRoom.add(txtCapacity1);
    pnlRoom.add(chkInternet);
    pnlRoom.add(new Label(""));
    pnlRoom.add(chkVideo);
    pnlRoom.add(new Label(""));
    pnlRoom.add(new Label(""));
    pnlRoom.add(new Label(""));
    pnlRoom.add(btnAddNewRoom);
    btnAddNewRoom.addActionListener(this);
    public void AddDisplayAreaPanel()
    pnlDisplay.setLayout(new GridLayout(1,1));
    //pnlDisplay.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED),"Rooms Detail"));
    Border pnlDisplayBorder = BorderFactory.createTitledBorder("Rooms Detail");
    pnlDisplay.setBorder(pnlDisplayBorder);
    pnlDisplay.add(txtDisplay);
    public void AddClearPanel()
    pnlClear.setLayout(new GridLayout(1,1));
    pnlClear.add(btnClear);
    btnClear.addActionListener(this);
    public void actionPerformed(ActionEvent event)
    //to call RoomQuery function
    if (event.getSource() == btnRoomQuery){
    AddRoomQuery(); }
    else
    //to call DeleteBookRoom function
    if (event.getSource() == btnDelBookRoom){
    AddDeleteBookRoom(); }
    else
         //to call DeleteRoom function
    if (event.getSource() == btnDelRoom){
              AddDeleteRoom(); }     
         else
         //to call AddNewRoom function
         if (event.getSource() == btnAddNewRoom){
                   AddNewRoom(); }
              else
              //to call ClearTextArea function
                   if (event.getSource() == btnClear){
                   AddClearTextArea(); }
              else
                   //to call BookRoom function
                   if (event.getSource() == btnBookRoom){
                        AddBookRoom(); }
    public void AddRoomQuery()
    R= (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    JOptionPane.showMessageDialog(null, R + " " + D);
    txtDisplay.setText(" *************** Room Status For "+ Days[D] + " *************** " + "\n");
    txtDisplay.append("Rooms" + "\t\t " + " Status");
    for (int t=0; t< (int) cRooms.getItemCount(); t++)
    {  JOptionPane.showMessageDialog(null," is" + cRooms.getItemCount());
    if (book[t][D]==0)
    txtDisplay.append("\n" + ">>" + room[t].rName);
    txtDisplay.append("\t\t " + " Room is Available");
    else
         if (book[t][D]==1)
    txtDisplay.append("\n" + ">>" + room[t].rName);
         txtDisplay.append("\t\t " + " Room Booked");
    JOptionPane.showMessageDialog(null, "end " );
    public void AddDeleteBookRoom()
    R = (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    if(book[R][D] == 1)
    txtDisplay.setText("*****Rooms Detail*****" + "\n" + "Room is Available" + "\n");
    book[R][D] = 0;
    else
    txtDisplay.setText("*****Rooms Detail*****" + "\n" + "Room Available"+ "\n");
         book[R][D] = 0;
    public void AddDeleteRoom()
    R = (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    JOptionPane.showMessageDialog(null,"Room selected index " + R);
    int intCount =(int) cRooms.getSelectedIndex();
    if (intCount != -1)
    if(book[R][D] == 0 )
    JOptionPane.showMessageDialog(null,"Room "+room[intCount].rName + " had Deleted");
    cRooms.removeItemAt(intCount);
    int i;
    for( i=intCount;i< cRooms.getItemCount();i++)
    JOptionPane.showMessageDialog(null,"Room "+room[i+1].rName + "to");      
    room[i]=new Rooms(room[i+1]);
    JOptionPane.showMessageDialog(null,"Room "+ room[i].rName );
    //cRooms.getSelectedIndex());
    // intCount--;
    else
    if(book[R][D] == 1 )
    JOptionPane.showMessageDialog(null,"Room "+room[intCount].rName+" Can Not be Delete");
    else
    JOptionPane.showMessageDialog(null,"Select A Room To be Delete ");
    public void AddNewRoom()
    JOptionPane.showMessageDialog(null,"Add new room");
    public void AddClearTextArea()
    txtDisplay.setText("*****Rooms Detail*****" + "\n");
    public void AddBookRoom()
    R= (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    if(book[R][D] == 0)
    txtDisplay.setText("*****Rooms Detail*****" + "\n" + "Room is Booked" + "\n");
    book[R][D] = 1;
    else
    txtDisplay.setText("*****Rooms Detail*****" + "\n" + "Room Not Available"+ "\n");
         book[R][D] = 1;
    public void itemStateChanged(ItemEvent itv)
    if( itv.getSource() == cRooms )
    R = (int) cRooms.getSelectedIndex();
    lblRoomName.setText(room[R].rName);
    lblCapacity.setText(room[R].rCapacity);
    lblInternet.setText(room[R].rInternet);
    lblVideo.setText(room[R].rVideo);
    // lblStatus.setText(room[R].rStatus);
    <<save as Rooms.java>>
    public class Rooms
    String rName;
    String rCapacity;
    String rInternet;
    String rVideo;
    // String rStatus;
    Rooms(String a, String b, String c, String d)//, String e)
    rName = a;
    rCapacity = b;
    rInternet = c;
    rVideo = d;
    // rStatus = e;
    Rooms(Rooms r)
    rName = r.rName;
    rCapacity = r.rCapacity;
    rInternet = r.rInternet;
    rVideo = r.rVideo;
    // rStatus = r.e;
    <<saves as CC.html>>
    <html>
    <body>
    <Applet code = CC.class
    width = 600
         height = 510>
    </Applet>
    </body>
    </html>

    The important thing is to put the related functionality in the class Room and not everywhere in the class CC.
    The types of the data member in the class Room are also very important to reflect exactly what they should store.
    Here I post a new version of your files as example of how we can improve your version. It does not implement all the functionality you will need but it is a first step.
    Serge
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.JApplet;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.JOptionPane;
    import java.util.LinkedList;
    public class CC extends JApplet implements ActionListener, ItemListener {
        JPanel pnlPane = new JPanel();
        JPanel pnlChoise = new JPanel();
        JPanel pnlButton2 = new JPanel();
        JPanel pnlRoomDisplay = new JPanel();
        JPanel pnlRoom = new JPanel();
        JPanel pnlDisplay = new JPanel();
        JPanel pnlClear = new JPanel();
        JButton btnDisplay = new JButton("Display");
        JButton btnBookRoom = new JButton("Book Room");
        JButton btnDelBookRoom = new JButton("Delete Booking");
        JButton btnDelRoom = new JButton("Delete Room");
        JButton btnAddNewRoom = new JButton("Add New Room");
        JButton btnClear = new JButton("Clear");
        JButton btnRoomQuery = new JButton("Room Query");
        LinkedList roomList = new LinkedList();
        String[] Days = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
        public int R, D;
        JLabel lblRoomName = new JLabel();
        JLabel lblCapacity = new JLabel();
        JLabel lblInternet = new JLabel();
        JLabel lblVideo = new JLabel();
        JLabel lblStatus = new JLabel();
        JComboBox cDays = new JComboBox(Days);
        JComboBox cRooms = new JComboBox();
        JTextField txtRoomName1 = new JTextField();
        JTextField txtCapacity1 = new JTextField();
        JCheckBox chkInternet = new JCheckBox("Internet Connection");
        JCheckBox chkVideo = new JCheckBox("Video Conferencing");
        JTextArea txtDisplay = new JTextArea("*****Rooms Detail*****" + "\n", 12, 30);
        public void init() {
            pnlPane.add(pnlChoise);
            pnlPane.add(pnlButton2);
            pnlPane.add(pnlRoomDisplay);
            pnlPane.add(pnlRoom);
            pnlPane.add(pnlDisplay);
            pnlPane.add(pnlClear);
            pnlPane.setBorder(new TitledBorder(new BevelBorder(BevelBorder.RAISED), "Room Booking System"));
            setContentPane(pnlPane);
            AddChoisePanel();
            AddButton2Panel();
            AddRoomDisplayPanel();
            AddRoomPanel();
            AddDisplayAreaPanel();
            AddClearPanel();
        public void AddChoisePanel() {
            pnlChoise.setLayout(new GridLayout(1, 3, 5, 5));
            Room[]room = new Room[8];
            room[0] = new Room("Barrington", "15", false, true);
            room[1] = new Room("Carlton", "25", true, false);
            room[2] = new Room("Debyshire", "35", false, false);
            room[3] = new Room("Edwards", "30", true, true);
            room[4] = new Room("Farley", "70", true, false);
            room[5] = new Room("Goodwin", "80", true, true);
            room[6] = new Room("Harlow", "90", false, true);
            room[7] = new Room("IlFord", "85", false, false);
            for (int i = 0; i < 8; i++) {
                cRooms.addItem(room.getName());
    roomList.add(room[i]);
    pnlChoise.add(cRooms);
    pnlChoise.add(cDays);
    pnlChoise.add(btnRoomQuery);
    btnRoomQuery.addActionListener(this);
    cRooms.addItemListener(this);
    public void AddButton2Panel() {
    pnlButton2.setLayout(new GridLayout(1, 2, 5, 5));
    pnlButton2.add(btnBookRoom);
    pnlButton2.add(btnDelBookRoom);
    btnDelBookRoom.addActionListener(this);
    btnBookRoom.addActionListener(this);
    public void AddRoomDisplayPanel() {
    pnlRoomDisplay.setLayout(new GridLayout(6, 2, 5, 2));
    pnlRoomDisplay.add(new JLabel("Room Name"));
    pnlRoomDisplay.add(lblRoomName);
    pnlRoomDisplay.add(new JLabel("Room Capacity"));
    pnlRoomDisplay.add(lblCapacity);
    pnlRoomDisplay.add(new JLabel("Internet Connection"));
    pnlRoomDisplay.add(lblInternet);
    pnlRoomDisplay.add(new JLabel("Video Conferencing"));
    pnlRoomDisplay.add(lblVideo);
    pnlRoomDisplay.add(new JLabel("Room Status"));
    pnlRoomDisplay.add(lblStatus);
    pnlRoomDisplay.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED), "Rooms Detail"));
    pnlRoomDisplay.add(btnDelRoom);
    btnDelRoom.addActionListener(this);
    public void AddRoomPanel() {
    pnlRoom.setLayout(new GridLayout(6, 2, 2, 2));
    pnlRoom.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED), "Add New Rooms"));
    pnlRoom.add(new Label("Room Name"));
    pnlRoom.add(txtRoomName1);
    pnlRoom.add(new Label("Capacity"));
    pnlRoom.add(txtCapacity1);
    pnlRoom.add(chkInternet);
    pnlRoom.add(new Label(""));
    pnlRoom.add(chkVideo);
    pnlRoom.add(new Label(""));
    pnlRoom.add(new Label(""));
    pnlRoom.add(new Label(""));
    pnlRoom.add(btnAddNewRoom);
    btnAddNewRoom.addActionListener(this);
    public void AddDisplayAreaPanel() {
    pnlDisplay.setLayout(new GridLayout(1, 1));
    //pnlDisplay.setBorder(new TitledBorder(new BevelBorder(BevelBorder.LOWERED),"Rooms Detail"));
    Border pnlDisplayBorder = BorderFactory.createTitledBorder("Rooms Detail");
    pnlDisplay.setBorder(pnlDisplayBorder);
    pnlDisplay.add(txtDisplay);
    public void AddClearPanel() {
    pnlClear.setLayout(new GridLayout(1, 1));
    pnlClear.add(btnClear);
    btnClear.addActionListener(this);
    public void actionPerformed(ActionEvent event) {
    //to call RoomQuery function
    if (event.getSource() == btnRoomQuery) {
    AddRoomQuery();
    } else {
    //to call DeleteBookRoom function
    if (event.getSource() == btnDelBookRoom) {
    AddDeleteBookRoom();
    } else {
    //to call DeleteRoom function
    if (event.getSource() == btnDelRoom) {
    AddDeleteRoom();
    } else {
    //to call AddNewRoom function
    if (event.getSource() == btnAddNewRoom) {
    AddNewRoom();
    } else {
    //to call ClearTextArea function
    if (event.getSource() == btnClear) {
    AddClearTextArea();
    } else {
    //to call BookRoom function
    if (event.getSource() == btnBookRoom) {
    AddBookRoom();
    public void AddRoomQuery() {
    R = (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    // JOptionPane.showMessageDialog(null, R + " " + D);
    txtDisplay.setText(" *************** Room Status For " + Days[D] + " *************** " + "\n");
    txtDisplay.append("Rooms" + "\t\t " + " Status");
    Room aRoom = (Room)roomList.get(R);
    for (int t = 0; t < (int) cRooms.getItemCount(); t++) {
    // JOptionPane.showMessageDialog(null, " is" + cRooms.getItemCount());
    aRoom = (Room)roomList.get(t);
    txtDisplay.append("\n" + ">>" + aRoom.getName());
    if (aRoom.isBooked(D)) {
    txtDisplay.append("\t\t " + " Room Booked");
    } else {
    txtDisplay.append("\t\t " + " Room is Available");
    // JOptionPane.showMessageDialog(null, "end ");
    public void AddDeleteBookRoom() {
    R = (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    Room aRoom = (Room)roomList.get(R);
    aRoom.checkOut(D);
    txtDisplay.setText("*****Rooms Detail*****" + "\n" + "Room is Available" + "\n");
    public void AddDeleteRoom() {
    R = (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    // JOptionPane.showMessageDialog(null, "Room selected index " + R);
    int intCount = (int) cRooms.getSelectedIndex();
    Room aRoom = (Room)roomList.get(R);
    if (intCount != -1) {
    if (aRoom.isBooked() == false) {
    JOptionPane.showMessageDialog(null, "Room " + ((Room)roomList.get(intCount)).getName() + " had Deleted");
    cRooms.removeItemAt(intCount);
    roomList.remove(intCount);
    } else {
    JOptionPane.showMessageDialog(null, "Room " + ((Room)roomList.get(intCount)).getName() + " Can Not be Delete");
    } else {
    JOptionPane.showMessageDialog(null, "Select A Room To be Delete ");
    public void AddNewRoom() {
    String rName = txtRoomName1.getText();
    String rCapacity = txtCapacity1.getText();
    boolean rInternet = chkInternet.isSelected();
    boolean rVideo = chkVideo.isSelected();
    Room nRoom = new Room(rName,rCapacity,rInternet,rVideo);
    cRooms.addItem(rName);
    int i = cRooms.getItemCount();
    roomList.add(nRoom);
    public void AddClearTextArea() {
    txtDisplay.setText("*****Rooms Detail*****" + "\n");
    public void AddBookRoom() {
    R = (int) cRooms.getSelectedIndex();
    D = (int) cDays.getSelectedIndex();
    Room aRoom = (Room)roomList.get(R);
    if (aRoom.reserve(D) == 0) {
    txtDisplay.setText("*****Rooms Detail*****" + "\n" + "Room is Booked" + "\n");
    } else {
    txtDisplay.setText("*****Rooms Detail*****" + "\n" + "Room Not Available" + "\n");
    public void itemStateChanged(ItemEvent itv) {
    if (itv.getSource() == cRooms) {
    R = (int) cRooms.getSelectedIndex();
    Room aRoom = (Room)roomList.get(R);
    lblRoomName.setText(aRoom.getName());
    lblCapacity.setText(String.valueOf(aRoom.getCapacity()));
    lblInternet.setText(aRoom.getInternet());
    lblVideo.setText(aRoom.getVideo());
    // lblStatus.setText(aRoom.rStatus);
    public class Room {
    public final String YES = "Yes";
    public final String NO = "No";
    private String rName = null;
    private int rCapacity = 0;
    private boolean rInternet = false;
    private boolean rVideo = false;
    private boolean [] booked = { false, false, false, false, false, false, false };
    Room(String name, String capacity, boolean hasInternet, boolean hasVideo)
    rName = new String(name);
    rCapacity = Integer.parseInt(capacity);
    rInternet = hasInternet;
    rVideo = hasVideo;
    public int reserve(int day) {
    if (booked[day] == true)
    return -1;
    booked[day] = true;
    return 0;
    public void checkOut(int day) {
    booked[day] = false;
    public boolean isBooked() {
    for (int i = 0; i < booked.length; i++)
    if (booked[i] == true)
    return true;
    return false;
    public boolean isBooked(int day) {
    return booked[day];
    public String getName() {
    return rName;
    public int getCapacity() {
    return rCapacity;
    public String getInternet() {
    if (rInternet == false)
    return NO;
    return YES;
    public String getVideo() {
    if (rVideo == false)
    return NO;
    return YES;
    public boolean matchCriterias(boolean hasInternet, boolean hasVideo) {
    if ((hasInternet == rInternet) && (hasVideo == rVideo))
    return true;
    return false;

  • Urgent - Big POC: SAP Adapter Java API !

    Hi,
    I'm trying to get from an SAP BAPPI values using SAP Adapter Java API.
    I had tested at BEA and it worked fine.
    the code is:
    try {
    InitialContext ic = new InitialContext(env);
    // Create an object that provides the services established during
    configuration
    ApplicationView applicationView = new
    ApplicationView(ic,SapConstants.APPVIEW_NAME);
    // First, get the schema for the request document and use it to
    construct a default document.
    IDocumentDefinition requestDocumentDef =
    applicationView.getRequestDocumentDefinition(SapConstants.APPVIEW_SERVICE);
    IDocument requestDocument = requestDocumentDef.createDefaultDocument();
    requestDocument.setStringInFirst("/Material.GETDETAIL/MATERIAL",
    "000000000000001667");
    requestDocument.setStringInFirst("/Material.GETDETAIL/PLANT", "0001");
    // Problem at this line
    responseDocument =
    applicationView.invokeService(SapConstants.APPVIEW_SERVICE,
    requestDocument);
    On site, the plateforme has no Internet connexion. limitation
    Is there type limitation: here it's only a String.
    I get this error message:
    <Material.GETDETAIL><MATERIAL>000000000000001667</MATERIAL><eda:control
    xmlns:eda="http://www.iwaysoftware.com/iwse" clip="yes"
    by="SAPIFRService"><eda:expire>2003-01-10T19:53:14Z</eda:expire><eda:attempt
    1</eda:attempt></eda:control></Material.GETDETAIL>
    DEBUG 09 Jan 2003 19:53:14,468 BEA_SAP_1_0.AppViewSapDev - DEEP
    [SAPIFRService] localWorker: Agent review SNIP <eda:control
    xmlns:eda="http://www.iwaysoftware.com/iwse" clip="yes" by="SAPIFRService">
    [parent=Material.GETDETAIL]
    DEBUG 09 Jan 2003 19:53:14,484 BEA_SAP_1_0.AppViewSapDev - DEEP
    [SAPIFRService] localWorker: Agent review result <Material.GETDETAIL>
    <MATERIAL>000000000000001667</MATERIAL>
    </Material.GETDETAIL>
    DEBUG 09 Jan 2003 19:53:14,484 BEA_SAP_1_0.AppViewSapDev - DEBUG
    [SAPIFRService] localWorker: SafIFRAgent rootname: Material.GETDETAIL
    ExecuteThread: '10' for queue: 'default': com.ibi.sapjco.SapDriver: connect
    ExecuteThread: '10' for queue: 'default': com.ibi.sapjco.SapConnection:
    Initializing connection ...
    ExecuteThread: '10' for queue: 'default': Create callable statement: {CALL
    IDOC_INBOUND_ASYNCHRONOUS(?)}
    DEBUG 09 Jan 2003 19:53:14,515 BEA_SAP_1_0.AppViewSapDev - DEBUG
    [SAPIFRService] localWorker:
    IFRXML=<Material.GETDETAIL><MATERIAL>000000000000001667</MATERIAL></Material
    .GETDETAIL>
    java.util.NoSuchElementException
    at java.util.Vector.lastElement(Vector.java:449)
    at
    com.ibi.sapjco.SapIdocXmlParser.endElement(SapIdocXmlParser.java:189)
    at
    org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
    a:559)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinde
    r.java:853)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
    :643)
    at
    org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
    java:2978)
    at
    org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
    18)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
    cumentFragmentScannerImpl.java:1145)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
    mentFragmentScannerImpl.java:988)
    I'm on site so could you send me the answer directly : [email protected]
    Thanks
    Christophe

    Hi,
    I don't know how much it will help but it must add some value.
    please check these links
    http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/78/759f3cad1e3251e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    Regards
    Aashish Sinha

  • Problems with GregorianCalendar.add(Calendar.WEEK_OF_YEAR, 1)

    hi all
    i'm writing an application to calculate all the days of all the week of the year
    i got 2 buttons, one to forward to the next week, the other to go back to the last
    this is my code:
    GregorianCalendar now = new GregorianCalendar();
    DateFormat week=new SimpleDateFormat( "w" ); 
    private void b_proxActionPerformed(java.awt.event.ActionEvent evt)
    //the next week
            now.add(now.WEEK_OF_YEAR, 1);                      
            System.out.println("week "+week.format(now.getTime()));
    private void b_precActionPerformed(java.awt.event.ActionEvent evt) {
            now.add(now.WEEK_OF_YEAR, -1);    
             System.out.println("week "+week.format(now.getTime()));
    }the problem is that, when i want to skip to the next week i get:
    WEEK 25 (the current week)
    WEEK 26
    WEEK 28
    WEEK 30
    like i were add 2, but i added 1 to the week value!!!
    and when i want to return to the previous week (by pressing the second button), the week number is always the same!!
    anyone could help me?
    thanx
    sandro

    Whether it matters or not, just simply stating that it's correct.
    Here's my code that worked correctly ...
    Calendar time = new GregorianCalendar();
    SimpleDateFormat sdf = new SimpleDateFormat("w");
    for(int i=0; i < 10; i++)
        System.out.println("week in year: "+time.get(Calendar.WEEK_OF_YEAR));
        System.out.println("Week in year by sdf: "+sdf.format(time.getTime()));
        time.add(Calendar.WEEK_OF_YEAR, 1);
    }

  • Cannot convert from java.util.Date to java.sql.Date

    In the below code am trying to get the current date and 60 days prior date:
    Date  todayDate;
              Date  Sixtydaysprior;
              String DATE_FORMAT = "MM/dd/yy";
              DateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
             Calendar cal = Calendar.getInstance();
              todayDate = sdf.parse(sdf.format(cal.getTime()));
              cal.add(Calendar.DATE, -60);
             Sixtydaysprior = sdf.parse(sdf.format(cal.getTime()));I have imported following files:
    <%@page
         import="java.util.Calendar,
                   java.text.SimpleDateFormat,
                   java.text.ParseException,
                            java.util.*"
    %>Shows up following error msg:
    Type mismatch: cannot convert from java.util.Date to java.sql.Date
    Thanks.
    Edited by: MiltonDetroja on May 22, 2009 11:03 AM

    Shows up following error msg:
    Type mismatch: cannot convert from java.util.Date to java.sql.Date
    I don't think this exception is thrown from the portion of code you have shown. As clearly specified in exception message, you cannot cast an instance of java.util.Date to java.sql.Date. you will need to do something like this
    java.util.Date today = new java.util.Date();
    long t = today.getTime();
    java.sql.Date dt = new java.sql.Date(t);

  • (Again) java.util.Date vs java.sql.Date

    Hi there,
    (Again) Im trying to understand the EXACT difference between
    java.util.Date vs java.sql.Date.
    Googling, I can see that this is a very "popular" subject, but I still
    cannot figure out it exactly.
    Many writers claim that java.sql.Date only stores the DATE part (yyyy-
    mm-dd) but not the TIME part (hh:MM:ss) of a Date/Time value, but that
    I can easily disprove:
                    java.util.Date ud = new java.util.Date();                 java.sql.Date sd = new java.sql.Date(ud.getTime());                 System.out.println(DateFormatUtils.                                 format(ud, "yyyy-MM-dd HH:mm:ss.SSS"));                 System.out.println(DateFormatUtils.                                 format(sd, "yyyy-MM-dd HH:mm:ss.SSS"));
    Output:
                    2009-09-18 15:17:36.635                 2009-09-18 15:17:36.635
    So, apparently, java.sql.Date and java.util.Date have THE SAME
    precision (at least down to the millisecs...).
    And the official API documentation, really looks more confusing than
    helpful to me::
    *"java.sql.Date:*
    *A thin wrapper around a millisecond value that allows JDBC to identify*
    *this as an SQL DATE value. A milliseconds value represents the*
    *number of milliseconds that have passed since January 1, 1970*
    *00:00:00.000 GMT.*
    *To conform with the definition of SQL DATE, the millisecond values*
    *wrapped by a java.sql.Date instance must be 'normalized' by setting*
    *the hours, minutes, seconds, and milliseconds to zero in the*
    *particular time zone with which the instance is associated. "*
    Exactly what means "an SQL DATE value" ? How EXACTLY does it differ
    from a java.util.Date value?
    Most importantly: WHY does JDBC need to distinguish between them?
    And, here again: *"a java.sql.Date instance must be 'normalized' by*
    *setting the hours, minutes, seconds, and milliseconds to zero in the*
    *particular time zone..."*
    What does that mean exactly? Apparently, the constructor doesnt
    enforce this restriction, per the example above. So what's the REAL
    point with this type, java.sql.Date?
    Very greatful, if you can help me clarify this, once and for all.
    TIA,

    And the official API documentation, really looks more confusing than helpful to me:The problem is that you need to understand SQL as well as Java for this to make sense. It's not the Java API's job to tell you how your SQL database works - there's a myriad of subtle differences even when the DB is compliant with the SQL spec.
    Most compliant databases support DATE, TIME, and TIMESTAMP values. DATE represents only a date. TIME represents only a time. TIMESTAMP represents both. There are further complicating factors, but that's roughly how it stands.
    In Java the normal type for representing time is (or was when the API was created) the java.util.Date but this is a close approximation only to the TIMESTAMP value. In order to bring the two together the java.sql.Date, java.sql.Time and java.sql.Timestamp classes were created. Making them derive from java.util.Date was probably not a good idea.
    java.util.Date suffers from a number of deficiencies. java.util.Calendar was supposed to address them but didn't really succeed. The JodaTime library is rather better, but it's all a lot more complicated than you might expect - partly because time management really is a much harder problem than it appears at first glance - there are timezones, leap years, leap seconds, the difference between astronomical and atomic time, and so on and so forth.

  • Conversions between java.util.Date, java.util.Timestamp and java.sql dates

    I am coding a hoilday booking system using JSP to interact with a SQL Server database. On my JSP form which retrieves the information I have a little javascript pop-up date selector which appears to be returning a Timestamp value although the string value is visable in the entry field. Can I pass this to a javabean as a Timestamp, so far I have only passed strings? Also I then have to enter it in the database and so will need to convert it to an sql date type but I dont know which one is best. Previous to using the Timestamp returning calendar I was just entering text and parsing it to a util.Date in the bean and then converting that to an sql.Date for entry in the database. That worked fine but I want to use the pop-up any ideas? Also my bean won't compile if I declare java.util.Timestamp t;(cannot resolve symbol Timestamp !) even though I have imported util.

    First of all, java.util.Timestamp does not exist. You probably need java.sql.Timestamp.
    java.sql.Date and java.sql.Timestamp inherit from java.util.Date. So converting from java.sql.Date or java.sql.Timestamp to java.util.Date is easy, you don't have to do anything.
    To convert a java.util.Date to a java.sql.Timestamp, do something like this:
    import java.sql.Timestamp;
    import java.util.Date;
    Date date = new Date();
    Timestamp ts = new Timestamp(date.getTime());Jesper

  • Useless code in java.awt.image.SampleModel.java?

    Hey there,
    i just looked up the sourcecode of java.awt.image.SampleModel.java in JDK 6
    I discovered two issues i'd like to discuss.
    1) on lines 736 to 739 this code is stated:
    if (iArray != null)
    pixels = iArray;
    else
    pixels = new int[numBands * w * h];
    I asked myself, why does this code exist? while the getPixels() method is overwritten twice by double[] getPixels() and float[] getPixels, it is impossible to reach the part of the java code that initializes the pixels-array. One could only step into that line if "null" is given for the i/d/fArray-parameter. but if one would do so, the Java parser couldn't determine, which method is to use. so this part of code is just useless IMHO.
    the java developers could get a little more performance out of this method if the if statement would be cut out - especially when reading a lot of very small rasters
    or, on the other hand, they could replace this piece of code by an explicit bounds check.
    When somebody touches this code, i would appreciate it if the errormessage "index out of bounds!" could be rewritten to be a little more verbose, like: Index out of bounds(x=123; y=456, maxX=100, maxY=400)!(numbers are just examples)
    I hope i didn't miss something very basic and could help improving this class a little bit.
    2) the local variable Offset(line 734) is coded against code conventions which say, variables shall start with a lowercase letter. Offset obviously doesn't fit that convention.
    best regards
    kdot

    One could only step into that line if "null" is given for the i/d/fArray-parameter. but if one would do so, the Java parser couldn't determine, which method is to use. so this part of code is just useless IMHO. You can have
    sampleModel.getPixels(x,y,w,h,(int[]) null, dataBuffer);No ambiguity on which method to use.
    the local variable Offset(line 734) is coded against code conventions which say, variables shall start with a lowercase letter. Offset obviously doesn't fit that convention. You're correct, offset is against coding conventions. So are many other examples scattered throughout the jdk source code. For example, Hashtable should be called HashTable. In some cases the coding conventions might not have been established when the original code was written. In other cases it might have been human error. In yet other cases the conventions were probably ignored. The person who wrote the SampleModel class did so some 10+ years ago (Java 1.2). Who knows what he/she was thinking at the time, and in all honesty - does it really matter in this case?
    Did you know there are some classes that declare unused local variables (ahem ColorConvertOp)? Some also have unused imports ( *** cough *** BufferedImage *** cough *** ). In essence, the jdk source code is not the epidemy of code correctness. But it's still pretty good.

  • Java.awt.Dialog in Java 1.6 has a memory leak

    When a modal Dialog opens a modal sub-dialog, the Dialog stays in memory after both the sub-dialog and the Dialog itself is disposed.
    The field that contains the leaked object is Dialog.modalDialogs (static). The methods which causes the leak are Dialog.modalHide and Dialog.modalShow.
    Whenever a modal Dialog is opened, Dialog.modalShow is called, and adds itself to Dialog.modalDialogs.
    When it closes, Dialog.modalHide is called and removes one copy of itself from Dialog.modalDialogs. Then Dialog.modalShow is called on all previously blocked modal dialogs. When the sub-dialog is opened and closed, Dialog.modalDialogs contains two references to the main Dialog, and only one of them is removed when Dialog.modalHide for that Dialog is called.
    To detect the leak, just put a break point in Dialog.modalHide, after modalDialogs.remove(this);. When opening a Dialog and closing it without opening a sub-dialog, the Dialog.modalDialogs field should be empty. When a sub-dialog was opened and closed before the main Dialog is closed, the Dialog.modalDialogs field contains a reference to the disposed main Dialog.
    This leak does not exist in 1.5.0_10 (no Dialog.modalDialogs field). I have searched the bug database, but I have not found this bug there. Could anyone confirm this?
    A simple code to reproduce the leak:
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    public class Test {
       public static void main(String[] args) {
          final JFrame frame = new JFrame() {
             protected void processWindowEvent(WindowEvent e) {
                super.processWindowEvent(e);
                if (e.getID() == WindowEvent.WINDOW_CLOSING) {
                   System.exit(0);
          JButton button = new JButton("Dialog");
          button.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent aE) {
                JButton subButton = new JButton("SubDialog");
                subButton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent aE) {
                      JOptionPane.showMessageDialog(frame, "SubDialog");
                JOptionPane.showMessageDialog(frame, subButton);
          frame.getContentPane().add(button);
          frame.pack();
          // Center the window
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          Dimension frameSize = frame.getSize();
          if (frameSize.height > screenSize.height) {
             frameSize.height = screenSize.height;
          if (frameSize.width > screenSize.width) {
             frameSize.width = screenSize.width;
          frame.setLocation((screenSize.width - frameSize.width) / 2,
                (screenSize.height - frameSize.height) / 2);
          frame.setVisible(true);
    }

    Sorry, I just found the bug in the bugdatabase (with google of course,):
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6497929]

  • Deprecation warning for getFontMetrics(java.awt.Font) in java.awt.Toolkit

    Hi all,
    When I use the following code
    JComponent c;
    FontMetrics metrics = getToolkit().getFontMetrics(c.getFont());
    I get this following warning during compilation:-
    warning: getFontMetrics(java.awt.Font) in java.awt.Toolkit has been deprecated
    JDK suggests to use getLineMetrics() of the Font class.
    But there's an issue with that: if I use getLineMetrics(), there is no API method that I can use to get the width of a string as opposed to FontMetrics which provides stringWidth(String str) method for that purpose. In fact all the methods in FontMetrics are not mapped into LineMetrics.
    Could anyone please help or provide me at least some pointers on how to tackle this issue so that I can get rid of the deprecated method along with the existing methods mapped to equivalent APIs? The bottomline is that I should be able to maintain the existing functinality of my application for those part of code that uses getToolkit().getFontMetrics().
    Thank you for your help in advance.
    -Sanjoy Das

    Use Graphics.getFontMetrics(font) instead.
    After creation your frame and calling frame.show();
    You can access it like that
    frame.show();
    frame.getGraphics().getFontMetrics(new Font("Arial",0,10));
    before showing graphics is null.
    Or just create a BufferedImage and ask it for graphics.
    BufferedImage img=new BufferedImage(...);
    img.getGraphics().getFontMetrics(font);
    regards
    Stas

  • Java Plug-in and Java Web Start Will Not Start In JDK 1.4.2_03

    I can't get the Java Plug-in or Java Web Start to start in JDK 1.4.2_03, but they did work when I first installed the JDK months ago. When I double-click either icon an hourglass displays for a second and then disappears without opening the window. I don't even get an error message.
    I've tried reinstalling the JDK three times. On the last reinstall, I followed some instructions on how to completely remove the JDK. Here's the URL of the instructions I followed:
    http://www.pcreview.co.uk/forums/thread-295773.php
    Strangely JBuilder stopped working too.
    I'm running Windows 2000.
    Help!
    Thank you!

    Hi
    Once u have got the Certificate from the Verisign there will be 3 chains in that cert(what i think)......Get the other 2 certificates from U r cert(like intermediate and Root)....and install them in the trust and Intermediate folder...
    other option is u generate the CSR keeping Sys Date 1 month ahead..( i tried like this only..it worked)
    Regards,
    Anand

Maybe you are looking for

  • I have a different iPhone, and now it won't sync with my iTunes.

    I have a different iPhone, and now it won't sync with my iTunes.

  • Can I stream Netflix from iPad to iTV?

    is there a reason iPad won't stream Netflix to iTV?  I heard you can send it via hardwire from an iPad.

  • Best practices for firewall external interface addressing

    Hi all, Can anyone explain what is more secure when addressing the outside interface of a firewall in a network diagram? 1st option:                             ISP router:                                interface 1 (connected to the internet).      

  • HT4858 how can i stop the cloud sync in my iPhoto?

    My Icloud is continuously running/syncing.  I'm unable to stop.  Is there a way to stop syncing?  We are unable to perform other functions (eg, upload from memory stick) during the sync.  It has been syncing for 5 days at this point.  Thanks!

  • Apple script errors. What can i do?

    Hi, i've been getting repeated Apple script errors for 2 different programs. The first is for FLV2iTunes. Its a media converter. The errors is: AppleScript error GrowHelperApp fot an error: A""" can't got after this class name (-2740) The other is fo