Coder Social home page Coder Social logo

Comments (6)

itsaky avatar itsaky commented on June 19, 2024 1

This will be available in release 17.0.0.2 which will take few minutes to get published.

from nb-javac-android.

itsaky avatar itsaky commented on June 19, 2024

First of all, the version of nb-javac was built with AndroidIDE in mind. So it is different from the version that CodeAssist uses.

To get this javac working with your project, you have to generate a minimal JDK with only the classes from android.jar and then use it with this nb-javac-android. You can use androidide-jdk-transform to generate such JDK images.

Apart from this, this nb-javac has names of classes from AndroidIDE hardcoded in it. For example, it uses the Environment class to get the path to the transformed JDK image as seen here.

from nb-javac-android.

itsaky avatar itsaky commented on June 19, 2024

This is clearly not a bug. It is just how this nb-javac-android is designed.

from nb-javac-android.

PranavPurwar avatar PranavPurwar commented on June 19, 2024

No issues, i didn't knew that earlier as it was published on maven.

from nb-javac-android.

PranavPurwar avatar PranavPurwar commented on June 19, 2024

Thanks! It's working now after creating the com.itsaky.androidide.utils.Environment file with a static field containing the system modules path. However, I think It'd be more convenient to set up if the class path is not hardcoded/is changeable

from nb-javac-android.

itsaky avatar itsaky commented on June 19, 2024

You can now configure nb-javac-android to use a custom JAVA_HOME without creating the Environment class. Simply set the androidide.java.home property with System.setProperty(String, String). Use the PROP_ANDROIDIDE_JAVA_HOME field in JavacConfigProvider

See JavacConfigProvider for more detail.

from nb-javac-android.

Related Issues (1)

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.