sqlserver中执行jar包报错

jar包在sqlserver中执行exec xp_cmdshell 'java -jar E:/sender.jar' 报错:Error: Unable to access jarfile E:/sender.jar,在cmd命令行中运行可以,
图片说明

1个回答

sqlserver 中定位不到你的jar包

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
storm jar包执行报错问题解决
1 要将kafka和zookeeper的ip 机器名都要配在storm集群各节点的hosts中,只配zk的不行,storm kafka spout会通过zk去找kafka地址,zk中存的kafka地址是域名。 java.lang.RuntimeException: java.nio.channels.ClosedChannelException         at storm.kafka.Z
sqlserver 执行存储过程报错!求解!
public Object doInHibernate(Session session) throws HibernateException, SQLException rn Connection con = null;rn PreparedStatement pstmt = null;rn ResultSet res = null;rn con = session.connection();rn pstmt = con.prepareStatement(sql, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);rn res = pstmt.executeQuery();[color=#FF0000]执行到这里报错[/color] rnrn[Microsoft][SQLServer 2000 Driver for JDBC](Internal Error) Message not found.rn at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)rn at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.getCachedRow(Unknown Source)rn at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.positionCursor(Unknown Source)rn at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.postSetupInitialize(Unknown Source)rn at com.microsoft.jdbc.base.BaseResultSet.(Unknown Source)rn at com.microsoft.jdbc.base.BaseStatement.commonGetNextResultSet(Unknown Source)rn at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)rn at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)rn at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)rn at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)rn at com.clifford.propertylease.core.dao.HibernateGenericDao$5.doInHibernate(HibernateGenericDao.java:699)rn at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:358)rn at com.clifford.propertylease.core.dao.HibernateGenericDao.queryList(HibernateGenericDao.java:684)rn at com.clifford.propertylease.core.dao.HibernateGenericDao$$FastClassByCGLIB$$f32c192b.invoke()rn at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)rn at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:698)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)rn at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)rn at com.clifford.propertylease.service.foremanage.ChargeNoticeService$$EnhancerByCGLIB$$b3e39ffd.queryList()rn at com.clifford.propertylease.action.foremanage.ChargeNoticeAction.index(ChargeNoticeAction.java:86)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:556)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:401)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:242)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)
sqlserver 中的异步执行
我的需求是这样的,建立一个游标遍历一个表中的记录,根据记录的不同执行不同的存储过程。rn启动第一个存储过程后,不等存储过程返回结果,记录指针移动到下一条,立即启动第二个存储过程rn如此,直到遍历结束rn如表中有rnA,B,C三类记录就要执行3个不同存储过程rn如表的记录如下有6条记录,假定此只有一个字段idrnidrn------rnArnBrnCrnArnArnCrn------rn这样执行6次存储过程。异步当然快了,但我不知道在sqlserver中语法如何写? rn那除了异步,那sqlserver中的多线程能解决这个问题吗?
sqlserver中的执行单元
关于数据库sql语句运行时的分析和执行原理
SQLServer jar包
SQLServerWEB开发的必须jar包
sqlServer的jar包
sqlServer的jar包 里面有多个资源 尽情下载 sqlServer的jar包 里面有多个资源 尽情下载
sqlserver jar包
用于连接sqlserver数据库的jar包
SqlServer可以执行的语句Access报错
我在Access数据库中执行下列语句出错:rnrnselect a.CategoryID,CategoryName,PurchasePrice,b.PutInNumber,Type,Supplier,b.PutInDate from (Categories as a inner join StockIn as b on a.CategoryID=b.CategoryID) where categoryID=1rn但这句话在Sqlsever中可以出来,为什么Access中出错??
cefinitialize 崩溃
求大神帮忙
sqlserver的报错!
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed. The maximum simultaneous user count of 1 licenses for this 'Standard Edition' server has been exceeded. Additional licenses should be obtained and installed or you should upgrade to a full version. rnrn只是在不联网的情况下报错,连上网就好了。怎么解决?
SQLServer报错
系统出了问题,重新Ghost恢复,顺便打了若干补丁,顺便升级了360、迅雷、暴风等工具。rnrn发现SQLServer瘫痪了。。。rnrnSQLServer报错:rnyour SQLServer installation is either corrupt or has been tampered with (unable to load SQLBOOT.DLL) Please uninstall then re-run setup to correct this problemrnrn去网上找资料,都说是文件损坏——不应该啊,Ghost还原来的啊,而且第一次登录肯定好用的,报错后重新安装也好用,但是只要重新启动就会出这个错误。。。挨个判断排除,卸载这个,卸载那个的。。。rnrn最后把所有的SQLServer的目录都删掉重新安装,又报别的错误了,估计是什么东西被一起删掉了,于是把相关的附属服务都关闭掉,总算太平了。rnrn可是到底问题出在哪里呢??要说GHOST文件有问题了,第一次启动时好用啊,只要升级了任意的工具或者打了一个补丁,用一会儿后重启就会崩溃。。。还是没判断准根本所在~~rnrn
获取jar包中文件报错
在编写完代码后,我们本地使用idea或eclipse把项目跑起来运行,获取resources文件夹下目录的文件时,不会出现问题,但是打成jar包后运行,总是出现null指针异常,我们通过日志可以看出获取文件的时候路径是: 代码中我们是这么写的: String filePath = PBCDownloadBiz.class.getClassLoader().getResource("r...
执行jar包?
在linux执行jar包找不到jdbc驱动?rn我都把驱动放到classpath里了,还找不到驱动。。。rnrn[code=Assembly]rnecho $CLASSPATHrn/home/mps/java/jdk1.6.0_21/lib/ir.jar:/home/mps/java/jdk1.6.0_21/lib/tools.jar:/home/mps/java/jdk1.6.0_21/lib/rt.jar:/home/mps/java/jdk1.6.0_21/lib:.:/home/mps/liuhy/programs/mysql-connector-java-5.1.5-bin.jar[/code]rnrnmain方法在GetUserData里。执行的语句:rn[code=Assembly]java -cp getview.jar GetUserDatarn[/code]rnrn报错:rnjava.lang.ClassNotFoundException: com.mysql.jdbc.Driverrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at GetUserData.main(GetUserData.java:27)
执行jar包中的class的命令
java -cp socket.jar com.server.ServerWindow 此命令执行ServerWindow文件
执行jar包中指定main方法
通过maven将应用打成jar包之后,可以通过java -jar  ***.jar来执行,会运行指定的main方法,主要是 MANIFEST.MF 中指定的 main 方法;那么如果有多个main方法的时候如何运行指定的main方法哪,可以通过下面命令去执行 java -classpath ****.jar ****.****.className [args] 这里的****.****指的是...
sqlserver中批处理脚本如何执行?
我有两个sql脚本:rn1 "ALTER TABLE #temp_Archives_List_Borrow ADD isExist varchar(1) default ('F') not null"rnrn2 "update #temp_Archives_List_Borrow set isExist='T' from #temp_Archives_List_Borrow "rnrn现在要批处理,我用"go"连接两个sql脚本;rnrnsql = sql + "ALTER TABLE #temp_Archives_List_Borrow ADD isExist varchar(1) default ('F')not null";rnrnsql = sql + "\n" + "go" + "\n";rnrnsql = sql + "update #temp_Archives_List_Borrow set isExist='T' from #temp_Archives_List_Borrow ";rnrnStatement statement = connection.createStatement();rnResultSet resultSet = statement.executeQuery(sql);rnrn怎么总是说"go附近有语法错误"rn我该如何处理?
在sqlserver中执行restrore出错
我写了个存储过程,用来实现数据库的备份,可是执行的时候提示如下:rnrn服务器: 消息 3101,级别 16,状态 1,过程 kq_restore,行 4rn因为数据库正在使用,所以未能获得对数据库的排它访问权。rn服务器: 消息 3013,级别 16,状态 1,过程 kq_restore,行 4rnRESTORE DATABASE 操作异常终止。rnrn
sqlServer 有关jar包
sqlserver 相关jar 需要免费下载
sqlserver数据库jar包
自己找到的资源,分享一波
连接sqlserver的jar包
msbase.jar、mssqlserver.jar、msutil.jar
SQLServer JDBC驱动 JAR包
SQLServer JDBC驱动 JAR包
sqlserver 2000 驱动jar包
sql server 2000 驱动jar包,sql server 2000 驱动jar包,sql server 2000 驱动jar包
SQLServer 2000和2005的Jar包
数据库sqlserver2000和sqlserver2005所需的jar包
java连接sqlserver的jar包
java连接sqlserver的jar包
MYSQL SQLSERVER 2000,2005 JAR包
MYSQL SQLSERVER 2000,2005 连接JAR包
sqlserver 和mysql 连接的jar包
java 数据库连接用jar包 初学者必备
sqlserver的jar包,亲测可用
sqlserver的jar包,亲测可用;
sqlserver 2000/2008 jar包
sqlserver 2000/2008 jar包
sqlserver配置jar包
myeclipse自动生成hibernate映射文件,所需要的sqlserver jar包
sqlserver连接数据库的jar包
sqlserver连接数据库的jar包
mysql , log4j ,sqlserver jar包
NULL 博文链接:https://xiao9.iteye.com/blog/865261
mysql、sqlserver驱动jar包
mysql-connector-java-5.1.6-bin.jar sqljdbc4.jar sqljdbc.jar
MySQL SQLServer 驱动jar包
MySQL 和SQLServer 2000驱动jar包 大家快来下载!
jdbc连接sqlserver jar包
sqljdbc.jar 适用于jdk1.5 及以下版本 sqljdbc4.jar 适用于jdk1.6及以上版本
SQLserver驱动jar包
smbase.jar smsqlserver.jar smuti.jar SQLserver数据库驱动
java 需要的sqlserver的jar包
java 需要的sqlserver的jar包
SqlServer数据库连接jar包
里面包含连接SQLServer数据库所需要的三个Jar文件。
sqlserver jar包 jdbc驱动
sqlserver jar包 jdbc驱动
jdbc连接SQLServer的jar包
jdbc连接Microsoft SQL Server的jar包 sqljdbc.jar
sqlserver jdbc jar包
sqlserver jdbc jar包 msbase.jar mssqlserver.jar msutil.jar 所需jar包全都有 本人亲自测试 完全可用
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件