BC4J temporary focus problem with JDK 1.4.2

Hello all,
we have got a tricky problem with BC4J (Oracle JDeveloper 9.0.3.2)
using the JDK 1.4.2 (Sun):
There is a JFrame with a JMenuBar, containing a BC4J data panel with the controls on it.
Now if one enters a value in a control and now directy clicks on the JMenuBar, the control
gets a focusLost event but is not validated through BC4J and not set to the model.
If a commit would be called from the menue the entered data is lost !
In case of the JDK 1.3.1_02, which comes with the JDeveloper, everything works fine: after
the focusLost event, the data is validated and set to the model.
We have investigated the problem more deeper. The difference between
the 1.4 and 1.3 is, that the 1.4 creates a temporary FocusEvent and the 1.3 not.
We stepped up the stack into the Method oracle.jbo.uicli.jui.JUSVUpdateableFocusAdapter.focusLost:
the temporary focusEvent causes this method to return and to do nothing:
* Performs a setAttribute() on the control binding to save the changes made by
* the control to the attribute value.
public void focusLost(FocusEvent e)
if (e.isTemporary())
return;
JUCtrlAttrsBinding binding = (JUCtrlAttrsBinding)mAttrBinding;
I think it is a general problem with 1.4, because many things dealing with focus
have been expaned and changed.
Is this a bug or should BC4J not be used with 1.4 ?
Greetings

9.0.3.2 is not tested with JDK 1.4, so issues like this are not a surprise.
However we will test this with our current development branch (which is being tested on JDK 1.4x) and verify if the behavior is reproducible.

Similar Messages

  • Performance problems with jdk 1.5 on Linux plattform

    Performance problems with jdk 1.5 on Linux plattform
    (not tested on Windows, might be the same)
    After refactoring using the new features from java 1.5 I lost
    performance significantly:
    public Vector<unit> units;
    The new code:
    for (unit u: units) u.accumulate();
    runs more than 30% slower than the old code:
    for (int i = 0; i < units.size(); i++) units.elementAt(i).accumulate();
    I expected the opposite.
    Is there any information available that helps?

    Here's the complete benchmark code I used:package test;
    import java.text.NumberFormat;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.Vector;
    public class IterationPerformanceTest {
         private int m_size;
         public IterationPerformanceTest(int size) {
              m_size = size;
         public long getArrayForLoopDuration() {
              Integer[] testArray = new Integer[m_size];
              for (int item = 0; item < m_size; item++) {
                   testArray[item] = new Integer(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testArray[index]);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayForEachDuration() {
              Integer[] testArray = new Integer[m_size];
              for (int item = 0; item < m_size; item++) {
                   testArray[item] = new Integer(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testArray) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayListForLoopDuration() {
              ArrayList<Integer> testList = new ArrayList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testList.get(index));
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayListForEachDuration() {
              ArrayList<Integer> testList = new ArrayList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testList) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getArrayListIteratorDuration() {
              ArrayList<Integer> testList = new ArrayList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              Iterator<Integer> iterator = testList.iterator();
              while(iterator.hasNext()) {
                   builder.append(iterator.next());
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getLinkedListForLoopDuration() {
              LinkedList<Integer> testList = new LinkedList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testList.get(index));
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getLinkedListForEachDuration() {
              LinkedList<Integer> testList = new LinkedList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testList) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getLinkedListIteratorDuration() {
              LinkedList<Integer> testList = new LinkedList<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testList.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              Iterator<Integer> iterator = testList.iterator();
              while(iterator.hasNext()) {
                   builder.append(iterator.next());
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getVectorForLoopDuration() {
              Vector<Integer> testVector = new Vector<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testVector.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (int index = 0; index < m_size; index++) {
                   builder.append(testVector.get(index));
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getVectorForEachDuration() {
              Vector<Integer> testVector = new Vector<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testVector.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              for (Integer item : testVector) {
                   builder.append(item);
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
         public long getVectorIteratorDuration() {
              Vector<Integer> testVector = new Vector<Integer>();
              for (int item = 0; item < m_size; item++) {
                   testVector.add(item);
              StringBuilder builder = new StringBuilder();
              long start = System.nanoTime();
              Iterator<Integer> iterator = testVector.iterator();
              while(iterator.hasNext()) {
                   builder.append(iterator.next());
              long end = System.nanoTime();
              System.out.println(builder.length());
              return end - start;
          * @param args
         public static void main(String[] args) {
              IterationPerformanceTest test = new IterationPerformanceTest(1000000);
              System.out.println("\n\nRESULTS:");
              long arrayForLoop = test.getArrayForLoopDuration();
              long arrayForEach = test.getArrayForEachDuration();
              long arrayListForLoop = test.getArrayListForLoopDuration();
              long arrayListForEach = test.getArrayListForEachDuration();
              long arrayListIterator = test.getArrayListIteratorDuration();
    //          long linkedListForLoop = test.getLinkedListForLoopDuration();
              long linkedListForEach = test.getLinkedListForEachDuration();
              long linkedListIterator = test.getLinkedListIteratorDuration();
              long vectorForLoop = test.getVectorForLoopDuration();
              long vectorForEach = test.getVectorForEachDuration();
              long vectorIterator = test.getVectorIteratorDuration();
              System.out.println("Array      for-loop: " + getPercentage(arrayForLoop, arrayForLoop) + "% ("+getDuration(arrayForLoop)+" sec)");
              System.out.println("Array      for-each: " + getPercentage(arrayForLoop, arrayForEach) + "% ("+getDuration(arrayForEach)+" sec)");
              System.out.println("ArrayList  for-loop: " + getPercentage(arrayForLoop, arrayListForLoop) + "% ("+getDuration(arrayListForLoop)+" sec)");
              System.out.println("ArrayList  for-each: " + getPercentage(arrayForLoop, arrayListForEach) + "% ("+getDuration(arrayListForEach)+" sec)");
              System.out.println("ArrayList  iterator: " + getPercentage(arrayForLoop, arrayListIterator) + "% ("+getDuration(arrayListIterator)+" sec)");
    //          System.out.println("LinkedList for-loop: " + getPercentage(arrayForLoop, linkedListForLoop) + "% ("+getDuration(linkedListForLoop)+" sec)");
              System.out.println("LinkedList for-each: " + getPercentage(arrayForLoop, linkedListForEach) + "% ("+getDuration(linkedListForEach)+" sec)");
              System.out.println("LinkedList iterator: " + getPercentage(arrayForLoop, linkedListIterator) + "% ("+getDuration(linkedListIterator)+" sec)");
              System.out.println("Vector     for-loop: " + getPercentage(arrayForLoop, vectorForLoop) + "% ("+getDuration(vectorForLoop)+" sec)");
              System.out.println("Vector     for-each: " + getPercentage(arrayForLoop, vectorForEach) + "% ("+getDuration(vectorForEach)+" sec)");
              System.out.println("Vector     iterator: " + getPercentage(arrayForLoop, vectorIterator) + "% ("+getDuration(vectorIterator)+" sec)");
         private static NumberFormat percentageFormat = NumberFormat.getInstance();
         static {
              percentageFormat.setMinimumIntegerDigits(3);
              percentageFormat.setMaximumIntegerDigits(3);
              percentageFormat.setMinimumFractionDigits(2);
              percentageFormat.setMaximumFractionDigits(2);
         private static String getPercentage(long base, long value) {
              double result = (double) value / (double) base;
              return percentageFormat.format(result * 100.0);
         private static NumberFormat durationFormat = NumberFormat.getInstance();
         static {
              durationFormat.setMinimumIntegerDigits(1);
              durationFormat.setMaximumIntegerDigits(1);
              durationFormat.setMinimumFractionDigits(4);
              durationFormat.setMaximumFractionDigits(4);
         private static String getDuration(long nanos) {
              double result = (double)nanos / (double)1000000000;
              return durationFormat.format(result);
    }

  • Significant Computer Window Focus Problem With Verizon Access Manager 7.7.1.0 (2707e)

    With the newly released Verizon Access Manager 7.7.1.0 (2707e) there is a significant computer focus problem with it.
    What I mean by this is that if I am using ANY application on my computer with the Verizon Access Manager minimized to the Windows System Tray, something will go on with the Verizon Access Manager and it steals the window focus - I am unable to work in the other application unless I click on the application to use it again.  
    An example of this would be my typing to post a message in this forum.  Something occurs in the Verizon Access Manager and my typing is rendered useless unless I click with my mouse on the browser window to be able to use it again.
    I'm highly suspecting whenever networks are coming and going in the Access Manager is when the problem occurs.
     This problem did not exist in the previous version of the Access Manager I was using.
    This is extremely annoying - please issue a fix for this ASAP!

    I have found by not minimzing the Verizon Access Manager 7.7.1.0 (2707e) the focus problem does not occur - it appears to be a problem when the app is minimzed to the system tray.

  • Focus Problem with JTree and Menus

    Hi all,
    I have a problem with focus when editing a JTree and selecting a menu. The problem occurs when the user single clicks on a node, invoking the countdown to edit. If the user quickly clicks on a menu item, the focus will go to the menu item, but then when the countdown finishes, the node now has keyboard focus.
    Below is code to reproduce the problem. Click on the node, hover for a little bit, then quickly click on the menu item.
    How would I go about fixing the problem? Thanks!
    import java.awt.Container;
    import java.awt.GridLayout;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    public class MyTree extends JTree {
         public MyTree(DefaultTreeModel treemodel) {
              setModel(treemodel);
              setRootVisible(true);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              JMenuBar bar = new JMenuBar();
              JMenu menu = new JMenu("Test");
              JMenuItem item = new JMenuItem("Item");
              menu.add(item);
              bar.add(menu);
              frame.setJMenuBar(bar);
              Container contentPane = frame.getContentPane();
              contentPane.setLayout(new GridLayout(1, 2));
              DefaultMutableTreeNode root1 = new DefaultMutableTreeNode("Root");
              root1.add(new DefaultMutableTreeNode("Root2"));
              DefaultTreeModel model = new DefaultTreeModel(root1);
              MyTree tree1 = new MyTree(model);
              tree1.setEditable(true);
              tree1.setCellEditor(
                   new ComponentTreeCellEditor(
                        tree1,
                        new ComponentTreeCellRenderer()));
              tree1.setRowHeight(0);
              contentPane.add(tree1);
              frame.pack();
              frame.show();
    import java.awt.FlowLayout;
    import java.util.EventObject;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultTreeCellEditor;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeCellEditor;
    import javax.swing.tree.TreeCellRenderer;
    public class ComponentTreeCellEditor
         extends DefaultTreeCellEditor
         implements TreeCellEditor {
         private String m_oldValue;
         private TreeCellRenderer m_renderer = null;
         private DefaultTreeModel m_model = null;
         private JPanel m_display = null;
         private JTextField m_field = null;
         private JTree m_tree = null;
         public ComponentTreeCellEditor(
              JTree tree,
              DefaultTreeCellRenderer renderer) {
              super(tree, renderer);
              m_renderer = renderer;
              m_model = (DefaultTreeModel) tree.getModel();
              m_tree = tree;
              m_display = new JPanel(new FlowLayout(FlowLayout.LEFT));
              m_field = new JTextField();
              m_display.add(new JLabel("My Label "));
              m_display.add(m_field);
         public java.awt.Component getTreeCellEditorComponent(
              JTree tree,
              Object value,
              boolean isSelected,
              boolean expanded,
              boolean leaf,
              int row) {
              m_field.setText(value.toString());
              return m_display;
         public Object getCellEditorValue() {
              return m_field.getText();
          * The edited cell should always be selected.
          * @param anEvent the event that fired this function.
          * @return true, always.
         public boolean shouldSelectCell(EventObject anEvent) {
              return true;
          * Only edit immediately if the event is null.
          * @param event the event being studied
          * @return true if event is null, false otherwise.
         protected boolean canEditImmediately(EventObject event) {
              return (event == null);
    }

    You can provide a cell renderer to the JTree to paint the checkBox.
    The following code checks or unchecks the box with each click also:
    _tree.setCellRenderer(new DefaultTreeCellRenderer()
      private JCheckBox checkBox = null;
      public Component getTreeCellRendererComponent(JTree tree,
                                                    Object value,
                                                    boolean selected,
                                                    boolean expanded,
                                                    boolean leaf,
                                                    int row,
                                                    boolean hasFocus)
        // Each node will be drawn as a check box
        if (checkBox == null)
          checkBox  = new JCheckBox();
          checkBox .setBackground(tree.getBackground());
        DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;
        checkBox.setText(node.getUserObject().toString());
        checkBox.setSelected(selected);
        return checkBox;
    });

  • Memory problem with jdk/jre 1.1.8

    My name is BERGMANN Yannick.
    I'm working for IRM in Li?ge and we developped an application (user interface for an industrial measurement system) in Java (JDK/JRE version : 1.1.8).
    We have a big memory problem with this application :
    - This user interface is running on a WINDOWS NT PC with 128MB.
    - This is the command to lanch our application :
    C:\Program Files\JavaSoft\JRE\1.1\bin\jrew.exe" -ms32m -mx32m -cp "\Program Files\HMI\HMI.zip;\Velocis\Add_On\Jdbc\raima.jar;\Program Files\Swing-1.1.1\swingall.jar" be.irm.hmi.kernel.HMI -t15 -d"Velocis rdstcp" -newdb -mf1m -mr20
    - When our application is running, everything seems to be OK in memory for it. The garbage collector seems to work properly and our application has always at least 5MB free memory (We use the java instruction "Runtime.getRuntime().freeMemory()" to know this).
    - But when we look in the "Windows NT task manager" for the "jrew" application, the memory increases ALWAYS.
    - After 5 days our application is completely frozen and blocked ...???
    - here is a memory map of our Windows NT PC :
         "jre.exe"     "commit total"     "commit limit"     "commit peak"     "physical total"     "physical available"     "physical file cache"     
    Monday     92264     109256     194944     109424     130484     19492     6216     
    Thuesday     106196     123072     194944     123348     130484     6072     5840     
    Wednesday     110836     132288     194944     132416     130484     4408     5140     
    Thursday     108200     144980     194944     145140     130484     4888     5148     
    Friday     109440     158319     194944     161334     130484     4911     4992     
    Monday     111600     209060     228548     209148     130484     5184     3484     
    Have you any idea of what is happening with "jrew" in memory ?
    We have had this problem for six month and we are totaly out of idea.
    If you can give us any idea, we'll appreciate a lot.
    Thanks in advance,
    BERGMANN Yannick
    IRM SA - Software Engineer
    Tel. (32)4/239.90.10
    Tel. (32)4/239.90.74 (direct)
    Fax (32)4/263.40.97
    E-mail [email protected]

    We had a memory problem with a swing applet in our company. The major reason for this was that we added new components in a JTree and removed them later again, and the components we removed were never garbage collected. This was because with these components we added different listeners, and we didn't remove the listeners after we didn't need the components anymore. After we corrected this, the components where garbage collected.
    Perhaps it's a similar problem you have, or I have no idea. Check that you remove actionlisteners, mouselisteners etc from components you want to be garbage collected.
    You could also test your application with OptimizeIt to see what objects you create and how many you get of them over time: http://www.vmgear.com

  • Hangs up (problem with jdk?)

    Hi,
    we are developing an application using the Java API with Ifs 1.1.9 on Sun Solaris, Oracle 8.1.7.
    We parse files and an invoke perform some actions with the parsed data.
    Java Api and Parsing workd fine, until I encountered the following problem:
    In a certain function the action hangs up,
    meaning the function does not come to an end, after all I got a time-out from the ftp session.
    By debugging method I could identify that the hang up occurs within in the following step:
    Hashset hs = new HashSet();
    I changed the code to
    Vector v = new Vector();
    and got the same problem.
    Meaning that there might be a problem with the JDK-Library-Calls.
    When I call the same funtion with same argument from a JSP-Session, everything works fine.
    Is there anything known about that behavior?
    I have compiled the java-files on windows NT using an JDK1.3 installation and put it to the custum_classes directory on the sun machine.
    Might it be that I have to use jdk1.2.2.
    (for compilation?, for run-time on sun?)
    Help appreciated,
    Thomas

    Thanks for reply
    As suggested by you, i tried the 1.4.2_08 version, but i am facing the same kind of problems with this version also

  • SQL Developer 1.5 having problems with JDK 6 Update 7

    I tried to open a table using SQL Developer 1.5 but connection timed out. when using SQL developer 1.2 i don't get any problems opening it.
    i have JDK 6 update 7 installed.
    the only problem with SQL Developer 1.2 is that i get a jdbc in the error log
    how do i get to fix the SQL Developer 1.5?

    --The sql developer is connected using tnsnames.ora, with read only access
    --i'm using windows XP SP3
    --I have jdk 6 update 7 installed
    --The tables that I can't View is listed under Other Users.
    --I thought it was just because i have no permission to view it, but when i used the old sql developer 1.2, it displayed it properly.
    --The reason i want to use SQL developer 1.5 is because i don't want to see any JDBC error on log messages, which happens on the sql developer 1.2
    --i dont get to see any errors, sql developer suddenly can't view and lost the connection. it says connection is currently busy. and suddenly stops responding, the only way i can get it working again is by using the taskbar, when it close the program it gets java is not responding..
    --also when i try running sqlcli.bat i get error with it.. is it because of my java?
    --What more details do you need?
    Edited by: user10285639 on Oct 15, 2008 4:47 PM
    Edited by: user10285639 on Oct 15, 2008 4:53 PM

  • EP 7.0 Install Problem with JDK path

    I’m having a problem with installing EP 7.0 on Solaris. We had Solaris 8 and then performed a fresh install of Solaris 10. Solaris 10 had Java 1.5. When performing the EP install at the step to supply the JDK directory message stating 1.5.0 was not supported. I had to install JDK from 1.4. family. I stopped the install and UNIX group installed 1.4.2_13.  I now receive message that directory /usr/bin is not a valid JDK directory:the java executable is missing. The UNIX team told me this is the valid directory path. I am not sure what the exact problem is. I stopped the install and provided the environment variable JAVA_HOME=/usr/bin and the same problem. Has anyone come across this problem maybe my version is not correct. Any ideas on what could be wrong are greatly appreciated.
    Thanks
    Martin

    Hi Martin,
    why are you pointing JAVA_HOME variable to /usr/bin.
    JAVA_HOME must always point to the directory where JAVA installation resides.So for you it might be /j2sdk1.4.2_13 if the JAVA installation directory is j2sdk1.4.2_13.
    If this does not solve ur problem.
    Please let me know the exact step where u r facing with the problem.
    Hope it helps
    Cheers,
    Santhosh

  • Focus problems with Canon 1D Mark III

    I have been having problems with my 1D Mark III, it take an unusually long time to focus.  The problem is especially prevalent indoors.  I am using a Canon 24 to 70 IS lens. 

    I have had the camera since it first came out, however I also aready had a Canon 20D at the time.  I seemed to do better with the 20D.  I recently bought a Canon 7D and it focuses much faster.  I am very displeased with the 1D Mark III. 
    I am an experienced photographer, photography is a passion I have studied and pursued.  The 20D was my first DSLR, prior to that I shot with a Nikon 2020 film camera. 
    The problem with the 1D Mark III is that it takes an unusually long time to autofocus.  Due to this, I usually relied on the 20D.  When I bought the 7D I retired the 20D and paired the new camera with he 1D for gigs (weddings, parties etc.).  It is frustrating to attempt shots with the camera and have subjects wait for me to shoot.

  • A problem with jdk 1.6

    when I compile my java files, class file are produced after debbug.
    but when i try to run my program (my class with main method ), I get this error message "error on thread main ...." .
    so what can I do to run my classes?thanks for the help.
    PS: I use command line on windows xp.

    Hi,
    I have such problem too.
    With JRE under Windows.
    Applets are executed properly.
    But programmes for interpriter java.com
    are compiled without errors but
    are not work under JRE 1.6.
    After:
    java.com programme.class,
    I get error message:
    "Exception in thread "main" java.lang.NoClassDefFoundError: HelloJava/class".
    for any programmes. Even for class with empty main function.
    Second problem with compiler for Windows:
    When source file programme.java
    in UTF-8, the first symbol in file is spetial for unicode
    files in Windows.
    The compiler writes an error message and stops.

  • Problem with JDK 6 update 5 - Error Message says cant find java compiler

    Hi i am a complete beginner to programming and i am having trouble with the latest java development kit. jdk 6 update 5.
    The problem is i have set the path and the program cant find my compiler.
    I have installed the latest java development kit 6 update 5 on my windows xp machine.
    I have created a simple program as shown below:
    class Hello
         public static void main(String[] args)
                   System.out.println("Hello from java");
    saved the file to my desktop as Hello.java
    I have set the path variable like so:
    Go to control panel then click system icon then click advanced tab then click environmental variables.
    Now in system variables the path is shown as this - %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    I then add this to the end;C:\Program Files\Java\jdk1.6.0_05\bin
    This is the location to the things like compiler, applet viewer etc.
    No in the command prompt i type javac Hello.java and i get this error message:
    C:\> javac Hello.java
    javac: file not found: Hello.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    The jdk is installed properly im sure but it can find my compiler.
    What mistake have i made in setting the path because im guessing that is related to the problem?
    Could someone out there please help me?
    Thank You
    Rafeeq

    saved the file to my desktop as Hello.java
    C:\> javac Hello.javaC:\ is not the desktop!
    The jdk is installed properly im sure but it can find my compiler.Of course it can! It just can't find the file you are trying to compile, because that's not in the root directory.
    I suggest you make a directory C:\java and save your source file there rather than on the desktop. In the command prompt, enter cd \java to make it the current working directory and then enter javac Hello.java.
    @Pravin: The question is about compiling, not running. CLASSPATH has nothing to do with this problem.
    db

  • [Solved] gsimplecal auto focus problem with openbox+tint2

    I'm using these apps described above.
    Well, after I click the clock in tint2, the gsimplecal shows, but, it won't get focus automatically, which annoyed me a lot.
    I've already set <focusNew>yes</focusNew> in my openbox/rc.xml.
    Also, I noticed that even started from terminal, the gsimplecal window won't get the focus.
    Is this a bug (or f**king feature) of gsimplecal? I installed it yesterday by yaourt -S gsimplecal-git.
    Thank you.
    This problem is solved by adding a per-application setting to openbox, as described in the gsimplecal wiki.
    Adding the <focus>yes</focus> is enough, it doesn't need that much.
    Last edited by XeCycle (2011-04-01 10:43:05)

    This seems to be related to the skip_taskbar window hint (set to true by default), as of gsimplecal v0.6 you can override it with the following in your config:
    mainwindow_skip_taskbar = 0

  • Problems with JDK and NetBeans

    Hi, I've just started to learn java and I'm having some problems to compile projects. I installed JDK 1.5.0 (with NetBeans 4.0 beta 2), but when I try to compile any program (including the sample ones) I get the following error message:
    C:\Documents and Settings\F�bio\JavaApplication2\nbproject\build-impl.xml:34: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    Anyone knows what might be happening?
    By the way, I've already tried to reinstall the whole package (removing everything first), but it didn't help. Also, before installing this version I was using JDK 1.4.2 just fine, but now none will work .
    Thanks in advance

    I'll try that!
    By the way, I tried commenting out that line in the xml file and it worked! Still I have to do this to every new project I create, but it's a work-around =D
    Thanks for your help

  • FocusEvent Problems with JDK 1.4.1

    I have a problem in my focus event.
    Under JDK 1.3 it runs under JDK 1.4.1_01 gives it problems.
    Here my method
    void jTextField1_focusLost(FocusEvent e)
    if( jTextField1.getText().equals(""))
    jTextField1.requestFocus();
    javax.swing.JOptionPane.showMessageDialog(null,"","Test",javax.swing.JOptionPane.OK_OPTION);
    else
    The window hangs.
    I think it is a bug in the JDK.
    I do not find a solution.
    Somebody can help me.

    First you set focus on the JTextField, then you show a dialog.
    This will not work the way you intend.
    Turn the order of the statements around and try again.
    Also, this is not the recommended way to validate input.
    Set an InputVerifier in your text field. That way the field cannot looses focus until the field is valid.

  • Problems with jdk 1.4.2_03

    Hi, I know that this question has been made many times but I can't get solve my problem.
    I have jdk 1.4.2_03 and I'm using IE 6
    I have been reading "Getting started" tutorial and I can't see the applet , the java console sends a lot of errors:
    java.lang.NoClassDefFoundError: ParseException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I configure:
    classpath and path.
    tools/internet options/advanced jvm and java(sun)
    java plug-in it's IE checked.
    All of them are correct.
    What can I do ??
    Please help meeeeee ......... : (

    Hi, I know that this question has been made many times
    but I can't get solve my problem.
    I have jdk 1.4.2_03 and I'm using IE 6
    All of them are correct.
    What can I do ??Maybe you could give some more information: which applet, did it compile (javac) without errors, did you put it in the right directory ?
    Mylene

Maybe you are looking for

  • ABAP to WebDynpro Conversion in SRM 7

    Hi All,         We are upgrading SRM 5 to 7.ITS which is available in SRM 5 is not available in SRM7.so do we need to convert ABAP objects to Webdynpro components or they will be automatically converted as part of the upgrade. with regards, Krish.

  • Attachment icons not showing up in sent mail...

    This is strange...running all latest software. When I sometimes go back to view a sent message to confirm that I sent a particular file to someone, the email appears as though it sent just fine and is in the sent mail folder. However, there are no lo

  • HT201272 Need Help

    Hello there,  I bought this app at August 25th,2013.  I tried couple days, but it couldn't work on my Mac.  I wonder if I can have a refund for this App. I don't want an useless app for my Mac.  The receipt  No. is  216059016717.  Thank you!

  • Slow memory card raw import speed (~20MB/s with USB3.0)?

    Hi all, For a long time now, I have been experiencing painfully slow (copy) import speed from memory cards to Lightroom. For example, importing a fast CF card full of Canon 1D mark4 raw (cr2) photos yields a raw transfer speed of about 18 MB/s . This

  • MeetingPlace Express Remote Party Video

    Hi there, is it able to prevent users...better to say remote parties....from receiving video flow?? I want to allow only group of premium users to receive a video flow. But other users must be only "audio-listeners". Do i have such capabilities in Me