LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   The import java.util is never used (https://www.linuxquestions.org/questions/linux-newbie-8/the-import-java-util-is-never-used-731087/)

farhan.azam 06-06-2009 04:47 AM

The import java.util is never used
 
Hi,

I have installed JAVA 1.4.2_04, but gettting below error at the time of compiling through javac. Please suggest.


[oracle@appserver ~]$ javac asmactivation.java
----------
1. WARNING in asmactivation.java (at line 4)
import java.util.*;
^^^^^^^^^
The import java.util is never used
----------
1 problem (1 warning)
[oracle@appserver ~]$

thnx...farhan

jdkaye 06-06-2009 04:49 AM

Quote:

Originally Posted by farhan.azam (Post 3565048)
Hi,

I have installed JAVA 1.4.2_04, but gettting below error at the time of compiling through javac. Please suggest.


[oracle@appserver ~]$ javac asmactivation.java
----------
1. WARNING in asmactivation.java (at line 4)
import java.util.*;
^^^^^^^^^
The import java.util is never used
----------
1 problem (1 warning)
[oracle@appserver ~]$

thnx...farhan

It doesn't look like an error to me. It looks like a warning. Does the compilation otherwise succeed?
cheers,
jdk

farhan.azam 06-06-2009 05:04 AM

Quote:

Originally Posted by jdkaye (Post 3565050)
It doesn't look like an error to me. It looks like a warning. Does the compilation otherwise succeed?
cheers,
jdk


Hi,

Copilation isn't working.

Please suggest.

thnx...farhan

jdkaye 06-06-2009 07:21 AM

Quote:

Originally Posted by farhan.azam (Post 3565063)
Hi,

Co[m]pilation isn't working.

Please suggest.

thnx...farhan

Can you explain? What do you mean it isn't working? Are the error messages? You need to give more information if you expect help.
cheers,
jdk

AlucardZero 06-06-2009 07:52 AM

That's a warning, not an error, and unless you configured it to die on warnings then compilation should still succeed. Is that the only error? You can get rid of it by merely commenting out line 4.


All times are GMT -5. The time now is 12:12 PM.