Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2008, 11:42 PM
Member
 
Join Date: Feb 2008
Posts: 17
new_2_java is on a distinguished road
The type Class is not generic; it cannot be parameterized with arguments <T>
Hi all,

I have set up a project in Eclipse 3.1 and am using java 5.0 compiler.

Here's my folder structure in Eclipse


Code:
DFS\RemoteClient\TestClient.java
DFS is the project in Eclipse


and this is how it looks my java class

Code:
package RemoteClient; import java.util.*; // other imports public class TestClient { public static void main(String [] args) throws ServiceInvocationException { // business logic here .... } }
So, basically, my java class is just a simple class with a main function.

Now when I build my project, using Project->Clean...

Then I get this as an error at the very first line where i specify the package

This is the error:

Code:
The type Class is not generic; it cannot be parameterized with arguments <T>
Can someone please comment on this, as what's this error and why am I getting this.

Thanks.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-17-2008, 12:06 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,022
hardwired is on a distinguished road
The type Class is not generic; it cannot be parameterized with arguments <T>
It may be that your ide is using a version of java (earlier than j2se 1.5 in which generics was added to the language) which does not support generics. You can try removing the generic type parameters.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A generic interface example Java Tip java.lang 0 04-17-2008 08:42 PM
A simple generic class Java Tip java.lang 0 04-17-2008 08:41 PM
Will struts work for parameterized message in internationlization felixtfelix JavaServer Pages (JSP) and JSTL 0 04-04-2008 02:32 PM
Generic Hashtables ShoeNinja New To Java 0 12-04-2007 11:43 PM
Creating object of Type Object class venkatv New To Java 3 07-17-2007 04:33 PM


All times are GMT +3. The time now is 10:20 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org