JFileChooser working dir on a PC

I am working with jdk1.4.2 on Windows 2000. I can't seem to get JFileChooser to display any directory on opening except My Documents.
here are samples of what I have tried:
String workingDir = "D:\\data";
JFileChooser saveAsFile = new JFileChooser(workingDir);
and
String workingDir = "D:\\data";
JFileChooser saveAsFile = new JFileChooser();
saveAsFile.setCurrentDirectory(new File(workingDir));
No matter what I do, it always displays My Documents when it opens.
Here's the kicker: if I type in a file name without changing the directory, it will save it to the directory I specified in workingDir, not to My Documents even thought that is what it is displaying.
Has anyone else encountered this? Is this a bug or am I doing something really stupid and obvious wrong?
thanks,
Mike

Check to see if you can read any file from D:\data (you need to do this with Java, say open a FileOutputStream to D:\java\test.txt). If that is OK, Check to see if the JFileChooser Object that you set currentDir, not another new JFileChooser Object, is being displayed
I am working with jdk1.4.2 on Windows 2000. I can't
seem to get JFileChooser to display any directory on
opening except My Documents.
here are samples of what I have tried:
String workingDir = "D:\\data";
JFileChooser saveAsFile = new
ew JFileChooser(workingDir);
and
String workingDir = "D:\\data";
JFileChooser saveAsFile = new JFileChooser();
saveAsFile.setCurrentDirectory(new
ew File(workingDir));
No matter what I do, it always displays My Documents
when it opens.
Here's the kicker: if I type in a file name without
changing the directory, it will save it to the
directory I specified in workingDir, not to My
Documents even thought that is what it is displaying.
Has anyone else encountered this? Is this a bug or am
I doing something really stupid and obvious wrong?
thanks,
Mike

Similar Messages

  • How to set working-dir for precompiled jsp pages to some where under tmp

    If my weblogic application gets exploded into this tmp directory:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war
    where "wxyzzz" is a random directory name generated by weblogic 9.2, how would I set my working-dir in weblogic.xml to store the precompiled jsp classes under:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war\WEB-INF\classes\jsp_servlet\_jsp directory?
    Is there an "expression" or "variable" that will hold the value of the tmp directory? Thanks.

    If my weblogic application gets exploded into this tmp directory:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war
    where "wxyzzz" is a random directory name generated by weblogic 9.2, how would I set my working-dir in weblogic.xml to store the precompiled jsp classes under:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war\WEB-INF\classes\jsp_servlet\_jsp directory?
    Is there an "expression" or "variable" that will hold the value of the tmp directory? Thanks.

  • Weblogic.xml: jsp-descriptor element (working-dir)

    Hi all,
    In order to define correct deployment directory, we want to modify the weblogic.xml with jsp-descriptor as followed (e.g.):
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
    <security-role-assignment>
    <role-name>PrivilegedUser</role-name>
    <principal-name>Administrators</principal-name>
    </security-role-assignment>
    <jsp-descriptor>
    <page-check-seconds>60</page-check-seconds>
    <precompile>false</precompile>
    <precompile-continue>false</precompile-continue>
    <keepgenerated>true</keepgenerated>
    <verbose>true</verbose>
    *<working-dir>D:\Oracle\Middleware</working-dir>*
    </jsp-descriptor>
    <charset-params>
    <input-charset>
    <resource-path>/*</resource-path>
    <java-charset-name>UTF-8</java-charset-name>
    </input-charset>
    </charset-params>
    </weblogic-web-app>
    My questions:
    1- Is the solution (using weblogic.xml and modify working-dir) correct?
    2- What is the best approach:
    a- preparing <working-dir>D:\Oracle\Middleware</working-dir> via development phase and responsiblity of developer team?
    b- adjust and modify application(s) via adminstrators
    3- I find the following doc:
    http://docs.tpu.ru/docs/Oracle/en/fmw/11.1.1.6.0/web.1111/e13712/weblogic_xml.htm#i1038490
    Is there more doc/sample/info available regarding this matter?
    Regards,
    Moh

    Hi all,
    In order to define correct deployment directory, we want to modify the weblogic.xml with jsp-descriptor as followed (e.g.):
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
    <security-role-assignment>
    <role-name>PrivilegedUser</role-name>
    <principal-name>Administrators</principal-name>
    </security-role-assignment>
    <jsp-descriptor>
    <page-check-seconds>60</page-check-seconds>
    <precompile>false</precompile>
    <precompile-continue>false</precompile-continue>
    <keepgenerated>true</keepgenerated>
    <verbose>true</verbose>
    *<working-dir>D:\Oracle\Middleware</working-dir>*
    </jsp-descriptor>
    <charset-params>
    <input-charset>
    <resource-path>/*</resource-path>
    <java-charset-name>UTF-8</java-charset-name>
    </input-charset>
    </charset-params>
    </weblogic-web-app>
    My questions:
    1- Is the solution (using weblogic.xml and modify working-dir) correct?
    2- What is the best approach:
    a- preparing <working-dir>D:\Oracle\Middleware</working-dir> via development phase and responsiblity of developer team?
    b- adjust and modify application(s) via adminstrators
    3- I find the following doc:
    http://docs.tpu.ru/docs/Oracle/en/fmw/11.1.1.6.0/web.1111/e13712/weblogic_xml.htm#i1038490
    Is there more doc/sample/info available regarding this matter?
    Regards,
    Moh

  • How to modify Work DIR for CQ5

    While starting up author instance cq-author-4502.jar using JDK, instead of using the same directory's crx-quickstart, it uses work dir default as 'c:\windows\system32', which I can see in the popup 'CQ% WCM Starting up...Waiting for server startup... Work dir c:\Windows\system32\crx-quickstart'.
    How do we override the default behavior of Adobe CQ5 in 5.4 version. I wanted to use work dir as current "crx-quickstart" folder, where the cq-author-4502.jar exists instead of "c:\windows\system32\crx-quickstart" folder. Please advice.

    Hi vgovindaraju,
    Refer [1] OR I guess with crx hotfix 2.2.0.38 Or above you can configure in property file.
    [1]   https://helpx.adobe.com/crx/kb/HowToChangeRepoHome.html
    Thanks,
    Sham
    @adobe_sham

  • Tomcat copies .class files from outside its classpath to work dir - ???.

    I posted this question here in March but got no replies. Here goes again:
    Hello:
    I've found that Tomcat has copies of some (but not all) of my
    class files in a directory unde the work dir. These are
    classes that were created by me for use in my web apps (
    although they are not web-specific). The time stamps on the files
    vary, and they are usually not the most recent versions.
    I came across this when I encountered a strange error where one
    of my jsp pages wouldn't compile. A constant in one of my
    classes could not be accessed in the page. It looked like a
    package naming error ("Class thingy really contains class
    foo.bar.thingy"), but the class was in the right place with the
    right name. I decided to look for other copies of the class on
    the disk, and found the classes in tomcat's work dir. In the
    end, providing the fully qualified class name solved the
    first problem, but left me wondering why some of my classes had
    been copied.
    Can anyone tell me why Tomcat would copy these files?
    Thanks,
    Pat Reaney

    I have a context called "roc"
    under the root in tomcat, and in the
    work\localhost_8080%2Froc directory there is a
    "com\roc\fame" directory with a single class in it
    that is a copy of the class that already exists in
    c:\java\com\roc\fame. c:\java is in my classpath, and
    I keep all my non-tomcat specific code there, so
    evidently tomcat copied the class to its own work
    dir.Ahhhh! OK - so the class files are copied from outside %TOMCAT_HOME%... that makes a little more sense (although still not much!!) I'm guessing this has something to do with the whole WAR file thing... since Tomcat is becoming more geared toward serving up apps that are deployed to it as WAR files, typically all the class files would be found under webapps/yourContextRoot/WEB-INF/classes - so maybe if they're elsewhere, Tomcat has its own sinister reasons for copying them to the work directory... (see leukbr's list above)

  • How does JFileChooser work

    When you use JFileChooser.showDialog, it returns a value as a result of using the dialog. How is this done?
    My guess is that the showDialog method initiates a second runnable thread to display the (modal) dialog, and then does a wait until that thread writes the result back into a shared variable. It can then do a normal return passing the variable to the caller.
    Or maybe it uses callbacks but I have no experience of these.
    I want to write a Chooser dialog very similar to JFileChooser and I'd like to use a similar mechanism to JFileChooser if possible. Does anyone know how it works?
    Thanks,
    Tim

    i mean... what is the implementation of that showDialog() method? i have it now almost kind of sorted out, but if you knew this i would be thankful anyway...

  • Runtime exec() Problem, change working dir

    Hi!
    I have following problem:
    I want to call an executable from my home-directory under Linux this way:
    Runtime rt = Runtime.getRuntime();
    Process pr = rt.exec("/home/tom/prog/exec-command");
    Unfortunately I'm getting either exception "file not found" (but it's there) or no complain but no program run...
    perhaps something's wrong with the path-name?
    If I call the program in the directory with a shell it works fine.
    Would be very happy if anybody can give a hint!
    Thanks a lot,
    Manuel

    You are interested in the programs output? Does it write to stdout or stderr or both? In any case, my advice is to go multithreading and use one thread to wait for the program to exit, one to read stdout and one to read stderr. If you just use one thread for reading, the program might block. I normally use something like this:
      final int BUFFER = 2048;
      final Process p = Runtime.getRuntime().exec(args);
      //read standard out output of the external executable
      //in seperate thread to avoid I/O deadlocks
      new Thread()
        public void run()
           try
             BufferedInputStream in =  new BufferedInputStream (p.getInputStream());
             int i;
             byte[] buf = new byte[BUFFER];
             while ( (i = in.read(buf, 0, BUFFER)) != -1 )
                System.out.write(buf, 0, i);
             in.close();
           catch (IOException e)
             e.printStackTrace();
      }.start();
      //read standard error output of the external executable
      //in seperate thread for symmetry
      new Thread()
        public void run()
           try
             BufferedInputStream in =  new BufferedInputStream (p.getErrorStream());
             int i;
             byte[] buf = new byte[BUFFER];
             while ( (i = in.read(buf, 0, BUFFER)) != -1 )
                System.err.write(buf, 0, i);
             in.close();
           catch (IOException e)
             e.printStackTrace();
      }.start();
      //Wait for the external process to finish     
      int exitCode = p.waitFor();          
      if ( exitCode != 0 )
        throw new IOException("Executable stopped with error code "+exitCode); Cheers, HJK

  • List and details controls of JFileChooser not working

    hey pls tell me wheather there is any way of making list and details controls of JFileChooser work in jdk1.3 it perfectly work in jdk1.4 ....
    pls help me
    thanx
    nik

    Hi Kamal
    In XI 3.0, this is a known issue for DCP value which is based on SAP OpenSQL driver can't be shown .
    It has been resolved in XI3.1 version.
    Thanks
    Ricky

  • Set working directory for a single thread

    Hi there,
    Well, there are already some threads about the "working directory" subject.
    Here's a new variant: I need to have different working directorys for each thread.
    I am currently enhancing an application to do some similar jobs multithreaded (but each one in a different working dir).
    So far, I started n instances of the same application in n virtual machines in n shells with each one having a different working dir.
    I think compared to the old way, doing it with multithreading is a good resource saving optimization...
    Reading through the 'working directory' threads , I everywhere found the recommendation to do without the internal 'cd' and use absolute paths instead.
    The problem is:
    Some of the lower level classes create directories and files in their constructors to make sure they exist when performing later actions.
    If there is really no way other than using absolute paths, I would need to change many constructor's and method's signatures (from the creation of a Runnable Object all the way down to the creation of the mentioned classes).
    So please, don't recommend me to use absolute paths if there's a trick to do a 'cd'.
    Of course, if there is really no way to do a 'cd' for a thread, this would be bad luck...
    Hoping for help
    Markus

    Hi,
    Reading those threads, I was not sure if the conclusion is "I can not" or "I should not" (maybe because its very difficult or it may have side effects or whatever).
    The scenario I described is true, but it was also meant to prevent people from saying "you should not" too easily.
    But if the conclusion is "I can not", it seems I will have to do numerous changes. Bad luck for me.
    Anyway, Thanx.

  • Nothing works in SQL Developer 1.2

    I have been using SQL Developer for quite a long time, and never had any issues - until I downloaded version 1.2. Note, I did not do an upgrade and I did not do a migration from an earlier version. This is a clean install on SQL Developer 1.2 with bundled JRE.
    After I connect to a database I can write SQL statements and get a result. The problems starts if I use the object browser.
    1. Expand Table results in:
    ava.lang.NullPointerException
         at java.lang.System.arraycopy(Native Method)
         at oracle.net.ns.DataPacket.putDataInBuffer(Unknown Source)
         at oracle.net.ns.NetOutputStream.write(Unknown Source)
         at oracle.jdbc.driver.T4CMAREngine.marshalCLR(T4CMAREngine.java:700)
         at oracle.jdbc.driver.T4CTTIrxd.marshal(T4CTTIrxd.java:534)
         at oracle.jdbc.driver.T4C8Oall.marshalBinds(T4C8Oall.java:1499)
         at oracle.jdbc.driver.T4C8Oall.marshalAll(T4C8Oall.java:972)
         at oracle.jdbc.driver.T4C8Oall.marshal(T4C8Oall.java:421)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:201)
         at oracle.jdbc.driver.T4CCallableStatement.executeForDescribe(T4CCallableStatement.java:798)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1036)
         at oracle.jdbc.driver.T4CCallableStatement.executeMaybeDescribe(T4CCallableStatement.java:838)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1131)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3325)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3370)
         at oracle.dbtools.db.DBUtil.executeOracleQuery(DBUtil.java:472)
         at oracle.dbtools.db.DBUtil.executeQuery(DBUtil.java:498)
         at oracle.dbtools.raptor.navigator.ObjectQueryInstance.executeQuery(ObjectQueryInstance.java:73)
         at oracle.dbtools.raptor.navigator.xml.XmlFolderInstance.getChildren(XmlFolderInstance.java:121)
         at oracle.dbtools.raptor.navigator.xml.XmlFolderInstance.listChildren(XmlFolderInstance.java:67)
         at oracle.dbtools.raptor.navigator.ObjectFilter$1Loader.doWork(ObjectFilter.java:144)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:553)
         at java.lang.Thread.run(Thread.java:595)
    2. Expand Indexes results in:
    ORA-01460 00000 unimplemented or unreasonable conversion requested
    3. Expand Package, Function, Procedures, Triggers or Types and nothing happens even though I have my schema own such objects.
    4. All the other objects in the object browser reports the same errors as listed above. The only thing that works is the Public Synonyms.
    5. If I encounter any of the above errors I am not able to use the SQL worksheet properly any longer. Any queries (even SELECT * FROM dual) shows nothing in the results window and the status bar says "All rows fetched: 0"
    Help! I miss SQL Developer. Now I am stucked with Toad :/

    Help -> About -> Properties says:
    "XML Editing Framework IDE Extension     oracle.ide.xmlef     11.1.1.0.11.41.91     Missing dependencies: oracle.ide.daf, oracle.ide.palette2"
    But I don't think this is the root cause since this is a clean install, so every download of SQLDeveloper probably miss these dependencies.
    I am pasting my enviroment from Help -> About -> Properties if it helps:
    apple.laf.useScreenMenuBar     true
    awt.toolkit     sun.awt.windows.WToolkit
    class.load.environment     oracle.ide.boot.IdeClassLoadEnvironment
    class.transfer     delegate
    com.apple.macos.smallTabs     true
    com.apple.mrj.application.apple.menu.about.name     "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes     false
    file.encoding     Cp1252
    file.encoding.pkg     sun.io
    file.separator     \
    ice.browser.forcegc     false
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.conf     C:\app\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname     C:\app\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.launcherProcessId     5960
    ide.main.class     oracle.ide.boot.IdeLauncher
    ide.patches.dir     ide/lib/patches
    ide.pref.dir.base     C:\Documents and Settings\wmaunes\Application Data
    ide.product     oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\app\sqldeveloper\sqldeveloper.exe
    ide.splash.screen     splash.gif
    ide.startingArg0     C:\app\sqldeveloper\sqldeveloper.exe
    ide.startingcwd     C:\app\sqldeveloper
    ide.update.masterserver     http://www.oracle.com/technology/software/products/sql/master.xml
    ide.user.dir.var     IDE_USER_DIR
    ide.work.dir.base     D:\Data\Dokumenter
    java.awt.graphicsenv     sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob     sun.awt.windows.WPrinterJob
    java.class.path     ..\..\ide\lib\ide-boot.jar;..\..\jdev\lib\xmleditor.jar;..\..\ide\lib\oicons.jar;..\..\jlib\jewt4.jar;..\..\jlib\share.jar;..\ide\jlib\xmlef.jar;..\..\sqldeveloper\lib\jle2.jar;..\..\sqldeveloper\lib\oracle.dbtools.logging.jar
    java.class.version     49.0
    java.endorsed.dirs     C:\app\sqldeveloper\jdk\jre\lib\endorsed
    java.ext.dirs     C:\app\sqldeveloper\jdk\jre\lib\ext
    java.home     C:\app\sqldeveloper\jdk\jre
    java.io.tmpdir     C:\DOCUME~1\wmaunes\LOCALS~1\Temp\
    java.library.path     C:\app\sqldeveloper;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\PC Connectivity Solution\;D:\oracle\product\10.1.3\fusion\jdk\bin;D:\oracle\product\10.1.3\fusion\ant\bin;D:\oracle\product\10.1.2\oas\bin;D:\oracle\product\10.1.2\oas\jlib;D:\oracle\product\10.2.0\db_1\bin;C:\java\jdk1.5.0_08\bin;C:\app\Perl\bin\;C:\app\unxutils\usr\local\wbin;C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Lenovo;C:\Program Files\Lenovo\Client Security Solution;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\ZipGenius 6\;C:\Program Files\Perforce;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\QuickTime\QTSystem\;D:\oracle\product\10.1.3\fusion\MOBILE\sdk\bin;C:\app\ant\bin
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name     Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version     1.5.0_06-b05
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.5
    java.util.logging.config.file     logging.conf
    java.vendor     Sun Microsystems Inc.
    java.vendor.url     http://java.sun.com/
    java.vendor.url.bug     http://java.sun.com/cgi-bin/bugreport.cgi
    java.version     1.5.0_06
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     1.5.0_06-b05
    jdbc.driver.home     /D:/oracle/product/10.2.0/db_1/
    jdbc.library     /D:/oracle/product/10.2.0/db_1/jdbc/lib/ojdbc14.jar
    line.separator     \r\n
    oracle.home     C:\app\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.jdbc.Trace     true
    oracle.translated.locales     ja
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library     /D:/oracle/product/10.2.0/db_1/jlib/orai18n.jar
    os.arch     x86
    os.name     Windows XP
    os.version     5.1
    path.separator     ;
    reserved_filenames     con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    set.main.as.system.loader     true
    sun.arch.data.model     32
    sun.boot.class.path     C:\app\sqldeveloper\jdk\jre\lib\rt.jar;C:\app\sqldeveloper\jdk\jre\lib\i18n.jar;C:\app\sqldeveloper\jdk\jre\lib\sunrsasign.jar;C:\app\sqldeveloper\jdk\jre\lib\jsse.jar;C:\app\sqldeveloper\jdk\jre\lib\jce.jar;C:\app\sqldeveloper\jdk\jre\lib\charsets.jar;C:\app\sqldeveloper\jdk\jre\classes
    sun.boot.library.path     C:\app\sqldeveloper\jdk\jre\bin
    sun.cpu.endian     little
    sun.cpu.isalist     pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop     windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen     false
    sun.jnu.encoding     Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level     Service Pack 2
    user.country     US
    user.dir     C:\app\sqldeveloper\sqldeveloper\bin
    user.home     C:\Documents and Settings\wmaunes
    user.language     en
    user.name     WMAUNES
    user.timezone     Europe/Paris
    user.variant     
    windows.shell.font.languages

  • [SOLVED] netconsole working great - local journal's now almost empty

    the kernel command line never worked for me.
    I realized I had network init disabled in the bios.  Enabling bios init did not let netconsole start either at the boot parameters, or  the entry in   /etc/modules-load.d/
    The service that loads the module after the network comes up works (additional note at end)
    [Unit]
    Description= kernel kmsg to network
    Description=/etc/systemd/system/netconsole.service
    #wants maybe more appropriate; I didn't want to add stop handling to this; Requires would try to stop this if the network goes down
    Wants=network.target
    [Service]
    ExecStart=-/usr/bin/modprobe netconsole
    [Install]
    WantedBy=multi-user.target
    are these (observations on netconsole setup) candidates to include on the wiki?
    to the question at hand, the local log's almost empty - no entries for USB device insertions (these go to the target machine), udev/dbus stuff that I used to get from mozilla  ... tons of stuff that used to be in there.
    I had to reinstall Arch, I'm still recovering so that complicates matters: I may have had an old systemd setup that wrote too much.
    this does write to the local log
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/echo "WORKING DIR CHANGED TO"
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/pwd
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/echo "STARTING TAR"
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/printf "\033[1;35mSTARTING TAR TEST END COLOR\033[0m COLOR ENDED"
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/printf "\033[1;35mSTARTING TAR"
    /usr/bin/systemd-cat -t "sams systemd log test" /bin/tar cf $TARfile
    /usr/bin/systemd-cat -t "sams systemd log test" echo "failed, exiting"
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/printf "\033[0m"
    /usr/bin/systemd-cat -t "sams systemd log test" \
    /usr/bin/systemd-cat -t "sams systemd log test" \
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/ls -x --color=always /home/sam/bin
    /usr/bin/stat * -c '%s %Y %n' | sort -n -k 2 |/usr/bin/tail -n3 | /usr/bin/systemd-cat -t "sams systemd log test"
    /usr/bin/systemd-cat -t "sams systemd log test" /usr/bin/echo "backup filenames: "
    the issue now is, the local journal's empty of a lot of stuff that used to show up.
    this page's solution
    http://www.burtonini.com/wordpress/2013 … o-project/
    Update: when the journal starts up systemd will stop logging to the console, so if you want to get all systemd messages also pass systemd.log_target=kmsg.
    (I may have misunderstood; that sentence may have meant ... "if you want to get all systemd messages"  TO THE REMOTE machine)
    did not work (to restore the local entries), neither did these (taken from the systemd man page, SIGRTMIN+26, SIGRTMIN+27, SIGRTMIN+28)
    sync;sync;kill -60 1
    sync;sync;kill -61 1
    sync;sync;kill -62 1
    these latter command do report (on the netconsole'd remote machine) that the journal target has changed but nothing in the local journal.
    anything else to try to restore the local entries?
    the promised end note;
    cat /etc/modprobe.d/netconsole.conf
    options netconsole [email protected]/eno1,@192.168.12.51/00:03:29:d9:6f:2c
    Last edited by Sanjeev K Sharma (2015-04-25 10:43:34)

    I got stuck on thinking about netconsole - finally I realized it was indeed the reinstall I had done
    That reinstall took away the users added to the systemd-journal group.

  • How to create a file in a particular DIR?

    say I want to create a file as C:\myfile.xml , instead of current working DIR. how to do that? thanks

    say I want to create a file as C:\myfile.xml ,
    instead of current working DIR. how to do that? thanksThe java.io package has a great many classes and methods with which to accomplish this task. Perhaps you could take a peek at that portion of the API?

  • PRO*C/C++ YES IT WORKS!!!!

    hi,
    I installed oracle 8 EAP realese on my linux( Redhat 5.1 )
    mechine last month (including the patch 1,2).
    But I could not get Pro*C/C++ precompiler to work even after
    applying all the workarounds published in this user group. I
    posted my problem to this user group several times. But I did not
    receive a proper answer. So I thought it might be a problem with
    my Installation itself, for sometime.
    At last I found out a reasonabley working workaround for this
    problem last week.
    All you need to do is:
    use the make files given below.
    1. My env_precomp.mk is an updated verson of the env_precomp.mk
    found in ORACLE_HOME/precomp/lib
    (Either you can replace your current env_proc.mk with this or
    use this in your working dir.)
    2. My proc.mk is the proper make file to complile any *.pc
    program. This is a hack of demo_plsql.mk :- )
    (You have to include proper env_precomp.mk mentioned above
    and ofcourse username, password and exename- value for PCDEMOTEST
    Even if this does not work for you I suppose this will be a good
    starting point for further hacking.
    If you find any better solution or any problems with this method,
    please let me know.
    Thanks.
    KURUVITAGE NANDANA
    # pc.mk
    include env_precomp.mk
    .SUFFIXES: .pc .c .o
    DEMO_MAKEFILE= /opt/progs/pc.mk
    USERID=scott/tiger
    PROCPLSFLAGS= sqlcheck=full userid=$(USERID) CHAR_MAP=VARCHAR2,
    DBMS=V7
    PRECOMPPUBLIC=$(ORACLE_HOME)/precomp/public
    #INCLUDE=$(I_SYM). $(PRECOMPPUBLIC)
    PCDEMOS= pcTest
    pcTest: $(PCDEMOS)
    .pc.o:
    $(ORACLE_HOME)/bin/proc $(PROCPLSFLAGS) include=/usr/include
    include=$(PRECOMPPUBLIC) iname=$*.pc
    $(CC) $(CFLAGS) -I$(PRECOMPPUBLIC) -c $*.c
    build: $(OBJS)
    $(CC) -o $(EXE) $(OBJS) $(DEF_OPT) $(SSCOREED) -L$(LIBHOME)
    $(LLIBSQL) $(TTLIBS)
    $(PCDEMOS):
    $(MAKE) -f $(DEMO_MAKEFILE) build EXE=$@ [email protected]
    clean:
    $(RMF) $(PCDEMOS).o
    see next msg
    null

    hi
    this is the rest of my previous msg....
    I cant send the entire file. I can email it to anbody who wants
    it.
    Here you find only the updated sections of env_precomp.mk
    # env_precomp.mk
    # NANDANA oracore dir doesn't contain the required sub dirs:
    include, public, lib
    #COREHOME= $(ORACLE_HOME)/oracore/ NANDANA
    #ORACOREHOME= $(COREHOME) NANDANA
    LIBCORE= $(LIBHOME)libcore4.$(LIB_EXT)
    LLIBCORE= -lcore4
    S0MAIN= $(LIBHOME)s0main.o
    SCOREPT= $(LIBHOME)scorept.o
    SSCOREED= $(LIBHOME)sscoreed.o
    # $(COREHOME)include/ NANDANA
    # $(I_SYM)$(COREHOME)include NANDANA
    COREPUBLIC=$(COREHOME)public/
    # ORACOREPUBH=$(I_SYM)$(COREHOME)public NANDANA
    CORELIBD=$(LIBNLSRTL) $(LIBCV6) $(LIBCORE) $(LIBNLSRTL)
    $(LIBCORE) $(LIBNLSRTL)
    CORELIBS=$(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE) $(LLIBNLSRTL)
    $(LLIBCORE) $(LLIBNLSRTL)
    #NLSRTLHOME= $(ORACLE_HOME)/nlsrtl/
    ORA_NLS = $(ORACLE_HOME)/ocommon/nls/admin/data/
    ORA_NLS33 = $(ORACLE_HOME)/ocommon/nls/admin/data/
    LIBNLSRTL= $(LIBHOME)libnlsrtl3.$(LIB_EXT)
    LLIBNLSRTL= -lnlsrtl3
    LIBSERVER=$(LIBHOME)libserver.$(LIB_EXT)
    LLIBSERVER=-lserver
    LIBCLIENT=$(LIBHOME)libclient.$(LIB_EXT)
    LLIBCLIENT=-lclient
    LIBGENERIC=$(LIBHOME)libgeneric.$(LIB_EXT)
    LLIBGENERIC=-lgeneric
    LIBCOMMON=$(LIBHOME)libcommon.$(LIB_EXT)
    LLIBCOMMON=-lcommon
    LIBVSN=$(LIBHOME)libvsn.$(LIB_EXT)
    LLIBVSN=-lvsn
    LIBAGENT=$(LIBHOME)libagent.$(LIB_EXT)
    LLIBAGENT=-lagent
    DLMHOME=$(ORACLE_HOME)/odlm/
    SKGXNS=$(RDBMSLIB)skgxns.$(OBJ_EXT)
    SKGXND=$(RDBMSLIB)skgxnd.$(OBJ_EXT)
    SKGXN=$(RDBMSLIB)skgxn.$(OBJ_EXT)
    LIBDLM=$(SKGXN) $(LIBHOME)libudlm.$(LIB_EXT)
    LLIBDLM=$(SKGXN) -L /var/opt/ncrdlm/lib -ludlm
    LIBNM=$(LIBDLM)
    LLIBNM=$(LLIBDLM)
    NMLIBLIST=$(RDBMSLIB)nmliblist
    NMLIBS=`$(CAT) $(NMLIBLIST)`
    LIBMM=$(LIBHOME)libmm.$(LIB_EXT)
    LLIBMM=-lmm
    LIBRDBMS_CLT=$(LIBCLIENT) $(LIBVSN) $(LIBCOMMON) $(LIBGENERIC)
    LLIBRDBMS_CLT=$(LLIBCLIENT) $(LLIBVSN) $(LLIBCOMMON)
    $(LLIBGENERIC)
    LIBCLNTSH=$(LIBHOME)libclntsh.$(SO_EXT)
    LLIBCLNTSH=-lclntsh
    CONFIG = $(RDBMSLIB)config.$(OBJ_EXT)
    SDOLIBS = `if ${AR} tv ${ORACLE_HOME}/rdbms/lib/libknlopt.a |
    grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo
    "-lmdknl -lmdhh"; fi`
    DEF_ON= $(RDBMSLIB)kpudfo.$(OBJ_EXT)
    DEF_OFF= $(RDBMSLIB)kpundf.$(OBJ_EXT)
    DEF_OPT= $(RDBMSLIB)defopt.$(OBJ_EXT)
    LIBSLAX=$(LIBHOME)libslax.a
    LLIBSLAX=-lslax
    LIBSQL=$(LIBHOME)libsql.$(LIB_EXT)
    LLIBSQL=-lsql
    LIBSVRM= $(LIBHOME)smalmain.$(OBJ_EXT)
    $(LIBHOME)libsvrmgrl.$(LIB_EXT) $(LIBHOME)libslpm.$(LIB_EXT)
    LLIBSVRM= $(LIBHOME)smalmain.$(OBJ_EXT) -lsvrmgrl -lslpm
    RDBMSHOME=$(ORACLE_HOME)/rdbms/
    RDBMSLIB=$(RDBMSHOME)lib/
    RDBMSADMIN=$(RDBMSHOME)admin/
    # Entering /export/home12/lnx805/rdbms/s_exports.mk
    # Exiting /export/home12/lnx805/rdbms/s_exports.mk
    # Exiting /export/home12/lnx805/rdbms/exports.mk
    # Entering /export/home12/lnx805/otrace/exports.mk
    EPCLIBS=$(LLIBEPC)
    LIBEPC=$(LIBHOME)libepc.$(LIB_EXT)
    LLIBEPC=-lepc
    LIBEPCPT=$(LIBHOME)libepcpt.$(LIB_EXT)
    LLIBEPCPT=-lepcpt
    LIBEPCFE=$(LIBHOME)libepcfe.$(LIB_EXT)
    LLIBEPCFE=-lepcfe
    LIBEXTP=$(LIBHOME)libextp.$(LIB_EXT)
    LLIBEXTP=-lextp
    WRAP=$(BINHOME)wrap
    LIBPLSB=$(LIBHOME)libplsb.$(LIB_EXT)
    LLIBPLSB=-lplsb
    LIBPLSF=$(LIBHOME)libplsf.$(LIB_EXT)
    LLIBPLSF=-lplsf
    PLSQLLIBS=$(LIBPLSF) $(LIBPLSB)
    LPLSQLLIBS=$(LLIBPLSF) $(LLIBPLSB)
    LLIBPLSQL= $(LPLSQLLIBS) $(LLIBEXTP)
    LIBICD=$(LIBHOME)libicd.$(LIB_EXT)
    LLIBICD=-licd
    LIBPSD=$(LIBHOME)libpsd.$(LIB_EXT)
    LLIBPSD=-lpsd
    LIBPSA=$(LIBHOME)libpsa.$(LIB_EXT)
    LLIBPSA=-lpsa
    # Entering /export/home12/lnx805/plsql/s_exports.mk
    # Exiting /export/home12/lnx805/plsql/s_exports.mk
    # Exiting /export/home12/lnx805/plsql/exports.mk
    # Entering /export/home12/lnx805/precomp/exports.mk
    TOP = $(ORACLE_HOME)/precomp
    LIBSQL= $(LIBHOME)libsql.$(LIB_EXT)
    LLIBSQL= -lsql
    PRODUCT=precomp
    PRECOMPHOME= $(ORACLE_HOME)/precomp/
    PRODHOME=$(PRECOMPHOME)
    PRECOMPADMIN=$(PRECOMPHOME)admin/
    PRECOMPLIB=$(PRECOMPHOME)lib/
    PRECOMPPUBH=$(I_SYM)$(PRECOMPHOME)public
    # $(I_SYM)$(PRECOMPHOME)include NANDANA
    BBLINK=/opt/SUNWspro/SC3.0.1/lib/bb_link.o
    ADE_DEL_FILE=echo ""
    NDE= /usr/local/nde/bin/nde
    YACC= $(ORACLE_HOME)/slax/bin/slax
    YFLAGS= -l -p -v -d
    FIDL_FLAGS= -d -mPC
    PRECOMPLIB=$(PRECOMPHOME)lib/
    PRECOMPMESG=$(PRECOMPHOME)mesg/
    PRECOMPBIN=$(PRECOMPHOME)bin/
    PRECOMPSRC=$(PRECOMPHOME)src/
    PRECOMPINCLUDE=$(PRECOMPHOME)include/
    PRECOMPADMIN=$(PRECOMPHOME)admin/
    PRECOMPUTL=$(PRECOMPHOME)utl/
    PRECOMPINSTALL=$(PRECOMPHOME)install/
    PRECOMPDEMO=$(PRECOMPHOME)demo/
    PRECOMPADALIB=$(PRECOMPHOME)pubsrc/adalib
    PRODLIBHOME=$(PRECOMPLIB)
    LIBPAD=$(PRECOMPLIB)libpad.$(LIB_EXT)
    LIBPC=$(PRECOMPLIB)libpc.$(LIB_EXT)
    LIBPCC=$(PRECOMPLIB)libpcc.$(LIB_EXT)
    LIBPCD=$(PRECOMPLIB)libpcd.$(LIB_EXT)
    LIBPCO=$(PRECOMPLIB)libpco.$(LIB_EXT)
    LIBPFO=$(PRECOMPLIB)libpfo.$(LIB_EXT)
    LIBPGP=$(PRECOMPLIB)libpgp.$(LIB_EXT)
    LIBPPL=$(PRECOMPLIB)libppl.$(LIB_EXT)
    LIBPPA=$(PRECOMPLIB)libppa.$(LIB_EXT)
    LIBPROC2=$(PRECOMPLIB)libproc2.$(LIB_EXT)
    LIBMOD=$(PRECOMPLIB)libmod.$(LIB_EXT)
    LIBSQL=$(PRECOMPLIB)libsql.$(LIB_EXT)
    LIBPDC=$(PRECOMPLIB)libpdc.$(LIB_EXT)
    LIBOTT=$(PRECOMPLIB)libots2c.$(LIB_EXT)
    LIBPROCOB2=$(PRECOMPLIB)libprocob2.$(LIB_EXT)
    LIBFIDL=$(PRECOMPLIB)libfidl.$(LIB_EXT)
    RTSORAEXE=$(PRECOMPBIN)rtsora
    PRECOMP_LIBS=$(LIBPAD) $(LIBPC) $(LIBPCC) $(LIBPCO) $(LIBPFO) \
    $(LIBPGP) $(LIBPPL) $(LIBPPA) $(LIBPCD) $(LIBPROC2)
    $(LIBMOD) $(LIBSQL) $(LIBPDC) $(LIBOTT)
    $(LIBPROCOB2) $(LIBFIDL)
    PC5DRV=pc5drv.$(OBJ_EXT)
    PC0DRV=pc0drv.$(OBJ_EXT)
    PC2DRV=pc2drv.$(OBJ_EXT)
    PC1DRV=pc1drv.$(OBJ_EXT)
    PC4DRV=pc4drv.$(OBJ_EXT)
    PC3DRV=pc3drv.$(OBJ_EXT)
    PMSCPR=pmscpr.$(OBJ_EXT)
    PMSAPR=pmsapr.$(OBJ_EXT)
    PROC2OBJS=main.$(OBJ_EXT) sspced.$(OBJ_EXT) spcpt.$(OBJ_EXT)
    pcprnt.$(OBJ_EXT)
    MODOBJS=
    OTTOBJS=o2m.$(OBJ_EXT) so2ed.$(OBJ_EXT) so2pt.$(OBJ_EXT)
    PROCOB2OBJS=pcbd.$(OBJ_EXT) pcbrnt.$(OBJ_EXT)
    FIDLOBJS=fdmain.$(OBJ_EXT)
    ADAMAIN=$(PRECOMPLIB)$(PC5DRV)
    COBMAIN=$(PRECOMPLIB)$(PC0DRV)
    CMAIN=$(PRECOMPLIB)$(PC2DRV)
    FORMAIN=$(PRECOMPLIB)$(PC1DRV)
    PASMAIN=$(PRECOMPLIB)$(PC4DRV)
    PLIMAIN=$(PRECOMPLIB)$(PC3DRV)
    MODCMAIN=$(PRECOMPLIB)$(PMSCPR)
    MODADAMAIN=$(PRECOMPLIB)$(PMSAPR)
    MAINOBJS=$(PRECOMPLIB)main.$(OBJ_EXT)
    $(PRECOMPLIB)sspced.$(OBJ_EXT) \
    $(PRECOMPLIB)spcpt.$(OBJ_EXT) $(PRECOMPLIB)pcprnt.$(OBJ_EXT)
    MODOBJS=
    O2MAIN=$(PRECOMPLIB)o2m.$(OBJ_EXT) $(PRECOMPLIB)so2ed.$(OBJ_EXT)
    $(PRECOMPLIB)so2pt.$(OBJ_EXT)
    COB2MAIN=$(PRECOMPLIB)pcbd.$(OBJ_EXT)
    $(PRECOMPLIB)pcbrnt.$(OBJ_EXT)
    FIDLMAIN=$(PRECOMPLIB)$(FIDLOBJS)
    PDAOBJ=pda.$(OBJ_EXT)
    PDCOBJ=pdc.$(OBJ_EXT)
    PDBOBJ=pdb.$(OBJ_EXT)
    PDFOBJ=pdf.$(OBJ_EXT)
    PDPOBJ=pdp.$(OBJ_EXT)
    PD1OBJ=pd1.$(OBJ_EXT)
    PDSOBJ=pds.$(OBJ_EXT)
    CODEGENOBJS=$(PDAOBJ) $(PDCOBJ) $(PDBOBJ) $(PDFOBJ) \
    $(PDPOBJ) $(PD1OBJ) $(PDSOBJ)
    ADAPDC=$(PRECOMPLIB)$(PDAOBJ) $(PRECOMPLIB)$(PDSOBJ)
    CPDC=$(PRECOMPLIB)$(PDCOBJ) $(PRECOMPLIB)$(PDSOBJ)
    COBPDC=$(PRECOMPLIB)$(PDBOBJ) $(PRECOMPLIB)$(PDSOBJ)
    FORPDC=$(PRECOMPLIB)$(PDFOBJ) $(PRECOMPLIB)$(PDSOBJ)
    PASPDC=$(PRECOMPLIB)$(PDPOBJ) $(PRECOMPLIB)$(PDSOBJ)
    PLIPDC=$(PRECOMPLIB)$(PD1OBJ) $(PRECOMPLIB)$(PDSOBJ)
    PRECOMP_OBJFILES= $(ADAPDC) $(CPDC) $(COBPDC) $(FORPDC) $(PASPDC)
    $(PLIPDC) $(PRECOMPLIB)$(PDSOBJ) \
    $(ADAMAIN) $(COBMAIN) $(CMAIN) $(FORMAIN) $(PASMAIN) \
    $(PLIMAIN) $(MODCMAIN) $(MODADAMAIN) $(O2MAIN) \
    $(MAINOBJS) $(COB2MAIN) $(FIDLMAIN)
    # NANDANA PRECOMPHOME doesnt contain hdrs include dirs
    # PRECOMPH=$(I_SYM)$(PRECOMPHOME)hdrs NANDANA
    # PRECOMPSOSDH=$(I_SYM)$(PRECOMPHOME)include NANDANA
    # PRECOMPSH=$(PRECOMPH) $(PRECOMPPUBH) $(PRECOMPSOSDH) NANDANA
    # COREINCLUDE=$(I_SYM)$(COREHOME)include NANDANA
    INCLUDE=$(PRECOMPSH) $(PLSQLPUBH) $(RDBMSPUBH) $(ORACOREPUBH) \
    $(COREINCLUDE) $(NLSRTLPUBH) \
    $(OTRACEPUBH) $(NETWORKPUBH) $(SLAXPUBH) $(TK2PUBH)
    KNLLIBS= $(LIBCLIENT) $(LIBGENERIC) $(LIBMM) $(LIBCOMMON)
    PLSLIBS=$(LIBPSA) $(PLSQLLIBS) $(LIBEXTP) $(LIBSLAX) $(LIBICP)
    $(LIBICD)
    LIBNET2LIBS = $(LIBNETV2) $(NTCONTAB) $(LIBNTTCP) $(LIBNETWORK)
    SSDBAED=$(RDBMSLIB)ssdbaed.o
    LIBPLS_CLT=$(PLSQLLIBS) $(LIBEXTP)
    # Entering /export/home12/lnx805/precomp/s_precomp.mk
    ASFLAGS=-K PIC
    LLAIO=
    LLIBTHREAD=
    THREADLIBS=$(LLIBTHREAD)
    TTLIBS+=-ldl
    CCPSYSINCLUDE=sys_include='(/opt/SUNWspro/SC4.0/include/CC,/usr/include)'
    CCP=CC
    null

  • JFileChooser

    Hello, well i am having problems understanding how JFileChooser works with the java.io.*; package. i am trying to open a document either with .doc or .txt extentions, but also add it to a JTextArea. but i have not idea of how to get the reading file working correctly and certainly i do not have an idea on putting it in the JTextArea object. i have read the io java package link in www.java.sun.com, but i did nbot understand it very well. can you help me solve this problem and give me a link that explains the io package better.

    You completely miss the point....it's ONLY function is to present a directory structure which allows you to navigate and open a file. It does NOTHING with the file except let you ascertain the name, directory, extention of the file.
    Anything else having to do with the file is handled by other controls.

  • Could not clean working directory during the Livecycle ES 8.2.1 installation

    Hi,
    while using Adobe Livecycle Configuration Manager, I am getting the following error. How could I get around this problem?
    Failed on    'Executing merge scripts for adobe-livecycle-native-weblogic-x86_win32.ear'
    Could not clean working directory
    reg,
    Raj

    I'm posting my experiences with this error because it can hopefully help other people.  I was getting the same error during the Configure LiveCycle ES (1 of 3) screen after clicking the Configure button.  It would fail around 75% with a prompt saying error code ALC-LCM-000-000 and could not clean working directory.  The progress log would indicate the failure at executing merge scripts for adobe-livecycle-native-weblogic-x86_win32.ear.  I was installing LC ES 8.2.1 SP3 + QF 3.19 with the Forms and Output components on a Windows 2003 platform.
    Rename working dir (LC support suggestion)
    Rename c:\adobe\livecycle8.2\configurationManager\working to be like working.old.  Re-run ConfigurationManager (CM).  Didn't help since I saw the same error message.
    Clicked Configure again on and it went 100% without any problems.  The rest of the install went just fine.
    Reinstall Adobe LC ES 8.2
    I was getting the same type of error on another box, but clicking Configure wasn't getting past 75% again.
    Reboot of the box didn't help on the next attempt.
    Reinstall LC ES 8.2 worked
    Used the Add/Remove programs to remove Adobe LC ES 8.2
    Reinstalled the software with SP3 + QF 3.19.
    Ran CM again and I was able to get past this error.

Maybe you are looking for