Coder Social home page Coder Social logo

Comments (4)

townxelliot avatar townxelliot commented on September 3, 2024

It's likely you have some kind of jdk installed, otherwise you wouldn't have javac (to compile .java files), jarsigner (which make_apk.py uses), or tools.jar (which ant uses).

JAVA_HOME is usually necessary to tell Ant where your Java install is. There may be some other voodoo going on in your setup so that Ant can find Java, but if you install from a tarball (which is the most consistent way to do it cross-platform in my opinion) you have to set JAVA_HOME yourself.

I think the instructions suggest "Java JDK". It might be worth saying instead "Oracle JDK" (and remove the piece about JAVA_HOME) , then it doesn't matter how you set it up as long as it works. (And Ant can find it.)

The scripts do actually check whether you've got all the tools and they're all working before they will do a build, so you could just give it a go and see what happens :) Though they enforce the use of the Oracle JDK, as I've seen it mentioned that gcj doesn't work well with Android.

from deprecated-crosswalk-apk-generator.

davidmaxwaterman avatar davidmaxwaterman commented on September 3, 2024

It suddenly occurred to me to look in the most obvious place - since javac and jarsigner are both in /usr/bin - and indeed it is installed via dpkg :

ii oracle-java7-installer 7u45-0webupd80 all Oracle Java(TM) Development Kit (JDK) 7

I don't have JAVA_HOME set - obviously not needed for javac and jarsigner, but I'm not sure how it can find tools.jar (and my memory is telling me that this has been an issue for me in the past...).

I'll see how far I can get.

from deprecated-crosswalk-apk-generator.

townxelliot avatar townxelliot commented on September 3, 2024

Should we close this now, or do you think we need to add the links still?

from deprecated-crosswalk-apk-generator.

davidmaxwaterman avatar davidmaxwaterman commented on September 3, 2024

close, I think...perhaps it will end up in an faq at some point.

from deprecated-crosswalk-apk-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.