Archive

Posts Tagged ‘JInitiator’

The Oracle JInitiator refresh issue.

2011-12-28 2 comments

Applications (such as Micros Opera) created for OAS (Oracle Application Server) often use also Oracle JInitiator (a JVM made and distributed by Oracle, it allows a web enabled Oracle Forms client application to be run inside a web browser).
While there were no problems with Windows XP, there seems to be an issue on Windows 7 running the Intel Core i3 and Core i5 processors where the JInitiator will load, but it won’t refresh or repaint its windows. In my case, when I resized the window or double clicked the title bar, it would repaint the screen, refreshing the content in the window. However, I would have to do that step every time I wanted something to happen in the window.
To make a long story short, the problem is with the new Intel HD graphics with dynamic frequency technology and I know two solutions.

Solution 1.
You basically have to go into the power savings for Windows 7, edit the power plan and set the Intel Graphics to “Maximum Performance” which turns off the Dynamic Frequency.
If you have a computer that has it’s own power saving software (or Intel graphics software) you have to make a little research on your own. If you are using the stock Windows 7 power settings, you can do the following:
– click Start
– in the search box, type Power Options and hit enter
– chances are, the radio dot is on the Balanced (recommended) settin, click on the Change plan settings link to the right for whatever plan is selected
– click the Change advanced power settings link
– in the advanced options, scroll down until you find Intel Graphics and click on the + next to it
– you should see two options below the Intel Graphics: Plugged In and On Battery, set both of these to Maximum Performance
apply and OK, then you can close everything else down.

Solution 2.
The solution is to disable DirectDraw for jInitiator. To do this, go to Control Panel, jInitiator and then in Basic label add

-Dsun.java2d.noddraw=true

to Java Runtime Parameters field.
Alternatively, you may edit jInitiator properties file located somewhere in C:\Users\USERNAME\.jinit folder so it has this line in it (notice ‘=’ character is escaped):

javaplugin.jre.params=-Dsun.java2d.noddraw\=true

Good luck 🙂

Advertisements
Categories: MS Windows, OS Tags: , , ,