Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applets Working in 32-bit but not in 64-bit JRE

 
Greenhorn
Posts: 25
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day Ranchers,

I've got an applet which runs properly using an installed 32-bit JRE version 8 update 131 in either 32-bit or 64-bit Internet Explorer 11.

But, when I tried a 64-bit JRE (version 8 update 131). Applet wouldn't even load using either 32-bit or 64-big Internet Explorer 11.

I initially thought that this might be an issue with my own Applet. But I tried a demo applet from oracle and it's the same: works well with 32-bit JRE but NOT with 64-bit JRE.

Here's the demo applet for reference:
https://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/examples/dist/depltoolkit_CustomizingSplashScreen/AppletPage.html

I'm wondering if this would simply be a limitation to my applet that it really just works with 32-bit JRE. (Though I may not really need to run in 64-bit JRE technically.)

Any thoughts/comments/suggestions on this? On maybe what's the next step?

Thank you in advance.

Disclaimer:
I've learned this past years that we should be moving away from applets. But somehow, for some reasons, we find it difficult to migrate.
 
Saloon Keeper
Posts: 12128
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So is your browser configured to use the x64 JRE?
 
Marcelino Parado
Greenhorn
Posts: 25
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

So is your browser configured to use the x64 JRE?



Hmm, I tried to use the iexplore.exe from these two directories:
C:\Program Files (x86)\Internet Explorer
C:\Program Files\Internet Explorer

Or are there any configurations that I need to make?

Thanks Stephen.
 
Stephan van Hulst
Saloon Keeper
Posts: 12128
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried it out, and the problem is probably that the applet wasn't designed for a 64 bit JRE. For 32 bit applets you need a 32 bit JRE.
 
Bartender
Posts: 3323
86
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened to the "Write Once Run Anywhere" philosophy of Java?

I guess this is down to Applets no longer being properly supported and is another reason to move away from them.

@Marcelino - It may be time to look at using JNLP or some other technology altogether.
 
Marcelino Parado
Greenhorn
Posts: 25
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Stephan and Tony.

Yes, that's what bothered me too. Java having issues between 32-bit and 64-bit.

Yes, should really not be developing applets anymore moving forward.

Thanks.
 
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic