File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes missing Integer class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "missing Integer class" Watch "missing Integer class" New topic
Author

missing Integer class

Amrita Chaurasia
Greenhorn

Joined: Jul 04, 2009
Posts: 7
while trying to create an instance of Integer Class..the compiler says there in no such constructor
Integer i = new Integer(1);

but there is no problem with other wrapper classes..
what should i do
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You don't have a class called Integer somewhere in your classpath, do you ? One that you made yourself.


[My Blog]
All roads lead to JavaRanch
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3849

Can you post your code?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Amrita Chaurasia
Greenhorn

Joined: Jul 04, 2009
Posts: 7
oh I got the mistake..
I had my own Integer Class that existed in classpath
so it dint take java.lang.Integer class
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: missing Integer class