Menu

#18 java.lang.IllegalAccessException: can not access a member of class with modifiers "public static"

Any
closed
rzo
None
5
2015-12-23
2015-05-15
No

I'v tried to run our Java application with the YAJSW and did everything like described. Unfortunately I keep getting this exception:

java.lang.IllegalAccessException: Class org.rzo.yajsw.app.WrapperJVMMain can not access a member of class *** with modifiers "public static"

What am I doing wrong?

Related

Support Requests: #18

Discussion

  • rzo

    rzo - 2015-05-15

    hello,

    please provide full details:

    yajsw release, os, jvm

    configuration file used (remove passwords or other private details if needed)
    log file
    if you are using code which invokes yajsw classes pls post it

    -- Ron

     
  • ninshiichinoe

    ninshiichinoe - 2015-05-15

    Hi Ron,

    Thank you for your fast response. Here are my files.

    Best Regards,

    Andreas

    -----Ursprüngliche Nachricht-----
    Von: rzo [mailto:rzorzorzo@users.sf.net]
    Gesendet: Freitag, 15. Mai 2015 10:33
    An: [yajsw:support-requests]
    Betreff: [yajsw:support-requests] #18 java.lang.IllegalAccessException: can notaccess a member of class with modifiers "public static"

    hello,

    please provide full details:

    yajsw release, os, jvm

    configuration file used (remove passwords or other private details if needed) log file if you are using code which invokes yajsw classes pls post it

    -- Ron


    ** [support-requests:#18] java.lang.IllegalAccessException: can not access a member of class with modifiers "public static"**

    Status: open
    Group: Any
    Created: Fri May 15, 2015 07:01 AM UTC by ninshiichinoe Last Updated: Fri May 15, 2015 07:01 AM UTC
    Owner: rzo

    I'v tried to run our Java application with the YAJSW and did everything like described. Unfortunately I keep getting this exception:

    java.lang.IllegalAccessException: Class org.rzo.yajsw.app.WrapperJVMMain can not access a member of class *** with modifiers "public static"

    What am I doing wrong?


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/yajsw/support-requests/18/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Support Requests: #18

  • rzo

    rzo - 2015-05-15

    it seems that you are running your application from the jar file: nims-1.4.2-jar-with-dependencies.jar

    the manifest of this jar file states de.firstdata.edoks.NIMS.server.NIMS as the class containing the main method.

    however it seems that there is no main method in that file.

    make sure that the class has a main method with the signature:

    public static void main(String[] args)

    try adding:

    wrapper.java.classpath.0 = ./nims-1.4.2-jar-with-dependencies.jar

    or full path to this jar file.

    -- Ron

     
  • ninshiichinoe

    ninshiichinoe - 2015-05-15

    There is a:

    public static void main(String[] argv)

    BUT

    The class itself is only

    class NIMS

    not:

    public class NIMS

    I think this is the problem.

    -----Ursprüngliche Nachricht-----
    Von: rzo [mailto:rzorzorzo@users.sf.net]
    Gesendet: Freitag, 15. Mai 2015 11:25
    An: [yajsw:support-requests]
    Betreff: [yajsw:support-requests] #18 java.lang.IllegalAccessException: can notaccess a member of class with modifiers "public static"

    it seems that you are running your application from the jar file: nims-1.4.2-jar-with-dependencies.jar

    the manifest of this jar file states de.firstdata.edoks.NIMS.server.NIMS as the class containing the main method.

    however it seems that there is no main method in that file.

    make sure that the class has a main method with the signature:

    public static void main(String[] args)

    try adding:

    wrapper.java.classpath.0 = ./nims-1.4.2-jar-with-dependencies.jar

    or full path to this jar file.

    -- Ron


    ** [support-requests:#18] java.lang.IllegalAccessException: can not access a member of class with modifiers "public static"**

    Status: open
    Group: Any
    Created: Fri May 15, 2015 07:01 AM UTC by ninshiichinoe Last Updated: Fri May 15, 2015 08:32 AM UTC
    Owner: rzo

    I'v tried to run our Java application with the YAJSW and did everything like described. Unfortunately I keep getting this exception:

    java.lang.IllegalAccessException: Class org.rzo.yajsw.app.WrapperJVMMain can not access a member of class *** with modifiers "public static"

    What am I doing wrong?


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/yajsw/support-requests/18/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Support Requests: #18

  • rzo

    rzo - 2015-05-15

    yes, yajsw expects the class too to be public.

    -- Ron

     
  • ninshiichinoe

    ninshiichinoe - 2015-05-19

    Hi Ron,

    I re-compiled it and made the main class public, now it works very well.

    Thank you!

    -----Ursprüngliche Nachricht-----
    Von: rzo [mailto:rzorzorzo@users.sf.net]
    Gesendet: Freitag, 15. Mai 2015 17:57
    An: [yajsw:support-requests]
    Betreff: [yajsw:support-requests] #18 java.lang.IllegalAccessException: can notaccess a member of class with modifiers "public static"

    yes, yajsw expects the class too to be public.

    -- Ron


    ** [support-requests:#18] java.lang.IllegalAccessException: can not access a member of class with modifiers "public static"**

    Status: open
    Group: Any
    Created: Fri May 15, 2015 07:01 AM UTC by ninshiichinoe Last Updated: Fri May 15, 2015 09:25 AM UTC
    Owner: rzo

    I'v tried to run our Java application with the YAJSW and did everything like described. Unfortunately I keep getting this exception:

    java.lang.IllegalAccessException: Class org.rzo.yajsw.app.WrapperJVMMain can not access a member of class *** with modifiers "public static"

    What am I doing wrong?


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/yajsw/support-requests/18/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Support Requests: #18

  • rzo

    rzo - 2015-12-23
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.