File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use java 1.4 instead of java 1.5 for generics

 
sai rama krishna
Ranch Hand
Posts: 411
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a hashmap which has username and password information.



I am reading the username and password information to send it to one other method as follows.





Challenge now I have is server is running on java 1.4 not java 1.5.
I need to modify my code to remove java 1.5 Generics and use java 1.4. How Can achieve it


Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
 
Steve Luke
Bartender
Pie
Posts: 4181
21
IntelliJ IDE Java Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you need to do is called 'cross compilation.' The compiler can do this by passing the target command flag option when compiling the code. See: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html. There are some notes on that page about cross compilation you should read.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic