Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_argument

658018Sep 3 2010 — edited Sep 3 2010
hi,

Im using the JSW on linux os to run my application as service. But I'm getting issue for very simple application as well. So before applying my actual application, I want to solve this issue some how.





This is my application
package com,

public class Test{

     public static void main(String[] args)
          System.out.println("Hope here from JSW.......");

}
And part of my wrapper.cof file

# Java Main class.  This class must implement the WrapperListener interface
#  or guarantee that the WrapperManager class is initialized.  Helper
#  classes are provided to do this for you.  See the Integration section
#  of the documentation for details.
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp




# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
wrapper.java.classpath.1=/opt/EpicTle/tle/epictle.jar
wrapper.java.classpath.2=/root/.epicline/sconfig/wconf/wrapper.jar



# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=/root/.epicline/sconfig/wconf
wrapper.java.library.path.2=/lib


# Java Bits.  On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
wrapper.java.additional.auto_bits=TRUE

# Java Additional Parameters
wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperSimpleApp.waitForStartMain=TRUE



# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=20

# Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=500

# Application parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=com.Test
INFO   | jvm 1    | WrapperSimpleApp Usage:
INFO   | jvm 1    |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
INFO   | jvm 1    | 
INFO   | jvm 1    | Where:
INFO   | jvm 1    |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 1    |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 1    |                   application.
Need soon help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2010
Added on Sep 3 2010
1 comment
1,003 views