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 use java 1.4 instead of java 1.5 for generics Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 132
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: 3026
    
    4

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: use java 1.4 instead of java 1.5 for generics
 
Similar Threads
output to excel
Logic Issue to While getting missing records
apache poi program reading excel numerical values issue
HAshMap to Excel file using APache POI
PrepareStatement to build query with parameters based on spreadsheet data