Configuring JBuilder JDK's

Hello again,
Well my CLASSPATH is now perfectly set and I can Compile my
code of MySql in Java 1.4.1 but now the problem is with my JBuilder
I changed the configuration of my project from the JDK from 1.3 the
default JBuilder JDK to the Java 1.4.1 but when I make my project it
gives me the following error
Warning #: 910 : cannot check class java.awt.event.ItemEvent; class file has wrong version 48.0; assuming package java.awt.event is stable; use of -nomakestable is recommended
Warning #: 910 : cannot check class gsales.SalesFrm$1; problem with import: class file has wrong version 48.0; assuming package gsales is stable; use of -nomakestable is recommended
What's the problem?

I tried to compile my project with the command line Java tools but ended up in the following errors
SalesFrm.java:79: cannot resolve symbol
symbol  : class Login_Dialog
location: class gsales.SalesFrm
   Login_Dialog login = new Login_Dialog();
   ^
SalesFrm.java:79: cannot resolve symbol
symbol  : class Login_Dialog
location: class gsales.SalesFrm
   Login_Dialog login = new Login_Dialog();
                            ^
Note: SalesFrm.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
2 errorsThese are the two classes:
Login_Dialog.java
package gsales;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Login_Dialog extends JDialog {
  JPanel panel1 = new JPanel();
  JPanel south = new JPanel(new FlowLayout(FlowLayout.CENTER));
  JPanel center = new JPanel(new GridLayout(2,1));
  BorderLayout borderLayout1 = new BorderLayout();
  JButton Login_But = new JButton();
  JButton Cancel_But = new JButton();
  JPanel userpane = new JPanel();
  JPanel passpane = new JPanel();
  JLabel User_Label = new JLabel();
  JLabel Pass_Label = new JLabel();
  JLabel Top = new JLabel();
  JTextField UserName = new JTextField();
  JPasswordField Password = new JPasswordField();
  String user, pass;
  public Login_Dialog(Frame frame, String title, boolean modal) {
    super(frame, title, modal);
    try {
      jbInit();
      pack();
    catch(Exception ex) {
      ex.printStackTrace();
  public Login_Dialog() {
    this(null, "Sales Login", false);
  void jbInit() throws Exception {
    panel1.setLayout(borderLayout1);
    this.setResizable(false);
    this.setModal(true);
    Login_But.setFont(new java.awt.Font("SansSerif", 1, 30));
    Login_But.setMaximumSize(new Dimension(150, 49));
    Login_But.setPreferredSize(new Dimension(133, 49));
    Login_But.setText("OK");
    Login_But.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(ActionEvent e) {
        UserLogin(e);
    Cancel_But.setFont(new java.awt.Font("SansSerif", 1, 30));
    Cancel_But.setText("Cancel");
    Cancel_But.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(ActionEvent e) {
        onCancel(e);
    User_Label.setText("User Name: ");
    Pass_Label.setText("Password: ");
    UserName.setPreferredSize(new Dimension(150, 21));
    Top.setFont(new java.awt.Font("Dialog", 1, 40));
    Top.setPreferredSize(new Dimension(206, 80));
    Top.setHorizontalAlignment(SwingConstants.CENTER);
    Top.setHorizontalTextPosition(SwingConstants.CENTER);
    Top.setText("User Login");
    Password.setText("");
    Password.setPreferredSize(new Dimension(150, 21));
    user = UserName.getText();
    pass = Password.getPassword().toString();
    getContentPane().add(panel1);
    panel1.add(Top, BorderLayout.NORTH);
    panel1.add(south, BorderLayout.SOUTH);
    panel1.add(center,BorderLayout.CENTER);
    userpane.add(User_Label,null);
    userpane.add(UserName, null);
    passpane.add(Pass_Label, null);
    passpane.add(Password, null);
    center.add(userpane, null);
    center.add(passpane, null);
    south.add(Login_But, null);
    south.add(Cancel_But, null);
  void onCancel(ActionEvent e) {
      System.exit(0);
  void UserLogin(ActionEvent e) {
  Connection con;
  try{
   Class.forName("com.mysql.jdbc.Driver");
  catch (Exception se){
  se.printStackTrace();
  try{
   con = DriverManager.getConnection("jdbc:mysql://localhost/test?user="+user+"&password="+pass);
   System.out.println(con.toString());
   catch (Exception se){
    se.printStackTrace();
   this.setVisible(false);
}and here is the last class
SalesFrm.java
package gsales;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import java.awt.event.*;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.sql.SQLException;
public class SalesFrm extends JFrame {
  SimpleDateFormat DMY = new SimpleDateFormat("dd-MM-yyyy");
  JLabel TopLabel = new JLabel();
  JLabel DatLabel = new JLabel();
  JLabel NumLabel = new JLabel();
  JLabel DescLabel = new JLabel();
  JLabel AmntLabel = new JLabel();
  JLabel QtyLabel = new JLabel();
  JLabel PricLabel = new JLabel();
  JLabel NoItmLabel = new JLabel();
  JLabel TotalLabel = new JLabel();
  GridLayout grd = new GridLayout(7,1);
  Container myPane;
  Panel NorthPane = new Panel();
  Panel CenterPane = new Panel();
  Panel EastPane = new Panel();
  Panel SouthPane = new Panel();
  BorderLayout brdr = new BorderLayout();
  //Make the TextFields Public
  public JTextField DateFld = new JTextField();
  public JTextField NoFld = new JTextField();
  public JTextField Desc1 = new JTextField();
  public JTextField Desc2 = new JTextField();
  public JTextField Desc3 = new JTextField();
  public JTextField Desc4 = new JTextField();
  public JTextField Desc5 = new JTextField();
  public JTextField Desc6 = new JTextField();
  public JTextField Qty1 = new JTextField();
  public JTextField Qty2 = new JTextField();
  public JTextField Qty3 = new JTextField();
  public JTextField Qty4 = new JTextField();
  public JTextField Qty5 = new JTextField();
  public JTextField Qty6 = new JTextField();
  public JTextField Amount1 = new JTextField();
  public JTextField Amount2 = new JTextField();
  public JTextField Amount3 = new JTextField();
  public JTextField Amount4 = new JTextField();
  public JTextField Amount5 = new JTextField();
  public JTextField Amount6 = new JTextField();
  public JTextField Pric1 = new JTextField();
  public JTextField Pric2 = new JTextField();
  public JTextField Pric3 = new JTextField();
  public JTextField Pric4 = new JTextField();
  public JTextField Pric5 = new JTextField();
  public JTextField Pric6 = new JTextField();
  public JTextField TotalAmt = new JTextField();
  public JLabel StatusBar = new JLabel();
  public JLabel InfoBar = new JLabel();
  public Choice NoItm = new Choice();
  FlowLayout flowLayout1 = new FlowLayout();
  JButton OKbutton = new JButton();
  Border border1;
  JButton Canbutton = new JButton();
  TitledBorder titledBorder1;
  TitledBorder titledBorder2;
public SalesFrm() {
    try {
           jbInit();
    catch(Exception e) {
      e.printStackTrace();
  public static void main(String[] args) {
   Login_Dialog login = new Login_Dialog();
    SalesFrm sale1 = new SalesFrm();
   login.setVisible(true);
    if (login.setVisible(false))
           sale1.setVisible(true);
    //sale1.setVisible(true);
  private void jbInit() throws Exception {
  //Initialize The Main Container
    myPane = this.getContentPane();
    border1 = BorderFactory.createBevelBorder(BevelBorder.RAISED,Color.lightGray,Color.white,Color.gray,Color.lightGray);
    titledBorder1 = new TitledBorder("");
    titledBorder2 = new TitledBorder("");
    this.setDefaultCloseOperation(3);
    this.setSize(new Dimension(753, 437));
    this.setTitle("<<NetWare>>  General Sales");
  //TopLabel Settings
    TopLabel.setFont(new java.awt.Font("SansSerif", 1, 20));
    TopLabel.setForeground(Color.red);
    TopLabel.setOpaque(true);
    TopLabel.setHorizontalAlignment(SwingConstants.CENTER);
    TopLabel.setHorizontalTextPosition(SwingConstants.CENTER);
    TopLabel.setText("General Sales");
  //Other Labels
   DatLabel.setText("Date: ");
   NumLabel.setText("Invoice No: ");
   QtyLabel.setText("Quantity:");
   DescLabel.setText("Description:");
   AmntLabel.setText("Amount:");
   PricLabel.setText("Price:");
   NoItmLabel.setText("No. of Items:");
   TotalLabel.setText("Total Amount: ");
   QtyLabel.setHorizontalAlignment(SwingConstants.CENTER);
   QtyLabel.setHorizontalTextPosition(SwingConstants.CENTER);
   DescLabel.setHorizontalAlignment(SwingConstants.CENTER);
   DescLabel.setHorizontalTextPosition(SwingConstants.CENTER);
   AmntLabel.setHorizontalAlignment(SwingConstants.CENTER);
   AmntLabel.setHorizontalTextPosition(SwingConstants.CENTER);
   PricLabel.setHorizontalAlignment(SwingConstants.CENTER);
   PricLabel.setHorizontalTextPosition(SwingConstants.CENTER);
   TotalLabel.setHorizontalAlignment(SwingConstants.CENTER);
   TotalLabel.setHorizontalTextPosition(SwingConstants.CENTER);
   //Status and Info
   StatusBar.setText("Status Bar");
   InfoBar.setBorder(titledBorder2);
    InfoBar.setMaximumSize(new Dimension(500, 29));
    InfoBar.setPreferredSize(new Dimension(210, 29));
    InfoBar.setText("Info Bar");
  //Descn
    Desc1.setNextFocusableComponent(Qty1);
    Desc1.setPreferredSize(new Dimension(160, 21));
    Desc2.setNextFocusableComponent(Qty2);
    Desc2.setPreferredSize(new Dimension(160, 21));
    Desc3.setNextFocusableComponent(Qty3);
    Desc3.setPreferredSize(new Dimension(160, 21));
    Desc4.setNextFocusableComponent(Qty4);
    Desc4.setPreferredSize(new Dimension(160, 21));
    Desc5.setNextFocusableComponent(Qty5);
    Desc5.setPreferredSize(new Dimension(160, 21));
    Desc6.setNextFocusableComponent(Qty6);
    Desc6.setPreferredSize(new Dimension(160, 21));
    //Qtyn
    Qty1.setNextFocusableComponent(Pric1);
    Qty1.setPreferredSize(new Dimension(80, 21));
    Qty1.setHorizontalAlignment(SwingConstants.RIGHT);
    Qty2.setNextFocusableComponent(Pric2);
    Qty2.setPreferredSize(new Dimension(80, 21));
    Qty2.setHorizontalAlignment(SwingConstants.RIGHT);
    Qty3.setNextFocusableComponent(Pric3);
    Qty3.setPreferredSize(new Dimension(80, 21));
    Qty3.setHorizontalAlignment(SwingConstants.RIGHT);
    Qty4.setNextFocusableComponent(Pric4);
    Qty4.setPreferredSize(new Dimension(80, 21));
    Qty4.setHorizontalAlignment(SwingConstants.RIGHT);
    Qty5.setNextFocusableComponent(Pric5);
    Qty5.setPreferredSize(new Dimension(80, 21));
    Qty5.setHorizontalAlignment(SwingConstants.RIGHT);
    Qty6.setNextFocusableComponent(Pric6);
    Qty6.setPreferredSize(new Dimension(80, 21));
    Qty6.setHorizontalAlignment(SwingConstants.RIGHT);
    //Amountn
    Amount1.setNextFocusableComponent(Desc2);
    Amount1.setPreferredSize(new Dimension(105, 21));
    Amount1.setHorizontalAlignment(SwingConstants.RIGHT);
    Amount2.setNextFocusableComponent(Desc3);
    Amount2.setPreferredSize(new Dimension(105, 21));
    Amount2.setHorizontalAlignment(SwingConstants.RIGHT);
    Amount3.setNextFocusableComponent(Desc4);
    Amount3.setPreferredSize(new Dimension(105, 21));
    Amount3.setHorizontalAlignment(SwingConstants.RIGHT);
    Amount4.setNextFocusableComponent(Desc5);
    Amount4.setPreferredSize(new Dimension(105, 21));
    Amount4.setHorizontalAlignment(SwingConstants.RIGHT);
    Amount5.setNextFocusableComponent(Desc6);
    Amount5.setPreferredSize(new Dimension(105, 21));
    Amount5.setHorizontalAlignment(SwingConstants.RIGHT);
    Amount6.setPreferredSize(new Dimension(105, 21));
    Amount6.setHorizontalAlignment(SwingConstants.RIGHT);
    //Pricn
    Pric1.setNextFocusableComponent(Amount1);
    Pric1.setPreferredSize(new Dimension(80, 21));
    Pric1.setHorizontalAlignment(SwingConstants.RIGHT);
    Pric2.setNextFocusableComponent(Amount2);
    Pric2.setPreferredSize(new Dimension(80, 21));
    Pric2.setHorizontalAlignment(SwingConstants.RIGHT);
    Pric3.setNextFocusableComponent(Amount3);
    Pric3.setPreferredSize(new Dimension(80, 21));
    Pric3.setHorizontalAlignment(SwingConstants.RIGHT);
    Pric4.setNextFocusableComponent(Amount4);
    Pric4.setPreferredSize(new Dimension(80, 21));
    Pric4.setHorizontalAlignment(SwingConstants.RIGHT);
    Pric5.setNextFocusableComponent(Amount5);
    Pric5.setPreferredSize(new Dimension(80, 21));
    Pric5.setHorizontalAlignment(SwingConstants.RIGHT);
    Pric6.setNextFocusableComponent(Amount6);
    Pric6.setPreferredSize(new Dimension(80, 21));
    Pric6.setHorizontalAlignment(SwingConstants.RIGHT);
  //DateFld
    DateFld.setFont(new java.awt.Font("SansSerif", 1, 12));
    DateFld.setMinimumSize(new Dimension(60, 21));
    DateFld.setPreferredSize(new Dimension(80, 21));
    DateFld.setHorizontalAlignment(SwingConstants.RIGHT);
    Date dt = new Date();
    String date = DMY.format(dt);
    DateFld.setText(date);
    //NoFld
    NoFld.setFont(new java.awt.Font("SansSerif", 1, 12));
    NoFld.setMinimumSize(new Dimension(60, 21));
    NoFld.setPreferredSize(new Dimension(80, 21));
    NoFld.setText("Number");
    NoFld.setHorizontalAlignment(SwingConstants.RIGHT);
  //NorthPane Settings
    NorthPane.setLayout(brdr);
    Panel in1 = new Panel();
    Panel in2 = new Panel();
    Panel NSPane = new Panel();
    OKbutton.setFont(new java.awt.Font("Dialog", 0, 18));
    OKbutton.setBorder(BorderFactory.createRaisedBevelBorder());
    OKbutton.setMaximumSize(new Dimension(100, 60));
    OKbutton.setPreferredSize(new Dimension(90, 32));
    OKbutton.setActionCommand("OK");
    OKbutton.setText("OK");
    Canbutton.setFont(new java.awt.Font("Dialog", 0, 18));
    Canbutton.setBorder(BorderFactory.createRaisedBevelBorder());
    Canbutton.setMaximumSize(new Dimension(100, 50));
    Canbutton.setPreferredSize(new Dimension(90, 32));
    Canbutton.setText("Cancel");
    StatusBar.setBorder(titledBorder1);
    StatusBar.setMaximumSize(new Dimension(800, 29));
    StatusBar.setPreferredSize(new Dimension(400, 29));
    TotalAmt.setHorizontalAlignment(SwingConstants.RIGHT);
    NoItm.addItemListener(new java.awt.event.ItemListener() {
      public void itemStateChanged(ItemEvent e) {
        ItemSelect(e);
    NorthPane.add(TopLabel,BorderLayout.CENTER);
    in1.add(DatLabel);
    in1.add(DateFld);
    in2.add(NumLabel);
    in2.add(NoFld);
    NSPane.add(in2, BorderLayout.WEST);
    NSPane.add(in1, BorderLayout.EAST);
    NorthPane.add(NSPane, BorderLayout.SOUTH);
  //CenterPane Settings
    Panel DescPane = new Panel();
    Panel amntPane = new Panel();
    Panel QtyPane = new Panel();
    Panel PricPane = new Panel();
    DescPane.setLayout(grd);
    QtyPane.setLayout(grd);
    amntPane.setLayout(grd);
    PricPane.setLayout(grd);
    DescPane.add(DescLabel, null);
    DescPane.add(Desc1, null);
    DescPane.add(Desc2, null);
    DescPane.add(Desc3, null);
    DescPane.add(Desc4, null);
    DescPane.add(Desc5, null);
    DescPane.add(Desc6, null);
    QtyPane.add(QtyLabel, null);
    QtyPane.add(Qty1, null);
    QtyPane.add(Qty2, null);
    QtyPane.add(Qty3, null);
    QtyPane.add(Qty4, null);
    QtyPane.add(Qty5, null);
    QtyPane.add(Qty6, null);
    PricPane.add(PricLabel,null);
    PricPane.add(Pric1,null);
    PricPane.add(Pric2,null);
    PricPane.add(Pric3,null);
    PricPane.add(Pric4,null);
    PricPane.add(Pric5,null);
    PricPane.add(Pric6,null);
    amntPane.add(AmntLabel,null);
    amntPane.add(Amount1, null);
    amntPane.add(Amount2, null);
    amntPane.add(Amount3, null);
    amntPane.add(Amount4, null);
    amntPane.add(Amount5, null);
    amntPane.add(Amount6, null);
    CenterPane.add(DescPane);
    CenterPane.add(QtyPane);
    CenterPane.add(PricPane);
    CenterPane.add(amntPane);
   //EastPane Settings
   EastPane.setLayout(new BorderLayout());
   //JLabel empty = new JLabel();
   Panel NoItmPane = new Panel();
   Panel TotPane = new Panel();
   NoItmPane.setLayout(flowLayout1);
   NoItm.addItem("1");
   NoItm.addItem("2");
   NoItm.addItem("3");
   NoItm.addItem("4");
   NoItm.addItem("5");
   NoItm.addItem("6");
   NoItm.setSize(new Dimension(20 , 21));
   NoItm.select(5);
   TotalAmt.setPreferredSize(new Dimension(120, 21));
   NoItmPane.add(NoItmLabel);
   NoItmPane.add(NoItm);
   EastPane.add(NoItmPane, BorderLayout.NORTH);
   TotPane.add(TotalLabel);
   TotPane.add(TotalAmt);
   EastPane.add(TotPane, BorderLayout.SOUTH);
   //SouthPane Settings
   SouthPane.setLayout(new BorderLayout());
   GridLayout grd1 = new GridLayout(2, 1);
   Panel butPane = new Panel();
   Panel StatPane = new Panel();
   StatPane.add(StatusBar);
   StatPane.add(InfoBar);
   butPane.setLayout(grd1);
   SouthPane.add(butPane, BorderLayout.EAST);
    butPane.add(OKbutton);
    butPane.add(Canbutton);
   SouthPane.add(StatPane, BorderLayout.SOUTH);
     //Add all into the main Container
    myPane.add(NorthPane, BorderLayout.NORTH);
    myPane.add(EastPane, BorderLayout.EAST);
    myPane.add(CenterPane, BorderLayout.CENTER);
    myPane.add(SouthPane, BorderLayout.SOUTH);
    //ItemSelect
  void ItemSelect(ItemEvent e) {
    String getItm;
    getItm =(String) e.getItem();
    int Itm = Integer.parseInt(getItm);
    switch (Itm) {
    case 1 : Desc2.setVisible(false);
             Desc3.setVisible(false);
             Desc4.setVisible(false);
             Desc5.setVisible(false);
             Desc6.setVisible(false);
             Qty2.setVisible(false);
             Qty3.setVisible(false);
             Qty4.setVisible(false);
             Qty5.setVisible(false);
             Qty6.setVisible(false);
             Pric2.setVisible(false);
             Pric3.setVisible(false);
             Pric4.setVisible(false);
             Pric5.setVisible(false);
             Pric6.setVisible(false);
             Amount2.setVisible(false);
             Amount3.setVisible(false);
             Amount4.setVisible(false);
             Amount5.setVisible(false);
             Amount6.setVisible(false);
             break;
    case 2 : Desc2.setVisible(true);
             Desc3.setVisible(false);
             Desc4.setVisible(false);
             Desc5.setVisible(false);
             Desc6.setVisible(false);
             Qty2.setVisible(true);
             Qty3.setVisible(false);
             Qty4.setVisible(false);
             Qty5.setVisible(false);
             Qty6.setVisible(false);
             Pric2.setVisible(true);
             Pric3.setVisible(false);
             Pric4.setVisible(false);
             Pric5.setVisible(false);
             Pric6.setVisible(false);
             Amount2.setVisible(true);
             Amount3.setVisible(false);
             Amount4.setVisible(false);
             Amount5.setVisible(false);
             Amount6.setVisible(false);
             break;
    case 3 : Desc2.setVisible(true);
             Desc3.setVisible(true);
             Desc4.setVisible(false);
             Desc5.setVisible(false);
             Desc6.setVisible(false);
             Qty2.setVisible(true);
             Qty3.setVisible(true);
             Qty4.setVisible(false);
             Qty5.setVisible(false);
             Qty6.setVisible(false);
             Pric2.setVisible(true);
             Pric3.setVisible(true);
             Pric4.setVisible(false);
             Pric5.setVisible(false);
             Pric6.setVisible(false);
             Amount2.setVisible(true);
             Amount3.setVisible(true);
             Amount4.setVisible(false);
             Amount5.setVisible(false);
             Amount6.setVisible(false);
             break;
    case 4 : Desc2.setVisible(true);
             Desc3.setVisible(true);
             Desc4.setVisible(true);
             Desc5.setVisible(false);
             Desc6.setVisible(false);
             Qty2.setVisible(true);
             Qty3.setVisible(true);
             Qty4.setVisible(true);
             Qty5.setVisible(false);
             Qty6.setVisible(false);
             Pric2.setVisible(true);
             Pric3.setVisible(true);
             Pric4.setVisible(true);
             Pric5.setVisible(false);
             Pric6.setVisible(false);
             Amount2.setVisible(true);
             Amount3.setVisible(true);
             Amount4.setVisible(true);
             Amount5.setVisible(false);
             Amount6.setVisible(false);
             break;
    case 5 : Desc2.setVisible(true);
             Desc3.setVisible(true);
             Desc4.setVisible(true);
             Desc5.setVisible(true);
             Desc6.setVisible(false);
             Qty2.setVisible(true);
             Qty3.setVisible(true);
             Qty4.setVisible(true);
             Qty5.setVisible(true);
             Qty6.setVisible(false);
             Pric2.setVisible(true);
             Pric3.setVisible(true);
             Pric4.setVisible(true);
             Pric5.setVisible(true);
             Pric6.setVisible(false);
             Amount2.setVisible(true);
             Amount3.setVisible(true);
             Amount4.setVisible(true);
             Amount5.setVisible(true);
             Amount6.setVisible(false);
             break;
    case 6 : Desc2.setVisible(true);
             Desc3.setVisible(true);
             Desc4.setVisible(true);
             Desc5.setVisible(true);
             Desc6.setVisible(true);
             Qty2.setVisible(true);
             Qty3.setVisible(true);
             Qty4.setVisible(true);
             Qty5.setVisible(true);
             Qty6.setVisible(true);
             Pric2.setVisible(true);
             Pric3.setVisible(true);
             Pric4.setVisible(true);
             Pric5.setVisible(true);
             Pric6.setVisible(true);
             Amount2.setVisible(true);
             Amount3.setVisible(true);
             Amount4.setVisible(true);
             Amount5.setVisible(true);
             Amount6.setVisible(true);
             break;
}

Similar Messages

  • Unable to find configuration file: jdk.conf

    When i try to use sqldeveloper in lunix show this error
    Unable to find configuration file: jdk.conf
    Working directory is /u02/sqldeveloper/jdev/bin
    Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/StringBuilder
    at oracle.ide.performance.PerformanceHandler.getPropertyObject(PerformanceHandler.java:41)
    at oracle.ide.performance.PerformanceHandler.getFormatter(PerformanceHandler.java:31)
    at oracle.ide.performance.PerformanceHandler.<init>(PerformanceHandler.java:25)
    at oracle.ide.performance.PerformanceLogger.<init>(PerformanceLogger.java:66)
    at oracle.ide.performance.PerformanceLogger.get(PerformanceLogger.java:94)
    at oracle.ideimpl.Main.main(Main.java:21)
    I NEED HELP
    what can i do??

    This error looks like you are not using jdk 1.5+
    -kris

  • "Error creating JVM" in iPlanet Web Server 4.1SP7 when configured with JDK

    I need to configure iPlanet Web Server 4.1SP7 to execute JSP/Servlets on itself and lookup EJBs kept on IBM Websphere Application Server 4.0.1, both running on different servers with Sun Solaris.
    Whenever, I try to configure iPlanet Web Server 4.1 SP7 to use IBM's JDK 1.3.0 (provided with WAS 4.0) to lookup an EJB, iPlanet server stops as soon as it starts, giving:
    [07/Feb/2003:11:52:38] info ( 2788): Internal error: unable to create JVM acquire failed1:52:38] info ( 2788): NSServletSession::(late)init - JVMControl:: [07/Feb/2003:11:52:38] failure ( 2788): Failure to load JVM (check your JRE) on(late) NSServletLateInit: unknown error): conf_init: Error running init function
    Evenif, I configure it using Sun's JDK 1.4.0.03, iPlanet wS keeps on giving "Exiting JVM" in the error log..
    Now, I want to know, which JVMs are supported by iPlanet Web Server 4.1 SP7, that can be used to lookup deployed components (EJBs/Datasource) on Websphere Application Server 4.0.1?
    Regards,
    Vaibhav
    [email protected]

    I think you are running into this:
    http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsunone%2F8322&zone_32=-Xrs%2A%20
    Thanks
    Manish

  • Configure JRE/JDK Problem

    PROBLEM:
    Any .jsp I try to invoke returns with blank/empty values. The HTML code displays in the browser by there are blank values for the <DISPLAY property=request:*> ???
    SETTINGS:
    Using IPlanet 4.1sp8
    JDK Path = c:\jdk1.2.2
    JDK Runime Libary = <blank>
    JDK Runtime Classpath = <blank>
    In Windows (Environment Variable) CLASSPATH =
    CLASSPATH=C:/jdk1.2.2/jre/bin/classic;C:/jdk1.2.2/jre/lib;rt.jar;C:/jdk1.2.2/lib/dt.jar;C:/jdk1.2.2/lib/tools.jar
    JSP FILE:
    <html>
    <h1> Request Information </h1>
    JSP Request Method: <DISPLAY property=request:method>
    <br>
    Request URI: <DISPLAY property=request:requestURI>
    <br>
    Request Protocol: <DISPLAY property=request:protocol>
    <br>
    Servlet path: <DISPLAY property=request:servletPath>
    <br>
    Path info: <DISPLAY property=request:pathInfo>
    <br>
    Path translated: <DISPLAY property=request:pathTranslated>
    <br>
    Query string: <DISPLAY property=request:queryString>
    <br>
    Content length: <DISPLAY property=request:contentLength>
    <br>
    Content type: <DISPLAY property=request:contentType>
    <br>
    Server name: <DISPLAY property=request:serverName>
    <br>
    Server port: <DISPLAY property=request:serverPort>
    <br>
    Remote user: <DISPLAY property=request:remoteUser>
    <br>
    Remote address: <DISPLAY property=request:remoteAddr>
    <br>
    Remote host: <DISPLAY property=request:remoteHost>
    <br>
    Authorization scheme: <DISPLAY property=request:authType>
    <hr>
    The foo parameter value is <DISPLAY property=request:params:foo placeholder="NoValueGiven">
    </html>
    WEB SERVER ERROR LOG:
    [17/Sep/2002:08:41:57] info ( 452): iPlanet-WebServer-Enterprise/4.1SP9 BB1-08/23/2001 05:52
    [17/Sep/2002:08:41:58] info ( 452): Loading Simple Session Manager by default. Specify MMapSessionManager in servlets.properties to load persistent session manager
    [17/Sep/2002:08:41:58] info ( 452): SimpleSessionManager: Default values for maximum number of sessions is 1000 with a time out value of 1800 seconds
    [17/Sep/2002:08:41:58] info ( 452): SimpleSessionManager: Maximum number of sessions (1000) with a time out value of (1800) seconds
    [17/Sep/2002:08:42:06] info ( 452): Internal Info: loading servlet /TMP3uzow2l1y6.jsp
    HELP!!

    Hi,
    You have not set the jspengine path to your environment. add the two line to your environment variable.
    Remember, the directory structure for the following line may vary. use your directory structre. i have used iws6.0
    c:/iPlanet/Servers/bin/https/jar/servlet.jar;
    c:/iPlanet/Servers/bin/https/jar/jspengine.jar *.java; { there must be a space after the jar }..
    Also in your web administration server, under global settings/configure jdk/jre paths, make sure the radio button JDK is checked.
    Once you made all the settings,restart the server and try.
    Good Luck,
    Ramkumar

  • JDK - Time configuration for France

    Hi!
    I'm using GregorianCalendar class to get current date and time like above:
    GregorianCalendar today = new GregorianCalendar();
    I'm located in Paris and the time I get is automatically converted to Greenwich Mean Time (so one hour less than the one on my server!). I found I had to specify a TimeZone to let it work properly:
    GregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone("Europe/Paris"). But I have to make lots of changes in my aplpication...
    So: Is there a way to configure directly JDK to get the same result?
    Thanks for all answers.
    Florent.

    Your code should be producing the correct results.
    The JavaDoc for GregorianCalendar state that the default constructor produces a Calendar with the default Locale and TimeZone. The default Locale and TimeZones are those supplied by your system ( your Server ).
    I would suggest you check that your server has its Locale and Timezones correctly set.
    This is a common problem, especially on Linux/Unix servers where this sort of setup is often overlooked after installation.

  • Configure JDK logging per EAR

    I try to find out how to configure the JDK logging for one application (EAR). You can't initialize it your own because you don't have a main method or something similar. Is there any configuration option to set environment settings for an application, or how to configure logging for one application.

    Hi Jan,
    thanks for your answer. I've already read these, but I can't exactly see how it helps me, so I redefine my needs:
    - the application already has some logging implemented (using various log levels),
    - I don't have admin access to the target OC4J(s),
    - I'd like to define default logging levels per package, so that after deployment no configuration will be needed.
    Is it possible, e.g. by packaging j2ee-logging.xml into the EAR? (I've already tried that without success.)
    Thanks,
    Patrik

  • Missing version field in response...( Tomcat, JBuilder )

    Hello,
    (Sorry for a long message, but I saw several times messages with the only
    response like "write more details...")
    I'm trying to execute a simple Web Start application using version-based download.
    I'm constantly receiving the following error:
    Missing version field in response from server when accessing resource:
    (http://localhost:8083/checkboxcontrol/CheckBoxControl.jar, 1.1)
    Is it possible that there is a bug somewhere within Web Start ?
    The download is working in a basic version - the problem starts to occur when
    I'm changing JNLP to:
    <jar href="CheckBoxControl.jar" version="1.1"/>
    Is there anybody that can help me ?
    (I've read all past messages about "Missing version field in response...")
    Below is all information about the case.
    URL:
    ===================
    http://localhost:8083/checkboxcontrol/CheckBoxControlLauncher.jnlp
    Software configuration:
    ======================================
    JBuilder 9 Enterprise Trial
    Java Web Start 1.4.2
    Tomcat 4.1 (included for debugging inside the JBuilder)
    Windows NT 4.0 SP6a
    Mozilla Firebird 0.6.1
    Please note that I've tried also with IBM Websphere 4 - the same result.
    JNLP file:
    ===================
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8083/checkboxcontrol">
    <information>
    <title>CheckBox Example</title>
    <vendor>Borland</vendor>
    <homepage href="CheckBoxControlLauncher.html" />
    <description>Web Start Example for CheckBoxControl</description>
    </information>
    <resources>
    <j2se version="1.3+" />
    <jar href="CheckBoxControl.jar" version="1.1"/>
    </resources>
    <application-desc main-class="com.borland.samples.swing.checkboxcontrol.Application1" />
    </jnlp>
    File directory contents:
    ========================
    .\Lib (empty)
    .\WEB-INF
    ->\classes
    ->->\checkboxcontrol
    ->->->\WEB-INF
    ->->->->\Lib
    ->->->->->\jardiff.jar
    ->->->->->\jnlp-servlet.jar
    ->->->->->\jnlp.jar
    ->->\classes\com\borland\samples\swing\checkboxcontrol\
    ->->->\Application1.class
    ->->->\Frame1$1.class
    ->->->\Frame1$2.class
    ->->->\Frame1$3.class
    ->->->\Frame1$4.class
    ->->->\Frame1$5.class
    ->->->\Frame1.class
    ->\lib
    ->->\jardiff.jar
    ->->\jnlp-servlet.jar
    ->->\jnlp.jar
    ->\web.xml
    CheckBoxControl.jar
    CheckBoxControlLauncher.html
    CheckBoxControlLauncher.jnlp
    CheckBoxControl__V1.1.jar
    version.xml
    web.xml contents:
    ===================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
    </servlet>
    [... cut ....]
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jnlp</url-pattern>
    </servlet-mapping>
    <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/x-java-archive</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>
    </web-app>
    version.xml contents:
    ======================================
    <jnlp-versions>
    <resource>
    <pattern>
    <name>CheckBoxControl.jar</name>
    <version-id>1.1</version-id>
    </pattern>
    <file>CheckBoxControl.jar</file>
    </resource>
    </jnlp-versions>
    Stack trace:
    ===================
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:566)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(DownloadProtocol.java:850)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:580)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:544)
         at com.sun.javaws.Launcher.downloadResources(Launcher.java:735)
         at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:291)
         at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
         at com.sun.javaws.Launcher.run(Launcher.java:167)
         at java.lang.Thread.run(Thread.java:534)

    I took a scan through what you posted and it looked OK - it has to be something simple. Sometimes it helps to compare against a working system - try looking at ScheduleWorld's jnlp.

  • Iplanet 6.0 JDK settings ??

    I have downloaded and installed Sun One 6.0. on a PC. It's working fine, But I can't figure out how to set the JDK? If I go to "Global Settings" then select "Configure JRE/JDK paths". I have JRE set with JDK disabled. Checking the JDK box enables me to enter the path to my JDK 1.3.08 install. Any path I type here show invalid... Message is returned with.."Incorrect Usage The JDK path does not exist".
    \Program Files\java\j2re1.3.08
    c:\program files\java\j2re...
    I even installed it under \java directory
    and get the same results...
    Grrrr... this has got to be simple and I'm just missing something.
    Thx all

    It should work just fine, all you need to specify is the
    JDK Path and leave the other two variables blank(they get set automatically based on the JDK path).
    e.g.
    JDK Path: c:/jdk1.3.1_06
    This gets set in registry files. After setting this, first start a webserver instance(don't yet restart the admin server instance) and test if it picks up the new jdk correctly and starts up fine. If the instance starts up fine, then go ahead and restart your admin server instance as well.
    Thanks
    Manish

  • Configure Eclipse 3.0.1 for JDK5

    So I have my Eclipse 3.0.1 installed and configured for JDK 1.4.2_13, which I use as my Standard Application Development Environment.
    Of late, I have installed JDK5 and JDK6 as well. Now, I would like to configure my existing version of Eclipse to work for these newer versions.
    I had tried adding their libraries for my project (using the 'Project Properties' option), but it fails to recognize the newer syntax of JDK5.
    Any help?

    Within my complete IDE, I can't find any topic called "Lomboz"...
    What could be wrong ?Don't tell anyone I told you, but what I normally do when I install new plugins
    is get rid of the eclipse/configuration directory (simply rm -rf it). The next time
    eclipse comes up it rescans all installed plugins (it wants to know where its
    projects directory is too, that's the little downside).
    Eclipse behaves funny w.r.t. its plugin cache; I haven't found a 'scan for new
    plugins' button yet either ...
    kind regards,
    Jos

  • How to install jdk

    I had downloaded the linux java installation file
    jdk-6u7-linux-i586.rpm.bin
    and I had installed it under /root/usr/java
    but what should i do next?
    i used Mozilla Firefox2.0.0.4
    who can tell me how to dispose environment?
    Edited by: Flying_eagle on Sep 23, 2008 1:54 AM

    If you ask detailed questions we will provide detailed answers. If you provide vague questions we can only give general answers.
    What do you want to configure your JDK to do?
    If you're new to Java you should be running through the tutorials before you do anything else. Specifically you must get a good understanding of the classpath or you will be in a world of confusion.

  • JDK 1.4.1_07 / iPlanet 6.0 SP7

    Does JDK 1.4.1_07 run with iPlanet 6.0 SP7? The problem I am experiencing is a module that I am implementing is looking for a class, javax.crypto.interfaces.DHPublicKey. This class supposively is part of JDK 1.4.1 and it's in jce.jar under <JRE>/lib directory. I was wondering why iPlanet is throwing the following error out? Any ideas....
    [24/Feb/2004:11:36:03] failure ( 2436): Internal error: Unexpected error condition thrown (java.lang.NoClassDefFoundError: javax/crypto/interfaces/DHPublicKey,javax/crypto/interfaces/DHPublicKey), stack: java.lang.NoClassDefFoundError: javax/crypto/interfaces/DHPublicKey
         at com.baltimore.jpkiplus.x509.utils.TBSCertificate.fromASN1Object([DashoPro-V1.3-013000])
         at com.baltimore.jpkiplus.x509.utils.TBSCertificate.<init>([DashoPro-V1.3-013000])
         at com.baltimore.jpkiplus.x509.JCRYPTO_X509Certificate.fromASN1Object([DashoPro-V1.3-013000])
         at com.baltimore.jpkiplus.x509.JCRYPTO_X509Certificate.fromDER([DashoPro-V1.3-013000])
         at com.baltimore.jpkiplus.x509.JCRYPTO_X509Certificate.<init>([DashoPro-V1.3-013000])
         at com.baltimore.jpkiplus.x509.X509CertificateFactoryImpl.engineGenerateCertificate([DashoPro-V1.3-013000])
         at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:389)

    Hi,
    JDK 1.41_xx is supported (see the Release Notes of the iws6.0sp7)
    Did you stop and start your web-server instance in order to pick up the new 1.4.1 JRE ?
    I think only a non-1.4.1 JRE would not pick up the jce.jar in t.he /lib directory.
    Also, in Global Settings, Configure JRE/JDK make sure that the field JRE Runtime Libpath is set to blank (default).
    regards,

  • JDK versions

    I have just finished an application that was written in the JBuilder environment (installed with JDK v1.4.2)
    While it runs fine in JBuilder, when I run in from command line, I receive the exception "java.lang.NoSuchMethodError". I discovered the problem stems from my use of the "split" method of the "String" object. This method was not available until version 1.4 of JDK.
    This led me to believe that I may also have another version of JDK on my system. I did discover a set of jars in my "C:\Windows\java" folder that contained a "String" class with no "split" method.
    How can I ensure that calling the JVM from command line will use the appropriate JDK? I am calling the "java.exe" file from JBuilder JDK, and my environment variables point to the JDK bin folder. Is there something else I need to be doing?
    Jay

    Thanks for the suggestion.
    Sure enough, when checking the version it returns "1.3.1_01"; however, this is really confusing. When searching for "java.exe", I only return two entries: "C:\Programs\JBuilder\jdk1.4\bin\java.exe" and "C:\Programs\JBuilder\jdk1.4\jre\bin\java.exe". These are both in a folder labeled as JDK version 1.4, and are the files that JBuilder is using (which works correctly).
    Is it possible for a "java.exe" to use alternate jar files for its built-in Java functionality? Any other ideas?

  • JDK for containers

    Can we configure different JDKs for the available containers on my Application Server?I mean, JDK1.3.1 for web container and JDK1.4 for EJBcontainer. Is this possible?

    No. You must use the supplied JDK (1.2.2).
    There are some known (and unsupported) hacks to get iAS to use JDK 1.3. But even these hacks would not allow you to seperate the web and EJB containers. iAS (like most major appservers) optimizes servlet to EJB calls to use intra-JVM calls rather than remote calls. This improves performance dramatically, but prevents you from using different JDK's.
    If performance is unimportant, you could run two different iAS instances: one for the web container and one for the EJB container. You could then make remote calls from the web container to the EJB container. But anything other than JDK 1.2.2 would still be unsupported.

  • JDK Path - AIX 4.3 - 41sp9

    Hi,
    i tryed to configure the JDK Path but it simple dont work. (Servlets with JRE work)
    AIX JDK 1.2.2 is fully installed (usr/java-dev2/).
    Can someone give me the right settings for:
    (Global Settings/Configure JRE/JDK Paths)
    JDK Path: ?
    JDK Runtime Libpath: ?
    JDK Runtime Classpath: ?
    i tryed different combination ... which dont work.
    Regards,
    M.Becker

    Hi,
    I have tested using IBM AIX 4.3 OS version and JDK 1.3 version it's works fine for me.
    Eg:-
    (# uname -a
    AIX AIXSLASH 3 4 000C9C4D4C00)
    # java -version
    java version "1.3.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
    Classic VM (build 1.3.0, J2RE 1.3.0 IBM build ca130-20010330 (JIT enabled: jitc))
    I would request you to do below steps and check .
    Global Settings/Configure JRE/JDK Paths
    JDK JDK Path: /usr/java130
    JDK Runtime Libpath:
    JDK Runtime Classpath:
    (Note: Libpath and Classpath leave blank)
    Shut down and restart the Admin server.
    I hope this will help you, If still you face problem let me know your last 50 lines of error and access log file.
    Thanks,
    Daks.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • For-each loops

    while working in jbuilder2005 i want to use for-each loops i see following error;
    " for-each loops are not supported in -source 1.2 (try -source 1.5 to enable for-each loops) "
    i configured the jdk libraries source to jdk1.5 even then i found problem
    do any body know
    Message was edited by:
    citymodel

    What it says: Java 1.2 does not have for-each loops. You configured it to use 1.5, but you also configured the compiler to check for 1.2-code compliance. Read the JBuilder manual or help about how to find and change the setting. It's probably somewhere in the project settings.

Maybe you are looking for