CreateMethodExpression example - Jdev 11.1.2.3

Hello:

A button the ActionListener is set at: #{bindings.eventBinding.listener.processAction}

I need to run this same expression in Java. What is java code to call this?


Thank you

package com.mpapana.bean.util;

import java.util.Map;

Import javax.el.ELContext;
Import javax.el.ExpressionFactory;
Import javax.el.MethodExpression;
Import javax.el.ValueExpression;

Import javax.faces.context.FacesContext;

Import oracle.adf.model.BindingContext;
Import oracle.adf.model.DataControlFrame;

/**
Provides various utility methods that are convenient for
* to have around when you're working with ADF.
*/
public class ADFUtil {}

/**
* When a stubborn workflow manages a transaction (marked as requires transaction.
* requires new transaction or requires existing transaction), then the
* flow task must deliver one commits or cancellations that are needed. It comes
* essentially to keep the State of the transaction that the workflow can understand
* in line with the status of the transaction in the ADFbc layer.
*
* Use this method to deliver a validation in the middle of a workflow during your stay
* in the workflow.
*/
public static saveAndContinue() Sub {}
SessionMap = map
FacesContext.getCurrentInstance () .getExternalContext () .getSessionMap ();
= BindingContext object context
(BindingContext) sessionMap.get (BindingContext.CONTEXT_ID);
String currentFrameName = context.getCurrentDataControlFrame ();
DataControlFrame = dcFrame
context.findDataControlFrame (currentFrameName);

dcFrame.commit ();
dcFrame.beginTransaction (null);
}

/**
* Programming evaluation of EL.
*
@param el EL to assess
* @return assessment results
*/
public static Object evaluateEL (String el) {}
FacesContext facesContext = FacesContext.getCurrentInstance ();
ELContext elContext = facesContext.getELContext ();
ExpressionFactory expressionFactory =
facesContext.getApplication () .getExpressionFactory ();
ValueExpression exp =
expressionFactory.createValueExpression (elContext, el,
Object.Class);

Return exp.getValue (elContext);
}

/**
* Programming call to a method that returns an EL.
* The method takes no parameters.
*
@param el EL of the method to call
* @return object that the method returns
*/
public static Object invokeEL (String el) {}
Return invokeEL (el, new class [0], new Object [0]);
}

/**
* Programming call to a method that returns an EL.
*
@param el EL of the method to call
@param paramTypes class array that defines the types of the parameters
params @param Array of object setting the values of the parametrs
* @return object that the method returns
*/
public static Object invokeEL (el String, class [] paramTypes,
Object [] params) {}
FacesContext facesContext = FacesContext.getCurrentInstance ();
ELContext elContext = facesContext.getELContext ();
ExpressionFactory expressionFactory =
facesContext.getApplication () .getExpressionFactory ();
MethodExpression exp =
expressionFactory.createMethodExpression (elContext, el,
Object.Class, paramTypes);

Return exp.invoke (elContext, params);
}

/**
* Sets a value in an EL object. Provides functionality similar to
* the tag, except spring
* not an EL. You can get similar behavior by using the following...

* UN (to, evaluateEL (from))
*
@param el EL object to assign a value
@param val the value to assign
*/
Public Shared Sub UN (String el, Object val) {}
FacesContext facesContext = FacesContext.getCurrentInstance ();
ELContext elContext = facesContext.getELContext ();
ExpressionFactory expressionFactory =
facesContext.getApplication () .getExpressionFactory ();
ValueExpression exp =
expressionFactory.createValueExpression (elContext, el,
Object.Class);

exp.setValue (elContext, val);
}
}

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

public class ExampleBean {}

public void sampleMethod() {}
String lookupName =
(String) ADFUtil.evaluateEL("#{pageFlowScope.lookupName}");
}

}

in this way, you can run el

Tags: Java

Similar Questions

  • With the help of mapPieGraphTheme / mapBarGraphTheme / mapColorTheme

    There is a theme of geometry, created in the MapBuilder and the ADF page, containing the following code:

    < dvt:map id = "map" startingX = "197266.33" mapServerConfigId = "mapConfig1".
    baseMapName = "DATA source. LAYER"mapZoom = '0 '.
    startingY = "-119256.46" srid = unit "262148" = "METRES".
    >
    < dvt:mapPointTheme id = "mt2" value = "#{bindings." PoiView1.geoMapModel} "/ >"

    < dvt:mapBarGraphTheme id = themeName "mt1" = "POI_THEME."
    value = "#{bindings." PieGraphThemeDataSource11.geoMapModel}.
    locationColumn = "ID_POI" / >

    < dvt:mapColorTheme id = themeName "mt3" = "POI_THEME."
    value = "#{bindings." PieGraphThemeDataSource12.geoMapModel}"bucketCount = '5 '.
    minColor = '#ff0000"maxColor =" #00ff00 "locationColumn ="ID_POI"/ >
    < / dvt:map >

    Unlike mapPointTheme, graphic themes and the theme of color are not displayed on a page at all.

    Links to the ADF:

    < mapTheme IterBinding = 'PieGraphThemeDataSource1Iterator' id = 'PieGraphThemeDataSource11 '.
               xmlns=" http://xmlns.Oracle.com/ADFM/DVT "> "
    < mapThemeDataMap convert = 'false' mapThemeType 'histogram' = >
    < type element = 'location' value = "IdPoi" label = "IdPoi" / >
    < data >
    < point value = "percent" / >
    < / data >
    < / mapThemeDataMap >
    < / mapTheme >
    < mapTheme IterBinding = 'PieGraphThemeDataSource1Iterator' id = 'PieGraphThemeDataSource12 '.
               xmlns=" http://xmlns.Oracle.com/ADFM/DVT "> "
    < mapThemeDataMap convert = 'false' mapThemeType 'color' = >
    < type element = 'location' value = "IdPoi" label = "IdPoi" / >
    < data >
    < point value = "Percent" label = "percent" / >
    < / data >
    < / mapThemeDataMap >
    < / mapTheme >

    Unfortunately, information about the graphic use of themes and color in the internets are rare. Can anyone provide full application example JDev, showing how to use a graphic or color theme?

    POI_VIEW table contains several point geometry and the geometry of a polygon in a column of the LOCATION. ID_POI (of type Number) values match those of the PieGraphThemeDataSource.IdPoi.

    Have you checked the rich client demo (hosted version card with bar graph theme) that come with the source?

    Not sure if your components are covered (but should be), and if you download the war you get the source in the war file too.

    Timo

  • How can I delete queries by icon example in JDev 12.1.3.0?

    How can I delete queries by example this icon in the collection of panels in JDev 12.1.3.0?

    Thank you

    AR

    As far as I KNOW, it is not possible

  • Looking for 11 JDev ADF Faces example with several filters

    I am looking for an Internet example ADF Faces application that has the following text:

    Several combo boxes (LOVs) - some who invites just for a date range. These could as well be cascade.

    Finally a run button that runs a query based on the values of the drop-down list boxes in bind variable, then displays the results under the filters in a table.

    It sounds easy enough, but I have not found an example of this. Can someone point me in the right direction? I tried to create a quick example on the EMP table with a combobox to date that I could use to date of hire. I can't get this to work with links to view the results of the table well. I don't know how the code for the event to run the query and create the table.

    Thank you, Ken

    Hello

    even if we would work 24 hours a day 7 days a week. At the end of the year we would miss still some usecases as examples. How to do what you want

    -Drag the table
    -Drag the execute with params as a parameter
    -remove the attribute hiring date
    -Drag the variable of the hiring date linking (I think I would use a component date.) MinValue instead of a selectBox date). However, do not hesitate to choose a selectOneChoice component. In the link dialog box, create a reference to a VO list to fill the selectOneChoice (must be located a VO you query the target)
    -Similar to all others

    By pressing the button send the form parameter will execute the query

    Frank

  • where have the site of frank go? need example of scrollable table for 10 JDev

    Here is the specific link that comes up on the search, but it dosnt work.

    http://thepeninsulasedge.com/frank_nimphius/2007/11/08/ADF-faces-embedded-and-scrollable-tables/

    Hello

    in fact Blogbuster blogs went completely (and with it the older content). Its a long story how this happened and why. In any case, I moved my blog to a place of Eve, OTN harvest and ADF Code corner

    OTN harvest

    http://blogs.Oracle.com/jdevotnharvest/

    ADF Code corner

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html

    Frank

    PS. : as far as I remember the scrollable table in 10g used a DIV with a command CSS to make the scrolling area.

  • JDEV 12.2.1 table facet filter with lookup

    Hi all

    We are working on improving the system of JDEV 12.2.1.

    We have a column in VO that is attached to a LOV. If we drag and drop the VO on the UI with the filters and active sort tabular, then the column which is attached to a LOV in the t display a list of choices automatically in the facet of filter in the version 12 c.

    What is the new feature of 12 c? This was not the behavior in 11.1.2.3

    If so then is it possible to remove this behavior? I don't want the choicelist appear in the side of the column that is attached to LOV in the model of filter layer.

    What is the new feature of 12 c?

    Yes

    If so then is it possible to remove this behavior?

    Add your own filter facet component (for example: af:inputText)

    Dario

  • Problem printing in IE11 Jdev 12 1 2

    Hi all

    We have a page of the adf (which must be completed), includes a table. Number of records in the table can cross 500, according to certain conditions. And all records will be displayed in the same window (i.e. no pagination).

    When print us this page using option 'Behavior show' printable or simply using Ctrl + P, IE 11 browser prints only the first page. All pages are printed when we use Chrome or Firefox.

    Tried using the list view, PivotTable instead of regular table with no luck.

    Jdev version: Build JDEVADF_12.1.2.0.0_GENERIC_130608.2330.6668

    The fix mentioned in the blog seems does not help: https://tompeez.wordpress.com/2014/02/26/jdev-and-ie11-pathes-are-finally-available-for-all-current-versions/

    Found a few solutions workaround in google, but they are for IE8, 9 or 10. No workaround or solution for IE11. Tried with or without compatibility modes. Tried with or without a.

    Thanks in advance for your answers.

    -Anand

    Hello

    Oracle has proposed change below and it solved the problem:

    Backed by the af: document to fill with 1 inlinestyle.

    Example:

    -------------------------------

    References provided:

    Bug 14314864

    Bug 20162334

    DOC - ID 1952844.1

    DOC - ID 1613403.1

  • View criteria JDev 12.1.3 built invalid SQL

    Hello world

    It seems that in JDev 12.1.3 when a criterion for the view is created with a standard nested, generated when running query is not valid. It uses incorrectly alias upon accession of the two VO

    For example, I created two simple VO:

    ViewObj1 (SELECT 1 VO1_ID, "ViewObj1" DOUBLE TITLE):

    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ViewObj1"
      Version="12.1.3.10.8"
      InheritPersonalization="merge"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
      </DesignTime>
      <Properties>
        <SchemaBasedProperties>
          <LABEL
            ResId="model.views.ViewObj1_LABEL"/>
        </SchemaBasedProperties>
      </Properties>
      <SQLQuery><![CDATA[SELECT 1 VO1_ID, 'ViewObj1' TITLE FROM DUAL]]></SQLQuery>
      <ViewAttribute
        Name="Vo1Id"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.math.BigDecimal"
        ColumnType="NUMBER"
        AliasName="VO1_ID"
        Expression="VO1_ID"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="Title"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="8"
        Type="java.lang.String"
        ColumnType="CHAR"
        AliasName="TITLE"
        Expression="TITLE"
        SQLType="CHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="8"/>
        </DesignTime>
      </ViewAttribute>
      <ViewCriteria
        Name="ViewObj1Criteria"
        ViewObjectName="model.views.ViewObj1"
        Conjunction="AND">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="false"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="ViewObj1Criteria_row_0"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_Title"
            ViewAttribute="Title"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=""
            Required="Optional"/>
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_ViewObj2"
            ViewAttribute="ViewObj2"
            Operator="EXISTS"
            Conjunction="AND"
            IsNestedCriteria="true"
            Required="Optional">
            <ViewCriteria
              Name="ViewObj2NestedCriteria"
              ViewObjectName="model.views.ViewObj2"
              Conjunction="AND">
              <ViewCriteriaRow
                Name="ViewObj2NestedCriteria_row_0"
                UpperColumns="1">
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Vo1Id"
                  ViewAttribute="Vo1Id"
                  Operator="="
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Title"
                  ViewAttribute="Title"
                  Operator="STARTSWITH"
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
              </ViewCriteriaRow>
            </ViewCriteria>
          </ViewCriteriaItem>
        </ViewCriteriaRow>
      </ViewCriteria>
      <AttrArray Name="KeyAttributes">
        <Item Value="Vo1Id"/>
      </AttrArray>
      <ViewLinkAccessor
        Name="ViewObj2"
        ViewLink="model.views.ViewLink"
        Type="oracle.jbo.RowIterator"
        IsUpdateable="false"/>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="model.ModelBundle"/>
      </ResourceBundle>
    </ViewObject>
    
    
    


    ViewObj2 (SELECT 1 VO1_id, VO2_ID 2, "ViewObj2" DOUBLE TITLE):

    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ViewObj2"
      Version="12.1.3.10.8"
      InheritPersonalization="merge"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
      </DesignTime>
      <Properties>
        <SchemaBasedProperties>
          <LABEL
            ResId="model.views.ViewObj2_LABEL"/>
        </SchemaBasedProperties>
      </Properties>
      <SQLQuery><![CDATA[SELECT 1 VO1_id, 2 VO2_ID, 'ViewObj2' TITLE FROM DUAL]]></SQLQuery>
      <ViewAttribute
        Name="Vo1Id"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.math.BigDecimal"
        ColumnType="NUMBER"
        AliasName="VO1_ID"
        Expression="VO1_ID"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="Vo2Id"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.math.BigDecimal"
        ColumnType="NUMBER"
        AliasName="VO2_ID"
        Expression="VO2_ID"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="Title"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="8"
        Type="java.lang.String"
        ColumnType="CHAR"
        AliasName="TITLE"
        Expression="TITLE"
        SQLType="CHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="8"/>
        </DesignTime>
      </ViewAttribute>
      <AttrArray Name="KeyAttributes">
        <Item Value="Vo2Id"/>
      </AttrArray>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="model.ModelBundle"/>
      </ResourceBundle>
    </ViewObject>
    
    
    

    and created a link that joins the two on VO1_ID.

    Finally, I created a display criteria in ViewObj1:

    <ViewCriteria
        Name="ViewObj1Criteria"
        ViewObjectName="model.views.ViewObj1"
        Conjunction="AND">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="false"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="ViewObj1Criteria_row_0"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_Title"
            ViewAttribute="Title"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=""
            Required="Optional"/>
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_ViewObj2"
            ViewAttribute="ViewObj2"
            Operator="EXISTS"
            Conjunction="AND"
            IsNestedCriteria="true"
            Required="Optional">
            <ViewCriteria
              Name="ViewObj2NestedCriteria"
              ViewObjectName="model.views.ViewObj2"
              Conjunction="AND">
              <ViewCriteriaRow
                Name="ViewObj2NestedCriteria_row_0"
                UpperColumns="1">
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Vo1Id"
                  ViewAttribute="Vo1Id"
                  Operator="="
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Title"
                  ViewAttribute="Title"
                  Operator="STARTSWITH"
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
              </ViewCriteriaRow>
            </ViewCriteria>
          </ViewCriteriaItem>
        </ViewCriteriaRow>
      </ViewCriteria>
    
    
    

    At run time, when searching on an attribute in the nested criteria (ViewObj2), I get: ORA-00904: "QRSLTSQ1." "' VO1_ID ': invalid identifier.

    The query that is executed is:

    SELECT *
    FROM
      (SELECT 1 VO1_ID,
        'ViewObj1' TITLE
      FROM DUAL
      ) QRSLT
    WHERE ( ( (EXISTS
      (SELECT *
      FROM
        (SELECT 1 VO1_id, 2 VO2_ID, 'ViewObj2' TITLE FROM DUAL
        ) QRSLTSQ2
      WHERE ( (VO1_ID      = :vc_temp_1 ) )
      AND (QRSLTSQ1.VO1_ID = QRSLTSQ2.VO1_ID)
      )) ) )
    
    
    

    As you can see on line 13, it's with the help of QRSLTSQ1. VO1_ID when he is recommended to use QRSLT. VO1_ID.

    I'm doing something wrong? If not, is there a fix or a workaround for this bug?

    Thank you

    Bill

    It seams to be a strange behavior in the 12.1.3 sql builder. In this post VC Jdeveloper application encapsulating a user has reported something similar. He found a work around (last post of the thread) that you can try.

    Anyway, if thre is a fix available for what you ha vet oask support.oracle.com (paid support contract). They are the only ones who can tell you if it's a bug, after all, and if a fix is available. If this isn't the case, you can request a.

    Timo

  • Can we make several Off features in a collection of panels and how the query-off based on the example?

    Mr President.

    Can we make several Off features in a collection of panels and how the query-off based on the example?

    Concerning

    Once again, no jdev version?

    It must be really hard to remember ehich version you are working.

    Would have given a quick glance in the docs

    featuresOff java.util.Set Yes a list separated by spaces of the features by default to disable to the panelCollection. Values supported are

    That is the answer to a message.

    The second answer is that qbe is filtering tables. If you fund the table without filter you have not the qbe.

    Timo

  • QuickDoc isn't available in jdev 12.1.3

    Hello world

    When I use 11.1.1.7.0 jdev, I simply see QuickDoc for default as functions below:

    Here, when I press ctrl + space, the QuickDoc is available for the function "split".

    11.png

    I recently installed jdev 12.1.3, but I do not see QuickDoc for default functions (no information available for the "split" function)

    Well I installed jdev 12.1.3.

    12.png

    I don't know if jdev 12.1.3 needs a config or not.

    Concerning

    Habib

    For 12.1.3 it look like

    and it works for me

    You need to download the Java SE src.zip - downloads | Oracle Technology Network | Oracle and use a jdk 1.7 for example U80 that comes with the src.zip. Once you install the jdk on your machine, you should find the src.zip in the installation folder. Then, you can wire up the src.zip in the library section of jdev.

    Timo

  • Unable to return items on the page .jsff in Jdev 11.1.1.7 after migration form Jdev 11.1.1.5

    Hi all

    Previous version of Jdevloper 11 g: Jdeveloper 11.1.1.5

    Current version of Jdevloper: Jdevloper 11.1.1.7

    Problem: When migration usecases of Jdev 11.1.1.5 to Jdev 11.1.1.7 components .jsff are visible correctly.

    Description: ADF usecases are developed using Jdev 11.1.1.5 contains .jspx, files, .jsff etc are clearly visible when we are opening in version jdev 11.1.1.5 and works very well.

    But we same usecases migration higer version using jdev 11.1.1.7 we are facing some problems @ page opening of the components (.jsff or .jspx) are not displayed as the previous version jdev.

    For example: form Drag and Drop VO works in page .jsff as an af:table can be quickly with the af:table structure. (Jdev 11.1.1.5)

    But in Jdev 11.1.1.7 components af:table are not rendered correctly.

    There all JSF libraries must be updated to the requried?

    Note: we compare the source code of af: table component both are the same in both versions (Jdev 11.1.1.5 and Jdev 11.1.1.7).

    Please help us.

    Thank you

    Kumar

    Hi Timo,

    Thanks for your reply.

    We are created the new workspace with the new adf web application (create a new ADF Applciation in Jdevloper 11.1.1.7) works very well. but only migration usecases just this problem.

    Thank you

    Ajay

  • How to deploy JCA adapter with JDev on Remote Console of OSB

    Hello world

    I struggle to understand how to move my adapter JCA created using JDev (11 g) on the Remote Console of OSB Oracle.

    I read something on the Internet, for example:

    Call a procedure/function Oracle OSB | Oracle SOA blog

    but I don't understand the part on:

    "........

    As you can see in JDeveloper, it created a file XSD, WSDL and jca. Then, you must copy these files to the project Oracle OSB.

    If you are using the Console Web of OSB Oracle you must manually set the location of the schema. This is done by clicking on the button Edit references in the WSDL definition.

    Now that you have all files in Oracle OSB. Click on 'Generate WSDL and service' button. And whola you have now created a business service that you can use to call the stored procedure"

    All the suggestions/help will be appreciated.

    Thank you!

    Fairlie

    http://4.BP.blogspot.com/-BHVhUFYgQwY/UtY0j8sgiiI/AAAAAAAAANQ/yQiCbXlU06U/S1600/EJBpic.PNG

    http://3.BP.blogspot.com/-VW1Jri5g9S8/UDC2B7462FI/AAAAAAAACNU/jNtTaC49Lqo/S1600/1.PNG

    https://www.packtpub.com/sites/default/files/article-images/usingoracleservice_09_24.PNG

  • 12.1.3 JDEV

    Hi all

    I tried to install JDEV 12.1.3 for the week without success. My environment is as follows:

    -jdev_suite_121300_win64.exe

    -Windows 7 Professional

    -4 GB of memory

    -Access privileges on the machine

    -global variables

    * TMP set correctly in C:\Users\rojas\Downloads\tmp.

    * TEMP set to C:\Users\rojas\Downloads\temp

    I'm not the administrator of the machine but I ' elevated', the process that I used is as follows:

    -1 SETUP ATTEMPT

    -Right-click on the executable and "run with elevated privileges.

    The installation screen (install Oracle) will be displayed "preparing Setup" with the passage of the progress bar all the way to the end, then everything, I have a DOS window appears for a split second and then I get an error message with a single letter: 'A' or 'C', that's all.

    -TRY to INSTALL 2

    From what I've seen on this forum, I had our windows administrator, right-click on the executable and "install as Administrator", but it gets the same error

    -3 FACILITY ATTEMPT

    Finally, I asked our Windows administrator to connect to the computer and try to install again once more, he gets the popup with the letter 'C '.

    I'd appreciate any help or advice you may have. Furthermore, installation of JDEV 11.1.1.7 works well even without "high privileges.

    Kind regards

    F Rojas

    Interesting, can you put the jdev_suite_121300.jar in a new empty folder (for example c:\jdev) and start from there as C:\Java\jdk1.7.0_71\bin\java-jar jdev_suite_121300.jar please?

    There is installation problems if the jar was in the file with special characters (expects an absolute path to the library: jni_winx64)

    Timo

  • Jdev jpr file: set the parameter ${maven:maven.local.repo}

    Hi all

    I use Maven (3.0.5) to compile and deploy complex Applications of ADF (12.1.3).

    I noticed that, contrary to what is said in this discussion of adf Group Google by a member of the ADF team

    «To 12.1.2 we introduced Maven plugins for ojmake and ojdeploy.» It still requires an Oracle executable on your build server, but 1) avoids having to invoke the crafts Maven ant tasks and 2) allows to ojmake/ojdeploy use the dependencies declared in the POM rather hardcoded references to libraries of JDeveloper.«,»

    ojmake still seems to need a reference hardcoded for external dependencies in the JFL Elf, he uses.

    For example, addition of guava as a dependency in the file pom of an ADF project configured in Jdev to use Maven, will result in a similar entry in the JPR file:

    < list n = "libraryDefinitions" >

    < hash >

    < list n = "classPath" >

    < Protocol url = 'file' path = "/${maven:maven.local.repo}com/google/guava/guava/17.0/guava-17.0.jar"/ > "

    < / list >

    < value n = v "deployedByDefault" = "true" / >

    < value n = "description" v="com.google.guava:guava:17.0:jar"/ >

    < value n = 'id' v="com.google.guava:guava:17.0:jar"/ >

    < value n = v 'locked' = "true" / >

    < / hash >

    < / list >

    My question is: what is this variable in the JPR file decided to? How we set the value of ${maven:maven.local.repo} from project pom file?

    The maven variable ${settings.localRepository} did not help.

    PS: what seems to be needed on our server of Jenkins, on which to perform the installation on Jdev 12.1.3 has been installed locally in order to get the ojmake, ojdeploy and they hide dependencies. The user who installed Jdev being another than that actually run the maven jobs (jenkins). In addition, its local maven repository is not the value default ~/.m2/repository but /srv/.m2/repo21

    Thank you very much in advance for your time and help.

    Jeremiah

    Thank you all for your contributions.

    I found it. In case the Jdev Installation is on a CI server, without starting Jdev itself, the following file should be added to allow to use another system as the default file Maven ~/.m2/settings.xml settings:

    • ${ide.pref.dir}/system***/o.jdeveloper/product-prefences.xml

    I have this file, the absolute path to the Maven settings file can be set via:

    http://xmlns.Oracle.com/IDE/hash">

    That's all!

    Please don't tell me that Oracle did not REAL PLUGINS MAVEN (standalone) for ojmake and ojdeploy with the maven as optional parameter settings file.

    This a shame for such an expensive having framework to do what 'kitchen '!

  • [ADF, JDev12.1.3] What options are there in JDev to avoid write values of constant "in the clear" when writing of the code?

    Hallo (and sorry if this is in part a matter of 'Java');

    I am originally from C++ programming where a directive 'set' can be used to give a name to a constant value: when coding this allows you to use the name instead to write the value in the clear.

    For example

    In C++ , we have:

    file costants.h

    #define TYPE_PERSON 1

    #define TYPE_INDUSTRY 2

    //...

    In Java , I guess I should use a class such as:

    / / file myCostants.java

    Class myCostants {}

    public static final int TYPE_PERSON = 1;

    public static final int TYPE_INDUSTRY = 2;

    //...

    {static()}

    }

    I would like to know if it's the same thing in JDev or if the framework offers more options.

    Thank you

    Federico

    The same thing in ADF also. If you use a text string /, it should be defined as constants as you said (public static final) or it must come from resource group.

    Thank you

Maybe you are looking for

  • How you turn off pairing a show from a cleaned iphone?

    I iPhone I had to clean it thoroughly because of software problems, yesterday... The watch I have is always locked the old device and now my new watch application cannot match as the watch display locked my out (I thought that my entering the wrong c

  • Where my emails to?

    Hello Today, all my emails in my Inbox iCloud disappeared from my iPhone 5s and also of my iMac. Emails in folders are always available. Suggestions/advice for the restoration of their? Thank you

  • List all tabs button is missing

    This button has just disappeared all of a sudden. I have now a single group of tabs, and I can't reach any 3 other groups I had before this happened. I tried to close and restart Firefox, which did not help. I tried to restore the profile of last wee

  • HP P6 2120t: possible cards for the card mother Pegatron IPISB-CU on a computer of 2120t HP P6

    So, I'm looking to upgrade my graphics recently. Over the months, I've been looking around and find out a lot about how work cards graphics, and I need to find one. However, what I don't know much about is the compatibility of graphics cards with car

  • The Reinstallment of iPhoto as program?

    Hi - I (by mistake... long story) deleted iPhoto on my Mac Pro laptop and wish that he back :-). I reinstalled (cleaned MacHD) so he could restart the programs with the original settings. No iPhoto. The laptop don't have our family and the programs w