View Single Post
  #1 (permalink)  
Old May 27th, 2008
uchelong uchelong is offline
Devotee
 
Join Date: May 8th, 2008
Posts: 23
uchelong is flying high
Default error from building

[javac] Compiling 4 source files to /home/longta/workspace/SPANphex/output/classes

[javac] ----------
[javac] 1. ERROR in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java (at line 56)
[javac] import sun.swing.UIAction;
[javac] ^^^^^^^^^
[javac] The import sun.swing cannot be resolved
[javac] ----------
[javac] 2. WARNING in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java (at line 67)
[javac] public class JXTree extends JTree {
[javac] ^^^^^^
[javac] The serializable class JXTree does not declare a static final serialVersionUID field of type long
[javac] ----------
[javac] 3. WARNING in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java
[javac] (at line 70)
[javac] private final static Class[] methodSignature = new Class[] {Object.class};
[javac] ^^^^^
[javac] Class is a raw type. References to generic type Class<T> should be parameterized
[javac] ----------
[javac] 4. WARNING in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java (at line 125)
[javac] public JXTree(Vector value) {
[javac] ^^^^^^
[javac] Vector is a raw type. References to generic type Vector<T> should be parameterized
[javac] ----------
[javac] 5. WARNING in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java (at line 141)
[javac] public JXTree(Hashtable value) {
[javac] ^^^^^^^^^
[javac] Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
[javac] ----------
[javac] 6. ERROR in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java
[javac] (at line 261)
[javac] map.put("expand-all", new Actions("expand-all"));
[javac] ^^^
[javac] The method put(Object, Action) in the type ActionMap is not applicable for the arguments (String, JXTree.Actions)
[javac] ----------
[javac] 7. ERROR in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java (at line 262)
[javac] map.put("collapse-all", new Actions("collapse-all"));
[javac] ^^^
[javac] The method put(Object, Action) in the type ActionMap is not applicable for the arguments (String, JXTree.Actions)
[javac] ----------
[javac] 8. ERROR in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java
[javac] (at line 304)
[javac] private class Actions extends UIAction {
[javac] ^^^^^^^^
[javac] UIAction cannot be resolved to a type
[javac] ----------
[javac] 9. ERROR in /home/longta/workspace/SPANphex/src/main/java/org/jdesktop/swingx/JXTree.java
[javac] (at line 306)
[javac] super(name);
[javac] ^^^^^^^^^^^^
[javac] The constructor Object(String) is undefined
[javac] ----------


I built it on a linux of ubuntu. What should I do for it?
Reply With Quote