JMonkeyEngine3 fails silently (19 posts)

Topic tags: crash to desktop, does not run, does not work, fails to start, silent fail, unable to strart
  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    Hi;

    I have windows 7 Ultimate sp1 x86, a 2.3ghz e6650 cpu, radeon 5670 gpu, and 4 gig of ram so my system exceeds basic requirements. I have 170gb free hd space.

    I just downloaded the latest jme3 sdk and jdk from the links provided.

    The first time through, i installed jme first, then java 6 – but when i run jme, the windows cursor spins slowly for about 2 to 3 seconds, then nothing else happens. There’s no error messages or anything, just a completely silent fail so I have no idea what’s wrong. I also tried running as an administrator, made no difference.

    So I uninstalled both.

    The second time through I installed jdk first, then JMe, and I still get exactly the same results … silent fail.

    I searched your wiki for “silent fail’ “Silent crash” and “Crash to desktop” and got nothing.

    I really want to try this as I’m sick of XNA and wanted to see if jme could be better…

    Any ideas? I’m completely stuck, a silent fail gives me no angle of attack whatsoever ….

  • Profile picture of normen normen1290p said 3 months, 3 weeks ago:

    What do you see when you run it form command line?

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    I hadn’t tried that so will do now …..

    ok still failing, but at least I get a message this time:

    Your user directory (C:Program Filesjmonkeyplatform) cannot reside inside your
    NetBeans installation directory (C:Program Filesjmonkeyplatform).

    I made no changes to the default install path when i installed, so I wonder why that is a problem? Wouldn’t that then happen to everyone?

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    Tried installing to a different path. That doesn’t work either – lots of messages about being unable to find things ….

    So a default install isn’t working and neither is a non-default …. wonder why no-one else has had this problem?

  • Profile picture of normen normen1290p said 3 months, 3 weeks ago:

    I don’t know what causes this but some people had this issue on windows, most solved it one way or the other..

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    Do you know how they solved it? I tried searching on the forum and in google but can’t find anything….do you have a link to someone else who had the problem?

    Right now I’m considering a fresh install of windows because I really want to try this jmonkey looks nice….

  • Profile picture of normen normen1290p said 3 months, 3 weeks ago:

    No, sorry, I’d be happy if I did :( . If you care to poke around a bit more and see if you can find a real cause for this it would be cool, maybe you can also check :google: for some hints if NetBeans users had the same issues as we use the same installer base as they do. It might be some strangeness with the users home folder (say if the installer cannot write to the user home, it might try and set the user directory falsely to the application directory).

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    I searched the forum a bit more under “failure to launch” and found a Russian guy had the same problem. However, that was because he had Russian characters in his user name..and when he changed it, it was fine.

    My user name is Jamie …. no special characters or anything, pretty sure it should be Ok … :) so that can’t be the answer.

    What I’ve done so far is, downloaded and installed jdk6 as administrator, and downloaded and installed jme3 as administrator. I made no changes to anything and left all options as default, so no funny paths or characters.

    Then I tried to launch it by double clicking the icon on the desktop… there wasn’t anything else I needed to do first, was there?

    What’s this stuff about netbeans? Do I need that too? Or is just an alternative ide …. in other words, have I done everything i needed to do and not missed anything stupid?

    I see you’re the developer, kudos on such a great looking system, hope I’m not wasting your time with silly stuff..

  • Profile picture of normen normen1290p said 3 months, 3 weeks ago:

    I appreciate the feedback very much but I cannot really help you I am afraid, I have only one windows system and never had any of the mentioned symptoms. Its a pretty bare-bones and static installation though so its definitely not the “typical” windows install ;) . This “your user directory..” thing was exactly what others reported but I never heard of a consistent “traceback” to the actual issue. :/

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    ok after a fresh windows install i installed jdk6 as admin and then jme3 as admin.

    Now the error has changed! No more “user directory” errors – yet when i examine the directory structure, it’s the same as it was in the previous install. Strange….

    The error message now is:

    java.io.FileNotFoundException: lock (Access is denied)

    Strangely, when I look at my hd, there is indeed a file called “lock” in the root c: directory.. seems a strange place to put it.

    Also, that file only has “read” permissions, no write. So I changed it so users have all permissions ….

    But I still get the same error!

    Finally, if I delete the file, on running jmonkey it gets created again … still with only read permissions, not write !

    I also changed the permissions for the entire jmonkeyplatform directory and subdirectories so the user has read+write permission..still no luck …

    What’s the lock file for? Do you know a way around this error?

  • Profile picture of feengur feengur18p said 3 months, 3 weeks ago:

    When you say you’re running the installations as admin, is your account an admin account or are you having to type in the admin username and pw everytime?

    I’ve run into an issue with Windows 7 regarding running apps as admin from a non-admin account. If your account is not an admin account you may have to (at least temporarily) elevate your account privileges to perform the installation correctly.

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    No, I’m actually the administrator – it’s a single user computer and I have admin privileges. Thanks for the input though … :-)

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    I found the problem! It’s a combination of permissions and the wrong directory in etc/jmonkeyplatform.conf file !!!

    What the problem was:

    On windows 7 jmonkey installs itself to c:/progam files/jmonkeyplatform

    But it sets the user directory in etc/jmonkey.conf like this:

    default_userdir=”${HOME}/.${APPNAME}/3.0beta

    So there’s a name mismatch in the installer – one part uses jmonkey, the other uses jmonkey3.0beta.

    Secondly, it creates the lock file in the root directory – and it doesn’t then have write permissions. If you edit the file to give them, OR delete it entirely, it just gets recreated everytime with no write permissions – causing the java.io.fileexception access denied.

    To fix:

    1. Create a directory on your desktop call jmonkey or whatever you like.
    2. Edit the etc/jmonkeyplatform.conf file, change the default_userdir section to default_userdir=c:/users/jamie/desktop/jmonkey

    Now it will work!

    Notes: (a) You MUST create a new directory for your files somewhere in YOUR windows user directory so that you always have the write permissions; putting it anywhere else risks windows screwing around with it. I put it on /desktop so you can see it easily.
    (b) Obviously in line (2) my user name is jamie, don’t forget to change to whatever your actual user name is!
    (c ) For some reason this forum deletes all the backslashes in posts. So where I used a forward slash in the directory names ( –> / ) don’t forget to use a backslash instead.

    It’s now running fine for me.

    Thanks for your help Norden and feenqur!

  • Profile picture of normen normen1290p said 3 months, 3 weeks ago:

    The user directory is supposed to be at (home)/.(appname/jmonkeyplatform)/3.0beta.. if thats not possible then really your home directory is not writable for you and thats kind of bad..

  • Profile picture of blubberguts blubberguts said 3 months, 3 weeks ago:

    Windows 7 can be pretty annoying with permissions ….

    Maybe it would be better to change the installer so it creates a user directory on the desktop like I did? Easy for the user to find, and it works …

    Anyway I struggled with this for 8 hours!!! Now I’m off to play with jmonkey … :-)