Command Line/Javac issues

Ok, I know this is a really stupid question but I have not had the oppurtunity to explore everything in Java yet. I was wondering how I get javac to recognize my program from any directory on my computer. I know it can be done but I need to know how.

add your jdk bin directory to your path in autoexec or boot environment varaible settings.
To run java from anywhere, add . to your classpath environment variable the same way you did for the path.

Similar Messages

  • Financial Reporting - Exporting Batch for Command Line Scheduling Issue

    Financial Reporting 11.1.2.2
    When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
    Any ideas what I am doing wrong, if anything?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <JOB_OBJECT OBJECT_ID="0">
    <DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
    <HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
    <OUTPUT_OPTIONS>
    <HTML VALUE="No"/>
    <MHTM VALUE="No"/>
    <PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
    <SAVE_AS_SNAPSHOT VALUE="No"/>
    <PRINT VALUE="No"/>
    </OUTPUT_OPTIONS>
    </JOB_OBJECT>

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • Command-line installation issue : InstallMediaPath parameter?

    Hello,
    I have an unsuccessful command-line installation of SQL Express 2008 R2. I need to do it to install a new local instance so that a Winforms application could use it (I'm packaging the app thus installing pre-requisites through my installer).
    I hit "InstallMediaPath" blank parameter issue, if I look into "C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Detail.txt".
    System.ArgumentNullException: Value cannot be null.
    2014-09-08 09:40:17 Slp: Parameter name: InstallMediaPath
    I read on the forums that this error can solve by uncompressing before running setup, so here are my two commands. I still have the issue.
    "Resources\SQLEXPR_x86_ENU.exe" /Q /X:"%TEMP%\SESetup"
    "%TEMP%\SESetup\Setup.exe" /ACTION=Install /QS /IAcceptSQLServerLicenseTerms=True /Features=SQL,Tools /InstanceName=MSSQLSAFETIFY /SQLSVCACCOUNT=\"NT AUTHORITY\\NETWORK SERVICE" /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD="somePassword"
    Earlier in log file I see a correct value for InstallMediaPath so am clueless.
    2014-09-08 10:00:51 Slp: Setting: SQLSVCACCOUNT
    2014-09-08 10:00:51 Slp: Value specified: "NT,AUTHORITY\\NETWORK,SERVICE /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD=somePasssword /ACTION=RUNRULES /RULES=GlobalRules /WORKFLOW=Install /TIMESTAMP=20140908_100041 /LOGMARKER=_GlobalRules /MEDIASOURCE=C:\Users\bpo\AppData\Local\Temp\2\SESetup\ /INSTALLMEDIAPATH=C:\Users\bpo\AppData\Local\Temp\2\SESetup\x86\setup\ /ENU /MEDIALAYOUT=Core
    2014-09-08 10:00:51 Slp: New setting source: CommandLine; previous setting source: Default
    2014-09-08 10:00:51 Slp: ----------------------------------------
    2014-09-08 10:00:51 Slp: Completed Action: ProcessFeatureCommandLineArguments, returned True
    Thank you so much for helping. Do I have some incorrect parameters?

    I finally found a solution, using a Configuration.ini file. Blog entry dealing with MS SQL unattended setup
    I suceeded with a configuration file, adding though two parameters to file, IAcceptSQLServerLicenseTerms="True" and SAPWD="passwordOfMyChoice".
    With command line only, I had "path2" parameter null value error, once I added /InstallMediaPath undocumented (?) option to my initial command line switches...

  • Command line property issue

    I am having a problem passing a property value on the command line in a Linux box. Here is a simple version of the script.
    java -DmyName="Joe Smith" ShowName
    I want "Joe Smith" to be the value of the property myName but myName has "Joe instead. What do I need to do so that myName contains both words?

    java -DmyName="Joe Smith" ShowNameYou're doing this on Windows, right? (Thanks (not!) for providing all the necessary information to debug your problem).
    The problem is that "CMD.EXE" is dumb about quotes in the middle of an argument. It treats -DmyName="foo bar" as two strings, with explicit strings.
    You have to say "-DmyName=Joe Smith".

  • Command Line SMB Issues

    Greetings,
    I scripted in 10.7 the mounting of a Windows share (SMB) for some back end tasks. My script needs to dump collected data over to a Windows share for further processing.
    My code seems to have broken since my upgrade to 10.8.
    Here is the line of code:
    I first create the directory: /Volumes/SHARE
    then:
    /sbin/mount -o nobrowse -t smbfs //SERVICEACCT:[email protected]/SHAREhttp://winserver.sinc.stonybrook.edu/SHARE /Volumes/SHARE
    That worked. But now, I get an authentication error. The problem seems to be that a domain needs to be attached to the name, but nothing works.
    I tried:
    /sbin/mount -o nobrowse -t smbfs //domain\SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
    /sbin/mount -o nobrowse -t smbfs //domain\\SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
    /sbin/mount -o nobrowse -t smbfs //domain.mydomain.edu@SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
    The last one confuses the heck out of the system. Any ideas?
    Thanks,
    Andrew
    Andrew W. Johnson
    Sr Macintosh Systems Administrator
    Department of Teaching Learning & Technology
    Division of Information Technology
    Stony Brook University
    Computing Center Room 115
    Stony Brook, NY 11794-2400 

    Found the solution to my own problem. Syntax needs to be:
    DOMAIN;USERNAME:[email protected]/SHARE

  • How to create and use library JAR files with command-line tools?

    Development Tools -> General Questions:
    I am trying to figure out how to put utility classes into JAR files and then compile and run applications against those JAR files using the command-line javac, jar, and java tools. I am using jdk1.7.0_17 on Debian GNU/Linux 6.0.7.
    I have posted a simple example with one utility class, one console application class, and a Makefile:
    http://holgerdanske.com/users/dpchrist/java/examples/jar-20130520-2134.tar.gz
    Here is a console session:
    2013-05-20 21:39:01 dpchrist@desktop ~/sandbox/java/jar
    $ cat src/com/example/util/Hello.java
    package com.example.util;
    public class Hello {
        public static void hello(String arg) {
         System.out.println("hello, " + arg);
    2013-05-20 21:39:12 dpchrist@desktop ~/sandbox/java/jar
    $ cat src/com/example/hello/HelloConsole.java
    package com.example.hello;
    import static com.example.util.Hello.hello;
    public class HelloConsole {
        public static void main(String [] args) {
         hello("world!");
    2013-05-20 21:39:21 dpchrist@desktop ~/sandbox/java/jar
    $ make
    rm -f hello
    find . -name '*.class' -delete
    javac src/com/example/util/Hello.java
    javac -cp src src/com/example/hello/HelloConsole.java
    echo "java -cp src com.example.hello.HelloConsole" > hello
    chmod +x hello
    2013-05-20 21:39:28 dpchrist@desktop ~/sandbox/java/jar
    $ ./hello
    hello, world!I believe I am looking for:
    1. Command-line invocation of "jar" to put the utility class bytecode file (Hello.class) into a JAR?
    2. Command-line invocation of "javac" to compile the application (HelloConsole.java) against the JAR file?
    3. Command-line invocation of "java" to run the application (HelloConsole.class) against the JAR file?
    I already know how t compile the utility class file.
    Any suggestions?
    TIA,
    David

    I finally figured it out:
    1. All name spaces must match -- identifiers, packages, file system, JAR contents, etc..
    2. Tools must be invoked from specific working directories with specific option arguments, all according to the project name space.
    My key discovery was that if the code says
    import com.example.util.Hello;then the JAR must contain
    com/example/util/Hello.classand I must invoke the compiler and interpreter with an -classpath argument that is the full path to the JAR file
    -classpath ext/com/example/util.jarThe code is here:
    http://holgerdanske.com/users/dpchrist/java/examples/jar-20130525-1301.tar.gz
    Here is a console session that demonstrates building and running the code two ways:
    1. Compiling the utility class into bytecode, compiling the application class against the utility bytecode, and running the application bytecode against the utility bytecode.
    2. Putting the (previously compiled) utility bytecode into a JAR and running the application bytecode against the JAR. (Note that recompiling the application against the JAR was unnecessary.)
    (If you don't know Make, understand that the working directory is reset to the initial working directory prior to each and every command issued by Make):
    2013-05-25 14:02:47 dpchrist@desktop ~/sandbox/java/jar
    $ cat apps/com/example/hello/Console.java
    package com.example.hello;
    import com.example.util.Hello;
    public class Console {
        public static void main(String [] args) {
         Hello.hello("world!");
    2013-05-25 14:02:55 dpchrist@desktop ~/sandbox/java/jar
    $ cat libs/com/example/util/Hello.java
    package com.example.util;
    public class Hello {
        public static void hello(String arg) {
         System.out.println("hello, " + arg);
    2013-05-25 14:03:03 dpchrist@desktop ~/sandbox/java/jar
    $ make
    rm -rf bin ext obj
    mkdir obj
    cd libs; javac -d ../obj com/example/util/Hello.java
    mkdir bin
    cd apps; javac -d ../bin -cp ../obj com/example/hello/Console.java
    cd bin; java -cp .:../obj com.example.hello.Console
    hello, world!
    mkdir -p ext/com/example
    cd obj; jar cvf ../ext/com/example/util.jar com/example/util/Hello.class
    added manifest
    adding: com/example/util/Hello.class(in = 566) (out= 357)(deflated 36%)
    cd bin; java -cp .:../ext/com/example/util.jar com.example.hello.Console
    hello, world!
    2013-05-25 14:03:11 dpchrist@desktop ~/sandbox/java/jar
    $ tree -I CVS .
    |-- Makefile
    |-- apps
    |   `-- com
    |       `-- example
    |           `-- hello
    |               `-- Console.java
    |-- bin
    |   `-- com
    |       `-- example
    |           `-- hello
    |               `-- Console.class
    |-- ext
    |   `-- com
    |       `-- example
    |           `-- util.jar
    |-- libs
    |   `-- com
    |       `-- example
    |           `-- util
    |               `-- Hello.java
    `-- obj
        `-- com
            `-- example
                `-- util
                    `-- Hello.class
    19 directories, 6 filesHTH,
    David

  • Launching Rescue & Recovery from a Command Line

    Question - I would like to know how I can launch Rescue & Recovery from a command line.
    Issue that is prompting the question -  My laptop was sitting in my computer bag overnight. The battery was fully charged. I BELIEVE that it was in suspend mode at the time. When I opened it in the morning, there was a message on the screen saying that a backup had not completed successfully. I then noticed that the battery had run down completely.
    My Plan - I would like to launch Rescue & Recovery (as well as the Defrag utility) from Windows Task Scheduler. If I do, then all schedule tasks will be launched and controlled using the same process. Windows Task Scheduler also provides two key scheduling criteria that the IBM Rescue & Recoverry or the IBM Maintenance Manager utilities do not provide -
    #1 - Run this task only when the PC is on AC power.
    #2 - Run this task ony when the computer is idle (so that it doesn't slow down the PC if I happen to be working on it)
     Background Concerns -
    - Having a backup job automatically start when the computer is in my computer bag will run down my battery when I least expect it.
    - The PC may could also be damaged due to overheating, since the sides of the computer bag  block the ventilation holes.
    Additional Info
    - If I go to the ThinkVantage Productivity Center and select the Quick Link for "Backup Now" this will indeed launch a backup on demand. I assume that selecting this option is calling a specific executable file.
    - However, the only two applicable executable files that I see in the C:\Program Files\Lenovo\Rescue and Recovery directory are "mr_gui.exe" and "wizrr.exe". Both of these files launch an interface that requires the user to make a selection. As a result, it doesn't look as if either of these files would work for unattended operation, unless there is some sort of switch that I can put in that will automatically start the backup process.
    - I called the support line (only once so far), but that particular rep did not know of any way to launch Rescue & Recovery other than from the standard R&R user interfaces.
     Any help is greatly appreciated,
    Mathew

    The correct way to invoke a JSP is to make a request to the Server.
    Normally you would use your browser to do this.
    On a unix system, you can use the wget command to invoke a url without using a browser.

  • Why does this code fail in command line?

    I am using the "ListDemo" from the java swing tutorial. If I compile it on the command line
    javac ListDemo.java
    It compiles fine. Then when I run it, it says:
    C:\Development\Java\Projects\Projects>java ListDemo
    Exception occurred during event dispatching:
    java.lang.NoSuchMethodError
    at ListDemo.createAndShowGUI(ListDemo.java:196)
    at ListDemo.access$400(ListDemo.java:7)
    at ListDemo$1.run(ListDemo.java:217)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Yet when I load up the same file into Netbeans, it compiles and runs fine! Here is the file:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    /* ListDemo.java is a 1.4 application that requires no other files. */
    public class ListDemo extends JPanel
                          implements ListSelectionListener {
        private JList list;
        private DefaultListModel listModel;
        private static final String hireString = "Hire";
        private static final String fireString = "Fire";
        private JButton fireButton;
        private JTextField employeeName;
        public ListDemo() {
            super(new BorderLayout());
            listModel = new DefaultListModel();
            listModel.addElement("Alan Sommerer");
            listModel.addElement("Alison Huml");
            listModel.addElement("Kathy Walrath");
            listModel.addElement("Lisa Friendly");
            listModel.addElement("Mary Campione");
            listModel.addElement("Sharon Zakhour");
            //Create the list and put it in a scroll pane.
            list = new JList(listModel);
            list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            list.setSelectedIndex(0);
            list.addListSelectionListener(this);
            list.setVisibleRowCount(5);
            JScrollPane listScrollPane = new JScrollPane(list);
            JButton hireButton = new JButton(hireString);
            HireListener hireListener = new HireListener(hireButton);
            hireButton.setActionCommand(hireString);
            hireButton.addActionListener(hireListener);
            hireButton.setEnabled(false);
            fireButton = new JButton(fireString);
            fireButton.setActionCommand(fireString);
            fireButton.addActionListener(new FireListener());
            employeeName = new JTextField(10);
            employeeName.addActionListener(hireListener);
            employeeName.getDocument().addDocumentListener(hireListener);
            String name = listModel.getElementAt(
                                  list.getSelectedIndex()).toString();
            //Create a panel that uses BoxLayout.
            JPanel buttonPane = new JPanel();
            buttonPane.setLayout(new BoxLayout(buttonPane,
                                               BoxLayout.LINE_AXIS));
            buttonPane.add(fireButton);
            buttonPane.add(Box.createHorizontalStrut(5));
            buttonPane.add(new JSeparator(SwingConstants.VERTICAL));
            buttonPane.add(Box.createHorizontalStrut(5));
            buttonPane.add(employeeName);
            buttonPane.add(hireButton);
            buttonPane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            add(listScrollPane, BorderLayout.CENTER);
            add(buttonPane, BorderLayout.PAGE_END);
        class FireListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                //This method can be called only if
                //there's a valid selection
                //so go ahead and remove whatever's selected.
                int index = list.getSelectedIndex();
                listModel.remove(index);
                int size = listModel.getSize();
                if (size == 0) { //Nobody's left, disable firing.
                    fireButton.setEnabled(false);
                } else { //Select an index.
                    if (index == listModel.getSize()) {
                        //removed item in last position
                        index--;
                    list.setSelectedIndex(index);
                    list.ensureIndexIsVisible(index);
        //This listener is shared by the text field and the hire button.
        class HireListener implements ActionListener, DocumentListener {
            private boolean alreadyEnabled = false;
            private JButton button;
            public HireListener(JButton button) {
                this.button = button;
            //Required by ActionListener.
            public void actionPerformed(ActionEvent e) {
                String name = employeeName.getText();
                //User didn't type in a unique name...
                if (name.equals("") || alreadyInList(name)) {
                    Toolkit.getDefaultToolkit().beep();
                    employeeName.requestFocusInWindow();
                    employeeName.selectAll();
                    return;
                int index = list.getSelectedIndex(); //get selected index
                if (index == -1) { //no selection, so insert at beginning
                    index = 0;
                } else {           //add after the selected item
                    index++;
                listModel.insertElementAt(employeeName.getText(), index);
                //If we just wanted to add to the end, we'd do this:
                //listModel.addElement(employeeName.getText());
                //Reset the text field.
                employeeName.requestFocusInWindow();
                employeeName.setText("");
                //Select the new item and make it visible.
                list.setSelectedIndex(index);
                list.ensureIndexIsVisible(index);
            //This method tests for string equality. You could certainly
            //get more sophisticated about the algorithm.  For example,
            //you might want to ignore white space and capitalization.
            protected boolean alreadyInList(String name) {
                return listModel.contains(name);
            //Required by DocumentListener.
            public void insertUpdate(DocumentEvent e) {
                enableButton();
            //Required by DocumentListener.
            public void removeUpdate(DocumentEvent e) {
                handleEmptyTextField(e);
            //Required by DocumentListener.
            public void changedUpdate(DocumentEvent e) {
                if (!handleEmptyTextField(e)) {
                    enableButton();
            private void enableButton() {
                if (!alreadyEnabled) {
                    button.setEnabled(true);
            private boolean handleEmptyTextField(DocumentEvent e) {
                if (e.getDocument().getLength() <= 0) {
                    button.setEnabled(false);
                    alreadyEnabled = false;
                    return true;
                return false;
        //This method is required by ListSelectionListener.
        public void valueChanged(ListSelectionEvent e) {
            if (e.getValueIsAdjusting() == false) {
                if (list.getSelectedIndex() == -1) {
                //No selection, disable fire button.
                    fireButton.setEnabled(false);
                } else {
                //Selection, enable the fire button.
                    fireButton.setEnabled(true);
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("ListDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new ListDemo();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();

    You are not running this code under JDK 1.4
    The setDefaultLookAndFeelDecorated method requires JDK 1.4 version.

  • Command line compiler wierdness

    Have been compiling RoboHelp 7 HTML Help projects from the command line without issue, but suddenly no glossary text is displayed in the compiled chms. The .glo file is compiled, but the glossary tab is blank.
    All required dlls are registered, and surprisingly, if I compile the project in the RoboHelp 7 GUI, the glossary text does show up in the compiled chm.
    Using RoboHelp 7.0.3. I've uninstalled and reinstalled, and tried building on a different PC with the same results.
    Very odd - anyone else come across this and know how to fix it?

    Hmmm... Thanks Jeff but I think that goes right back to the realm of a manual process.
    Any other thoughts?
    Thanks again!

  • Command Line Output Directory

    I am trying to generate my help files through the commanline utitlity via a bat file.
    Here is my bat file...
    rem Generates the System output files
    :START
    "c:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\RHCL.exe" "c:\Projects\myProj\1.0.0\Development\HelpFiles\MyHelp.xpj" -o
    "c:\userName\Desktop\RoboHelpOutput" -g "c:\userName\Desktop\RoboHelpOutput\log.txt"
    :END
    When I run this, it successfully generates the output files, but it does not generate it in the "c:\userName\Desktop\RoboHelpOutput" directory. Instead, it uses the directory I pointed it at when I generate the output through the RoboHelp UI. I need to figure out why this is ignoring the -o Destination tag in order to be able to work locally and have the help files generated with our automated builds.
    Please Help!!!!
    Thanks in advance!
    hmaprk

    Hi - we are having the same issue. Regardless of what we specify as the output folder, the help file always generates the output on the drive we previously specified in the SSL file.
    SSL:
    <element name="DestinationProjectName" value="X:\doc_4x\html\apps\output\pr\flexi\fpr32.chm" />
    We tried to eleminate the X: to see where the file will generate to. This is the path that showed up on the first wizard screen when I went to generate in RH a few minutes later:
    X:\doc_4x\html\apps\projects\pr\doc_4x\html\apps\projects\pr\doc_4x\html\apps\output\pr\fl exi\fpr32.chm
    Any help in resolving our command line build issue is greatly appreciated!

  • Bash shell does not recognise 'java', 'javac' commands (Linux command line)

    i' ve used javac and java compile & execute commands to build the same application on the DOS command line with Windows - no problem.
    But when I try to compile the same file on the command line under Linux Redhat (7.1) using Bash shell i get <bash: javac: command not found> and <bash: java: command not found>.
    In both cases I'm using j2sdk1.4.2 downloaded from java.sun.com for Windows & Linux respectively.
    I make sure I have both the javac and the file I want to compile in the same directory ../j2sdk1.4.2/bin for both the Windows and the Linux applications.
    Is there something I need to do to get bash to recognise javac, java etc? Is there a different setup procedure?
    Any angles on this are much appreciated ..

    Have you tried these correctly..
    Set the CLASSPATH environment variable to include whichever directories you like, eg (on bash) type:
    export CLASSPATH=$CLASSPATH:.:<your java dirs>
    To make java easier to run, put the directory in which it is installed into your path:
    export JAVA_HOME=<where you installed java>
    Then do
    export PATH=$PATH:$JAVA_HOME/bin
    verify it has worked by simply typing
    java
    You can put all of these commands into the .*rc file for your shell, so that they are executed every time you open the shell. So if you are using bash you can put them into ~/.bashrc
    Read up setting the PATH and CLASSPATH for more info.
    This shall resolve the issue .

  • Acroread command line issue nUp and a custom page size

    When I use the dialog box with the settings I need - It works fine..
    Using acroread 9.5.5 on a Linux box.
    Does not work in command line with -toPostScript -nUp 6 4 0 -size=1296x1440 -pairs <file_name>.pdf <out_file_name>.ps
    If I choose size=legal or size=tabloid the resulting ps has reduced size pages and does flow correctly but
    I want to use Large Paper 18"x20" and not downsize the original PDF input files.
    Basically placing the images side by side

    Were you ever able to get it to print on large paper?  I'm facing a similar issue.  A pdf with page size 11x17 but when I run it thru acroread it changes the page size to 8.5x11. 

  • Command Line Issue

    Hey All,
    This batch file works:
    d:\oracle\BIToolsHome_4\bin\dis51usr.exe /connect userid/password@database /opendb BatchTest /sheet 2010 /batch /export HTML d:\batchtest
    but this one does not:
    d:\oracle\BIToolsHome_4\bin\dis51usr.exe /connect userid/password@database /opendb "00000 Workbook Analysis Begininng 01 Jan 2009" /sheet ALL /batch /export HTML d:\batchall
    The first batch file executes only ONE worksheet and exports the output to a file successfully. The second batch file executes ALL sheets in the workbook but does not produce the output file. Its execution does not produce any error messages but no output is generated. Removing the '/batch /export HTML d:\batchall' commands opens Discoverer Desktop and executes all worksheets successfully.
    I guess I am just being a silly goose but I cannot find the problem. Any help towards solving the problem will be appreciated.
    Thanks,
    Jerre

    Hi Jerre
    Interesting indeed. The export command, taken from my book, is as follows:
    /export <format><export-file-name> This exports the results of executing a worksheet to the file named, in the format specified. If you do not specify a worksheet on the command line, Discoverer exports the results from the active worksheet. If you nominate /sheet ALL on the command line, Discoverer exports all of the worksheets in the workbook and names the output files as <file><sheet-name>.<ext>, identically to the behavior of the Export Data command.
    First of all, because you are using the ALL sheets switch the file name has to be unique and cannot be named the same as a folder. Do you happen to have a folder named batchall? That would cause a problem.
    Next, I am wondering if there is something with the sheet names that could be causing the issue. Can you take a look at the sheet names and see if there are any characters that might cause an issue? As a test, try renaming the sheets to all one word with underscores.
    Best wishes
    Michael

  • Syntax for javac command line in DOS

    Can anyone help me with the proper syntax fror the javac command line? Based on the Java Tutorial, I type the following line while in: C:\Program Files\Java>
    c:\progra~1\java\bin\javac hellow~1.jav
    This returns the following error message:
    javac: invalid flag: hellow~1.jav
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    Rest deleted, you get the drift. A long time has passed since I have used DOS, but I thought that options were just that; they were not essential to run a program. If they are necessary, how do you set an option? for example, I have tried the command:
    C:\Program Files\Java>c:\progra~1\java\bin\javac -g hellow~1
    which gives me the following error:
    javac: invalid flag: hellow~1
    I would really appreciate any suggestions anyone out there has for solving this apparently simple & stupid problem.

    Many thanks for these suggestions. I finally got javac to work by putting the file name HelloWorldApp.java inside of quote marks (i.e. "HelloWorldApp.java"). The program compiled the file, & I now have a HelloWorldApp.class file in my java directory. Unfortunately, I am now having trouble with the next tutorial step: getting java to use the file.
    I am discovering there are some very strange things about DOS since the last time I used it. For example, the cd command recognizes either cd c:\progra~1\java OR c:\"Program Files"\java. If the quote marks are omitted a "file not found" error is returned. There seems to be some sort of problem with ways that long file names are dealt with in DOS. I notice that many contribs to this list enter long file names or directories without quote marks; indeed, this is standard format in the java tutorial. This is probably a really dumb question, but is there someway to tell DOS to recognize long names without quote marks?
    Once again, thanks for the help.

  • Javac command line problem

    Why might the javac.exe, java.exe, and javaw.exe command lines not stay open? When I open these files, the command line flashes open and immediately disappears.
    I tried opening these files using "Run as..." and unchecking the "Protect my computer from unauthorized program activity" option (as my first guess was and still is that I am running into some kind of Windows security settings problem), but this seemed to have no effect.
    I am using Windows XP Professional with all updates as of 06-21-2007.

    You always want to run executables like that and things like .bat files from a command window. To open a command window, follow jverd's post, reply #2.

Maybe you are looking for

  • Problems importing my classes

    Greetings! I am new to JSP and Struts. I need to use some of the classes I created in one of my JSP pages so I placed an import statement specifying the classes which I need. The problem is that each time I tried to view the page, I see this exceptio

  • Firefox will not update

    Strange thing happened! Tried to update Firefox by downloading and by using the update function within firefox without success... When I try to install the update it tells me: ..... you do not have the system permissions required to install ..... How

  • ITMS Audio Quality - AAC128 vs. AAC128?

    Okay, something I'm noticing - when I purchase music from the iTMS, it's AAC 128, and occasionally some songs sound... well, like mp3 at 96k, or at least some parts, like drum cymbals (I know, a general issue with compression). But when I import a CD

  • Why does firefox say this not a trusted site and that legitimate businesses are trusted by Firefox

    Hi, One of my partners in New York just sent me an email to say that when he went onto our site www.101BusinessInsights.info a huge banner appeared on his screen saying " this not a trusted site and that legitimate businesses are trusted by Firefox"

  • Indesign, epubs, and font encryption

    Hello all, I'm back again with another question for the experts. When I upload my file here, the epub validator site, I receive the following error: ERROR: eng.epub/META-INF/encryption.xml(1): attribute "compression" from namespace "http://ns.adobe.c