Вы находитесь на странице: 1из 2

12/11/2014

JavaplugininsteadofJinitiatoron64bitWindows|JustAnotherDayofAppsDBA'sLife

JavaplugininsteadofJinitiatoron64bitWindows
November13,2008

MarisElsins

Gotocomments

Leaveacomment

JustafewdaysagoIstartedusingWindowsVistax64onmyPCandtodayIfoundthatthereareserious
problemsrunningeBSformsusingJinitiatoronthisOS.InstallationofJinitiator1.8.1.xfailswith
Unsupported16BitApplicationerror.

Unsupported16BitApplication
TheinstallationofJinitiator1.3.1.xcompletesnormally,butInternetExplorercrasheswhenItrytoopen
eBSforms.Quickgooglingdidntgivemethesolutionfortheseproblems,soIdecidedtotryforcing
browsersusingSunJavaplugintoopeneBSforms(Itshouldbepossibleasitsthewayhowformsopenon
Linuxworkstations).Ittooksometime,butIfoundaway.
Myideawastoletthepopuppagethatdeterminesthewaytoruntheformsappletthinkweareon
Linux,meaning,therewillbenoJinitiator,butSunJavapluginhastobeusedinstead,andthisishowit
worked:
1.Checkthevalueofs_sun_plugin_verparameterinthecontextfileofOracleeBusinessSuite
environmentyouwanttorunformsfor.
inMycaseitwas1.4.2_11
2.DownloadtheneededJREversion(1.4.2_11inthiscase)
fromhttp://java.sun.com(http://java.sun.com/products/archive/j2se/1.4.2_11/index.html,choose
DownloadJ2RE,platformWindows,downloadfilej2re1_4_2_11windowsi586p.exe)andinstall
it.Illrefertoinstallationdirectorylaterusing<j2re142_11>.
3.InstallFirefox2.0.0.18todirectorycontainingversionnumberofJRE,e.g.MozillaFirefox
1.4.2_11(incaseyoullneedtohaveanotherFirefoxsetupforadifferentversionofjavaplugin).
Installationcanbefoundonfirefox.com.Itriedtousetheversion3.0.3butitcrashedduringloadingof
javaplugin,soItookapreviousmajorrelease.
4.Runfirefox.exefromthedirectoryyouinstalledthebrowser(<MozillaFirefox1.4.2_11>).Enter
about:configintheaddressbarandconfigurethefollowingparameters:
1.Createanewparameterwithnamegeneral.useragent.overrideandvalueMozilla/5.0
(X11ULinuxi686enUSrv:1.8.0.12)Gecko/20070718RedHat/1.5.0.120.3.el4
Firefox/1.5.0.12
Thiswillmakebrowsersaytoallthewebpages:Hello,Imfirefox1.5.0runningonLinux,andthat
willallowusavoidtheinitiationofJinitiator.
2.Changevalueofparameterplugin.scan.SunJREtovalue9.9
FirefoxhassomemechanismofcheckingwhatsthelatestJavaversioninstalledonthesystem.The
valuewearesettingmeansthatfirefoxwilltrytofindjavaversionsequalorgraterto9.9,Inaother
wordswearedisablingthisfeaturebecause,itwouldmakefirefoxuseanynewerversionthan
1.4.2_11ifsuchwasintalled.
5.Copyfiles<java1.4.2_11>\jre\bin\NP*.dllto<MozillaFirefox1.4.2_11>\plugins
6.Closeallfirefoxbrowsersincludinganyotherversionsyoumayhave.Startthefirefoxby
data:text/htmlcharset=utf8,%3Ch2%20style%3D%22margin%3A%2010px%200px%200px%3B%20padding%3A%200px%205px%203px%3B%20fontwe

1/2

12/11/2014

JavaplugininsteadofJinitiatoron64bitWindows|JustAnotherDayofAppsDBA'sLife

running<MozillaFirefox1.4.2_11>\firefox.exeandchecktheversionofjavapluginthatwasfound
bythebrowserbyenteringabout:pluginsintheaddressbar.ThereshouldbeoneJavaplugin
sectionforeachNP*.dllfileyoucopiedtofirefoxpluginsdirectory.
7.LogontoyoureBusinessSuiteenvironmentandtryrunningformsandkeepyourfingerscrossed!
ThegoodsideofthissetupisthatitallowsrunningeBSformsof64bitWindows(ItriedVista,butIguess
thesamewouldworkonXPaswell)anddoesnotpreventusfromhavingnewerjavaversionsonthesame
machine.
Thebadsidewehavetouseseveralinstallationsoffirefoxeachforadifferentpurposeandthesettings
ofplugin.scan.SunJRE=9.9andalikeareglobalacrossofallfirefoxintallationsonthemachine,soit
meansifyouhaveanotherbrowserinstallationforlatestJRE,youhavetocopytheNP*.dlltothefirefox
pluginsdirectoryeachtimeyouupgradetheJRE.
IadmitIdidnttestthisprocesstomuch,soIllbegladifyoudroppedmeacoupleoflinesincaseyouspot
anymistakes,sideeffectsorpossibleimprovements!
Heresalittleproofthatitworks

JavaplugininsteadofJinitiator

data:text/htmlcharset=utf8,%3Ch2%20style%3D%22margin%3A%2010px%200px%200px%3B%20padding%3A%200px%205px%203px%3B%20fontwe

2/2

Вам также может понравиться