|
From: raghu r. r. <b3r...@re...> - 2005-07-13 09:54:59
|
=A0=0A =A0=0Ahello sir=0Ai have some problem with wrapper class=0Aplease g=
o through it and send me the answer as soon as possible:=3D=0Amy java class=
code is:=3D=0AJOptionPane.showInputDialog(null,"Input ID");=0A if(flag)=
{=0A Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");=0A String name=
=3DSystem.getProperty("user.name").trim();=0A System.out.println("NAMEI=
N------"+name);=0A String attUpdate =3D "update TS_ATD set ATD_STAT=3D'=
1' where NET_NAME =3D'"+name+"'";=0A con=3DDriverManager.getConnection(=
"jdbc:odbc:FBIC","FBICEXT","FBICEXT");=0A con.setAutoCommit(true);=0A =
st=3Dcon.createStatement();=0A st.executeUpdate(attUpdate);=0A f=
lag=3Dfalse;=0A System.out.println("Upadets succcess INNN"); =0A =
}//if=0A t.suspend(); =0A=0Aif comment th=
e following statement it is working fine:=0AJOptionPane.showInputDialog(nul=
l,"Input ID");=0Aif not commented it throwing following exception:=0A=0Awra=
pperstartstop encounter error in running main:java.lang.unsatisfiedLinkErro=
r no java Accessbridge in java.library.path:=0Amy config file is:=0A=0A# Ja=
va Application=0Awrapper.java.command=3Djava=0A=0A# Java Main class. This =
class must implement the WrapperListener interface=0A# or guarantee that t=
he WrapperManager class is initialized. Helper=0A# classes are provided t=
o do this for you. See the Integration section=0A# of the documentation f=
or details.=0Awrapper.java.mainclass=3Dcom.silveregg.wrapper.WrapperStartSt=
opApp=0A#com.silveregg.wrapper.WrapperStartStopApp=0A#org.tanukisoftware.wr=
apper.WrapperStartStopApp=0A=0A# Java Classpath (include wrapper.jar) Add =
class path elements as=0A# needed starting from 1=0Awrapper.java.classpath=
.1=3D../lib/wrapper.jar=0Awrapper.java.classpath.2=3D%JAVA_HOME%/lib/tools.=
jar=0Awrapper.java.classpath.3=3D../bin=0A# Java Library Path (location of =
Wrapper.DLL or libwrapper.so)=0Awrapper.java.library.path.1=3D../lib=0Awrap=
per.java.library.path.2=3D%JAVA_HOME%\lib\tools.jar=0A# Java Additional Par=
ameters=0A#wrapper.java.additional.1=3D=0A# Initial Java Heap Size (in MB)=
=0A#wrapper.java.initmemory=3D3=0A=0A# Maximum Java Heap Size (in MB)=0A#wr=
apper.java.maxmemory=3D64=0A=0A# Application parameters. Add parameters as=
needed starting from 1=0A#wrapper.app.parameter.1=3D=0Awrapper.app.paramet=
er.1=3DAttendence.AttendenceIn=0Awrapper.app.parameter.2=3D0=0Awrapper.app.=
parameter.3=3DAttendence.AttendenceOut=0Awrapper.app.parameter.4=3Dtrue=0Aw=
rapper.app.parameter.5=3D0=0A#*********************************************=
***********************=0A# Wrapper Logging Properties=0A#*****************=
***************************************************=0A# Format of output fo=
r the console. (See docs for formats)=0Awrapper.console.format=3DPM=0A=0A#=
Log Level for console output. (See docs for log levels)=0Awrapper.console=
.loglevel=3DINFO=0A=0A# Log file to use for wrapper output logging.=0Awrapp=
er.logfile=3D../logs/wrapper.log=0A=0A# Format of output for the log file. =
(See docs for formats)=0Awrapper.logfile.format=3DLPTM=0A=0A# Log Level fo=
r log file output. (See docs for log levels)=0Awrapper.logfile.loglevel=3D=
INFO=0A=0A# Maximum size that the log file will be allowed to grow to befor=
e=0A# the log is rolled. Size is specified in bytes. The default value=0A=
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or=0A# 'm=
' (mb) suffix. For example: 10m =3D 10 megabytes.=0Awrapper.logfile.maxsiz=
e=3D0=0A=0A=0A# Maximum number of rolled log files which will be allowed be=
fore old=0A# files are deleted. The default value of 0 implies no limit.=
=0Awrapper.logfile.maxfiles=3D0=0A=0A# Log Level for sys/event log output. =
(See docs for log levels)=0Awrapper.syslog.loglevel=3DNONE=0A=0A#*********=
***********************************************************=0A# Wrapper Win=
dows Properties=0A#********************************************************=
************=0A# Title to use when running as a console=0Awrapper.console.t=
itle=3DTest Wrapper Sample Application=0A=0A#******************************=
**************************************=0A# Wrapper Windows NT/2000/XP Servi=
ce Properties=0A#**********************************************************=
**********=0A# WARNING - Do not modify any of these properties when an appl=
ication=0A# using this configuration file has been installed as a service.=
=0A# Please uninstall the service before modifying this section. The=0A# =
service can then be reinstalled.=0A=0A# Name of the service=0Awrapper.ntse=
rvice.name=3DAttFBIC=0A=0A# Display name of the service=0Awrapper.ntservice=
.displayname=3DAttFBIC=0A# Description of the service=0Awrapper.ntservice.d=
escription=3DAttFBIC=0A=0A# Service dependencies. Add dependencies as need=
ed starting from 1=0Awrapper.ntservice.dependency.1=3D=0A=0A# Mode in which=
the service is installed. AUTO_START or DEMAND_START=0Awrapper.ntservice.=
starttype=3DAUTO_START=0A=0A# Allow the service to interact with the deskto=
p.=0Awrapper.ntservice.interactive=3Dtrue=0A=0A=0APLEASE GO THROUGH IT AND =
PLESE SEND ME MAIL AS SOON AS POSSIBLE=0A =0A |