Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7777325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:06:48+00:00 2026-06-01T18:06:48+00:00

I have a java application I am trying to start using YAJSW. It is

  • 0

I have a java application I am trying to start using YAJSW. It is just a simple “Hello World” application and I follow the instructions here: http://yajsw.sourceforge.net/#mozTocId527639

I have done the following:

  • exported my project from eclipse as a runnable JAR file.

  • I ran genconfig – no problems

  • I editted wrapper.conf and added the location of the jar file

  • ran runConsole.bat and I get this error:

    java.lang.IllegalAccessException: class org.rzo.yajsw.app.WrapperJVMMain can not access a member of class xxxx with modifiers “public static”

The class it refers to is the main class, which must be public static. I am stuck! Anyone out there with advice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:06:49+00:00Added an answer on June 1, 2026 at 6:06 pm

    I had the same problem, (running yajsw-stable-11.0 on Java 1.6.0_30-b12, Win XP Pro v 2002 SP3):

    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|init 
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|ahessian jmx service bound to port 15002
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|set state IDLE->STARTING
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|Win service: before service init
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|starting Process
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|Controller State: UNKNOWN -> WAITING
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|+ ServiceMain callback
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|reporting status 0
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|reporting status 0
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|onstart
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|working dir C:\dev\workspaceTax\socket-proxy
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:32|create script: scripts/trayMessage.gv
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|found script scripts/trayMessage.gv
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|spawning wrapped process
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|started process with pid 3720
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|waiting for termination of process
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|set state STARTING->RUNNING
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:33|[INFO] DefaultFileReplicator - Using "C:\WINDOWS\TEMP\vfs_cache" as temporary files store.
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:33|java.lang.IllegalAccessException: Class org.rzo.yajsw.app.WrapperJVMMain can not access a member of class [...].socketproxy.Proxy with modifiers "public static"
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|Trigger found: Exception
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:33| at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|start script scripts/trayMessage.gv
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:33| at java.lang.reflect.Method.invoke(Unknown Source)
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:33| at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:53)
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:33| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:36)
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:33|end script scripts/trayMessage.gv
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:34|process terminated
    INFO|3720/0|Service socket-proxy|12-04-11 11:48:34|Controller State: WAITING -> PROCESS_KILLED
    INFO|wrapper|Service socket-proxy|12-04-11 11:48:34|restart process due to default exit code rule
    

    In my case the class containing the static public main method was not declared public, so it was package-private which is the default.

    class Proxy {
    ...
        public static void main(String args[]) throws IOException{
            ...
            }
    }
    

    Public methods of package private classes are not visible by classes belonging to a different package, so this was the problem in my case. See for example https://stackoverflow.com/questions/5260467/public-methods-in-package-private-classes.

    public class Proxy {
    ...
        public static void main(String args[]) throws IOException{
            ...
            }
    }
    

    Declaring the class public as above solved the problem for me. Maybe you could post some more details about the whole problem and somebody will post a solution.
    Regards
    -GF

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application in C# that I'm trying to convert to java. The
I have a java-application using JDBC for database interaction. I want to do a
I have a Java application which is using a certain Java Runtime Environment. The
I am trying to build remote desktop application using java. For that what I
We recently started using Eclipse to develop our java application and have been running
I have a crawler Java application which is supposed to connect to some HTTP
I am a newbie trying to create a sample web application using; MySQL Java
I have Java application which sends pointer to function (callback) to some native dll
I have an Java application running in JBoss in which I have enabled JMX
I have a Java application which requires certain software (one of them being Perl)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.