Page 1 of 4 1234 LastLast
Results 1 to 10 of 37
Discuss java on apple TV at the AppleTV 1 - Hackint0sh.org; hi, is it possible to install java VM on apple TV? many thanx!! Bye teo...
  1. #1
    Newbie Array

    Join Date
    Jan 2009
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default java on apple TV

    hi,
    is it possible to install java VM on apple TV?

    many thanx!!

    Bye
    teo



  2. #2
    ash
    ash is offline
    Senior Professional Array

    Join Date
    Mar 2008
    Posts
    273
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    20

    Default

    Yes it is. I installed soylatte (java 1.6) on my ATV 2.3. I did this to run Wuala, but there were some errors and the SWT Interface didn't run. But I was able to run the console version with some success.
    JDownloader works fine with soylatte 1.6. So maybe some other apps work as well.

    How-to:
    1. Create this folder: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/
    2. Copy the contents of the extracted soylatte folder to /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
    3. Make a symlinkt: ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ /System/Library/Frameworks/JavaVM.framework/Versions/1.6
    4. Make this java the default: ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
    5. Set system variables:
    5.1 export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
    5.2 export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:$PATH
    6. In the console type: java version

    Something like "java version "1.6.0_03-p3" should be printed out to the console. This indicates that java is installed correctly.

    To use graphical user interfaces, you need to install X11 from an Tiger Install DVD.


    If there is not enough free disk space on your OSBoot, then simply copy the soylatte files to /Volumes/Scratch/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home.
    In this case, the symlinks above need to be adapted to point to the correct location.
    So:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ and
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6/ and
    /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/ point to
    /Volumes/Scratch/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0

    As this is quite some time ago, I don't know if I missed something. Just try it. If there are questions, I'll gladly help you out.

    br ash
    Last edited by ash; 11-08-2011 at 08:15 PM.

  3. #3
    Rookie Array

    Join Date
    Feb 2009
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    From which Mac OS did you get the Java Version? Can you take the last version form 10.5.6?

  4. #4
    ash
    ash is offline
    Senior Professional Array

    Join Date
    Mar 2008
    Posts
    273
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    20

    Default

    You can't take a java from a MacOS, afaik. Because there are some other parts for "native" integration of java missing or incompatible with appletv os. The leopard java, as every other stuff taken from leopard, is incompatible with the AppleTV OS!
    To get it working you have to use Soylatte (SoyLatte - Port of BSD Java).

    There will be no native mac menus, nor will there be a mac native look and feel. But it will work.

  5. #5
    Newbie Array

    Join Date
    Jan 2009
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Many thanks to Ash, your post is very useful!

    Another question?
    In which file can I insert the export declarations (environment variables) to call automatically at startup of ATV?

    Following the procedure to install soylatte that I have used:
    installation of JAVA VM soylatte (java 1.6) on ATV 2.3, How-to:
    0.
    #on MAC download file soylatte16-i386-1.0.3.tar from SoyLatte - Port of BSD Java

    1.
    #on MAC move the contents of the extracted soylatte folder to
    ~/Desktop/JavaVM/Home

    #copy entere contents on appleTV:

    scp -r ~/Desktop/JavaVM frontrow@192.168.1.20:~

    2.
    #on AppleTV Create this folder:
    #/System/Library/Frameworks/JavaVM.framework/Versions/

    #on AppleTV make FS writable
    sudo mount -uw /

    sudo mkdir /System/Library/Frameworks/JavaVM.framework
    sudo mkdir /System/Library/Frameworks/JavaVM.framework/Versions/


    3.
    #on AppleTV Make a symlink:
    sudo ln -s ~/JavaVM/ /System/Library/Frameworks/JavaVM.framework/Versions/1.6

    #on AppleTV Make this java the default:
    sudo ln -s ~/JavaVM/ /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK

    sudo mount -ur /

    4. on AppleTV Set system variables:

    export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
    export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:$PATH

    6. In the console type: java -version

    Something like "java -version "1.6.0_03-p3" should be printed out to the console. This indicates that java is installed correctly.
    To use graphical user interfaces, you need to install X11 from an Tiger Install DVD.


  6. #6
    ash
    ash is offline
    Senior Professional Array

    Join Date
    Mar 2008
    Posts
    273
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    20

    Default

    you can set the export either in the file ~/.profile. This is a hidden file in your home directory. Simply copy the two export lines into this file. Then make it executable: chmod +x ~/.profile.

    Perhaps this also works, if you put the two lines into /etc/rc.local. This is the file where all the additional drivers and kexthelper are loaded.

    Did you try to run some SWT programs? I tried, and I had a lot of exceptions stating that some libraries are missing.

  7. #7
    Rookie Array

    Join Date
    Feb 2009
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    How do i have to install X11?

  8. #8
    ash
    ash is offline
    Senior Professional Array

    Join Date
    Mar 2008
    Posts
    273
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    20

    Default

    Either you can install the xquartz (x-server) of your Tiger Intel DVD or you have to download the latest tiger X11 from apple.com (Apple - Downloads - Mac OS X Updates - X11 Update 2006 1.1.3).

    The package can be installed using this command:
    sudo installer -pkg <path to x11 install package> -target /

    Here you got some additional infos, maybe this helps: X11-UsersFAQ ? XQuartz

  9. #9
    Newbie Array

    Join Date
    Mar 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    First time, IŽd like to be grateful for your help.

    Now, IŽd like to ask about a problem with X11.
    I download the latest tiger X11 from apple.com (Apple - Downloads - Mac OS X Updates - X11 Update 2006 1.1.3), but when I do sudo installer -pkg <path to x11 install package> -target /, my appletv says that I need another OSx version.
    Anyone know the problem?

    Thanks!!!

  10. #10
    ash
    ash is offline
    Senior Professional Array

    Join Date
    Mar 2008
    Posts
    273
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    20

    Default

    It may be that this update needs a cetain version of Tiger, eg. 10.4.10 or even 10.4.11. The AppleTV OS is just 10.4.7.

    It should work though, if you use Pacifist to extract the contents of the package and place each file exaclty where it should be. The folder structure of the target disk can be seen within Pacifist.

    If this doesn't work then you should try XQuartz for Tiger.


 

 
Page 1 of 4 1234 LastLast

Similar Threads

  1. AppleInsider: Apple deprecates its release of Java for Mac OS X
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 10-21-2010, 10:00 PM
  2. MacNN: Apple releases Java for OS X 10.5 Update 2
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 09-25-2008, 02:40 AM
  3. MacRumors: Apple Adds Java SE 6 to Leopard
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 04-29-2008, 10:40 PM
  4. [JAVA] does iphone run java programs???
    By joaolucasd in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 03-28-2008, 07:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:40 PM.
twitter, follow us!