Build.cmd does not generate the .jar and.dll

278 views
Skip to first unread message

Thiago Ferreira de Toledo

unread,
Sep 17, 2016, 12:04:35 PM9/17/16
to jni4net
When running build.cmd is returning an error. I do not understand because it is not recognizing the methods of my class. Follows the error log:

compile classes
jvm\teste\Teste.java:13: error: package system does not exist
public class Teste extends system.Object {
                                 ^
jvm\teste\Teste.java:12: error: package net.sf.jni4net.attributes does not exist
@net.sf.jni4net.attributes.ClrType
                          ^
jvm\teste\Teste.java:16: error: package system does not exist
    private static system.Type staticType;
                         ^
jvm\teste\Teste.java:18: error: package net.sf.jni4net.inj does not exist
    protected Teste(net.sf.jni4net.inj.INJEnv __env, long __handle) {
                                      ^
jvm\teste\Teste.java:29: error: package net.sf.jni4net.inj does not exist
    private native static void __ctorTeste0(net.sf.jni4net.inj.IClrProxy thiz);
                                                              ^
jvm\teste\Teste.java:34: error: package system does not exist
    public static system.Type typeof() {
                        ^
jvm\teste\Teste.java:38: error: package net.sf.jni4net.inj does not exist
    private static void InitJNI(net.sf.jni4net.inj.INJEnv env, system.Type staticType) {
                                                  ^
jvm\teste\Teste.java:38: error: package system does not exist
    private static void InitJNI(net.sf.jni4net.inj.INJEnv env, system.Type staticType) {
                                                                     ^
jvm\teste\Teste.java:22: error: package net.sf.jni4net.attributes does not exist
    @net.sf.jni4net.attributes.ClrConstructor("()V")
                              ^
jvm\teste\Teste.java:28: error: package net.sf.jni4net.attributes does not exist
    @net.sf.jni4net.attributes.ClrMethod("()V")
                              ^
jvm\teste\Teste.java:31: error: package net.sf.jni4net.attributes does not exist
    @net.sf.jni4net.attributes.ClrMethod("()V")
                              ^
jvm\teste\Teste.java:24: error: package net.sf.jni4net.inj does not exist
            super(((net.sf.jni4net.inj.INJEnv)(null)), 0);
                                      ^
12 errors

Thanks,
Thiago

mirlan nurbekov

unread,
Dec 18, 2017, 3:29:02 AM12/18/17
to jni4net
I had a similar error while compiling generated code. I resolved it with changing the version of .NET of dll library from 4.6.1 to 4

Marat Nevmyanov

unread,
Oct 16, 2018, 12:50:30 PM10/16/18
to jni4net
who have the same problem: maybe there are non-english characters in path to jni4net-0.x.x.x-bin or your dll

суббота, 17 сентября 2016 г., 19:04:35 UTC+3 пользователь Thiago Ferreira de Toledo написал:
Reply all
Reply to author
Forward
0 new messages