Sunstudio startup script not working

The environment is Ubuntu Linux 5.04 with Java 1.5.0_01 installed.
The awk script that checks the Java Version has some problems on this distribution.
Enabled set -x in the sunstudio shell script, here are the relevant lines:
+++ '[' -x /shares/free/opt/jdk1.5.0_01/bin/java ']'
+++ /shares/free/opt/jdk1.5.0_01/bin/java -version
+++ /usr/bin/awk -f /opt/sun/sunstudio10u1/prod/scripts/ver.awk
awk: run time error: regular expression compile failed (missing operand)
"| |(|)|,|
        FILENAME="" FNR=0 NR=0
++ ver=
+++ /opt/sun/sunstudio10u1/prod/scripts/jdk_compare 1.3.9 ''
++ gettext -e 'Warning: Ignoring JDK_HOME. Sun Studio does not run with this\nversion of the J2SE.\n'
+++ '[' -x /shares/free/opt/jdk1.5.0_01/bin/java ']'
+++ /usr/bin/awk -f /opt/sun/sunstudio10u1/prod/scripts/ver.awk
+++ /shares/free/opt/jdk1.5.0_01/bin/java -version
awk: run time error: regular expression compile failed (missing operand)
"| |(|)|,|
        FILENAME="" FNR=0 NR=0
++ ver=
+++ /opt/sun/sunstudio10u1/prod/scripts/jdk_compare 1.3.9 ''
++ for d in '"${JDKLIST[@]}"'
++ '[' -x /usr/j2se/bin/java -a -x /usr/j2se/bin/javac ']'The rest of the utilities seem to work correctly, netbeans starts up correctly.

The awk script was written and tested on various
platforms, both
Linux and Solaris. I'm not familiar with Ubuntu Linux
and thats not
one of the platforms we tested on.=====
www.ubuntulinux.org
Could you do several things for me?
First, could you do some sanity testing on
/usr/bin/awk. Just
enough to make sure its working in other uses. If it
does, can
you see if its a symlink to gawk? If so, what version
of gawk
(you can do "awk --version" if it is). On the Linux
platform I have
(SuSE Linux Enterprise System 9), I get "GNU Awk
3.1.3". If you
can send me the exact version of awk, I might be able
to come
up with an alternative.=====
The installed awk was a symlink to mawk.
I installed also the GNU awk and that fixed it.
You might also be able to fix this. Do you have write
permissions
on your sunstudio install? If you look at the ver.awk
script it has
a comment giving an alternate value of the FS which
is easier
to read, but doesn't work on Solaris (where
/usr/bin/awk isn't
GNU awk). Since we have to work with both GNU and
Solaris
awk, I didn't use this alternate. But if that works
on your system
its a simple way of getting you going.
Of course, you're still not on a supported Linux
platform, so there
are still no guarantees you won't run into other
problems. These
would most likely be in some of the native
executables the IDE
uses (such as dbx and dmake). The core parts of the
IDE (all
Java parts), should work fine on most any Linux
platform.=====
Encountered the problem with dbx dependency to libc:
$ dbx
dbx: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.3.4' not found (required by dbx)
$ ldd -v /lib/tls/i686/cmov/libc.so.6
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Version information:
/lib/tls/i686/cmov/libc.so.6:
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
$ ldd /opt/sun/sunstudio10u1/bin/dbx
/opt/sun/sunstudio10u1/bin/dbx: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.3.4' not found (required by /opt/sun/sunstudio10u1/bin/dbx)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7fce000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7f14000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ef3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ee7000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dba000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7feb000)
Was there a reason why this version of GNU libc was chosen as minimal requirementl!?

Similar Messages

  • ACROBAT STARTUP SCRIPTING NOT WORKING (with extendscript Tooklkit CS6)

    Hi
    I experienced in programming, but newbie in JS-Scripting in CS6.
    I have developed some scripts in the console of Acrobat XI Pro, now I wan't to install that global script callable by a menu.
    I work on Windows-7, with 64bit:
    The script path is:
    C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts
    script name is Confg.js
    The script is created with Extendscript Tooklkit CS6 editor
    only contains this line:
    app.alert("Hi, from a globally executed script");
    I expect that an alert is poping up, when I open the Acrobat XI Pro with any PDF-File:
    for a change
    app.addMenuItem({cName:"Menu Test", cParent: "Help",   cExec: "app.alert('Menu Item Test'); "});
    doesn't work either
    after opening PDF XI Pro with an arbitry PDF I get an error in the console:
    Acrobat – Version mit integrierten EScript-Funktionen 11.0
    Acrobat SOAP 11.0
    SyntaxError: illegal character
    1:Folder-Level:App:Config.js
    If I create the file with a plain text editor, things will work fine, as expected.
    If I edit that clean file with Extendscript Tooklkit CS6 editor again the file is corrupted. This is rahter clumsy. Any solution, so I can work with Extendscript Tooklkit CS6 editor?

    Thanks for the reply.
    >>Acrobat is not one of listed programs that Extendscript is used with.
    I was already wondering about this. Thought my installation is corrupted or whatever
    Though with regret, I have to accept that Extendscript Toolkit can't be used with Acrobat XI scripting. I use jEdit meanwhile. This has syntax higlighting and a linenumbering, helpful to spot errorous linenumbers. This does the job so far.

  • VB startup script not running on Win7

    Hi,
    my startup VB script not working on Windows 7. The script should install or uninstall office 2010 based on group membership. 
    I tested scipt on Windows XP and everything works. When I run script manually, it works.
    Quite similiar batch file works, office are installed but not same functionality for me.
    I turn UAC off, bot not working.. Also add dword EnableLinkedConnections  but nothing change.
    Batch file works but VBScript not!
    Any advice? Thx

    Hi Tomas Cink,
    Based on my understanding, the start VB script which is deployed via GPO could not works fine on Windows 7 clients, although it can works fine on Windows XP clients and it can
    run sucessfully if manually. Right?
    Firstly, please run the following command on the problematic workstation.
          Gpresult /h > C:\temp\gpresult.html  (“C:\temp\” is the path of the gpresult.html, you can set it by yourself)
    This file is used for checking the result of Group Policy information. Open the file to check if the GPO has applied.
    If the GPO has applied, please follow the following step to narrow down the issue:
    Change the script to the following command: add  > %SystemDrive%\Users\test.txt
    to the script.
    Log on to a client with a regular user account, run
    gpupdate/force, and then re-log on to this client.
    Check if the test.txt file exists in this location
    %SystemDrive%\Users.
    If the
    test.txt file exists, the GPO with startup script is applied successfully. But the result of running logon script achieves the goal we excepted or not which is still not sure.
    Regards,
    Lany Zhang

  • Startup script not running on windows xp machines

    i'm trying to apply a simple startup script 
    -it worked on windows 7 and 8 machines, but not windows xp
    -i can access the folder where the script located, double click it and its working
    - i tested the same script as a logon script, it worked
    many threads about this topic but couldn't fine any answer

    Hi,
    Below thread might be helpful,
    http://social.technet.microsoft.com/Forums/en-US/4ec21389-b6c1-4818-9482-06dc72fc77bb/windows-xp-sp3-not-showing-running-startup-scripts?forum=winserverGP
    Regards,
    Gopi
    JiJi
    Technologies

  • CS3 Extension that initializes a JS-Object during startup is not working in CS4

    Here is a simple Extension that works fine in DW CS3 and doesn't work in DW CS4 (trial version):
    The File myObj_Startup.htm was placed in Folder Configuration/Startup. It initializes a quite simple Javascript-Object during Startup of DW.
    Content of myObj_Startup.html:
    <!-- MENU-LOCATION=NONE -->
    <HTML>
    <HEAD>
    <TITLE>beim &Ouml;ffnen</TITLE>
    <SCRIPT LANGUAGE="javascript">
    myObj =
         showMsg : function (msg)
             alert(msg);
    function onOpen()
       myObj.showMsg("startup");
    // SCRIPT ENDE
    </SCRIPT>
    </HEAD>
    <BODY onLoad="onOpen();">
    </BODY>
    </HTML>
    Besides this, an additional menuitem was defined in menus.xml to use the JS-object myObj:
    <menu mmstring:name="menus/DWMenu_File" id="DWMenu_File">
            <menuitem name="Test" command="myObj.showMsg('Testing');" enabled="true" domRequired="false" id="DWMenu_File_SIEMENSTEST" />
            <menuitem mmstring:name="menus/DWMenu_File_New" key="Cmd+N" command="dw.newDocument()" enabled="true" domRequired="false" id="DWMenu_File_New" />
    With Dreamweaver CS3 everything works out fine: I get a Alert-message: "startup" during Startup and when I'm clicking Menu->File->Test I get a Alert-message: "Testing".
    With Dreamweaver CS4  (trial version) I get a message: "startup" as well but when I'm clicking Menu->File->Test I get no message.
    Instead I get a Logfile "C:\Documents and Settings\user\Application Data\Adobe\Dreamweaver CS4\en_US\Configuration\Logs\DW JavaScript.log" telling me:
       JS Error:
           myObj is not defined
           filename:
           lineno: 0
           While executing DWMenu_File_TEST command in menus.xml, the following JavaScript error(s) occurred:
           ReferenceError: myObj is not defined
    Why is this simple extension working in DW CS3 and not working in DW CS4?
    Did they change the treatment of JS-objects initialized during startup?
    Is the object out of scope?
    Are such extensions not working in trial versions of DW CS4?
    I cannot explain this behavior - please help!

    Hi,
    I have an similar problem and couldnt find an workaround for the problem.
    When i add an new menu item to the menus.xml file, the menu item shows up, but my custom command (simple alert) wont trigger.
    Can somebody please help?

  • Managed server startup script not reading login info from boot.properties

    To encrypt the username and password in weblogic admin server, I used a boot.properties file and setting some properties like StoreBootIdentity=true. This works as expected.
    Now, I have a weblogic managed server within the same folder i.e.
    under /bea/user_projects/domains/mydomain
    To get the similar behaviour on this managed server, I created a boot1.properties file and set the following in the startup script
    java -Djava.compiler=NONE -ms200m -mx200m $HOTSPOT_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=mydomain -Dweblogic.Name=$SERVER_NAME -Dweblogic.management.server=$ADMIN_URL -Djava.security.policy==$WL_HOME/server/lib/weblogic.policy -DRCP_PROPS=/data/css/adixit/samsung/scc612/server/cfg/RCP.props -Dlog4j.configuration=log4j.xml -Dweblogic.system.BootIdentityFile=/bea/user_projects/domains/mydomain/boot1.properties -Dweblogic.RootDirectory=/bea/user_projects/domains/mydomain weblogic.Server
    When I run the script I get the following :-
    <Jan 24, 2005 3:41:44 PM GMT+05:30> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
    Enter username to boot WebLogic server:
    Why is it not able to pick the username and password from the boot1.properties file ? Any clues ? What settings can I change to make it work ?
    Thanks in advance.

    Being that you posted this problem a few months ago, I am assuming you found the cause of your problem. I too experienced this same symptom (boot.properties not being read) when trying to start a managed server on a different server than the admin JVM. I found the resolution in the following documentation:
    http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html#BootIdentityFiles
    Basically, you have to copy the SerializedSystemIni.dat from the server that the admin JVM is on to the secondary server where the managed JVM is going to run. I was able to do as the link says (add the boot.properties file with plain text passwords and have it encrypted). Hope this helps you or someone else down the road.

  • I can't get Photoshop CS6 startup script to works ?

    Hi!
    I'm trying to get a script to execute each time photoshop cs6 is started. I've tried to put it in that folder ( Photoshop-CS6-Scripting-Guide.pdf page 10) C:\Program Files\Common Files\Adobe\Startup Scripts CS6\Adobe Photoshop but it doesn't start ... If I put it in there C:\Users\[USERNAME]\AppData\Roaming\Adobe\Bridge CS6\Startup Scripts it loads when I start BridgeCS6 but it fails as it's a script done for photoshop. So I try to put it in C:\Users\[USERNAME]\AppData\Roaming\Adobe\Photoshop CS6\Startup Scripts but didn't work as I was expecting ;o) .
    I don' think it matters but my OS is in french but photoshop is in english.
    So where is the proper place ?
    cheers

    Yes Startup Scripts is a Bridge thing.  If you open Bridge and use menu Edit>Preferences you will see Startup Scripts in the left pane if highlight that the right pane will contain a check box list of startup scripts you can enable.
    Photoshop has a script event manager. Script and action can be start automatically when an event occurs. They will not start if a a started event process has not finished nesting will not happen. So on an event like start application, new document, open document a script or action can be set to run.
    I never tried setting one up for start application but Photoshop ships with one named clean listener which could be useful. Find it in:
    presete\scripys\Event Scripts Only. And menu>File>Scripts>Scripts Event Manager

  • Gpo computer startup scripts not running

    Hi,
    I´m making some test with a windows 7 pro 64 bit computer and a 2008 r2 domain controller where I have created a computer startup script. I give you more info:
    Domain functional level: 2008 R2
    DC: 2008 R2
    Client: Windows 7 pro x64
    Gpo: Computer configuration -> Windows configuration -> Script -> Startup
    Type of script: bat file copied on \\domain_name\SysVol\domain_name\Policies\{461E688A-E8F8-4C9B-8419-FE83DCDD4C26}\Machine\Scripts\Startup
    The windows 7 machine is full updated, windows firewall disabled, uac disabled, windows defender disabled.
    The bat file works and the gpo is applying, i have seen it via gpresult, another gpo which is in a top level works fine.
    I need some help please, because I don´t know what to try.
    Thanks in advance.

    Hello Egoitz28,
    Do you mean that you add the bat file in the startup group policy and gpresult shows that it is applied, but the bat is not run?
    Please share us the bat file to test.
    Logon/Logoff scripts could only be applied to users, whereas Start-up/Shutdown scripts applies to computers.
    I create a test.bat start %windir%\system32\notepad.exe, and add it to the User Configuration->Policies->windows Settings->Scripts->Logon in the Default domain policy. And it works.
    If I create in the startup policy in Computer configuration, I can see it in the gpresult, but it doesn’t work.
    Please test if the bat works in the Logon policy.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Script not working in SharePoint content editor webpart

    Hi All,
    <html>
    <head>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function () {
    //Call your function here like
    //retrieveListItems();
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "SP.js");
    var siteUrl = '/vceo/PMO/EPMO/';
    var close1 = ''; var close2 = ''; var high = ''; var low = ''; var medium = ''; var lowMedium = ''; var mediumHigh = '';
    var open1 = ''; var open2 = ''; var high1 = ''; var low1 = ''; var medium1 = ''; var lowMedium1 = ''; var mediumHigh1 = '';
    var count = 0; var count1 = 0;
    var initiate = 0; var planning = 0; var execution = 0; var closing = 0;
    var sumMinimal = 0; var sumModerate = 0; var sumCritical = 0; var sumSevere = 0;
    var sumHighlyLikely = 0; var sumLikely = 0; var sumSomewhat = 0; var sumUnlikely = 0;
    var sumBudget = 0; var sumCommitted = 0; var sumConsumption = 0;
    function retrieveListItems() {
    alert("Welcome to Dashboard");
    var clientContext = new SP.ClientContext(siteUrl); alert("site url");
    var oList = clientContext.get_web().get_lists().getByTitle('Project Issues and Risks');
    var oList1 = clientContext.get_web().get_lists().getByTitle('Project');
    var oList2 = clientContext.get_web().get_lists().getByTitle('Risk Impact');
    var oList3 = clientContext.get_web().get_lists().getByTitle('Risk Probability'); alert("get by title");
    var camlQuery = new SP.CamlQuery(); var camlQuery1 = new SP.CamlQuery(); var camlQuery2 = new SP.CamlQuery(); var camlQuery3 = new SP.CamlQuery(); var camlQuery4 = new SP.CamlQuery(); var camlQuery5 = new SP.CamlQuery(); var camlQuery6 = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Issue</Value></Eq></Where></Query></View>');
    camlQuery1.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Risk</Value></Eq></Where></Query></View>');
    camlQuery2.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Open</Value></Eq></Where></Query></View>');
    camlQuery3.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Closed</Value></Eq></Where></Query></View>');
    camlQuery4.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery5.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery6.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    this.collListItem = oList.getItems(camlQuery); this.collListItem1 = oList.getItems(camlQuery1); this.collListItem2 = oList1.getItems(camlQuery2); this.collListItem3 = oList1.getItems(camlQuery3);
    this.collListItem4 = oList2.getItems(camlQuery4); this.collListItem5 = oList3.getItems(camlQuery5); this.collListItem6 = oList1.getItems(camlQuery6);
    clientContext.load(collListItem); clientContext.load(collListItem1); clientContext.load(collListItem2); clientContext.load(collListItem3); clientContext.load(collListItem4); clientContext.load(collListItem5); clientContext.load(collListItem6);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    alert("retrieve list");
    function onQuerySucceeded(sender, args) {
    alert("succeed");
    var listItemEnumerator = collListItem.getEnumerator(); var listItemEnumerator1 = collListItem1.getEnumerator(); var listItemEnumerator2 = collListItem2.getEnumerator();
    var listItemEnumerator3 = collListItem3.getEnumerator(); var listItemEnumerator4 = collListItem4.getEnumerator(); var listItemEnumerator5 = collListItem5.getEnumerator(); var listItemEnumerator6 = collListItem6.getEnumerator();
    var sumClose = 0; var sumClose1 = 0; var sumHigh = 0; var sumMedium = 0; var sumLow = 0; var sumLowMedium = 0; var sumMediumHigh = 0;
    var sumOpen = 0; var sumOpen1 = 0; var sumHigh1 = 0; var sumMedium1 = 0; var sumLow1 = 0; var sumLowMedium1 = 0; var sumMediumHigh1 = 0;
    while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); sumClose += oListItem.get_item('Close'); sumOpen += oListItem.get_item('Open'); sumHigh += oListItem.get_item('High'); sumMedium += oListItem.get_item('Medium'); sumLow += oListItem.get_item('Low'); sumLowMedium += oListItem.get_item('LowMedium'); sumMediumHigh += oListItem.get_item('MediumHigh'); }
    while (listItemEnumerator1.moveNext()) { var oListItem1 = listItemEnumerator1.get_current(); sumClose1 += oListItem1.get_item('Close'); sumOpen1 += oListItem1.get_item('Open'); sumHigh1 += oListItem1.get_item('High'); sumMedium1 += oListItem1.get_item('Medium'); sumLow1 += oListItem1.get_item('Low'); sumLowMedium1 += oListItem1.get_item('LowMedium'); sumMediumHigh1 += oListItem1.get_item('MediumHigh'); }
    while (listItemEnumerator4.moveNext()) { var oListItem4 = listItemEnumerator4.get_current(); sumMinimal += oListItem4.get_item('Minimal'); sumModerate += oListItem4.get_item('Moderate'); sumSevere += oListItem4.get_item('Severe'); sumCritical += oListItem4.get_item('Critical'); }
    while (listItemEnumerator5.moveNext()) { var oListItem5 = listItemEnumerator5.get_current(); sumUnlikely += oListItem5.get_item('Unlikely'); sumSomewhat += oListItem5.get_item('Somewhat'); sumLikely += oListItem5.get_item('Likely'); sumHighlyLikely += oListItem5.get_item('HighlyLikely'); }
    while (listItemEnumerator6.moveNext()) { var oListItem6 = listItemEnumerator6.get_current(); sumBudget += oListItem6.get_item('Project_x0020_Budget_x0020_Amoun'); sumCommitted += oListItem6.get_item('Committed_x0020_Budget'); }
    count = this.collListItem2.get_count();
    count1 = this.collListItem3.get_count();
    while (listItemEnumerator2.moveNext()) {
    var oListItem2 = listItemEnumerator2.get_current();
    var stat = oListItem2.get_item('Project_x0020_Status');
    if (stat == "Intiation") {
    initiate = initiate + 1
    if (stat == "Planning") {
    planning = planning + 1
    if (stat == "Execution") {
    execution = execution + 1
    if (stat == "Closing") {
    closing = closing + 1
    //alert("initiate" + initiate); alert("planning" + planning); alert("execution" + execution); alert("closing" + closing);
    //alert("countOpen" + count); alert("closed:" + count1);
    window.close1 = sumClose; window.close2 = sumClose1; window.high = sumHigh; window.low = sumLow; window.medium = sumMedium; window.mediumHigh = sumMediumHigh; window.lowMedium = sumLowMedium;
    window.open1 = sumOpen; window.open2 = sumOpen1; window.high1 = sumHigh1; window.low1 = sumLow1; window.medium1 = sumMedium1; window.mediumHigh1 = sumMediumHigh1; window.lowMedium1 = sumLowMedium1;
    drawChart();
    function onQueryFailed(sender, args) { alert('Request failed.. ' + args.get_message() + '\n' + args.get_stackTrace()); }
    google.load("visualization", "1", { packages: ["corechart"] });
    function drawChart() {
    var data = google.visualization.arrayToDataTable([['Task', 'Issues'], ['Close', window.close1], ['Open', window.open1]]);
    var data1 = google.visualization.arrayToDataTable([['Task', 'Risks'], ['Close', window.close2], ['Open', window.open2]]);
    var data2 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high, window.mediumHigh, window.medium, window.lowMedium, window.low]]);
    var data3 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high1, window.mediumHigh1, window.medium1, window.lowMedium1, window.low1]]);
    var data4 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Closed', count1], ['Open', count]]);
    var data5 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Initiation', initiate], ['Planning', planning], ['Execution', execution], ['Closing', closing]]);
    var data6 = google.visualization.arrayToDataTable([['Program', 'Impact'], ['Minimal', sumMinimal], ['Moderate', sumModerate], ['Severe', sumSevere], ['Critical', sumCritical]]);
    var data7 = google.visualization.arrayToDataTable([['Program', 'Probability'], ['Highly Likely/Probable(76%-100%)', sumHighlyLikely], ['Likely(51%-76%)', sumLikely], ['Somewhat Likely(26%-50%)', sumSomewhat], ['Unlikely/Improbable(0%-25%)', sumUnlikely]]);
    var data8 = google.visualization.arrayToDataTable([['Project', 'Budget'], ['Approved', sumBudget], ['Committed', sumCommitted]]);
    var options = { title: 'Program Issues', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options1 = { title: 'Program Risks', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options2 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options3 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options4 = { title: 'Project Status', width: 225, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options5 = { width: 175, height: 200, legend: { position: 'top', maxLines: 10 }, pieSliceText: 'value', };
    var options6 = { title: 'Program Risk Impact', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options7 = { title: 'Program Risk Probable', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options8 = { title: 'Project Budget', width: 300, height: 300, legend: 'bottom', pieSliceText: 'value', };
    var chart = new google.visualization.PieChart(document.getElementById('chart_div3'));
    chart.draw(data, options);
    var chart1 = new google.visualization.PieChart(document.getElementById('chart_div'));
    chart1.draw(data1, options1);
    var chart2 = new google.visualization.ColumnChart(document.getElementById('chart_div1'));
    chart2.draw(data2, options2);
    var chart3 = new google.visualization.ColumnChart(document.getElementById('chart_div2'));
    chart3.draw(data3, options3);
    var chart4 = new google.visualization.PieChart(document.getElementById('chart_div4'));
    chart4.draw(data4, options4);
    var chart5 = new google.visualization.PieChart(document.getElementById('chart_div5'));
    chart5.draw(data5, options5);
    var chart6 = new google.visualization.PieChart(document.getElementById('chart_div6'));
    chart6.draw(data6, options6);
    var chart7 = new google.visualization.PieChart(document.getElementById('chart_div7'));
    chart7.draw(data7, options7);
    var chart8 = new google.visualization.ColumnChart(document.getElementById('chart_div8'));
    chart8.draw(data8, options8);
    </script>
    </head>
    <body>
    <table >
    <tbody>
    <tr>
    <td id="chart_div8" colspan="2" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div4" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div5" style="border-bottom:ridge;border-right:ridge;border-top:ridge"></td>
    </tr>
    <tr>
    <td id="chart_div" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div2" style="border-bottom:ridge;"></td>
    <td id="chart_div3" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div1" style="border-bottom:ridge;border-right:ridge""></td>
    </tr>
    <tr>
    <td id="chart_div6" colspan="2" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div7" colspan="2" style="border-bottom:ridge;border-left:ridge;border-right:ridge"></td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
    This content editor webpart not working in sharepoint page. Once I checked out to the page then chart is working. When i checkedin function not get called. How to fix this?
    THanks in advance!

    In SharePoint 2013, sp.js and sp.runtime.js does not load on the page in published mode. You need to explicitly load these files. You can check using IE developer tools in the Script section that in published mode these files are missing.
    In order to fix this issue explictly refer these two js files on your page.
    <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="_layouts/15/sp.js"></script>
    Geetanjali Arora | My blogs |

  • Simple button script not working

    I am using AS2 and need help figuring out why this simple button script is not working:
    stop();
    buttonWS1.onRelease = function(){
                        gotoAndStop("Stage1and2_Boss",4);
    buttonWS2.onRelease = function(){
                        nextFrame();
    //end
    My buttons are the square letter-puzzles below. They are images that I converted to "symbols" (specifically, buttons). I put their names as above (buttonWS1, buttonWS2, etc.) in the "instance names" boxes.
    I have no idea what is going on. Please help!

    Hi -
    1. Yes, buttonWS2 is the instance name
    2. The only code attached to it is the code I pasted above.
    3. onRelease does not execute because my trace statement does not appear in the output
    Here is the modified code for buttonWS2:
    buttonWS2.onRelease = function(){
                        trace("clicked!");
                        nextFrame();
    Question: It shouldn't matter if I have commented-out code within that set of codes should it?:
    buttonWS2.onRelease = function(){
              //if (puzzleschosenarray[0] == 2 || puzzleschosenarray[1] == 2) {
              // cannot be chosen -- make button non-functional
              //else{
                        //puzzleschosenarray[roundnumber-1] = 2;
                        trace("clicked!");
                        nextFrame();

  • Java script not working in 1 pdf, but same script is NOT working in other

    Dear Experts,
    I have a problem with java script.
    I have created 2 PDFs with the same Form name and sub form names.
    I have written a javascript and this script seems to be working in one (Demand2.pdf) and NOT working in the other (Sample.pdf).
    The link for Demand2.pdf is
    https://acrobat.com/#d=XIydWx1RIU4oNdTySHtHfg
    and the link for sample.pdf is
    https://acrobat.com/#d=sKPRs2dtDY57RSvMVtnh3w
    Can you please guide me on this.
    Many Thanks
    BookFans

    Hi,
    The second file (Sample.pdf) is saved as Static. The script is changing the visual appearance of the form (showing and hiding objects). This requires the file to be saved as a Dynamic PDF. This is available in the save-as dialogue under the file name.
    Good luck,
    Niall

  • Logout Script not working in 10.9.3 Mavericks

    Sorry for the duplicate post, but this issue is with MacBook Pro not iMac.
    Can anyone tell me why this logoutscript will not work using LogouHook in Mavericks.  The exact same script worked with Lion and Mountain Lion.
    #!/bin/csh
    ## CCS-Checkout Logout Script
    if ( $USER == 'ccs-checkout' ) then
    #first, unlock all files
    /usr/bin/chflags -R nouchg /Users/ccs-checkout/*
    /usr/bin/chflags -R nouchg /Users/ccs-checkout/.Trash/
    /usr/bin/chflags -R nouchg /Users/ccs-checkout/.??*
    #then, delete all of the files
    /bin/rm -R /Users/ccs-checkout
    #copy a "clean" version of the ccs-checkout users home directory
    /usr/bin/ditto -rsrcFork /var/skel/ccs-checkout /Users/ccs-checkout
    #ensure that the users directory exists and set the privs
    /usr/sbin/chown -R ccs-checkout:wheel /Users/ccs-checkout
    /bin/chmod -R 775 /Users/ccs-checkout/
    #make sure trash is empty
    /bin/rm -R /Users/ccs-checkout/.Trash/
    #make sure trash dir exists and set privs for trash and dot files
    /bin/mkdir /Users/ccs-checkout/.Trash
    /usr/sbin/chown -R ccs-checkout /Users/ccs-checkout/.??*
    /bin/chmod -R 700 /Users/ccs-checkout/.??*
    endif
    exit 0
    The script will run in terminal when copied and pasted from #first, unlock all of the files to exit 0.
    When I run defaults write com.apple.loginwindow LogoutHook /usr/local/bin/LogoutScript the date on the com.apple.loginwindow.plist file changes so it is being modified.
    Apparently there is something in:
    #!/bin/csh
    ## CCS-Checkout Logout Script
    if ( $USER == 'ccs-checkout' ) then
    That Mavericks does not like or won't execute.
    To duplicate this issue on your MBP make a user named ccs-checkout with normal permissions and autologon.  After the first logon of the ccs-checkout user log out and log on as root and copy the ccs-checkout users local profile to the /var/skel/ folder.  Then make the above script into an executable .sh file named LogoutScript and place it in the /usr/local/bin/ folder and run the above LogoutHook.
    Thanks for any help with this issue.

    This is the part of code where script fails. In 9.2 I haven't any kind of problems.
                        think(0.1);
                   forms
                   .tree(100,
                        "//forms:tree[(@name='ZVE_PREGLED_ZAVAROVANJE_0')]")
                        .expandNode(
                        "X");
                        think(0.1);
                   forms
                   .tree(101,
                        "//forms:tree[(@name='ZVE_PREGLED_ZAVAROVANJE_0')]")
                        .selectNode(
                        "XY");
                        think(0.1);
                   forms
                   .tree(102,
                        "//forms:tree[(@name='ZVE_PREGLED_ZAVAROVANJE_0')]")
                        .activateNode(
                        "XYZ");
                        think(0.1);
                   forms
                   .textField(103,
                        "//forms:textField[(@name='INFO_BLOCK_IZBRANA_ZAVAROVANJA_0')]")
                        .setFocus();
                        think(0.1);
                   }

  • [js] CS Scripting not working with CS3

    Hello,
    We had a JavaScript made for us that enabled the user to exchange certain text within a document.
    This script works fine with CS (Ver.3.0.1) but gives a JavaScript Error - #55, Error String: Object does not support the property or method 'findPreferences' with CS3 (Ver.5.0)
    I have tried 'tinkering' around with the scripting - but I have zero experience with JavaScript and have not found a solution.
    Additionally the people that wrote the initial script are not available.
    I have bought several books but they all seem like alien-language to me
    Below is the section of origional CS scripting.
    Can anyone point out to me WHY this script does not work with CS3?
    And WHERE I should start looking - changing?
    Thanks in advance for your help and guidence.
    Lee
    // Exchange the text
    function actProjectData(oneDoc, oneResult){
    app.findPreferences = null; app.changePreferences = null;
    oneDoc.search(undefined, true, true, oneResult[0],{appliedCharacterStyle:oneDoc.characterStyles.item(myProjectTitleCharStyleNa me)}, undefined);
    oneDoc.search(undefined, true, true, oneResult[1],{appliedCharacterStyle:oneDoc.characterStyles.item(myOfferNoCharStyleName)}, undefined);
    oneDoc.search(undefined, true, true, oneResult[2],{appliedCharacterStyle:oneDoc.characterStyles.item(myOfferDateCharStyleName) }, undefined);
    app.findPreferences = null; app.changePreferences = null;

    > Come to think of it, maybe it's easier to create a folder "Version 4.0 Scripts" under your scripts folder and place your CS script in there. Maybe that will do the trick. Should have thought of that earlier.
    Tried this, but it didn't seem to do anything... But certainly a 'try' worth.
    Currently playing around with the:
    > app.findTextPreferences.findWhat = "a";
    app.changeTextPreferences.changeTo = "b";
    oneDoc.changeText();
    I've got to the point where I have no error messages :-) Now I'm really flying.....
    Fact is - not all text and also the wrong text is replaced!!!
    I'm currently playing with the script to try and replace
    all texts with a given paragraph style with the entered text...
    Not proving to be simple for me, but I'm learning rather a lot!
    Now that doesn't sound very clear when I go back and read it!
    What I want to say is:
    Each page of the document has the project name, No & Date on it (each having their own paragraph style)
    so
    With this script it asks you the Project name, No. and Date and then goes
    through the whole document and replaces all instants of those texts with specific paragraph styles with the newly 'entered' text.
    Proving to be a little mountain for me - Thought it would only be a hill!

  • [JS CS5] Re order pages script not working for me

    Hi, I'm attempting to use the reorder script marked as the answer in this post :
    http://forums.adobe.com/thread/519470
    My problem is that when it reorders the pages, it puts them all into one spread and errors once it reaches 10.
    Some details on what I am doing -
    It's an 18 page document, reorder is as follows:
    1,2,4,18,17,5,6,16,15,7,8,14,13,9,3,10,11,12
    Currently it's in spreads, but even when I turn off facing pages, move each page by itself and turn the master into one page, I still have the same error. I've been fighting with this a while, I've tried each of those by themselves as well.
    In case you are curious about the order - this is a booklet, but the middle signature is 3 pages. I'm attempting to create a script that will take it from reader to printer spreads as "print booklet" will not work because of the 3 page signature (extra page is a fold out on finished product).
    I'm fairly new to scripting and feel it must be something obvious I'm just missing.
    Thank you for your time!!

    @Krista – I suggest you ask in the thread you are pointing to with your link.
    No need to split the thread into two.
    Now to your problem:
    if all the pages end up in one spread it is no surprise that you get an error after page 10. The maximum page count of one single spread is 10.
    Why do the pages go to one spread?
    It's pure speculation, but I think it has to do with some preconditions your spreads are in.
    Check for "Allow Document Pages to Shuffle" and "Allow Selected Spread to Shuffle".
    Is "Allow Selected Spread to Shuffle" "off" or "on" for the particular spread where all pages are added?
    And another question:
    what is the particular script you refer to? There are a couple of scripts in this thread from various authors.
    Uwe

  • Font missing CS4 script not working in CS5???

    hi, my font missing script is working in CS3, and CS4 but not working in CS4.
    I don't know why, any help please.
    Sam

    Object model has some changes in CS5.
    So use the below code in top of your script.
    app.scriptPreferences.version = 6.0;

Maybe you are looking for