Results 1 to 23 of 23

Thread: Error while finding default Java

  1. #1
    Join Date
    Jan 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Unhappy Error while finding default Java

    Hi guys! Everytime I try to run script it shows "[AL] Initiating AeroLib...
    [AL] Checking version...
    [AL] Currently up to date.
    [AL] Loaded 2 MSObjects.
    [AL] Best world found: 38
    [AL] Error while finding default Java, searching for Java...
    Failed To Find Java.exe or Javaw.exe. Please add ...\JRE\Bin to your PATH environment variable.
    [AL] SMART cannot spawn client
    Successfully executed."

    And wont start script. I have tryied to re-install java, change environment variable's, but still same issue...

  2. #2
    Join Date
    May 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Are you sure that you have the SMART include? Try to install it or re-install it if you already have it.

    If you want to test the script without SMART you can just comment (//) out the line at the top that says: {$DEFINE SMART} but remember if you do this to open the game in your browser and drag the green crosshair from simba to the client so that simba knows which window it's supposed to be working in.

  3. #3
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    What java version do you currently have?
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  4. #4
    Join Date
    Jan 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Joopi View Post
    What java version do you currently have?
    I have JRE 7 u79. I have downloaded it as tutorial said that.

  5. #5
    Join Date
    Jan 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    fixed

  6. #6
    Join Date
    Oct 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by liutasz2 View Post
    fixed
    hey how did u fix? im having the same issue

  7. #7
    Join Date
    Feb 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by liutasz2 View Post
    fixed
    posting shit like this should be an auto ban. tell people how you fixed it ffs

  8. #8
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Quote Originally Posted by Cyonnn View Post
    posting shit like this should be an auto ban. tell people how you fixed it ffs
    "You have no rights and are entitled to nothing."

  9. #9
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by acow View Post
    "You have no rights and are entitled to nothing."
    1 rep to the person who can guess who first said that to who

  10. #10
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Quote Originally Posted by rj View Post
    1 rep to the person who can guess who first said that to who
    acow to cyonnn

  11. #11
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by acow View Post
    acow to cyonnn
    wrong.

    Hobbit to rj

  12. #12
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by rj View Post
    wrong.

    Hobbit to rj
    WT-F to everyone?

  13. #13
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by tls View Post
    WT-F to everyone?
    Wrong.

  14. #14
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by rj View Post
    Wrong.
    https://villavu.com/forum/showthread...7456#post67456

    2007? 3 years before you joined.

  15. #15
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by tls View Post
    how do you know it wasn't added after 2007

  16. #16
    Join Date
    Mar 2015
    Posts
    12
    Mentioned
    1 Post(s)
    Quoted
    7 Post(s)

    Default

    I'm having the same problem. How to fix this?

  17. #17
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    I had this issue recently on my PC at home. I did the following to fix it:
    - Completely removed all java versions from your computer. There was a program floating around whose name I cannot remember, but it completely wipes it from your registry as well.
    - Install 32 bit Java: JRE 7-U80
    - Go to properties > Advanced system settings > Environment Variables
    - There will be 2 sections here: User variables and system variables. Find a variable by the name of Path under system variables, highlight it and click edit.
    - Under Variable value, paste: C:\Program Files (x86)\Java\jre7\bin
    - If you already have text under variable value, click on the text box, hold your right arrow key until you get to the very end of the text line, then put a semicolon ( and then paste the above line (NO SPACES).
    - Click ok. Click ok. Click ok.
    - Reboot Simba if you still have it open and attempt to run a script with SMART

    This fix worked for me. If it doesn't work for you, you may have old java files remaining on your PC that need to be wiped.

  18. #18
    Join Date
    Feb 2017
    Location
    The Netherlands
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by Dan the man View Post
    I had this issue recently on my PC at home. I did the following to fix it:
    - Completely removed all java versions from your computer. There was a program floating around whose name I cannot remember, but it completely wipes it from your registry as well.
    - Install 32 bit Java: JRE 7-U80
    - Go to properties > Advanced system settings > Environment Variables
    - There will be 2 sections here: User variables and system variables. Find a variable by the name of Path under system variables, highlight it and click edit.
    - Under Variable value, paste: C:\Program Files (x86)\Java\jre7\bin
    - If you already have text under variable value, click on the text box, hold your right arrow key until you get to the very end of the text line, then put a semicolon ( and then paste the above line (NO SPACES).
    - Click ok. Click ok. Click ok.
    - Reboot Simba if you still have it open and attempt to run a script with SMART

    This fix worked for me. If it doesn't work for you, you may have old java files remaining on your PC that need to be wiped.
    Isn't this just a default step to take in order to get smart working ?
    I can't see how you can run it without..
    Nevertheless , the steps you described should be placed in a tutorial of some kind.

  19. #19
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by uvlees View Post
    Isn't this just a default step to take in order to get smart working ?
    I can't see how you can run it without..
    Nevertheless , the steps you described should be placed in a tutorial of some kind.
    Correct but this answer is usually sprawled out across multiple posts among multiple threads.

    Also, this is an answer to the OP - Failed to spawn SMART. It is usually an issue with Java installation.

    Edit: Just realized how old this post is lmao.
    Last edited by Dan the man; 03-22-2017 at 06:06 AM.

  20. #20
    Join Date
    Feb 2017
    Location
    The Netherlands
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by Dan the man View Post
    Correct but this answer is usually sprawled out across multiple posts among multiple threads.

    Also, this is an answer to the OP - Failed to spawn SMART. It is usually an issue with Java installation.

    Edit: Just realized how old this post is lmao.
    Lol me too. Doesn't matter, people installing simba will always ask about this. It would be awesome if the text you typed out would be added to the installation tutorial. Instead of 'set Java to path'. Most people don't even know what a path is.

  21. #21
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by uvlees View Post
    Lol me too. Doesn't matter, people installing simba will always ask about this. It would be awesome if the text you typed out would be added to the installation tutorial. Instead of 'set Java to path'. Most people don't even know what a path is.
    Yeah would be good. Suppose if people really want Simba, they can do a little searching for a their fix anyway.

  22. #22
    Join Date
    Apr 2017
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I solved this problem by uninstalling alla java versions and simba, and then reinsalling everyting on one of my other drives. I had this problem while installing everything to my F: drive then reinstalled everything to my C: drive(maindrive) and all of a sudden it worked.

  23. #23
    Join Date
    Mar 2018
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    I had this problem too.
    I used "Dan the man" guide posted here.
    - Completely removed all java versions from your computer. There was a program floating around whose name I cannot remember, but it completely wipes it from your registry as well.
    - Install 32 bit Java: JRE 7-U80
    - Go to properties > Advanced system settings > Environment Variables
    - There will be 2 sections here: User variables and system variables. Find a variable by the name of Path under system variables, highlight it and click edit.
    - Under Variable value, paste: C:\Program Files (x86)\Java\jre7\bin
    - If you already have text under variable value, click on the text box, hold your right arrow key until you get to the very end of the text line, then put a semicolon ( and then paste the above line (NO SPACES).
    - Click ok. Click ok. Click ok.
    - Reboot Simba if you still have it open and attempt to run a script with SMART

    It didn't work for me at first after using "Dan the man" guide, but after I restarted my PC and waited like 25 minutes it promted me to update java on bottom right and it started working for me after the update.

    -To verify the release version, open CMD and run java -version.
    -To verify the bit version, open a command prompt and run java -d64. If the 64-bit version of Java is installed, the command usage information displays. If the 32-bit version of Java is installed, the following message is displayed:
    Error: This Java instance does not support a 64-bit JVM. Please install the desired version.

    I downloaded my java install file from here: http://downloads.gvsig.org/download/...runtimes/java/
    The one I downloaded from the site was called:
    For Windows 32 bits (jre-7u80) (Only gvSIG 2.2.0 32 bits is available for Windows)
    Also the uninstall tool "Dan the man" mention is called Java Uninstall tool.
    It can be downloaded from here: https://www.java.com/en/download/uninstalltool.jsp

    After uninstalling and reinstalling everything I found out my problem was installing java 64 bit version instead of 32 bit version. I got confused, because java official website offers only 64 bit version if you have 64 bit computer also 32 bit version has 86 in the end of install file, which also confused me. I searched for 32 bit newest version on google and found one. After installing it everything worked fine.
    Last edited by Nixes; 03-21-2019 at 08:32 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •