JDK Path issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cannix
Posts: 17
Joined: Mon Jul 07, 2014 12:26 am

JDK Path issue

Post by cannix » Thu Feb 12, 2015 4:37 am

JDK Path: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
Image

But in my Java directory, can not find 1.6.0.jdk ..... Why???
Image

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: JDK Path issue

Post by LCNeil » Thu Feb 12, 2015 9:18 am

Hi Cannix,

I believe the install directory ,for the JDK on Mac,changed between versions 1.6 and 1.7. If you navigate to the directory that LiveCode returns, you will find the 1.6 JDK there

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

cannix
Posts: 17
Joined: Mon Jul 07, 2014 12:26 am

Re: JDK Path issue

Post by cannix » Fri Feb 13, 2015 2:51 am

LCNeil wrote:Hi Cannix,

I believe the install directory ,for the JDK on Mac,changed between versions 1.6 and 1.7. If you navigate to the directory that LiveCode returns, you will find the 1.6 JDK there

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-
Hi Neil,

Please elaborate,
Why not 1.6.0.jdk folder it? Thanks

Cannix

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: JDK Path issue

Post by LCNeil » Fri Feb 13, 2015 9:40 am

Hi Cannix,

You will need to contact Oracle and ask them what their reason for changing the install directory of the JDK was as we do not have any control over this.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Brahmanathaswami
Posts: 52
Joined: Mon Jun 24, 2013 4:10 am
Contact:

Re: JDK Path issue

Post by Brahmanathaswami » Tue Mar 03, 2015 5:42 am

I'm also having trouble with the Java JDK

I followed the instructions: downloaded what I think is the correct package:

jdk-8u31-macosx-x64.dmg

ran the installer... and I'm not getting any "JDK"

I have /System/Library/Java/
Support/CoreDeploy.bundle
MRJtoolkit.jar

But I don't see any JDK anywhere and also the mobile preferences in 7.0.3 (Mac OS X + Yosemite) does not see any JDK either... as a result i am unable to do any Android build/emulator testing. How do we go about debugging this? Meanwhile the Mac OS X System Preferences indicate Java is freshly installed, alive and well on this box... what am I missing.

Is the "Java JDK" something different that "Java" a spot light search for "JDK" on turns up the above DMG and some old repository from LC conference in t 2011 about extending LC with Java.

FYI: I'm not seeing any "JavaVirtualMachines/JDK* directory or files anywhere on my machine.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: JDK Path issue

Post by LCNeil » Tue Mar 03, 2015 2:35 pm

Hi Brahmanathaswami,

On thing to try in downloading the Java installer from Apple here-

https://support.apple.com/kb/DL1572?loc ... cale=en_US

I would also check to see if you are able to launch the Android SDK manager as this requires Java to be installed in order to run. The following video shows the the whole Android setup step by step-

https://www.youtube.com/watch?v=83qrKr9bR3M

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Brahmanathaswami
Posts: 52
Joined: Mon Jun 24, 2013 4:10 am
Contact:

Re: JDK Path issue

Post by Brahmanathaswami » Tue Mar 03, 2015 6:38 pm

Aloha Neil:

I'm having no trouble launching the Android SDK Manager... I can create a device, set the spec (CPU, screen size etc) and even boot up an android device in the Android manager emulator and there it is: a small black rect on screen and "LG 5 1/2" (my target device.. though that's not actually one of the options... we chose the ARM CPU and set the screen rect and a matching size... and that was our Android device du jour.

I have zero experience so far... I'm way behind on the mobile learning curve, but if my understanding is correct, (all that would not happen if Java were not properly installed.

So, thinking that perhaps LC 7.0.3/Yosemite does *not* require the Mobile Preferences (in LC) to actually know the JDK path (which remains blank, ever thought I'm seeing "green to go" for both iOS and Android in that panel) I go to the development menu.. but do not see any Android test device available, even though the test stack with proper standalone settings saved, is open.

Once (only once) I rebooted everything in some order and then momentarily there was Android as a target above the the iOS and iPad (the stand alone settings for my test app include all three)... but when I chose the Android for the target and ran "Test" LC died in the process of "Installing device...." or some dialog that just hung. No choice then but to force quit LC... on reboot... I don't see any Android target.

So, then, I'm guessing now that LC really does need that path...but now this blocker is completely opaque with no way forward.

I will try the Apple installer and get back to you..

Brahmanathaswami
Posts: 52
Joined: Mon Jun 24, 2013 4:10 am
Contact:

Re: JDK Path issue

Post by Brahmanathaswami » Tue Mar 03, 2015 6:54 pm

OK I went to that Apple site... and indeed it appeared, at first that there was some installer named:

jre-8u31-macosx-x64.dmg

which was different from the name indicated in your "Mobile Tasks" documentation which indicate we need to run:

jdk-8u31-macosx-x64.dmg # which I did install. #note "jdk" vs "jre"

But after installing

jre-8u31-macosx-x64.dmg

nothing actually changed on disk... I don't see any directory "JavaVirtualMachines" as such

What I have is:

/System/Library/Java/Extensions
/System/Library/Java/Support

And:

/Applications/android-sdk-macosx # which is set in the LC Mobile preferences... but no JDK path appears.

What next?

Brahmanathaswami
Posts: 52
Joined: Mon Jun 24, 2013 4:10 am
Contact:

Re: JDK Path issue

Post by Brahmanathaswami » Thu Mar 05, 2015 4:47 am

Just to say this is resolved... "my bad" when I went to that Apple link

https://support.apple.com/kb/DL1572

instead of downloading I went to the support link for the update... duh..

Then yesterday when installing Adobe Captivate 8... it prompted me to download Java and took me to the same link.

after downloading Java from the download button, the JavaVirtualMachines appeared and also in LC Mobile prefs... problem solved.

You might want to update the docs here:

http://lessons.runrev.com/m/4069/l/2738 ... er-on-a-pc

in the top section on "Software Requirements" you send the user to Oracle..

but perhaps Mac OS X users should go to that Apple link? I'm not really informed enough to know....

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: JDK Path issue

Post by LCNeil » Thu Mar 05, 2015 8:35 am

Hi Brahmanathaswami,

Its great to hear that you managed to resolve the issue :)

I will put a request in to have our documentation updated with this information

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Post Reply