HaxeFoundation / hxjava

Haxe Java support library. Build scripts and support code.
The Unlicense
46 stars 14 forks source link

Type not found : java.javax.inject.Provider #32

Closed darmie closed 4 years ago

darmie commented 4 years ago

I have the latest JRE installed, but Haxe can't find java.javax.inject.Provider

Here's my build.hxml

-cp src/
-dce full
-java-lib lib/android.jar
-java-lib lib/react-native-0.61.5.jar
-java bin/java/

Here's a full information about my Java installation:

Property settings:
    awt.toolkit = sun.lwawt.macosx.LWCToolkit
    file.encoding = UTF-8
    file.encoding.pkg = sun.io
    file.separator = /
    gopherProxySet = false
    java.awt.graphicsenv = sun.awt.CGraphicsEnvironment
    java.awt.printerjob = sun.lwawt.macosx.CPrinterJob
    java.class.path = .
    java.class.version = 52.0
    java.endorsed.dirs = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/endorsed
    java.ext.dirs = /Volumes/Vibranium/Users/damilare/Library/Java/Extensions
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/ext
        /Library/Java/Extensions
        /Network/Library/Java/Extensions
        /System/Library/Java/Extensions
        /usr/lib/java
    java.home = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
    java.io.tmpdir = /var/folders/v0/4jrc_n9j26v29_bdjkws5zhc0000gp/T/
    java.library.path = /Volumes/Vibranium/Users/damilare/Library/Java/Extensions
        /Library/Java/Extensions
        /Network/Library/Java/Extensions
        /System/Library/Java/Extensions
        /usr/lib/java
        .
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.8.0_181-b13
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Oracle Corporation
    java.specification.version = 1.8
    java.vendor = Oracle Corporation
    java.vendor.url = http://java.oracle.com/
    java.vendor.url.bug = http://bugreport.sun.com/bugreport/
    java.version = 1.8.0_181
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.8
    java.vm.vendor = Oracle Corporation
    java.vm.version = 25.181-b13
    line.separator = \n 
    os.arch = x86_64
    os.name = Mac OS X
    os.version = 10.14.4
    path.separator = :
    sun.arch.data.model = 64
    sun.boot.class.path = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/resources.jar
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/rt.jar
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/sunrsasign.jar
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jsse.jar
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jce.jar
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/charsets.jar
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jfr.jar
        /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/classes
    sun.boot.library.path = /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib
    sun.cpu.endian = little
    sun.cpu.isalist = 
    sun.io.unicode.encoding = UnicodeBig
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = UTF-8
    sun.management.compiler = HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level = unknown
    user.country = NG
    user.dir = /Volumes/Vibranium/Workspace/Zenturi/project/Mandolin
    user.home = /Volumes/Vibranium/Users/damilare
    user.language = en
    user.name = damilare
    user.timezone = 

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
RealyUniqueName commented 4 years ago

I think we don't have java.javax included in hxjava. Try including javax jars manually with -java-lib

darmie commented 4 years ago

@RealyUniqueName what package is that in? I don't have the Jar

darmie commented 4 years ago

Found it here http://www.java2s.com/Code/Jar/j/Downloadjavaxinjectjar.htm

Thanks