aspose file tools*
The moose likes Beginning Java and the fly likes MIA NumberFormat class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "MIA NumberFormat class" Watch "MIA NumberFormat class" New topic
Author

MIA NumberFormat class

forrest Carleton
Greenhorn

Joined: Apr 29, 2004
Posts: 2
My installation can not find the java.text.NumberFormat class. I included in the path: c:\j2sdk1.4.2_04\bin and defined pathclass, rebooted.
any help is appreciated.
Fc
cannot resolve symbol
symbol : class NumberFormat
location: class hInvoiceApp
------------------------------------
import javax.swing.*;
import java.lang.* ;

public class enhInvoiceApp{
public static void main(String[] args){
Antoine Waugh
Ranch Hand

Joined: Jan 24, 2004
Posts: 66
is this a compilation error?
have you used the import statement?

-twans


B.C.S.T, SCJP, Hero
Blake Minghelli
Ranch Hand

Joined: Sep 13, 2002
Posts: 331
NumberFormat is part of the java.text package which you have not imported.
Add java.text.NumberFormat or java.text.* to your imports.
BTW, you don't need to import java.lang.* as it is done implicitly for you.


Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
forrest Carleton
Greenhorn

Joined: Apr 29, 2004
Posts: 2
Your right one! I needed java.text.
Thanks,
fc
Antoine Waugh
Ranch Hand

Joined: Jan 24, 2004
Posts: 66
>>Your right one!
although i do not understand this,
your welcome
 
wood burning stoves
 
subject: MIA NumberFormat class