• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDK 1.4 to JDK 1.6...  RSS feed

 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

This query is a little bit of mix of everything, so posting it here. I am trying my best to explain my situation here, because its a complex problem, so starting of with the tip of the iceberg....

I am currently working on a web application which is built on JDK 1.4. I have a working EAR for the web application inside which there is a JAR of a different application which is used retrieve data from the application through EJB calls.

Now for my next upgrade I have got the JAR for the application which is compiled in JDK 1.6. But my web application is still in 1.4.

So would the new EAR compiled in Java 1.4 work (with JDK 1.6 JAR inside)?
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help guys??!!!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question isn't very clear (and you only waited two three hours: PatienceIsAVirtue).

Are you asking if something compiled under 1.4 will run under 1.6? Usually, yes.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) PatienceIsAVirtue. You really can't wait 3 hours??
2) SearchFirst. If you would have search you would have found at least several options. Just today this thread was created.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that I hurried a little. But I have to find out a solution by the end of the day! Sorry about it.

Well, I think I better put it in points....
1. I have a web application which i currently am working working on. I have a completely working EAR. It is built in JDK 1.4.
2. Inside the EAR is a JAR of a third party application, which is used to retrieve some data from the that application. The JAR is provided to me and i just have to add it into my EAR.

Now my problem is:
1. My EAR is compiled in JDK 1.4 and the JAR sent to me compiled in JDK 1.6.
2. If i add the new JAR into my application and build the new EAR in JDK1.4, will the EAR work or do i have to migrate my application to JDK 1.6?

Hope this is a bit clearer!
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somewhere I missed the part where you said you've already tried it.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the new EAR does not work. But i am yet to pin point it to the mismatch of the JDK. That's why i would like to know that would it work!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see ItDoesntWorkIsUseless.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get a blank 404 Not Found Page!
Not-Found.JPG
[Thumbnail for Not-Found.JPG]
Error Page.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the log files of Tomcat / JBoss / whatever server you're using to find the cause of the 404 error?
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes... For this issue no logs are being generated!!! It just hangs there!

The application is built on Struts and there is a Filter for the Login process. This page comes just after hitting the Filter class!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If "no logs are being generated" then (a) the logging isn't configured correctly and/or (b) the application was written poorly and provides no debugging information.

Now, I know for a fact that Struts will log copiously if logging is set to DEBUG level. If *no* logs are being generated, that leave (a).

You cannot possibly expect anybody to be able to help you with zero information to go on: how could we even *begin* to diagnose the problem(s)?!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of Java are you using to run the application? That's what matters. A jar of code compiled with JDK 1.6 won't run in a JDK 1.4 JVM; it will fail catastrophically, in fact. You don't need to do anything to change your 1.4 application, but you do need to run your web container (Tomcat, or whatever) under Java 6.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!