Jar runs from Dos prompt, but not when double clicked.

Hello everyone,
My executable jar file will run fine when called from the Dos prompt like so: java -jar myJarFile.jar
But not when I double click it. I've associated *.jar files with java.exe as suggested here on the forums but all that happens when I double click the jar file is that I get an instance of the Dos prompt that flashes up on the screen and closes immediately. Any help or suggestions would be appreciated, thank you.
This short tutorial I found earlier may be of help to somebody.
http://www.cs.princeton.edu/introcs/85application/jar/jar.html

Yes Carmello, I had associated jar files via folder options in windows explorer with java.exe, now when I have the jars associated with javaw.exe as in the following:
ACTION:
javaw.exe -jar "%1"
APPLICATION USED TO PERFORM ACTION:
javaw.exe "%1"
I get an error dialog with the title string "Java Virtual Machine Launcher" and the error message itself is "Could not find the main class. Program will exit." when I double click on the jar file. As I said in my first post the application [GUI based with around ten different forms] runs fine when called from the Dos prompt. Any idea as to what is wrong? Thanks for replying by the way.

Similar Messages

  • Rh10 - HTML Help - linking to pdf shows when generate CHM and 'view results' but not when double-click on CHM in project folder or in product help

    I have several PDFs in Baggage Files that are linked to topics in the Table of Contents.  When I generate the CHM file and 'View Results' I am able to pull up/access the PDFs with no problem.  When I go into the project folder and just double-click on the CHM file, I cannot pull up/access any of the PDFs nor can I access them in the product help.  Any ideas?  Is a setting "off" somewhere in my project?
    I am using RoboHelp 10.
    Thanks!

    eeddings wrote:
    Thanks for the idea, but I can't switch the project to WebHelp.  This .chm project consists of a master project with 18 slave projects and a slew of remote jumps.  I'd have to recreate all of the remote jumps if I switch to WebHelp.
    Hopefully Adobe can fix this issue.
    Well, first off, even though it would be WebHelp, it would be inside a CHM container. So for all intents and purposes it would be a CHM file. But having said that, I'm not sure there is a way to merge these hybrid types of CHM files.
    If your statement about Adobe fixing the issue is meaning that they can either remove the Print icon from the CHM Viewer, I wouldn't hold my breath because as I said, that's in Microsoft's lap and they haven't updated the CHM viewer in a long while. Doubtful they ever will.
    The only hope would then be for Adobe to update the code used for the Mini TOC. The only way that will happen is if enough folks submit this as a bug via the following link:
    http://www.adobe.com/go/wish
    Until that would happen, your likely best bet is to simply avoid using the Mini-TOC feature or just insert a warning that if the topic is printed, it will cause issues. Or, you could use bookmarks and links to establish your own verision of a "Mini-TOC"
    Cheers... Rick

  • I imported photos from an old iPhoto (2001) to photo library and can now see them as thumbnails but not when I click on them. The screen is black cannot see or print either. Is there any way to salvage those old photos? I now use iLife09. OS 10.6

    I imported photos from an old iPhoto (2001) to photo library and can now see them only as thumbnails but not when I click on them. The screen is black cannot see or print either. Is there any way to salvage those old photos? I now use iLife09. OS 10.6

    Did you import the old iPhoto library into the new one? That's not what you want to do because you will import all of the original, modified and thumbnail files as if they were original files. Lots of duplicates and useless small photos.
    Do you have a backup copy of the library that you imported into to?  If you do then bring it in and then use  iPhoto Library Manager to merge the two libraries into a new, 3rd library.
    If you don't then you'll have to try to fix the current one and then cull out the duplicates and small useless photos as follows:  make a temporary, duplicate copy of your library and apply the three fixes in order as necessary.
    Fix #1
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your HD/User/Home()/ Library/Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your HD/User/Home()/Library /Caches/com.apple.iPhoto folder. 
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    Fix #2
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #3
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    If this doesn't fix the problem you'll have to start over from scratch and create a new library from the files inside the Originals folder of your current library.  But first you should cull out the small photos that would be the thumbnails from the 2001 library.
    Move the Originals folder to the Desktop, open and do a search for Kind=photo, File size is less than 10 KB.  That should find all of the thumbnail files which you can then drag to the Trash.  You might have to make that less than 50 KB. Then Import the remaining photos into a new iPhoto library.
    OT

  • VBScript Runs Correctly From Command Prompt, But Not From SQL Server Agent Job

    I'm trying to run this script on my local machine to do some post-batch cleanup and it doesn't run correctly from the scheduled job (or when I invoke the job).
    Here's the script in question:
    Option Explicit
    Const filePath = "C:\Documents and Settings\jmunn\My Documents\Visual Studio 2008\Logs\"
    Const holdDays = 6
    main
    Sub Main()
    ClearArchive
    End Sub
    Sub ClearArchive()
    Dim fso 'As Scripting.FileSystemObject
    Dim fld 'As Scripting.Folder
    Dim f 'As Scripting.File
    Dim delLogName, delLogOut, delCtr
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set fld = fso.GetFolder(filePath)
    delLogName = filePath & "Nightly Backup - Backup Logs Deleted" & ".txt"
    Set delLogOut = fso.CreateTextFile(delLogName, True)
    delLogOut.WriteLine(delLogName)
    delLogOut.WriteLine("")
    delLogOut.WriteLine("-- The following log files were deleted on " & DateValue(Now()) & " at " & TimeValue(Now()))
    delLogOut.WriteLine("")
    delCtr = 0
    For Each f In fld.Files
    If Left(f.Name, 48) = "Nightly Backup - SQL Server Databases_Subplan_1_" And Right(LCase(f.Name), 4) = ".txt" Then
    If DateDiff("d", f.DateCreated, Date()) > holdDays Then
    delLogOut.WriteLine(f.Name)
    fso.DeleteFile f, True
    delCtr = delCtr + 1
    End If
    End If
    Next
    If delCtr = 0 Then
    delLogOut.WriteLine("No log files were deleted this run...")
    End If
    Set fld = Nothing
    Set fso = Nothing
    delLogOut.Close
    End Sub
    If I put the script in its own file and run it from the command prompt, it runs just fine. If the script runs from the SQL Server Agent job, the for-loop will delete the files correctly, but the filenames
    do not get written to the deletion log file and the counter does not get incremented, so according to the job log, nothing was deleted. Why does the script run differently from each invocation? It can't be a permission thing, the service that logs in has full
    access to the directory and the files do get deleted. Any ideas out there?
    Between this and other outstanding issues, I'm quickly losing faith in SQL Server.  >=o(
    Thanks in advance for your thoughts!
    John
    Version Info:
    Microsoft SQL Server Management Studio      10.0.2531.0
    Microsoft Analysis Services Client Tools      10.0.1600.22
    Microsoft Data Access Components (MDAC)      3.85.1132
    Microsoft MSXML      2.6 3.0 4.0 5.0 6.0
    Microsoft Internet Explorer      8.0.6001.18702
    Microsoft .NET Framework      2.0.50727.3603
    Operating System      5.1.2600
    "A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation..."

    Hi
    jrmunn
    i am trying to execute VB script to refresh my excel files.. using Vbscript file through SQL Agent job step.
    i have copied VBscript in a file with the extension RefreshExcel.vbs kept in C:\RefreshExcel.vbs
    Below is the script used inside the file (RefreshExcel.vbs)
    //---Script code-----------------------------------------------------------------
    Dim objXL, objWB
    Dim FileLocation, FileName
    On Error Resume Next
    'lgnConn = 1
    FileLocation = "F:\Reports\Reports"
    Set objXL = CreateObject("Excel.Application")
    objXL.DisplayAlerts = False
    FileName = "ReportFile1.xlsx"
    'MsgBox (FileLocation & "/" & FileName)
    Set objWB = objXL.Workbooks.Open(FileLocation & "/" & FileName)
    objWB.EnableConnections
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.Save
    objWB.Close
    Set objWS = Nothing
    Set objWB = Nothing
    objXL.Quit
    Set objXL = Nothing
    'MsgBox ("Refresh Completed")
    ---------------------------------------------------------------------------------------------------//Script complete
    Now when i am trying to call this script file in SQL agent job step (as you mentioned )
    as Type -cmdExec(OperatingSystem)
    cscript "C:\RefreshExcel.vbs"
    Issue: job step executed succesfully ,,but without performing any refresh on the excel. So i am not understandig what is going wrong. the same script file work when i am calling it through a batch file (window scheuler task). But it doesnt support
    to run the file "when user is not logged in"
    that is why  i want to refresh my excel file through sql agent ,which can be scheduled to any time and cab be run as SQL agent credentials.
    Can you please help me on this ...i have tried all the option but nothing working .. found hope by seeing your solution.
    Thanks in advance.
    Please help me. :-(

  • Query runs from command line, but not from scheduler

    We use Control-M to schedule shell scripts to be run on a Solaris server. Some of the scripts have to access an Oracle database and in that case our security team will include the DB user and password in the script, then encrypt it and the sys admin team schedules the encrypted shell script with Control-M. That works fine, but we've been trying to have the DB user and password on a separate encrypted file so that we don't have to ask for file encryption every time it's necessary to modify a script (this is a test environment).
    We have the script at ~/system_name/scripts, the query at ~/system_name/sql and the encrypted file and key at ~/system_name/keys. The SQLPlus call in the script is:
    ${ORACLE_HOME}/bin/sqlplus "`decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system`"@instance_name <<EOF
    @${DIR_SQL}/TEST_QUERY.SQL
    quit
    EOF
    The security analyst has tested is successfully from command line, but when we schedule it with Control-M the job abends and we get the following in the sysout:
    + decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system
    decrypt: cannot open ./../keys/key.3des.system
    decrypt: invalid key.
    + /u00/app/oracle/product/11.1.0/db_1/bin/sqlplus @instance_name
    + 0<<
    @/sistemas/hmp/system_name/sql/TEST_QUERY.SQL
    quit
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 3 09:41:55 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SP2-0310: unable to open file "instance_name.sql"
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    0000000080
    Any ideas?

    Looks like the command is being split in some way - the connection to sqlplus is being made before it completes the whole string
    It appears to be seeing the @instance_name as a script to execute rather than a db to connect to.
    Is the database on the same server as the script?
    If so, try setting your environment to the correct databsae, so that you can omit the @instance_name part of the syntax and see if it helps
    Also just noticed the failure to open the decrypt script. It would appear uyou are not using a full path name. Have you checked which directroy the scheduled job starts in? You may need to look at running some environment specific scripts first.
    Edited by: LindaA on 05-May-2010 07:43

  • Weird: Backup file works fine from the network but not when moved into sandbox environment

    We have a valid full backup of a database. We know it is valid, we have restored it twice from the network with no problems, but we do not have access to the network location from our sandbox environment.
    The .bak file is sizable at about 9GB. The .bak file resides on our internal network, in a SAN drive. No problems there. When we copy the file from there into a sandbox environment to attempt the restore in the sandbox environment it gets corrupted. We've
    tried three different times and all three different times it gets corrupted. First time we copied the file over to the sandbox the restore went up to 50% and failed. The second time we copied the file again and attempted the restore again it failed at 70%.
    The third time it failed at 60%. The error message we get during the restore is "...Read on ... failed: 13(The data is invalid) Msg 3013, Level 16, State 1, Line 1 Restore database is terminating abnormally."
    Now some background here. To move the file our network team is doing this: they have this .vmdk file that they mount out in our production environment (which has access to the network location where the .bak file is), copy the file into the drive, then move
    the .vmdk file into the sandbox environment(which does not have access to the network location), mount the drive in the sandbox environment, and then I have access to the .bak file from within the sandbox environment.
    Something in the process of using the .vmdk file to move the .bak file from production into the sandbox is causing the file to get corrupted.
    Any thoughts? Has anyone seen this before? Any idea? TIA,
    Raphael
    rferreira

    Original server that generated the .bak file:
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2550.0 (X64) 
    Jun 11 2012 16:41:53 
    Copyright (c) Microsoft Corporation
    Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
    Server where I CAN restore the .bak file from the network location (not inside the sandbox):
    Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) 
    Dec 28 2012 20:23:12 
    Copyright (c) Microsoft Corporation
    Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
    Server inside the sandbox where I get the error when attempting to restore the backup:
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2550.0 (X64)   Jun 11 2012 16:41:53   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor) 
    rferreira

  • Splash screen works from browser, not when double-clicked on desktop

    Hi,
    I am having trouble making a splash screen appear and have a specific question about it.
    The code is from the tutorial at:
    http://blogs.sun.com/thejavatutorials/entry/changing_the_java_web_start
    I have changed the codebase attribute of the jnlp element so it refers to my own server:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for ButtonDemo -->
    <jnlp spec="1.0+" codebase="https://justanexample.com/buttondemo" href="ButtonDemo.jnlp">
      <information>
        <title>ButtonDemo</title>
        <vendor>The Java(tm) Tutorial: Sun Microsystems, Inc.</vendor>
        <homepage href="http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#ButtonDemo"/>
        <icon href="mysplash.jpg" kind="splash"/>
        <description>ButtonDemo</description>
        <description kind="short">Demonstrates use of buttons within containers</description>
        <offline-allowed/>
      </information>
      <resources>
        <j2se version="1.6+"/>
        <jar href="ButtonDemo.jar"/>
      </resources>
      <application-desc main-class="components.ButtonDemo"/>
    </jnlp> This JNLP, the mysplash.jpg, and the ButtonDemo.jar are deployed to the web server, under a "buttondemo" subdirectory of the web server's DocumentRoot.
    If I access the JNLP from a browser (https://justanexample.com/buttondemo/ButtonDemo.jnlp), things work as expected:
    The first time "Java Loading" appears.
    The mysplash.jpg is cached and can be seen in the Resource list with "javaws -viewer."
    During the second and subsequent launches, the custom splash screen appears as expected.
    However, if I have the JNLP file on my desktop, and I open it from there with a double-click, I never see the splash screen.
    My question: Why is this? Shouldn't I see the splash screen after the first launch, even if I launched by double-clicking the JNLP file on my desktop?
    Why I care:
    While I've shown the problem using ButtonDemo, I am having the same issue with my own application. I'd like to have an icon on the desktop the user can click. I do have it working, but using a workaround I consider fragile and perhaps inappropriate.
    I am using the 1.6.0_18-b07 version of the JRE on Vista SP2.
    Thanks in advance for any explanation/help.
    Edited by: mmissire on Feb 10, 2010 7:52 PM

    I couldn't get this to work. For the benefit of anyone needing something similar, here's what I did to work around it.
    At install time, my app already unpacked some config files into a known place under the user's home directory. So I now unpack a splash screen there, as well.
    The desktop shortcut tells javaws to skip it's splash screen with -Xnosplash, and then tells the JVM to use a local one (with the -J"splash:" argument). Something like this worked well enough:
    C:\Windows\System32\javaws.exe -J"-splash:C:\Users\whoever\appname\splash.jpg" -Xnosplash "C:\Users\whoever\appname\app.jnlp"

  • Since i upgraded to FF4 Beta. The suggestion bit in my Google toolbar, works but not when you click on a suggestion?

    It gives suggestions but when you click on them nothing happens they just disappear.

    Hi satorilori-
    You might try this:
    -> Clear Cookies & Cache
    https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    -> Clear the Network Cache
    -> Reload web page(s) and bypass the cache.
    Press and hold Shift and left-click the Reload button.
    Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    Press "Cmd + Shift + R" (MAC)
    Check and tell if its working. Hope that helps!

  • Can open Topics by drag & drop, but not by double-clicking in the DITA map

    Hi,
    evidently I made an error somewhere in my structure app, the result is that I cannot open DITA topics by double clicking them in the DITA map anymore (Framemaker does simpy nothing). I can, however, open them by dragging the xml files onto the Framemaker window.  If I use the standard DITA 1.2 application everything works fine so I guess the problem is in my mapping.
    Here is what I tried to achieve:
    We need certain variations of the normal 'topic' type topic. The DTD should be identical, however different structures should be auto-inserted when creating a topic and the topic should have certain attribute values predefined.
    The idea is that the author can select one of these topic types when creating a topic, but when opening an existing topic simply edit it with the standard topic temple.
    Here is what I did:
    I duplicated the topic.template.fm, renaming it say "topic_a.template.fm", "topic_b.template.fm" etc. (just an example).
    I made adjustments to the EDD of these templates, changing the auto-insertions and the default values of some attributes.
    In the structapps.fm file I added XML applications for these new topic types, mapping each application to one of the new templates, but to the original topic DTD and r/w rules. E.g. the application "DITA_1.2_topic_a" is mapped to the "topic_a.template.fm" template, and to the original "topic.dtd" and "topic.rules.txt" files.
    In Framemaker I then created corresponding application mappings in the DITA options. E.g. the topic type "A" (which defines the visible text in the "New topic" menu) is maped to the XML application "DITA_1.2_topic_a".
    The result:
    It works as intended in every way when creating topics. The topics are saved with the standard doctype 'topic'. However for when I try to open topics from the DTD by double-clicking then nothing happens. Opening topics by drag & drop works fine though and they are opened with the normal (general) "topic.template.fm" template as desired.
    Any ideas? Was this confusing or am I completely off somewhere?
    Robert

    Hi Robert...
    When you say that you need "variations" from the normal topic type .. are those structural variations or just formatting? FM associates structure apps with XML files based on the doctype (root element). If your files all have the same root element, then they will all open with the same structure application (unless you specify a different one when opening the file or by importing a new EDD). It sounds like you really should be creating a specialization for each alternate topic type. If you don't, you'll end up getting the wrong "model" assigned to the wrong file.
    Multiple EDDs (structure apps) can share the same DTD, and one EDD (structure app) can support multiple models. This is how the "ditabase" app works. There are lots of ways to set this up, but I think what you've done is probably not quite right.
    The default structure app setup in FM11 and FM12 is very complicated to work with. I recommend creating a single app that supports many models. This isn't always possible, but it sounds like in your case it should be. I've set up one app that supports 13 different specialized topic models and it works fine.
    Note that even though you've added structure apps for each model, if you end up opening the files using the default template, you are no longer using those modified models.
    Sorry, but this is a bit more than can be dealt with appropriately in a forum post. If you'd like more help with this, feel free to contact me off list.
    Cheers,
    …scott
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • Is there possible to edit JTree cell but not by double click?

    Hi,
    I looked for few hours to solve that problem but couldnt find a good solution. I have JTree component a simple model, when I click on some button I would like to add a new item to my model and immidiately display editor in JTree's cell when new item was added to enter its custom unique name. Does an one know how to fire edit mode for cell?
    thanx and regards
    Adam

    The discussion in this thread from last week should get you started.
    [How can I add a node with with a user-chosen name to JTree in one action|http://forums.sun.com/thread.jspa?threadID=5325551]
    db

  • Can't open files on server in program but can when double click in finder

    I have a Mac Pro 2.66. From withing Quark and Illustrator I have trouble opening files that are on a server Mac. They refuse to open. I can open them up by double clicking on them in the finder. This doesn't happen on the g4's and g5 on the same network.

    Have you installed the 7.0.2 patch?
    Bob

  • Procedure runs in SQL Plus, but not when called from my Oracle Form

    Hi. I have this code to send an email alert as the user updates a record on my base table from my Oracle Form. I use dbms_scheduler so that it's submitted as a background job and so the email processing does not delay my Oracle Form from saving quickly. If I submit this code in SQL Plus it executes and I receive the email as expected.
    begin
    dbms_scheduler.create_job ( 
         job_name            => 'IMMEDIATE_JOB', 
         job_type            => 'PLSQL_BLOCK', 
         job_action          => 'begin TTMS.dropperVacationConflict_Notify (62547, ''01-SEP-11'', ''02-SEP-11''); end;', 
         number_of_arguments => 0, 
         start_date          => sysdate +1/24/59, -- sysdate + 1 minute 
         enabled             => TRUE, 
         auto_drop           => TRUE, 
         comments            => 'Immediate, one-time run');
    end;However if I submit this code from a Post-Update trigger in my form the code runs without error, but my email is never received (the same parameter values would be passed to this trigger):
    begin
    -- Submit the email notification in the background so as to not slow down the screen while saving.   
    dbms_scheduler.create_job ( 
         job_name            => 'IMMEDIATE_JOB', 
         job_type            => 'PLSQL_BLOCK', 
         job_action          => 'begin TTMS.dropperVacationConflict_Notify (:dropper_vacations.dropper_id, :dropper_vacations.begin_dt, :dropper_vacations.end_dt); end;', 
         number_of_arguments => 0, 
         start_date          => sysdate +1/24/59, -- sysdate + 1 minute 
         enabled             => TRUE, 
         auto_drop           => TRUE, 
         comments            => 'Immediate, one-time run');
    end;     Any ideas why this might be happening?

    Wow, so I changed the two procedures so that I'm only passing in one number parameter and one char parameter...
    CREATE OR REPLACE procedure TTMS.job_vacationconflict_notify (p_dropper_id number, p_other char) IS
    CREATE OR REPLACE PROCEDURE TTMS.dropperVacationEmailURL_new (in_dropper_id number, in_other char) ISIf I execute it like this it works and I get the email:
    TTMS.job_vacationconflict_notify(62547, 99999);or like this it works and I get the email:
    TTMS.job_vacationconflict_notify(62547, '99999');But if I execute it like this (I get no errors) the email is not sent:
    TTMS.job_vacationconflict_notify(62547, 'ababa');So this problem really has nothing to do with date formats. It seems to have to do with whether parameter two has characters in it!!! What the heck.
    Any ideas on this?
    Here is the procedure I'm calling:
    CREATE OR REPLACE procedure TTMS.job_vacationconflict_notify (p_dropper_id number, p_other char) IS
    begin
      dbms_scheduler.create_job ( 
         job_name            => 'IMMEDIATE_JOB', 
         job_type            => 'PLSQL_BLOCK', 
         job_action          => 'begin TTMS.dropperVacationemailurl_new ('||p_dropper_id||','||p_other||'); end;', 
         number_of_arguments => 0, 
         start_date          => sysdate +1/24/59, -- sysdate + 1 minute 
         enabled             => TRUE, 
         auto_drop           => TRUE, 
         comments            => 'Immediate, one-time run');
    end;
    /And the above procedure is calling this procedure which should be sending the email alert:
    CREATE OR REPLACE PROCEDURE TTMS.dropperVacationEmailURL_new (in_dropper_id number, in_other char) IS
          myguid varchar2(15):=null;
          pcm_contact varchar2(3):=null;
          guid_contact varchar2(15):=null;
          conflict_cnt number(8):=0;
          -- Various declarations
          PSENDER VARCHAR2(200);            --  From
          PRECIPIENT VARCHAR2(200);         --  To
          P_CC_RECIPIENT VARCHAR2(200);     --  CC
          P_BCC_RECIPIENT VARCHAR2(200);    --  BCC
          PSUBJECT VARCHAR2(200);           --  Subject
          PMESSAGE VARCHAR2(6000);          --  Message Body
          PPARAMETER NUMBER;                --  Parameter Value
          guid_valid varchar2(15);          --  Used to grab the validation value of
          -- Grab name details of e-mail targets
          cursor targets is
          select guid, initcap(first_name) first_name, initcap(first_name)||' '||initcap(last_name) fullname
          from pwc_employee
          where upper(guid) = upper(guid_contact);
    BEGIN
            select count(*)
            into conflict_cnt
            from dropper_bundle_assign
            where
                dropper_sched = in_dropper_id and
                trunc(sched) <> '31-DEC-29' AND        
                trunc(sched) between '01-SEP-11' and '02-SEP-11' and
                trunc(sched) > trunc(sysdate);
            select distinct pcm
            into pcm_contact
            from dropper_bundle_assign
            where
                  dropper_sched = in_dropper_id and
                  trunc(sched) <> '31-DEC-29' AND        
                  trunc(sched) between '01-SEP-11' and '02-SEP-11' and
                  trunc(sched) > trunc(sysdate);
            select guid
            into guid_contact
            from pwc_employee
            where initials = pcm_contact;
        -- Ensure required parameters have been passed
        if guid_contact is not null
           and in_dropper_id is not null then
               Begin
                    select guid
                    into guid_valid
                    from pwc_employee
                    where upper(guid) = upper(guid_contact);
               Exception
                    when no_data_found then
                    raise_application_error(-20000,'Invalid Recipient.  Please check the employee table.  Please try again.');
               End;
               -- In the event there are multiple targets then we will loop thru and send individual emails
               for thisone in targets loop
                    PSENDER := lower(user)||'@us.ibm.com';
                    PRECIPIENT := lower(thisone.guid)||'@us.ibm.com';
                    P_CC_RECIPIENT := lower(thisone.guid)||'@us.ibm.com';
                    P_BCC_RECIPIENT := 'ssbuechl'||'@us.ibm.com';
                    PPARAMETER := TO_NUMBER(lower(in_dropper_id));
                    PSUBJECT := 'TEST: Dropper Vacation '||in_other||' Conflict Notification for dropper '||in_dropper_id||' - Action Required';
                    PMESSAGE := thisone.first_name||'-<br><br>There is an induction conflict due to a new or updated dropper vacation.<br><br>Click here to the dropper''s vacation conflicts: <u><a href="http://9.35.32.205:7777/forms/frmservlet?config=TTMSMENU&form=dropper_vacations&otherparams=p_dropper='||PPARAMETER||'">Dropper Id: '||PPARAMETER||'</a></u> (note: use your Oracle credentials when prompted for log-on information).<br><br>Thanks.';
                    SEND_MAIL ( PSENDER, PRECIPIENT, P_CC_RECIPIENT, P_BCC_RECIPIENT, PSUBJECT, PMESSAGE );  -- Procedure to physically send the e-mail notification
               end loop;
        else
              raise_application_error(-20001,'Recipient and Parameter Value are required. Please try again.');
        end if;
    exception
        when no_data_found then
             raise_application_error(-20002,'Note: Email will not be sent because no PCM was identified as the manager or the PCM does not have a record in the Employee table.  See ITS for assistance.');
         when too_many_rows then
             raise_application_error(-20003,'Note: Email will not be sent because multiple PCMs manage this dropper. Please notify each PCM manually.');
    END dropperVacationEmailURL_new;
    /Edited by: sharpe on Aug 17, 2011 4:38 PM
    Edited by: sharpe on Aug 17, 2011 5:03 PM

  • Jar run from command prompt?

    Hi !
    How do I run my Jar from the command prompt window?
    my jar's name is " javaproject 7"
    Thanks!

    Java application launcher documentation:
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

  • Reports display when ran from admin console but not when following link

    We are running SCCM 2007.  I am encountering a strange issue with running reports.  I have the admin console running on my workstation and I can run all reports fine.  They display in IE the way they should.  However... If I select the
    "Email" option for the top of the report and e-mail a link to myself to the exact same report I get a HTTP 500 error.  Also, I can not connect to the reporting site through a web browser.  If I connect to http://sccmserver/SMSReporting_ABC
    it displays the SCCM logo in the top left corner, the "Welcome to the SYstems Management Server Report Viewer" heading and explanation on the right but it displays a HTTP 500 error in the left hand pane.  Any idea what I may have misconfigured?
    Thanks!

    Which reports are you use ASP or SSRS?
    http://sccmserver/SMSReporting_ABC is ASP report and NOT SSRS and I don't recommend that you use ASP reporting any more. It just has too many problems.
    http://www.enhansoft.com/

  • Native Process running from Flash Builder but not from the installed exe

    I have created an AIR application to launch a native process. The   application works fine when tested in Flash Builder but doesn't runs   when I create and AIR  installer and run the installed exe. Any idea  what might be wrong?

    Have you created a native installer instead of just an AIR file.
    -ted

Maybe you are looking for

  • DVD Drive Module, Identify?

    I got one of these http://cgi.ebay.com/APPLE-POWERBOOK-G3-4X-DVD-ROM-DRIVE-MODEL-SR-8173-C_W0QQitem Z130018660882QQihZ003QQcategoryZ31565QQrdZ1QQcmdZViewItem on eBay, for my Lombard, because it said G3 and I could see it wasn't the one for a Wallstre

  • Read data from 3 arduino analog pins

    Hi,  My name is Jack. I have a question about how to read multiply data from arduino analog inputs in labview. I have tried to read data from 2 pins by using same way (continuous analog samples) and the system works well. However, I failed in reading

  • IPod won't appear on desktop

    When I plug in my iPod, it doesn't appear on the desktop. How can I find it? Thanks, Joanne

  • How to setup the Deal Finder in Cloud for Customer

    Hi all, We are implementing Cloud for Customer 1402. We have a requirement for automatic lead qualification. We want to create criteria on which leads are automatically qualified to cold, warm or hot. I understood the new Deal Finder functionality ca

  • Having problem downloading photoshop elements 13 on my mac.

    just purchased photoshop elements 13 for my mac. now i'm going to finish the install and its telling me my adobe password is incorrect. i logged on to adobe and change my password and still won't accept it.