|
From: David S. <da...@ev...> - 2006-10-14 00:38:00
|
Hi,
Yes I am not very familiar with Java.
With regard to the error I am getting now:
'java.lang.IllegalAccessException: Class
org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of
class Proxy with modifiers "public static"'
I am unsure of exactly how to change my class definition which is
currently:
class Proxy {
public static void main(String args[]) throws IOException{
//parse arguments from command line
.....
How should this be redeclared for the wrapper?
Regards,
David
I understand you have posted a remark to use
On Tue, 10 Oct 2006 14:07:12 +0900, "Leif Mortenson"
<le...@ta...> said:
> David,
> Please keep replies on the list for the benefit of other users.
>
> I saw a couple problems off the bat. They are both basic Java problems
> so
> I wonder if you are new to Java. :-)
>
> The first is your classpath. You specified the following:
> wrapper.java.classpath.1=C:\Temp\ProxyServer\lib\wrapper.jar
> wrapper.java.classpath.2=C:\Temp\ProxyServer\bin\proxy.class
>
> It looks like you have some un jared classes in your bin directory.
> In that case, rather than including all of those classes on your class
> path,
> you should include the root directory that contains your packages and
> classes. So try the following:
> wrapper.java.classpath.1=C:\Temp\ProxyServer\lib\wrapper.jar
> wrapper.java.classpath.2=C:\Temp\ProxyServer\bin\
>
> In general, a better way of doing this is to create a classes directory
> under
> lib and then place your unjared classes there. You would then have:
> wrapper.java.classpath.1=C:\Temp\ProxyServer\lib\wrapper.jar
> wrapper.java.classpath.2=C:\Temp\ProxyServer\lib\classes
>
> The second problem is with your main class. You secified the following
> arguments to the WrapperSimpleApp class:
> wrapper.app.parameter.1=proxy.main
> wrapper.app.parameter.2=1234
> wrapper.app.parameter.3=192.168.2.70
> wrapper.app.parameter.4=4999
>
> Unless you have an inner class named main. This is probably incorrect.
> You want to specify the class name rather than the method name. This
> should be:
> wrapper.app.parameter.1=proxy
> wrapper.app.parameter.2=1234
> wrapper.app.parameter.3=192.168.2.70
> wrapper.app.parameter.4=4999
>
> Third is a style issue. In general, Java class names are always
> capitalized.
> This is done to make it clear what is a class and what is a method name.
> So to follow this standard, your "proxy" class should be named "Proxy".
>
> Cheers,
> Leif
>
> David Schulberg wrote:
> > Hi Leif,
> >
> > I gratefully accept your offer to checkout my wrapper.conf file.
> > I continue to get the error
> > WrapperSimpleApp: Unable to locate the class proxy:
> > java.lang.ClassNotFoundException: proxy
> >
> > Regards,
> > David
> >
> > -----Original Message-----
> > From: Leif Mortenson [mailto:le...@ta...]
|