Create/remove instances of symbols with Youtube

Hello

I've searched high and low and have not been able to reach a solution to this, so I hope that the community can help.  I have a single file that has a video button to show and hide a video button. When the user clicks on the video display button, I would like to an instance of the video symbol should be created which shows a youtube video.  When the user clicks on the video button hide I want the instance to remove.  When the user clicks on the button display once again to create a new instance with the video youtube again.

I'm trying to find a way to make the video refresh/reload when it appears on the screen, currently when I show/hide the video symbol, the film continues to play in the background.

* Note * When I change "newVideo" of video in youtube embed code the video is displayed when you click the button, and another appears below it when it locks again, but when I remove the symbol 'video', he does not reappear when I click on the button display.

Here is the code that I placed in each button:

See the video:

newVideo var = sym.createChildSymbol ("video", "Stage");

newVideo.getSymbolElement (.css({))

'position': 'absolute ',.

'left': 30,.

'top': 48

});

code to embed youtube in symbol

YouTube var = $("< iframe/>");

SYM.$("newVideo"). Append (YouTube);

YouTube.attr ('type', ' text/html "");

YouTube.attr ('width', ' 640');

YouTube.attr ('height', ' 360');

youtube.attr ('src', 'https://www.youtube.com/embed/MyFv6UKsW70?rel=0');

YouTube.attr ("frameborder', '1'");

YouTube.attr ('allowfullscreen', ' 0');

Hide videos:

sym.getSymbol("newVideo").deleteSymbol ();

Here is a link to my zip of the project:

http://www.capitalpress.biz/html5ads/YouTube/CreateDeleteYoutube.zip

Thank you very much for your help!

Brandon

I figured out how to reset the video from Youtube to go underground with the response of Heathrowe and FigFrance contribution to the thread found here:

https://forums.Adobe.com/message/4979969#4979969

It is a more elegant solution than the deletion and recreation of the container every time. The secret has been adding. empty() for my video container.  Here is my button code works:


See the video:

code to embed youtube in symbol

YouTube var = $("");

SYM.$("video"). Empty(). Append (YouTube);

YouTube.attr ('type', ' text/html "");

YouTube.attr ('width', ' 640');

YouTube.attr ('height', ' 360');

YouTube.attr ('src', 'https://www.youtube.com/embed/MyFv6UKsW70?rel=0');

YouTube.attr ("frameborder', '1'");

YouTube.attr ('allowfullscreen', ' 0');

Display an item

SYM.$("video"). Show();

Hide videos:

SYM.$("video"). Empty();

Hide an element

SYM.$("video"). Hide();

Brandon

Tags: Edge Animate

Similar Questions

  • Creating instances of symbols with names of single instance in Actionscript 3

    Hey

    I was wondering if it is possible to create a large number (say 100) instances of symbols where each of the various bodies had its own unique name for the instance.  The names beeing something like ball1, ball2, ball3, etc...

    Normally I just create all these and manually give them their name, so a solution to this would be throw me a lot of time.

    Thank you

    Here is a very simple example that should help you get started:

    --------

    var howMany:int = 100;

    var itemNameList:Array = new Array();

    function populateScreen() {}

    for (var i: int = 0; i< howmany="" ;="" i++)="">

    var newBox:box = new box();

    addChild (newBox);

    newBox.name = 'box' + i;

    itemNameList.push (newBox.name);

    newBox.x = Math.Random () * stage.stageWidth/2;

    newBox.y = Math.Random () * stage.stageHeight/2;

    }

    trace (itemNameList);

    }

    populateScreen();

    ----------

    Have a movieClip in the library of the film with a class name of 'box '. Create a new instance of this object, add it to the display list and then define a name property. I then added every name in a table so that you can keep track of the objects. I then placed each in a random place on the screen.

  • Creating instances of symbols with Wayne in Actionscript 3 instance names

    Hey

    I was wondering if it is possible to create a large number (say 100) instances of symbols where each of the various bodies had its own unique name of the instance and later.  The names beeing something like ball1, ball2, ball3, etc...

    Normally I just create all these and manually give them their name, so a solution to this would be throw me a lot of time.

    Thank you

    Ask in the forum Flash Pro.

    Mylenium

  • Create multiple instances of a symbol in AS3

    Hello

    When we create several instances of the same symbol, can we instantiate using a single variable, or is it mandatory to use a different variable the instance?

    In the following example, the "var c:Circle" is used 10 times to instantiate the symbol of the MC.  How can those be changed or removed one by one, if all instances refer to the same variable name?

    var totalCircles:uint = 10;
    var i: uint;
    for (i = 0; i < totalCircles; i ++)
    {
    Create a new instance of circle.
    var c:Circle = new Circle();
    Place the new circle to a coordinate x which will be space circles
    evenly on the stage.
    c.x Fokker-built = (stage.stageWidth / totalCircles) * i;
    Place the instance of circle to the vertical center of the scene.
    CY = stage.stageHeight / 2;
    Add the instance of circle to the current timeline.
    addChild (c);
    }

    In your loop 'for', you do not have to declare the variable 'c' with each pass of the loop. Instead, you can declare it out of the loop, as you do your 'I' variable:

    var c:Circle;

    for (i = 0; i< totalcircles;="" i++)="">

    Create a new instance of circle.

    var c = new Circle();

    Then, given that you reuse the variable 'c' for each passage, as you have probably guessed, you cannot reference all your objects with the same variable (with the exception of the one created last) once the loop over. What I usually do and suggest, is that you put all your objects in a table for ease of access after instantiation:

    var circleHolder_arr:Array = [];

    var c:Circle;

    for (i = 0; i< totalcircles;="" i++)="">

    Create a new instance of circle.

    var c = new Circle();

    circleHolder_arr.push (c); This adds each instance to the table

    ... And when you want to do something, like delete all of your circles:

    function removeCircles(e:MouseEvent_=_null):void {}

    for (var i: int = 0; i< circleholder_arr.length;="" i++)="">

    removeChild (circleHolder_arr [i]);

    This is where you could also do other things, for example to remove earphones events and other items of battery memory

    }

    }

    btn.addEventListener (MouseEvent.CLICK, removeCircles);

  • Creating Instances of symbols containing an image dynamically resolved - need help

    I'm working on a prototype site which has many images flown in the navigation. Each image is unique, but the code rollover and rollout is identical. I am trying to create a unique symbol which can be used for all the bearings, but need help to figure this out, because it will considerably speed up my work.

    I think that the pseudocode would work like this:

    1. Create a symbol that contains a default rollover image.
    2. In the symbol, add the code rollover and rollout. To set the transparency of 0 - > 100 and back.
    3. Create instances of the symbol on each element of the NAV.
    4. For each instance, set a variable containing the name of the rollover image to use.
    5. In this instance of symbol, get the value of the variable.
    6. In this instance of symbol, use the image name in the variable to replace the default image.
    Question: How do the job 4 to 6 step? I have 1-3 working smoothly. P.S. my last work of dev is waaaaay returns with the Director, PHP and ColdFusion. I still get basic principles such as the use of the functions, instances, objects, inheritance, etc., but the language has changed. And I have very very little experience with the DOM.
    Appendix: How I do it manually
    1. There is a background image of the NAV showing all unselected States
    2. Each element of the net asset value has a rollover image in a series of elements on the nav element. Each bearing has initially set to 0% opacity.
    3. Each element of a rollover image, deployment and click triggers. Triggers rollover and deployment are the same for each. There is also a little more code with deployment that provides a quick fade. It means a lot to copy same code. I hate the idea of having to change any part of this code.

    Thank you! Chassy

    A big thank you Tim (?)!  You saved me a lot of hours on this project.  I'm still learning more jQuery / javascript behind Edge.  Could you assess if my interpretation of the loop content is accurate?  This is my understanding of the code is more limited:

    • SYM. $(array_btns [i]) - access to jQuery object associated with the element of border.
    • MouseEnter (...), - the content define the code to be executed during the passage of the mouse.
    • {obj:array_btns [i]} - refers to the element in the jQuery object, represented by the symbol of edge
    • function {...} - function to run on the given event within the given object/symbol.  The role of the "e" parameter is something I'm not clear on that.  The flow of the code, it seems to represent the edge symbol that contains the element that will be affected by the code.
    • var = e.data.obj BTN - implements a variable to refer to the side of edge.  I think it is the same symbol as number 1 above.
    • sym.getSymbol (btn).$("over").fadeIn (500) - runs the jquery code for fade in at the moment the jQuery "over" event is triggered.

    Also, I'm about to start testing to see if it works in nested symbols.   I guess compositionReady Trigger for each symbol, I can create a [array_btns] and then call sym.getComposition () .setup_btns ()?

  • Nero Startsmart 9 does not start with "Unable to create an instance of XML parser" error

    Original title: nero 9 startsmart refuses to start, msg of error "Could not create an instance of the XML parser, please reinstall basic XML (MSXML) 4.0 SP2 or later" _
    SmartStart refuses to open, displays this error message. When you click OK on this message a second appears stating "FATAL ERROR Nero StartSmart cannot run! A corrupted installation or invalid license. Have tried reinstalling NERO & update, still not open disable the desktop icon

    Hi percy 1964,.

    I suggest you to uninstall MSXML 4.0 Service Pack 2 and 9 of Nero on your computer and install both in clean boot, follow the steps below:

    1. to uninstall, you can use Windows Installer Clean up utility. Link below will help you with the same: Description of the Windows Cleanup utility installer

    http://support.Microsoft.com/kb/290301

    2. start the clean boot computer and try to install. Link below will help you to start the computer in clean boot:http://support.microsoft.com/kb/929135

    Make sure that you reset the computer in normal mode (you can see step 7)

     

    3. now install the two rear. To install MSXML 4.0 Service Pack 2 (Microsoft XML Core Services):http://www.microsoft.com/downloads/details.aspx?familyid=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&displaylang=en

    You can also post in the chorus also in the link below to check if they have any additional suggestions:http://forum.my.nero.com/index.php?act=idx

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Create an instance of the component with CLSID {0002DF01-0000-0000-C000-000000000046} COM IClassFactory failed due to the following error: 80004005.

    I have IE 9 installed on my machine. When I try to create objects of IE using SHDocVw. Its version is 6.1.7601.17514. When I run my windows service it runs fine but when I create an installer and then run, it displays the error message: creating an instance of the component with CLSID {0002DF01-0000-0000-C000-000000000046} COM IClassFactory failed due to the following error: 80004005.

    IE = new SHDocVw.InternetExplorer ();
    IE = new SHDocVw.InternetExplorer (true);

    I tried the two lines.

    Please give me a solution.

    Hi Patrick,

    The problem you are having is more complex than what is generally answered in the Microsoft Answers forums. It is better suited to the MSDN forums.

    Please post your question in the MSDN Forums.

    You can follow this link to ask your question:

    http://msdn.Microsoft.com/en-us/library/aa752084%28V=vs.85%29.aspx

    I hope this helps. If you have problems of Windows in the future, let us know and we would be happy to help you.

  • Error creating an instance of an executable thread with

    I'm trying to create two instances of an executable thread, but get this error message (in Eclipse):
    "No GE4000 type enclosing instance is accessible. Must qualify the allocation with an instance of the enclosing type GE4000 (for example x.new A() where x is an instance of GE4000). »

    I don't understand any of this error.

    GE4000 is GE4000.java

    The error occurs here and is a protected static Boolean method.

    for (t int = 0; t < (int) cameraCount; ++ t) {}
    streamThreads [t] = new Thread (new CaptureStream (cameraHandle [t], [t] frameBuffers, frameCount basePath));
    }

    Class CaptureStream is defined:
    / public class CaptureStream implements Runnable {}
    the constructor is:
    CaptureStream (Pv.tHandle handle, Pv.tFrame [] cameraFrames, int, String basePath frameCount) {}

    Ironically, within the run of CaptureScreen method I do a similar creation of another thread without seeing an error.

    Edited: I've not nested and it works! Thank you

    Published by: Shellback3 on December 8, 2010 13:13

    I would recommend avoiding using inner classes or at least learn to use them before you use them in fact.

    Or do you really need to have CaptureStream as a class internal?
    In any case, that you try to create one in a static method, where no instance enclosing the outer class (GE4000) is available. So at the very least, you would need to make a static nested class.

  • PowerShell plugin question - dynamically create an instance of PowerShellHost in a workflow

    Hi people,

    Whoever did this for a host who has never been in the inventory of PowerShell vCO? More specifically, how Kerberos in the face of a host name which could have been created since the last time tried to Kerberos for authentication of access for?

    See you soon

    I just wanted to let anyone interested know

    I got this works in the following way in a script

    var hostConfig = new PowerShellHostConfig()

    hostConfig.name = "example";

    .

    .

    .

    .

    Download the plugin to create an instance of the host of this configuration by using the update call

    var host = PowerShellHostManager.update (hostConfig);

    If the configuration is correct, you get an instance of the valid host that you can now call commands on. Looking at the Java code for the plugin, the update method does the following

    Check the config for a host ID.

    If ID is found

    then search for this instance and return it

    on the other

    create and validate a new instance of the host for this config and returning

    There are a few side effects / traps to consider here though

    Gotcha 1.     PowerShellHostConfig has no Member for a host ID attribute if you always create a new instance using this method. New instances will appear in your inventory as of the configs duplicate with different instance ID

    Gotcha 2.     During the validation of the hostConfig during the creation of the host, a the connection test is performed using the specified configuration. In other words, you will see that recorded in the log file of the server so it will look like two connections were established in quick succession if you then an invoke on the new host

    Gotcha 3.     Because of the 1 witch hunt, you should probably do PowerShellHostManager.remove (host) at the end of your script

    Gotcha 4.     If you use 3 to clean up inventory know that if your script/workflow terminates with an error/exception then remove it might not happen. Thus, use the error handling, or finally clause in order to ensure that it is executed. Of course if the deletion up a mistake then all bets are off

    Anyway, just thought I'd share

  • Error-could not create an instance of the custom function

    Hello

    I'm trying to implement an extension of the simple custom function OPM 10.2. Here is the code:
    package com.oracle.determinations.examples;

    import com.oracle.determinations.engine.CustomFunction;
    import com.oracle.determinations.engine.EntityInstance;
    import java.util.Random;

    SerializableAttribute public class RandomFunction extends CustomFunction {}
    public Object evaluate (EntityInstance entityInstance, Object [] items) {}

    If (items [0] == null) {}
    return 0;
    } else {}
    -Code to generate a random number
    }
    }
    }

    The xml extension is the following:
    -< extension >
    -< features >
    -name of the function = "RandomFunction" type return = 'number' >
    < name arg = "enterednumber" type = "number" / >
    < Manager platform = 'java' class = "com.oracle.determinations.examples.RandomFunction" / > "
    < Manager platform = "dotnet" class = "com.oracle.determinations.examples.RandomFunction" / > "
    < / feature >
    < / functions >
    < / extension >

    I placed the code extension xml under the Development\Extensions\Examples folder and the jar file named "JavaLibrary1" containing only the above mentioned code is under Development\Extensions\Examples\lib.

    The rule that calls the custom function is as follows:
    the random number = RandomFunction (figure)

    I get the error "Unable to create year instance of com.oracle.determinations.examples.RandomFunction" when I debug the project.

    Please tell me how to solve this problem.

    Thank you
    JAS

    Received your email and found the problem. The problem is the custom .NET, function definition is invalid, and must be (or must be removed).

    When you are debugging with screens, it uses a combination of dosages of Web for Java and the host of the debugger, which takes place in .NET. Although the modules runs into reality in the determinations of web, the debugger needs always to be able to open the modules locally for purposes of reflection (eg. obtaining a list of all possible attributes and the type of data). Even if the modules is not actually executed in .NET, it must therefore be loadable, which means that if you do not provide a custom function .NET Manager, it must be valid. This:

    >

    >

    Does not appoint a .NET class, that's why the debugger complains. Delete this line (only the Manager of java leaving intact) and your example works.

    >
    You also mentioned that the random function is not a good choice, that means that the engine of dosage will not work with the random function?
    >

    Yes, a random function will not work because the engine must be (and is optimized to be) deterministic - same entry should always produce the same result.

    It is difficult to imagine what you can in theory of random numbers for (otherwise), but if you don't need, you may either) front of seeds new sessions with random inputs as attributes of basic (requires customization of your host application, for example, web determinations) or b) generate the random number from other values in your modules such as the customer, name and date of birth. This should ensure that the same combination of inputs will result in the same number of 'random' each time.

  • How to create an instance?

    Hello

    I start now, ActionScript so I thought why not ask something here.

    I already worked with GameMaker (GML), which is much simpler I think.

    Way whatsoever, in order to practice a little I'm trying 'convert' aspects of my flash games. Now, I stuck with something very simple (at least in GML). That would create an instance, in this case a projectile (in GML - instance_create(x,y,object);).

    Now, how do I do that in ActionScript? Would be nice, if you could help me.

    Sincerely, Robin

    There are a few different ways to create things, but it usually boils down to happen with the two lines of code that will follow below.

    First create the object like a movieclip symbol so that he lives in the library.  Then right click and choose the link.  In the Panel that appears, select the export for actionscript option and give it a class name... Let's say you give it a class name of "Projectile".

    To create a new instance of it...

    var proj:Projectile = new Projectile();

    It's everything you need to create a new instance.  But the next step is to add to the display list, so that he has stage presence...

    addChild (proj);

  • TypeError: Error #1007: tried to create an instance in a no constructor

    Hello guys,.

    Im stuck with actionscript error, I really need help here the error I got: -.

    TypeError: Error #1007: tried to create an instance in a no constructor.

    to Away3dScene / initObjects)

    in Away3dScene / init)

    at flash.display::DisplayObjectContainer/addChild()

    at Away3dProject()

    So to use Away3d, but don't really know what's wrong because everything seems to be OK, I'm using adobe flash cs5.5, flash player 10.

    hand. As code:

    package

    {

    import flash.display.Sprite;

    import flash.display.StageScaleMode;

    import flash.display.StageAlign;

    Import net.hires.utils.Stats;

    SerializableAttribute public class Away3dProject extends Sprite

    {

    public void Away3dProject()

    {

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    var scene: Away3dScene = new Away3dScene();

    addChild (scene);

    stats: var = new Statistics Stats();

    addChild (stats);

    }

    }

    }

    and Away3dscene.as here:

    package

    {

    Import away3d.cameras.Camera3D;

    Import away3d.containers.Scene3D;

    Import away3d.containers.View3D;

    Import away3d.core.base.Object3D;

    Import away3d.core.clip.RectangleClipping;

    Import away3d.core.math.Number3D;

    Import away3d.materials.WireColorMaterial;

    Import away3d.overlays.LensFlare;

    Import away3d.primitives.Plane;

    import flash.display.BlendMode;

    import flash.display.Sprite;

    import flash.events.Event;

    SerializableAttribute public class Away3dScene extends Sprite

    {

    [Embed (source = "assets/library.swf", symbol = "Halo")]

    private var Halo: Class;

    [Embed (source = "assets/library.swf", symbol = "Flare1")]

    private var Flare1: Class;

    [Embed (source = "assets/library.swf", symbol = "Flare2")]

    private var Flare2: Class;

    [Embed (source = "assets/library.swf", symbol = "Flare3")]

    private var Flare3: Class;

    private var _scene:Scene3D;

    private var _camera:Camera3D;

    private var _view:View3D;

    private var _flare:LensFlare;

    public void Away3dScene()

    {

    this.addEventListener (Event.ADDED_TO_STAGE, init);

    }

    private void init(evt:Event):void

    {

    initScene();

    initObjects();

    this.addEventListener (Event.ENTER_FRAME, render);

    }

    private function initObjects (): void

    {

    / * floor: plan of var = new Plane();

    Floor.Width = floor.height = 100000;

    floor.segmentsW = floor.segmentsH = 12;

    Floor.y = - 3500;

    Floor.Material = new WireColorMaterial (0 x 333333);

    _Scene.addChild (Floor); * /

    var flareSourceDummy:Object3D = new Object3D();

    flareSourceDummy.x = 1000;

    flareSourceDummy.y = 500;

    flareSourceDummy.z = 3000;

    _Scene.addChild (flareSourceDummy);

    _flare = new LensFlare (flareSourceDummy, _camera);

    _flare.setBurnClip (_View);

    _flare.setHaloAsset (new Halo());

    _flare.addFlareAsset (new Flare1());

    _flare.addFlareAsset (new Flare3());

    _flare.addFlareAsset (new Flare1());

    _flare.addFlareAsset (new Flare2());

    _flare.useRotation = false;

    _flare.useAlpha = false;

    _flare.useScaling = false;

    _flare.useBurning = false;

    _flare. BlendMode = BlendMode.SCREEN;

    _flare.burnMethod = LensFlare.BURN_METHOD_COLOR_TRANSFORM;

    _View.addOverlay (_flare);

    }

    private function hoverCamera (): void

    {

    var mX:Number = this.mouseX > 0? this.mouseX: 0;

    var my: number = this.mouseY > 0? this.mouseY: 0;

    var tarX:Number = 3 *(mX-stage.stageWidth/2);

    tarY var: number = - 2 *(mY-stage.stageHeight/2);

    var dX:Number = _camera.x - tarX;

    var dY:Number = _camera.y - silent;

    _camera.x = dX * 0.25;

    _camera.y-= dY * 0.25;

    _camera. LookAt (new Number3D (0, 0, 0));

    }

    private function initScene (): void

    {

    _Scene = new Scene3D();

    _camera = new Camera3D({z:-1500});)

    _View = new View3D ({scene: _scene, camera: _camera});

    _View.x = stage.stageWidth/2;

    _View.y = stage.stageHeight/2;

    _View.clipping = new RectangleClipping ({minX:-stage.stageWidth / 2, minY:-stage.stageHeight / 2, maxX:stage.stageWidth / 2, maxY:stage.stageHeight/2});})

    _View.opaqueBackground = 0;

    addChild (_view);

    }

    private void render(evt:Event):void

    {

    hoverCamera();

    _View. Render();

    }

    }

    }

    Please guys, any idea will be useful for me.

    Best,

    The line that causes the problem will always be the one for the first time in the error message... Away3dScene.as:65.   What line 65 is in the Away3dScene class file, this is where the problem occurs.

  • Symbol with class in CS3 &amp; lt;-&amp; gt; Flex Builder

    Hello

    I have the following situation. I have an actionscript project in flex builder and I have a .fla in CS 3. In the fla of CS, I created a symbol with a class called HotSpot. Within this symbol, I have a movieclip called 'bg '. In my actionscript in felx Builder project I'm loading the swf from my fla 3 CS and I also speak the symbol of access point.

    My first problem when compiling with CS 3 was, that when I said "bg" in my class of HotSpot, 3 CS complained, 'bg' already existed, so I directly referred to in bg in my class HotSpot, without declaring, and 3 CS was happy. But as you can imagine, Flex Builder is not happy, he told me, 'bg' is not declared, and therefor I can't access it.

    Now, what should I do? If I declare, Flash CS 3 complains if I don't have, complains Flex Builder. ???

    Thank you and see you soon

    OK, I found the solution by myself. It has something to do with the function automatically "declare instances of the scene" in Flash CS3. If you want to work with the same classes between Flex Builder and Flash CS 3, you must disable this feature, because Flex Builder, of course, knows nothing about instances of implicitly declared in Flash CS 3.

  • Windows 7 Home Premium Wifi grey symbol with a star yellow but fully connected to the internet.

    Windows 7 Home Premium Wifi grey symbol with a star yellow but fully connected to the internet.

    Have been able to fix it by uninstalling the driver wireless and re - install, but when the system is restarted it then returns to the same problem.  Tried to remove the data of the registry key 'TrayNotify' windows and stopping the same tried to remove "explorer.exe" and replace "explorer.exe".. even goes back to the same problem.

    It is likely that your computer sees and is seen by your router.  Gold Star means that it is connected, but the router will not assign an IP address to access the Internet.

    This is usually caused by a code password incorrectly stored (on your computer).

    Click on this icon.  Find your network.  Remove it from the list.  Now, after a small wait, click this icon again.  It should detect your network and ask for the password.  If you have entered the right code, it should connect you.

    If these steps do not resolve the problem, then it is likely that you would have a problem with your router - it might be inside a separate device or your modem.

    A restart of the modem and router can help.  Pull the plug on the modem and the router.  Wait 30 seconds.  Put the plug in the modem only.  Wait 30 seconds.  Put the plug in the router.  Wait 2 minutes.  If she can still connect, try re-booting the computer.

  • Cannot create an instance of the Virtual Machine Java

    Hi all

    I try to install and test the Jdev OAF for R12.2.4 in patch 19170592

    After installation, when I run the page you arest_fwktutorial.jsp and click on Hello world or any other link, it gives me an error saying: failed to create an instance of the java virtual machine...

    Here is the part of the Jdev log file:

    URL - target http://***/:8988/OA_HTML/test_fwktutorial.jsp

    March 9, 2015 17:06:47 oracle.jsp.logger.JspMessages infoCannotDispatchJspPage

    INFO: Failed to send the JSP Page: oracle.jsp.provider.JspCompileException: < H3 > errors compiling:C:\Users\XXX\OAFR12\jdevhome\jdev\myclasses\.jsps\\_OA.java < / H3 > < pre > WARNING: cannot find default VM 'ojvm' to...... \jdk

    help the client instead.

    Error occurred during initialization of VM

    Could not reserve enough space for lots of things

    I use a desktop computer of Windows 7 with 64 bit OS and 4 GB of RAM

    Can anyone help please if you know of a fix for this error.

    Thank you

    -John.

    for the record, the procedure below solves the problem:

    1. Open the control panel
    2. Go to system
    3. Go to the properties of advanced systems
    4. Environment variables can
    5. In System Variables, click Add
    6. New name of the Variable: _JAVA_OPTIONS
    7. New value of the Variable:-Xmx512M
    8. Click OK

    Thank you

    -John.

Maybe you are looking for