• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Java 1.5 and Java 1.4.2

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there
We have a server running and developed for Java 1.5. This server has client Open APIs also written in Java 1.5 of course. Now we have a customer that has Java application running on Java 1.4.2. The client's code in order to work with our server has to use our Open APIs. What's the best solution?

BTW, we support web services (for none Java clients) so maybe they should use the Web Services?

I know that at the begining of JDK 1.5 you could compile Java 1.5 code and run it on Java 1.4.2. Can it still be done?

Oren
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's still possible; check out the -source and -target switches of javac. But you won't be able to use any 1.5-specific features.
 
Oren Gross
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what happens if the server (which is Java 1.5) returns a HashMap to the client? Will the client be able to diserialize it?

Oren
 
Sheriff
Posts: 27465
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Oren Gross:
what happens if the server (which is Java 1.5) returns a HashMap to the client? Will the client be able to diserialize it?

I would expect so. Why do you ask? Did you have a problem when you tried it?
 
My pie came with a little toothpic holding up this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic