Jar file not starting properly when in dir with name 2 or more words

Hello,
I have a pretty weird problem here. When I start my jar file from a directory like Test/MyJar.jar everything is fine. But if I try to start it from Test 1/MyJar.jar the file is not running properly. The jar file reads files from it's directory and the message I receive is can't find Test20%1/MyFile.txt.
Any help will be appreciated.

Anyway. Probably the easiest thing is to not read from the directory. Rather, put the files you need to read into the Jar file itself, and read them using Class.getResourceAsStream.
This is a workaround, but it's a good one.

Similar Messages

  • [SOLVED] samba does not start properly again -this time with systemd

    Definitely no luck with this one...
    So, today I've switched to a pure systemd init system, and noticed that I have this old issue again.
    (Link to my old thread: https://bbs.archlinux.org/viewtopic.php?id=142704)
    Samba doesn't start properly again, more precisely smbd is launched but not nmbd, so samba is not working as it should (for example smbtreee lists nothing).
    Last time I've solved it by putting samba long before networkmanager in the daemons array, but with systemd I'm a bit confused...
    Anyone has this issue?
    Last edited by scar (2012-11-03 07:05:42)

    I think that nmbd isn't waiting for networkmanager to start on my system, because I'm getting journal entries like
    Oct 31 00:47:21 spacebar winbindd[431]: [2012/10/31 00:47:21.556005, 0] param/loadparm.c:7969(lp_do_parameter)
    Oct 31 00:47:21 spacebar systemd[1]: nmbd.service: main process exited, code=exited, status=1
    Oct 31 00:47:21 spacebar systemd[1]: Unit nmbd.service entered failed state.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): carrier now ON (device state 20)
    Oct 31 00:47:22 spacebar kernel: r8169 0000:03:00.0: eth0: link up
    Oct 31 00:47:22 spacebar kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Auto-activating connection 'Static'.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) starting connection 'Static'
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: prepare -> config (reason 'none') [40 50 0]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> (eth0): device state change: config -> ip-config (reason 'none') [50 70 0]
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
    Oct 31 00:47:22 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
    Oct 31 00:47:22 spacebar rpc.mountd[462]: Version 1.2.6 starting
    Oct 31 00:47:22 spacebar systemd[1]: Startup finished in 3s 850ms 155us (kernel) + 21s 279ms 972us (userspace) = 25s 130ms 127us.
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> (eth0): device state change: ip-config -> activated (reason 'none') [70 100 0]
    Oct 31 00:47:23 spacebar ntpd_intres[441]: DNS 0.au.pool.ntp.org -> 116.66.160.39
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> Policy set 'Static' (eth0) as default for IPv4 routing and DNS.
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> Activation (eth0) successful, device activated.
    Oct 31 00:47:23 spacebar NetworkManager[391]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
    Oct 31 00:47:23 spacebar dbus[401]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
    Oct 31 00:47:20 spacebar smbd[428]: [2012/10/31 00:47:20.771872, 0] param/loadparm.c:7969(lp_do_parameter)
    Oct 31 00:47:20 spacebar smbd[428]: Ignoring unknown parameter "user client driver"
    Oct 31 00:47:20 spacebar smbd[428]: [2012/10/31 00:47:20.794252, 0] lib/interface.c:543(load_interfaces)
    Oct 31 00:47:20 spacebar smbd[428]: WARNING: no network interfaces found
    Oct 31 00:47:20 spacebar smbd[428]: [2012/10/31 00:47:20.805126, 0] smbd/server.c:1109(main)
    Oct 31 00:47:20 spacebar smbd[428]: standard input is not a socket, assuming -D option
    Oh, this started happening after putting a MUCH faster cpu and motherboard in the system, so maybe there's a race-condition there?
    Last edited by MisterAnderson (2012-10-30 04:59:46)

  • File not displaying properly when launched

    Hello, I'm using Cp6, Windows 7, Flash 11.9 and have a question.  I've created a cptx file for an overall tutorial.  I've inserted a video (Mp4) that I careated with Cp6 and published as an Mp4 file.  I inserted it via Video>Insert Video and chose Event Videof
    When I publsh the overall tutorial cptx file which is SCORM 1.2 enabled I get the expeced set of files in the zip folder.  I tested playing this tutorial in SCORM Cloud, IE, Chrome, and FireFox with success.  The overall tutorial plays as expected and the video plays as expected.
    When I handed off the zipped published files to somone to load in their LMS, everything works fine except when the Mp4 file is played, it launches fine, displays the first screen fine, and then continues to play however all of the screens after the first screen appear almost transparent.  And I believe the file the LMS people are loading is the Index_SCORM HTML file.  They said that's the one they upload to their LMS.
    I have looked throughout Cp6 for a "setting" that would cause this "dimming" effect starting on screen 2 and do not see anything.
    Here's a sample of the code the LMS people sent.  They think it cold be because of this opacity setting or value.
    How is this opacity setting triggered in Captivate 6?  If it is this, any suggestions on how to resolve it?  Do you think this is what's causing the MP4 video to start dimming out on slide 2?  Again, this doesn't happen on any of the other files in the published folder such as the SWF file and it does not happen when I test the entire published zip folder on SCORM Cloud.
    Thanks a ton!

    If you SCORM package as published from Captivate works perfectly well in SCORM Cloud then the issue is most likely with your client's LMS or the way the people administering it have loaded the course.
    In any SCORM complian LMS I have worked with, the file that the LMS wants to look at first is NOT the index_SCORM HTML file. It's the imsmanifest.xml file.  That's the file that tells the LMS what assets to load and how the links in the LMS's SCORM Player TOC should be set up.  The user should be launching the SCORM package via the link in the LMS TOC.  My suspicion is that your LMS is not launching the content correctly and some of the required JS files are not being loaded.

  • Imported HTML 5 audio file, not working properly when uploaded.

    Here's the code:
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="utf-8" />
            <title>HTML</title>
            <style>
                body {
                    margin:0;
                    padding:0;
                #container {
                    width:768px;
                    height:1024px;
                    background:url('img/bg.jpg');
                #panel {
                    position:relative;
                    top:750px;
                    left:40px;
                #panel img {
                    float:left;
                    margin-right:25px;
                #handles {
                    position:absolute;
                    top:640px;
                    left:15px;
                    z-index:50;
                #handles img {
                    float:left;
                    margin-right:95px;
                    -webkit-transition:all linear 0.4s;
                    -webkit-transform-origin:25% 75%;
                    -webkit-transform:rotate(150deg);
                #disk {
                    position:absolute;
                    top:750px;
                    left:50px;
                #disk img {
                    margin-right:45px;
                    -webkit-transition:all linear 0.4s;
                    -webkit-transform-origin:center;
                    position:relative;
                    top:20px;
                    -webkit-animation:disk linear 2s infinite;
                @-webkit-keyframes disk {
                    from {-webkit-transform:rotate(0deg);}
                    to {-webkit-transform:rotate(360deg);}
                #glow {
                    position:absolute;
                    top:950px;
                    left:100px;
                    margin-right:-5px;
                #glow img {
                    position:absolute;
                    top:0px;
                    display:none;
                #g1 {
                    left:-70px;
                #g2 {
                    left:160px;
                #g3 {
                    left:400px;
                audio {
                    display:none !important;
                    position:absolute !important;
            </style>
        </head>
        <body>
            <audio id="a1" src="img/a1.mp3">
                <source src="img/a1.mp3" type="audio/mpeg"></source>
            </audio>
            <audio id="a2" src="img/a2.mp3">
                <source src="img/a2.mp3" type="audio/mpeg"></source>
            </audio>
            <audio id="a3" src="img/a3.mp3">
                <source src="img/a3.mp3" type="audio/mpeg"></source>
            </audio>
            <div id="container">
                <div id="disk">
                    <img id="d1" src="img/d1.png"/>
                    <img id="d2" src="img/d2.png"/>
                    <img id="d3" src="img/d3.png"/>
                </div>
                <div id="handles">
                    <img id="h1" class="panelImg" src="img/handle.png" />
                    <img id="h2" class="panelImg" src="img/handle.png" />
                    <img id="h3" class="panelImg" src="img/handle.png" />
                </div>
                <div id="panel">
                    <img id="p1" class="panelImg" src="img/1.png" />
                    <img id="p2" class="panelImg" src="img/2.png" />
                    <img id="p3" class="panelImg" src="img/3.png" />
                </div>
                <div id="glow">
                    <img id="g1" src="img/glow.png" />
                    <img id="g2" src="img/glow.png" />
                    <img id="g3" src="img/glow.png" />
                </div>
            </div>
        </body>
        <script src="jquery-1.7.1.min.js"></script>
        <script type="text/javascript">
        $(function() {
            var current = 0;
            function spin($el) {
                var id = $el.attr('id');
                var num = id[1];
                if (current == num) {
                    stop();
                } else {
                    $('#d' + num).animate({top:-130},400,function() {
                        $('#h' + num)[0].style.webkitTransform = 'rotate(0deg)';
                        $('#g' + num).fadeIn('slow');
                        $('#a' + num)[0].play();
                    current = num;
            function stop() {
                if (current != 0) {
                    var num = current;
                    $('#d' + num).animate({top:20},400,function() {
                        $('#h' + num)[0].style.webkitTransform = 'rotate(150deg)';
                        $('#g' + num).fadeOut('slow');
                        $('#a' + num)[0].pause();
            $('.panelImg').on('click',function() {
                stop();
                spin($(this));
        </script>
    </html>

    well for anyone else.
    my html was fine. in fact the server nginx was returning the wrong content-type and so i had to add the MIME types into my nginx config file.

  • Chinese Characters Not Displayed Properly when iCal sync with Palm T5

    Hi All,
    I am having problem with the Chinese Character display on iCal. I am using iMac Intel Core Duo and Palm T5. I can read on my iMac the Chinese Characters which I typed on the iMac. Also I can read on my Palm those Chinese I inputted on my Palm. But both can't display the Chinese Characters inputed by each other. Can anyone help?
    Thanks.

    Hello,
    I assume your flash disk is using FAT16/32...
    You need to specify the character set when mounting it. On the command line...
    # mount /dev/sda1 /mnt/mountpoint -o iocharset=utf8
    To include this option in the default VFAT mount options under GNOME, launch gconf-editor, look for the key: /system/storage/default_options/vfat and add iocharset=utf8 to the list of mount options.

  • My Mac Mini is not starting, but when it does it goes to the grey screen, but sits there making a clicking noise

    My Mac Mini is not starting properly, when it does it goes to a gray screen, but sits there making a clicking noise

    Welcome to Apple Support Communities
    What OS X version have you got? Press Option key and check if you can select OS X

  • PDF file is not created properly when I choose File- Print...- PDF-- Save as PDF

    PDF file is not created properly when I choose File->Print...In dialogue box if i select option Save as PDF under PDF button...But it works fine with Safari Browser..
    == This happened ==
    Every time Firefox opened
    == always

    My first thought is to make sure the fonts used are common. If there is a substitution, things will be off.

  • When I plug in my iphone5 or iPad into my Mac I get the message iTunes could not connect the service did not start properly on this device

    when I plug in my iphone5 or iPad into my Mac I get the message iTunes could not connect the service did not start properly on this device

    If you are using Windows 7, go to:
    Control Panel>Programs>Programs and Features
    Look for a program called 'Apple Mobile Device Support'
    Right-click on it
    Click 'repair'
    Wait until the repair operation is complete, and voila, your problem should be solved, itunes will recognise your iphone/ipod once more. This worked for me.

  • IBook not starting properly

    My iBook is not starting properly. The machine begins normally: gray screen to blue and a bar filling from left to right, but it does not move past this point. I understand how to re-install OS X for example, but I am reluctant to do that when it seems the problem is only in getting the wheels spinning... Help! What do you suggest?

    Last question first, the command to shut down from Single-User Mode is:
    shutdown now -h
    Check out this Apple Knowledge Base article which addresses the exact problem you're seeing:
    http://docs.info.apple.com/article.html?artnum=302411
    DiskWarrior is likely your best bet for recovering your hard drive. Someone said it is available at Apple Stores, or you can use the online link I've provided here.
    If you have another Mac, you may be able to access your hard drive via FireWire Target Disk Mode in order to retrieve your important files to the hard drive of the other Mac.
    Good luck.

  • Why am I getting File not Found alert when I type into my browser?

    Why do I keep getting a File not Found alert when I type into my browser?
    I have been using firefox for about 4 yrs now with very few problems. The problem I am having is that when ever I go to type in anything into my browser I keep receiving this message:
    (Scroll down to see the rest)
    File not found
    Firefox can't find the file at jar:file:///C:/Program Files (x86)/Mozilla Firefox/omni.jar!/chrome/en-US/locale/browser-region/region.propertieschronic+fatigue+syndrome.
    I recently installed Firefox 5.0 and this keeps happening. It happened with the 4.0 version a couple of days ago but mostly it is the 5.0 version that I am having problems with. When ever I want to do a search I have to manually type in google.com. Is there a solution to fix this?

    The NuGet is a dll that was built with 4.0.0.0.  The easiest thing to fix problem is target you VS project to use Net 4.0.  You could get a new version of NuGet, but if you do make sure you rebuild your entire project.  The dependencies in
    the VS compiler doesn't always recognize updated libraries.  So I normally rename the bin folder in the project and then delete the bin folder.  VS will create a new bin folder and then rebuild all the source files.  If your project contains
    multiple projects then remember to delete the bin from all projects.
    jdweng

  • TS1702 After installing the new software to my iPhone 4S , my dream zoo either will not start or when it does it has a blank screen that has a few icons on it that wont work. How can I fix this is it possible to go back and reinstall the older software ?

    After installing the new software to my iPhone 4S , my dream zoo either will not start or when it does it has a blank screen that has a few icons on it that wont work. How can I fix this is it possible to go back and reinstall the older software ?

    Unfortunately I tried that and it didn't work. Thanks for the help though. I tried to uninstall and it said I couldn't because the file is corrupt or something, but I think I finally got it uninstalled and/or deleted or whatever, but now I try to reinstall/download it again from the beginning and I can't. No matter what I do I can not get Firefox working again. No matter how many times I try to redownload it. Any other suggestions?

  • Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • Swf is not working properly when upload to server

    I develop 1.swf which is having 3 buttons each one having
    anather .swf to call 2.swf, 3.swf respectively.
    This application is running perfectly on my PC, but
    While uploading the swf to server the 2.swf and 3.swf is
    not running. Can any one tell how to recover from this kind
    of problem.

    justbipin wrote:
    > basically my code working perfectly,
    > but its not working properly when upload to server
    > can anybody having any ref. or link to solve this
    issues.
    why is that we insist on seeing the source file ?
    There is no one way of doing things in flash and no one can
    help
    you based on "does not work description".
    This is way to broad of a subject to even try to guess.
    Same as asking "my car does not work, what's up with
    that"....
    Please upload the problematic file and provide url for us to
    check.
    Otherwise you need to try to troubleshoot it yourself as we
    can't
    guess from here what possibly is wrong with that file.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Imported Jar file not loaded at run time ORA-105100

    Oracle 9iDS forms Version 9.0.2.9.0
    Oracle 9iAS Release 2
    I have imported java classes from a jar file into my form. I have it working in client server. Added the entries to the classpath in the default.env and system environment variable for development of the form and for execution.
    Moved the jar file, form and testing html to the application server. Modified the classpath in the default.env file. Tested the form. Got the ORA-105100 error. MetaLink note 261650.1 states that error frm-40735 When-Button-Pressed triger raised exception ORA-105100 if calling a java function from a jar file. Cause: Jar file not loaded at run time. Solution: add in your default.env CLASSPATH parameter your jar file including the whole directory of the jar file location. That has been done and the OC4J has been restarted. Still get error.
    Oracle support has not been able to give me much help as of yet. Does anyone have any further ideas, or documentation that I can read to help get this working?
    Thanks in advance for any assistance that is offered.

    Hey people any clues?

  • Why do the youtube clips not expand properly when I double click on the page

    why do the youtube clips not expand properly when I double click on the page

    The exclamation mark is telling you that iPhoto has broken the file path/link to the original file. Assuming you're using iPhoto 9 or later Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

Maybe you are looking for