wood burning stoves*
The moose likes Beginning Java and the fly likes use java 1.4 instead of java 1.5 for generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "use java 1.4 instead of java 1.5 for generics" Watch "use java 1.4 instead of java 1.5 for generics" New topic
Author

use java 1.4 instead of java 1.5 for generics

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 230
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

Joined: Jan 28, 2003
Posts: 4167
    
  21

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.


Steve
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: use java 1.4 instead of java 1.5 for generics
 
Similar Threads
PrepareStatement to build query with parameters based on spreadsheet data
HAshMap to Excel file using APache POI
apache poi program reading excel numerical values issue
Logic Issue to While getting missing records
output to excel