Bug Issue: Java not recognized on OsX


Pages: 1

melbrecht22

  • Junior Stencyler
July 25, 2018, 07:13:29 pm
Just downloaded Stencyl on my MacBook Pro running MacOS 10.13.6

When trying to run the program after installing I keep getting an error stating that Java needs to be installed on my machine. I have both Java 8 and Java 10 installed.
I've searched for hours but haven't been able to find a solution. Multiple redownloads does not fix the issue.

Any suggestions?

Thanks in advance!


Justin

  • Master Stencyler
  • *
July 26, 2018, 01:20:49 pm
Java 8 works fine. Java 10 support is upcoming. Maybe it's being tripped up because of Java 10 being the default on your computer.

You can try specifying a Java version installed on your computer to make it use 8.

Go to your Stencyl install, and in it, Stencyl.app > (Right click > Show Package Contents) > Contents > MacOS > Stencyl, and open it with a text editor.

Go to the section beginning with this
Code: [Select]
#
# find installed Java versions
#################################

At the top of that section, add a line to set your Java version. The path you specify depends on where Java 8 is installed.

Code: [Select]
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home"
« Last Edit: July 26, 2018, 01:21:55 pm by Justin »


melbrecht22

  • Junior Stencyler
July 26, 2018, 08:30:51 pm
Justin,

Thank you for your reply! I believe that's the exact issue!

The problem however, is that the file you mentioned is in a read only directory. I tried saving the file outside of the directory and moving it, even by using a sudo command in the terminal, but was prompted with "Read-only file system"

Any suggestions?

Thanks!


melbrecht22

  • Junior Stencyler
July 26, 2018, 08:38:01 pm
I also just switched my JAVA_HOME to reflect Java 8. Unfortunately it still isn't working  :(


melbrecht22

  • Junior Stencyler
July 26, 2018, 09:32:45 pm
I feel like an idiot. I've been messing around with the bash script for hours now, and just now found out that the reason why it wasn't running was because the line of code you suggested had a different version than I have of 8. Changed it to my version and it worked like a charm.

You're a hero! Thank you :D


Issue updated by irock - July 26, 2018, 09:56:32 pm
  • Status changed from New to Closed


Issue updated by Justin - July 26, 2018, 09:57:27 pm
  • Tags added: java 9
  • Status changed from Closed to New


Justin

  • Master Stencyler
  • *
January 16, 2019, 07:41:09 pm
Java 9 support has been added to Stencyl 4.0.0.
  • Issue Assigned from (none) to Justin
  • Status changed from New to Resolved


Pages: 1

Details

  • Reported
    July 25, 2018, 07:13:29 pm
  • Updated
    January 16, 2019, 07:41:09 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.4
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Updating Stencyl

Tags