To cut the story short, here are the steps that solved the problem:
1) Open the build. xml file @ DatabaseSchema>Resources>build.xml.
2) Replace the script of the populateImages target with the following:
<target name="populateImages" depends="compileImagesApp">
<java classname="oracle.fodemo.share.imageloader.LoadImages" fork="true" failonerror="true" >
<classpath refid="schema.classpath"/>
<classpath refid="oracle.jdbc.path"/>
<classpath>
<pathelement location="classes/"/>
</classpath>
<arg value="${jdbc.url}"/>
<arg value="${db.demoUser}"/>
<arg value="${db.demoUser.password}"/>
<arg value="${imageHome}"/>
<jvmarg value="-Duser.timezone=GMT"/>
</java>
</target>
3) Open the ImageLoaderServiceAMImpl class @ DatabaseSchema>ApplicationSources>oracle.fodemo.share>imageloader>ImageLoaderServiceAMImpl
4) Look for something like the following code:
imagesUrl = getClass().getClassLoader().getResource(imageDirectory + subDirectory); // imagesUrl = new URL("file:///C:\\JDeveloper\\tutorial\\FusionOrderDemo_R1\\Infrastructure\\DBSchema\\Images\\thumbnails\\");
5) Comment this code: imagesUrl = getClass().getClassLoader().getResource(imageDirectory + subDirectory);
6) Uncomment this code: // imagesUrl = new URL("file:///C:\\JDeveloper\\tutorial\\FusionOrderDemo_R1\\Infrastructure\\DBSchema\\Images\\thumbnails\\");
7) Replace the above directory "C:\\JDeveloper\\tutorial" with the absolute address of your directory containing the FusionOrderDemo_R1 folder.
8) Re-run the build.xml file of the MasterBuildScript project.
Tags: FusionOrderDemo_R1, JDeveloper, 11g, Fusion Order Demo

Hi Rommel,
ReplyDeleteI ran into the same problem. Your solution seems to be a bit complicated; what you should do is: go to Project Properties->Ant->Process and put -Duser.timezone=(your time zone without braces or quotes) in the Java Options next to -Djava.security.policy=java.policy. That's where jDeveloper reads the Java options when it runs Ant not in the Run/Debug/Profile.
Cheers,
Adel
Wow! This is good to know.
ReplyDeleteThanks,
Pino