More command line woes......

ok - I have 2 copies of a very similar java class called FileStuff - one of them is part of a package called ch10_io the other is not.... I can run the one that is NOT part of the package by typing >java FileStuff. I cannot run the one that is part of the package.
here's the source for both.....
1st the one in the package:
package ch10_io;
import java.io.File;
import java.io.IOException;
import static java.lang.System.out;
public class FileStuff {
    public static void main(String args[]) throws IOException {
        out.print("File system roots: ");
        for (File root : File.listRoots()) {
            out.format("%s ", root);
        out.println();
        for (String fileName : args) {
            out.format("%n------%nnew File(%s)%n", fileName);
            File f = new File(fileName);
            out.format("toString(): %s%n", f);
            out.format("exists(): %b%n", f.exists());
            out.format("lastModified(): %tc%n", f.lastModified());
            out.format("isFile(): %b%n", f.isFile());
            out.format("isDirectory(): %b%n", f.isDirectory());
            out.format("isHidden(): %b%n", f.isHidden());
            out.format("canRead(): %b%n", f.canRead());
            out.format("canWrite(): %b%n", f.canWrite());
            out.format("canExecute(): %b%n", f.canExecute());
            out.format("isAbsolute(): %b%n", f.isAbsolute());
            out.format("length(): %d%n", f.length());
            out.format("getName(): %s%n", f.getName());
            out.format("getPath(): %s%n", f.getPath());
            out.format("getAbsolutePath(): %s%n", f.getAbsolutePath());
            out.format("getCanonicalPath(): %s%n", f.getCanonicalPath());
            out.format("getParent(): %s%n", f.getParent());
            out.format("toURI: %s%n", f.toURI());
}now the one that is not part of the package:
import java.io.File;
import java.io.IOException;
import static java.lang.System.out;
public class FileStuff {
    public static void main(String args[]) throws IOException {
        out.print("File system roots: ");
        for (File root : File.listRoots()) {
            out.format("%s ", root);
        out.println();
        for (String fileName : args) {
            out.format("%n------%nnew File(%s)%n", fileName);
            File f = new File(fileName);
            out.format("toString(): %s%n", f);
            out.format("exists(): %b%n", f.exists());
            out.format("lastModified(): %tc%n", f.lastModified());
            out.format("isFile(): %b%n", f.isFile());
            out.format("isDirectory(): %b%n", f.isDirectory());
            out.format("isHidden(): %b%n", f.isHidden());
            out.format("canRead(): %b%n", f.canRead());
            out.format("canWrite(): %b%n", f.canWrite());
            out.format("canExecute(): %b%n", f.canExecute());
            out.format("isAbsolute(): %b%n", f.isAbsolute());
            out.format("length(): %d%n", f.length());
            out.format("getName(): %s%n", f.getName());
            out.format("getPath(): %s%n", f.getPath());
            out.format("getAbsolutePath(): %s%n", f.getAbsolutePath());
            out.format("getCanonicalPath(): %s%n", f.getCanonicalPath());
            out.format("getParent(): %s%n", f.getParent());
            out.format("toURI: %s%n", f.toURI());
}I use the same command for each .... do I need to qualify the command for the first version by using the package name somehow?
when I try to run the packaged version I get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: CH10_IO/ch10_io/FileS
tuff
Message was edited by:
thouse

do I need to qualify the command for the first version by using the package name
somehow?Yes.
When you do what flounder suggests you will have to specify the directory that the source file belongs to when you compile it. (Using some OS specific convention like / or \).
And when you run the program you will have to specify the name of the class. (Using the convention that Java likes: package-dot-name).
[Edit] > if I just type >java FileStuff it doesn't. Any ideas why that is?
As above. But, woe! "zero dukes available"!

Similar Messages

  • More Command line arguments...

    I found the topic: http://forum.java.sun.com/thread.jspa?threadID=755702&tstart=45
    But, I need only one instance of a Java Web Start Application (using singleton).
    How I can send more arguments to the JWS instance running application
    from the other link from the same web site??
    Thanks

    Disregard this. I'm just really slow today. I needed two arguments and I was only putting one.

  • PM3 programmer communication without command line EXE

    Hello All,
    We are using a PM3 programmer for ICSP in our ATE by using the command line option provided by Microchip. We could succesfully solve the task using USB communication.
    But, to reduce some more command line execution time, instead of command line option we are planning to communicate with the PM3 directly by using the protocol details supplied by Microchip
    To reduce our development time, we want to use the already developed PM3 programmer protocol interface driver VIs, if available .
    If any of you have tried this option earlier, pls provide your suggestions.
    thanks.
    Krishna

    Krishna,
    I'm afraid I don't have any experience in that area, so I can't be of much help.  However, there is some discussion in the thread
    How can I control PIC programmer with LabVIEW which you may find helpful.
    Regards,
    Devin K
    Systems Engineering - RTT & HIL

  • Command line preview on Network Assistant

    Does the Network Assistant show any more command line previews other than under "port settings"?  I would like to learn more commands and don't see where there is a CLI preview under VLANS for example.
    Thanks,

    I know this is an older post, but I came across a similar problem today. 
         Starting: %ProgramFiles%\Adobe\...\AcroRd32.exe /N filename.pdf 
    just flashed the screen.
    I had recently installed Acrobat on this machine, so I switched to start Acrobat.exe instead and all is fine.
    I still see AcroRd32.exe under the Acrobat installed folder, so not sure why AcroRd32.exe doesn't work, but now my BATCH command first looks for Acrobat.exe and executes it if it's present, otherwise it looks for AcroRd32.exe and executes it.
    set ADOBE_EXE=
    for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles(x86)%\Adobe\Acrobat.exe" /s /a /b`) do @set ADOBE_EXE=%%I
    if not "%ADOBE_EXE%"=="" goto OPEN_PDF
    for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles%\Adobe\Acrobat.exe" /s /a /b`) do @set ADOBE_EXE=%%I
    if not "%ADOBE_EXE%"=="" goto OPEN_PDF
    for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles(x86)%\Adobe\AcroRd32.exe" /s /a /b`) do @set ADOBE_EXE=%%I
    if not "%ADOBE_EXE%"=="" goto OPEN_PDF
    for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles%\Adobe\AcroRd32.exe" /s /a /b`) do @set ADOBE_EXE=%%I
    :OPEN_PDF
    jar -xf %JARFILE% %PDFNAME%.pdf
    "%ADOBE_EXE%" /N %PDFNAME%.pdf
    erase %PDFNAME%.pdf >NUL 2>&1

  • How to delete more than one workbook from command line

    Hi, I'd like to delete more than one workbook from command line:
    The following syntax, it doesn't work....but I followed the manual instructions:
    dis51adm.exe /connect eul/eul@uatdb /delete /workbook "ALE_TEST_1, ALE_TEST_2" /eul eul /log D:\Ale\delete.log
    where:
    eul/eul@uatdb: is the db’s schema/user where the EUL is installed;
    /delete "ALE_TEST_1, ALE_TEST_2": is the command to delete the workbooks, specified inside the “” (with the relative path)
    /log D:\Ale\delete.log: is the command to write a log’s file named “delete.log” to track the action     
    The log file says:
    22/4/2008 4:00:26 μμ
    dis51adm.exe /connect /delete /workbook ALE_TEST_1, ALE_TEST_2 /eul eul /log D:\Ale\delete.log
    Document ALE_TEST_1, ALE_TEST_2 not found in EUL.
    Internal EUL Error: ObjectNotFound - Can't find EUL element
    There are 0 eul elements to be deleted.
    Completed deleting eul elements.
    22/4/2008 4:00:29 μμ
    Anyone can tell me how is the right syntax ?
    Thanks in advance
    Alex

    Hi Rod
    I was coming to that conclusion myself but wanted to wait until the other avenues had been exhausted first - aka making sure of the workbook names.
    I checked through all of the command line documentation and read nothing which clearly indicated that only one workbook could be processed at a time, other than the fact that the syntax says workbook and not workbooks, which could be a big clue.
    I think you are right though in that it has to be one at a time, which would be a pain.
    Best wishes
    Michael

  • Testing for more than one command line argument

    Ok im writing a client to access a given server. What i want to happen is to say that if you enter one argument at the command line do this code- if you enter more than one do something else. I cant seem think of how to do this though-ive tried testing if args > 0 but it wont let me do that . Here is the code so far:
    import java.io.*;
    import java.net.*;
    class Whereis2
       public static void main(String args[]) throws Exception
          int c;
          //whois.geektools.com
          Socket s = new Socket("dante.net.dcs.hull.ac.uk",43);
          InputStream in = s.getInputStream();
          OutputStream out = s.getOutputStream();
            String str = args[0] + "\r\n" ;
             // convert string to bytes, unicode to ASCII
             byte buf[] = str.getBytes();
             // send data to server
             out.write(buf) ;
          while ((c = in.read()) != -1)
         System.out.print ((char) c);
          s.close();
    } Basically i want the code written above to happen is you put in one argument-ie Whereis2 Paul for example. But if i put in Whereis2 Paul "In a meeting" I want it to update the server. Can anyone help me to do this?
    Thanks a lot

    And by the way:
    "Where is Paul" (notice the quotation marks) is a single argument with spaces in it.
    Where is Paul (no quotation marks) is three arguments, no spaces.
    PS. Why are you throwing Exception?

  • Combine two or more pdf as one pdf from command line

    Hi,
    I have to combine two or more pdf file as one pdf file from command line.
    Is it possible.
    Thanks,
    Ansaf.

    Acrobat has a rich SDK, but not using the command line - declared obsolete by Adobe several decades ago (but taking a long time to die). To be fair, implementing thousands of APIs via command line would make for a rather complicated command line. Use OLE. BUT NOT ON A SERVER!!

  • Want to learn more about the command line for Mac OS X

    Hi, I'm kind of new here...I've been using my MacBook since last summer, however I want to really get a feel of the command line and would like some recommendations on how to learn more about it.
    Looks like it is based off of BSD, and I've been using Linux for about 10 years now and also have a CompTIA Linux+ cert, however some of the commands aren't the same.
    So, if anyone can post some websites/recommendations that would be great.
    thanks

    Buy any one or more of the many books available at Amazon.com about Unix under OS X. Linux and Unix are related but not the same. Even FreeBSD Unix is not the same as what's implemented under the OS X hood.
    And you will find other good books at PeachPit.com.
    There also is a separate Unix forum here.

  • Open and Close a command line exec via OpenG.lib in seperate VIs

    Hi,
    I'm aiming to perform tests on my UUT - over a command line based executable which established a USB connection, so - sendings commands and checking the return string. 
    So far i'm reusing the pipeNight.vi which is shared in the following post.
    http://forums.ni.com/t5/LabVIEW/How-to-pass-input-to-a-DOS-executable-that-is-running-in/m-p/1763182...
    However i wish expand from LabVIEW and utilise NI-TestStand sequence files to ramp up the test coverage and perform the tests automatically.
    The issue i've encountered - every time i call the pipeNight.vi from a TestStand sequence Step, the USB connection is build up and torn down.
    Although i'm not encountering any performance issues to date, i would ultimately like to open a session (i.e.establish the usb connection) - at the beginning of a sequence file, send a bunch or commands and check return strings, before closing the session at the end of the sequence file. This is surely a more effecient and elegant solution.
    Is it somehow possible to split the pipeNight.vi into several VIs to realise this objective?
    - Open 
    - Write/Read
    - Close
    i'd appreciate and help or alternatice solutions on this!
    B.Regards
    Kech
    Solved!
    Go to Solution.

    I had tried to explain in my initial post, that if i call the pipeNight.vi from a TestStand sequence file step, then establishes a USB connection and tears it done - for every command that i send/ respectively every sequence step that i run in TestStand. As i envisage multiple (several hundred) test steps, i woul like to improve effeciency by establishing the ESB connection once instead of multiple times.

  • GUI Applications unable to use command line tools

    Hi All-
    I've searched, but I can't find a thread about this one, so...
    On OS 10.4.5:
    Whenever I use a GUI app that wants to use a command line tool (e.g. curl, df, java), the app fails giving an error message to the effect of "unable to find curl" or the like. It is as if the GUI cannot find my unix $PATH.
    Examples:
    -- Eclipse refuses to launch, because it appears to use "java xxxxxxx" to launch.
    -- Automator fails to run certain Safari actions because they use curl to navigate web pages.
    -- Carbon Copy Cloner fails to launch, because it can't find a tool (df, IIRC) to read drive/volume info
    Possibly relevant details:
    -- I can use the tool in question from the command line, so they are present, and in my $PATH, but the GUI can't find them.
    -- I recently moved from an old G4 to a relatively new G5, and had issues migrating files, so I eventually just copied my entire home directory from the old machine to the new, replacing the freshly created one on the new machine. I feel like that missed something that tells the GUI where your $PATH is, or some other link between GUI and command line.
    -- I created a new user, and that user does not experience the same troubles. This adds to my suspicion that it is account/PATH related.
    Any help anyone can give it greatly appreciated.
    -p
    PM G5 dual 2.0   Mac OS X (10.4.5)  

    Did you by any chance create an evironment.plist file? It is located in ~/.MacOSX/ If you don't know about it or don't know to look (.MacOSX is normally invisible), try this:
    In Finder.app, in the "Go" menu select "Go to Folder..." (shift-command-G), type ~/MacOSX in the text field and hit OK, the finder should then open a window or complain.
    If it opens a window and you find in it a file named environment.plist move that file to the desktop and try your applications. Do they work as advertized? Try again after logging in/out if things don't work. Do they work now?
    Whatever hapens, tell us more...

  • Problem using extension manager CS5 with command line

    Hi All,
    I had posted my question here : http://forums.adobe.com/message/4695419#4695419, but was advised to do so here as well..
    I have a requirement to get the path of all the installed Extension Managers on any Windows system for the purpose of installing an extension.. I thought, there would be no problem in getting the path from the registry. There was no problem in Win XP, but the same does not work for Win 7.. I googled, and found alternate ways to get the path.
    Here is the link : http://forums.adobe.com/thread/851359. I followed the instructions in this post, but failed to get this working for CS5 as mentioned in my previous thread... No problem for CS5.1 and CS6.. Why is that?
    I want to get this working for CS5, CS5.1, CS6... How can I get the path of all the Extension Manager versions installed on a Windows system?
    Please refer to the following screenshots to get a better understanding of my problem,
    I created a jsx file named "Result.jsx", which I saved in my D drive, with the following code,
    resultFile = new File("D:/result.log");
    resultFile.open("w");
    resultFile.write(BridgeTalk.__diagnostics__);
    resultFile.close();
    If I run this directly from ESTK CS5, there is no problem, and I get the result.log file. I tried to execute this script via command line as shown in the screenshot,
    On executing the above, I got the following error,
    What is going wrong?
    Please help!

    I am sorry for the poor documentation of Extension Manager which causes you so much trouble.
    1. You can use BridgeTalk API to ask specific version of Extension Manager to do something. There is sample in packaging_extension.pdf about this. You don't need to know the installation path of Extension Manager. One thing to note is that the value of bt.target is version specific, i.e. "exman-5.0", "exman-5.5" send this message to different version of Extension Manager, so you can change this value to install/enable/disable/remove extensions using different version of Extension Manager. More detailed documentation of BridgeTalk can be found by clicking "Help" menu then clicking "Javascript Tools Guide CS5" in "Adobe ExtendScript Toolkit CS5".
    2. Specific version of Extension Manager only manage extensions for corresponding version of product. You should use Extension Manager CS5 to install extensions for Photoshop CS5. The reason that the extension you installed for Photoshop CS5.1 using Extension Manager CS5.5 is displayed for Photoshop CS5 in Extension Manager CS5 is that two versions of Photoshop specified the same directory for Extension Manager to manage extensions. This is a defect and will cause some problems if multiple versions of Photoshop co-existed in one machine. But "to find  previous (CS5) extension manager and to enable it" should work for you, I guess you use command line to enable it and specify wrong product name (see #3) so that it doesn't work.
    3. When using command line, you should specify "product" attribute with the name displayed at the left panel of Extension Manager. So "Photoshop CS5 32" is correct. Remember to enclose it with double quote because of existence of space character.
    4. As above mentioned, use display name of Photoshop, and call proper version of Extension Manager by BridgeTalk.

  • Using java to run command line as %username%

    Hi all,
    can any one help with this?
    I'm trying to run a command line from a database as %username% in Windows. So far I have the following script, courtesy of Frank Naude to build a java class that is published within a plsql procedure. A command line can then be passed to it.
    rem -----------------------------------------------------------------------
    rem Filename: oscmd.sql
    rem Purpose: Execute operating system commands from PL/SQL
    rem Notes: Specify full paths to commands, for example,
    rem specify /usr/bin/ps instead of ps.
    rem Date: 09-Apr-2005
    rem Author: Frank Naude, Oracle FAQ
    rem -----------------------------------------------------------------------
    rem -----------------------------------------------------------------------
    rem Grant Java Access to user USER1
    rem -----------------------------------------------------------------------
    conn sys/password@database as sysdba
    EXEC dbms_java.grant_permission('USER1', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC dbms_java.grant_permission('USER1', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    EXEC dbms_java.grant_permission('USER1', 'SYS:java.io.FilePermission', '/bin/sh', 'execute');
    EXEC dbms_java.grant_permission( 'USER1', 'SYS:java.io.FilePermission','C:\WINDOWS\system32\cmd.exe', 'execute' );
    rem -----------------------------------------------------------------------
    rem Create Java class to execute OS commands...
    rem -----------------------------------------------------------------------
    conn user1/password@database
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS
    import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    finalCommand = new String[4];
    finalCommand[0] = "C:\\WINDOWS\\system32\\cmd.exe";
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    // Execute the command...
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    // Capture output from STDOUT...
    BufferedReader br_in = null;
    try {
    br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println("stdout: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_in.close();
    } catch (IOException ioe) {
    System.out.println("Error printing process output.");
    ioe.printStackTrace();
    } finally {
    try {
    br_in.close();
    } catch (Exception ex) {}
    // Capture output from STDERR...
    BufferedReader br_err = null;
    try {
    br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println("stderr: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_err.close();
    } catch (IOException ioe) {
    System.out.println("Error printing execution errors.");
    ioe.printStackTrace();
    } finally {
    try {
    br_err.close();
    } catch (Exception ex) {}
    catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    show errors
    rem -----------------------------------------------------------------------
    rem Publish the Java call to PL/SQL...
    rem -----------------------------------------------------------------------
    CREATE OR REPLACE PROCEDURE host(p_command IN VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String)';
    show errors
    rem -----------------------------------------------------------------------
    rem Let's test it
    rem -----------------------------------------------------------------------
    exec host('notepad');
    The trouble is although this script works great for commands that can be run is the 'background' as SYSTEM is I want to pass a command to actually open something e.g. notepad in the above example nothing seems to happen. As far as I can make out the command line is running but not as %username% so it's not running notepad.exe in the foreground.
    I'm happy to clarify more if necessary.
    Can anyone help with this?
    Cheers
    Yog

    Bill,
    Thank you for the quick answer. I believe you are right in your assumption.
    I have been searching but found nothing so far.
    I need to be able to run this line "wmic
    Product where name='XXX XXX XXX' call uninstall" 
    in an elevated command prompt to uninstall the program.
    I was looking for a VB script or PowerShell to execute it remotely on non domain roaming PCs.
    Th3e command can be run remotely against stand-alone workstations but you must supply credentials.  Post in the platform forum for you version of Windows for help in using the WMIC utility.  WMIC /? will give you all of the command options fro
    remote execution.  UAC only affects local systems.  You cannot use WMIC to remote back to the local system. WMIC does not allow impersonation to the local system.
    Most installers will not automatically allow an unattended uninstall.  If there is any dialog at all the uninstall will fail and can hang.
    I recommend contacting the vendor of the application to get more information.
    In all cases you cannot bypass UAC as Bill has noted.  I am only noting that, sometimes, in a workgroup, you can use WMIC to remotely uninstall an application.
    ¯\_(ツ)_/¯

  • Find unowned files via command line?

    I'm interested in making a list of files not owned by any package and sending it to a text file I can review. I found this thread, which suggests pacpal (link appears to be broken now) and this script. I could try the script, but I noted from a bit back that the Arch news page listed a one-liner for finding unowned packages in the preparation of moving /usr/lib -> /lib:
    $ find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null
    Here's the script linked to above, for reference:
    #!/bin/bash
    # Utility to generate a list of all files that are not part of a package
    # Author: Spider.007 / Sjon
    TMPDIR=`mktemp -d`
    FILTER=$(sed '1,/^## FILTER/d' $0 | tr '\n' '|')
    FILTER=${FILTER%|}
    cd $TMPDIR
    find /bin /boot /etc /lib /opt /sbin /usr /var | sort -u > full
    pacman -Ql | tee owned_full | cut -d' ' -f2- | sed 's/\/$//' | sort -u > owned
    grep -Ev "^($FILTER)" owned > owned- && mv owned- owned
    echo -e '\033[1mOwned, but not found:\033[0m'
    comm -13 full owned | while read entry
    do
    echo [`grep --max-count=1 $entry owned_full|cut -d' ' -f1`] $entry
    done | sort
    grep -Ev "^($FILTER)" full > full- && mv full- full
    echo -e '\n\033[1mFound, but not owned:\033[0m'
    comm -23 full owned
    rm $TMPDIR/{full,owned,owned_full} && rmdir $TMPDIR
    exit $?
    ## FILTERED FILES / PATHS ##
    /boot/grub
    /dev
    /etc/X11/xdm/authdir
    /home
    /media
    /mnt
    /proc
    /root
    /srv
    /sys
    /tmp
    /var/abs
    /var/cache
    /var/games
    /var/log
    /var/lib/pacman
    /var/lib/mysql
    /var/run
    /var/tmp
    Is there any reason to use a script like the above compared to such a simple script, which appears to just be spitting a list of all files in /bin, /urs/sbin, and /sbin into `pacman -Qo`. What I can't figure out is what the end of the command does (the `-- {} + > /dev/null`). From various attempts to pipe that output into a text file, I've noticed that it just gets filled with the owned files... so I'm guessing something in there is filtering so that unowned get printed to stdout and owned go to /dev/null. I can't figure out how to redirect the unowned to a text file.
    Thanks for any suggestions.

    alphaniner wrote:"--" is often used to tell the program there are no more options. I didn't see it in the manpage, but that's the case with pacman as well.* The "{} +" is part of the find -exec argument, search for {} in the find manpage.
    Ah. Thanks for that. I'd been googling things like " linux command line '-- {}'" and not getting any hits. I combined the arguments incorrectly! Thanks for letting me know that this was part of `find`, as I was also looking in the man page for pacman wrongly.
    alphaniner wrote:
    The >/dev/null is redirecting stdout (list of owned files) to oblivion. The list of unowned files (and other errors) goes to stderr. To redirect stderr you use "2>" so try
    find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null 2>unowned_files
    Perfect, and now I understand how `pacman -Qo` is working: it sends the answer to stdout if it knows the answer and to stderr if it doesn't find a hit. Thanks!

  • Open application via. command line with parameters - Multiple times

    I'm using ANT to compile a program, then launch in FireFox ... I've looked all over for a solution to this, but have yet to find one.
    I need the command to open a specified URL in FireFox... easy enough, right?
    Solution #1 was to use the "open -a" command, with the URL- so "open -a FireFox.app/ http://someURL.com" ... the problem with this is that it opens a new window or tab every time- its a minor annoyance, but when you do 100 or more compiles during the day, its quite annoying.
    Solution #2 is to actually launch the program executable (FireFox.app/Content/MacOS/firefox) using the argument -url and that makes it so FireFox opens the URL in the current & front-most window. This worked great the first time, second time I get an error saying "A copy of Firefox is already open. Only one copy of Firefox can be open at a time."
    Anybody know how to make it so I don't have to close a window every time I compile? Your help would be greatly appreciated.
    Thanks!
    -Eric
    Message was edited by: eheaton

    If you don't get an answer here, you might try reposting in the UNIX forum. That's where the command line experts tend to hang out. Good luck.

  • WLST command line utility "storeUserConfig()"  is not working for 12c OHS

    Hi All,
    I am facing issue with WLST command line utility with "*storeUserConfig()*" command.
    I have installed Standalone OHS 12c (Not managed OHS with WLS), configure and start the Node Manager.
    I start the WLST command line utility from : <MW_HOME>/ohs/common/bin/wlst.sh
    I connect node manager with : nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
    wls:/offline> nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    wls:/nm/base_domain> nmStart(serverName='ohs10', serverType='OHS')
    Starting server ohs10 ...
    Successfully started server ohs10 ...
    Now When I am running storeUserConfig(), it's giving me below error :
    wls:/nm/base_domain> storeUserConfig()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: storeUserConfig
    I also try with storeUserConfig('/scratch/12cORC/security/myuserconfigfile.secure', '/scratch/12cORC/security/myuserkeyfile.secure') which also give same error.
    I am not able to recognize this error. What should I need to do to create the User config file ?
    Please suggest me the solution.
    I am referring this doc : http://docs.oracle.com/cd/E15586_01/web.1111/e13813/reference.htm#
    Thanks,
    Amit Nagar

    It's probably a little late for the original poster, but in case anybody else stumbles on this thread (like me today), I found a workable solution to this problem:
    For a Standalone HTTP Server there exists in $domain_home/bin a command startComponent.sh or (on Windows) startComponent.cmd. This accepts as parameter the ComponentName which will typically be ohs1 and as second parameter storeUserConfig. Documentation on this can be found here:
    http://docs.oracle.com/middleware/1212/webtier/HSADM/getstart.htm#CHDJGIII (scroll down to
    4.3.2.3 Starting Oracle HTTP Server Instances from the Command Line).
    startComponent.sh ohs1 storeUserConfig
    Unfortunately this doesn't tell you where you'll find the config and key-File. However, on a second invocation I found that - at least on windows where I tested this - they get written into c:\users\<username>\.wlst so I'd expect them in the home directory on unix. After copying the files to a more common location, I was able to reference them the usual way (formatted for better readability):
    wls:/offline> nmConnect(userConfigFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-cfg-base_domain.props',
    userKeyFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-key-base_domain.props',
    host='localhost',
    port='5556',
    domainName='base_domain')
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    Best Regards
    Holger

Maybe you are looking for

  • Text in color in ALV top-of-page

    Hi all, I am using REUSE_ALV_GRID_DISPLAY  and using REUSE_ALV_COMMENTARY_WRITE to display top-of-page. I need to show text in top-of-page in BOLD and RED color. I am able to diaply in BOLD by passing slis_listheader-typ = 'H' But I am not able to un

  • Replace multiple space characters with a single space

    Hi, Oracle 11g R2. Looking for a way to replace multiple space characters in a row with a single space. For example, the text "abc abc" should look like "abc abc". I tried toying with replace, but it only works for the case of 2 spaces. Need a soluti

  • ALV Refresh when using Logical Data Base

    My program will display the report in a ALV grid format (not in OO, no method or class used here, only FM are used), user can select rows and update the dates in the PM orders.  The REFRESH button comes with the GUI Status "STANDARD1" does not do any

  • Unable to pass object from pl-sql to wps

    Hi Team I am trying to pass an object to a different system via WPS 6.2. I am using WPS 6.2 and Oracle 10g. I want to pass an array of objects returned from a Pl Sql procedure as an output to WPS. However, am unable the object values are not being cu

  • Help on Merge Statement ,I got 'ORA-00904: invalid column name' Error

    Pls help In Oracle 9i i implement the following qry MERGE INTO jobs A USING (select order_no,jOB_SEQ_NO from jobs_dlt) B ON (A.ORDER_NO = B.ORDER_NO and A.JOB_SEQ_NO =B.JOB_SEQ_NO ) WHEN MATCHED THEN UPDATE SET           A.ORDER_NO= B.ORDER_NO ,