EXclipse导出的JAR可以在电脑上运行,但是把他装换成exe时就会出错,说java环境未找到,这是哪里出错了,是jdk环境没配置好吗? [问题点数:20分,结帖人yangjia1571525937]

Bbs1
本版专家分:0
结帖率 91.67%
Bbs4
本版专家分:1313
Bbs5
本版专家分:2819
请教这是哪里出错了?
出现Cannot compile the file'E\lianxi\time\MainFrm.h':no compile tool is rnassociated with the file extensionrn请教<em>这是</em><em>哪里</em><em>出错</em>了?
在没有jdk环境电脑运行java项目
把<em>jar</em>文件打包成可执行的.<em>exe</em>文件,在没有<em>jdk</em>的<em>环境</em>的<em>电脑</em><em>运行</em> 1.准备2个文件,1个是你要打包的<em>jar</em>文件,另1个是<em>jdk</em>文件下面的jre 如果嫌jre文件太大,你们<em>可以</em>去网上找下精简版的jre 2.安装<em>exe</em>4j打包工具,执行打包操作 下载链接:https://pan.baidu.com/s/15ZTOlvfUai_XNBJiWoDfUQ 密码:a9pu ...
配置java环境时, export:未找到命令
jayce@jayce-Aspire-E5-471G:~$ sudo gedit /etc/profilern[sudo] jayce 的密码: rnrn** (gedit:21950): WARNING **: Set document metadata failed: 不支持设置属性 metadata::gedit-positionrnjayce@jayce-Aspire-E5-471G:~$ source /etc/profilern  export:<em>未找到</em>命令rn  export:<em>未找到</em>命令rn  export:<em>未找到</em>命令rn  export:<em>未找到</em>命令rnjayce@jayce-Aspire-E5-471G:~$  java -versionrn<em>未找到</em> ' java' 命令,您要输入的是否是:rn 命令 'java' 来自于包 'gcj-4.8-jre-headless' (universe)rn 命令 'java' 来自于包 'gcj-4.9-jre-headless' (universe)rn 命令 'java' 来自于包 'open<em>jdk</em>-9-jre-headless' (universe)rn 命令 'java' 来自于包 'default-jre' (main)rn 命令 'java' 来自于包 'gcj-5-jre-headless' (main)rn 命令 'java' 来自于包 'open<em>jdk</em>-8-jre-headless' (main)rn java:<em>未找到</em>命令rnjayce@jayce-Aspire-E5-471G:~$ rnrnjava<em>配置</em>rnexport JAVA_HOME=/home/jayce/java/<em>jdk</em>1.8.0_122rn  export JAVA_BIN=$JAVA_HOME/binrn  export JAVA_LIB=$JAVA_HOME/librn  export CLASSPATH=.:$JAVA_LIB/tools.<em>jar</em>:$JAVA_LIB/dt.<em>jar</em>rn  export PATH=$JAVA_BIN:$PATHrnrn请问export命令怎么回事rnrn
DNS 配置哪里出错了?
在网上找了好多关于DNS <em>配置</em>文档,,找了几个都没<em>配置</em>成功,,,我把我的<em>配置</em>文档都贴上来,,大家帮我看看是<em>哪里</em><em>出错</em>了....rn系统: RHEL5.0 IP 1.1.1.10rnrn[root@localhost etc]# rpm -qa bind* caching-*rnbind-libs-9.3.3-7.el5rnbind-9.3.3-7.el5rnbind-devel-9.3.3-7.el5rnbind-utils-9.3.3-7.el5rncaching-nameserver-9.3.3-7.el5rnbind-chroot-9.3.3-7.el5rnbind-sdb-9.3.3-7.el5rnrn在/etc/ 和 /var/named/chroot/etc/ 都有 named.caching-nameserver.conf 与named.rfc1912.zones 这二个文件:内容一样.rn[root@localhost etc]# vi /etc/named.caching-nameserver.confrnoptions rn listen-on port 53 1.1.1.10; ;rn listen-on-v6 port 53 ::1; ;rn directory "/var/named";rn dump-file "/var/named/data/cache_dump.db";rn statistics-file "/var/named/data/named_stats.txt";rn memstatistics-file "/var/named/data/named_mem_stats.txt";rn query-source port 53;rn query-source-v6 port 53;rn allow-query any; ;rn;rnlogging rn channel default_debug rn file "data/named.run";rn severity dynamic;rn ;rn;rnview localhost_resolver rn match-clients localhost; ;rn match-destinations localhost; ;rn recursion yes;rn include "/etc/named.rfc1912.zones";rn;rnrnrn[root@localhost etc]# vi named.rfc1912.zonesrn// named.rfc1912.zones:rn//rn// Provided by Red Hat caching-nameserver packagern//rn// ISC BIND named zone configuration for zones recommended byrn// RFC 1912 section 4.1 : localhost TLDs and address zonesrn//rn// See /usr/share/doc/bind*/sample/ for example named configuration files.rn//rnzone "." IN rn type hint;rn file "named.ca";rn;rnrnzone "localdomain" IN rn type master;rn file "localdomain.zone";rn allow-update none; ;rn;rnrnzone "localhost" IN rn type master;rn file "localhost.zone";rn allow-update none; ;rn;rnrnzone "0.0.127.in-addr.arpa" IN rn type master;rn file "named.local";rn allow-update none; ;rn;rnrnzone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN rn type master;rn file "named.ip6.local";rn allow-update none; ;rn;rnrnzone "255.in-addr.arpa" IN rn type master;rn file "named.broadcast";rn allow-update none; ;rn;rnrnzone "0.in-addr.arpa" IN rn type master;rn file "named.zero";rn allow-update none; ;rn;rnrnrnrnzone "hello521.com" IN rntype master;rnfile "hello521.com.zone";rnallow-update none; ;rn;rnrnzone "1.1.1.in-addr.arpa" IN rntype master;rnfile "1.1.1.zone";rnallow-update none; ;rn;rnrn在/var/named 和 /var/named/chroot/var/named/ hello521.com.zone 和 1.1.1.zone都有这二个文件,内容一样..rnrnrn[root@localhost var]# cd namedrn[root@localhost named]# vi hello521.com.zonern$TTL 1Drn$TTL 1Drn@ 1D IN SOA hello521.com. root.hello521.com. (rn42 serial (d. adams)rn3H ; refreshrn15M ; retryrn1W ; expiryrn1D ) ; minimumrnIN NS www.hello521.com.rnIN MX 10 mail.hello521.com.rnwww IN A 1.1.1.10rnmail IN A 1.1.1.10rnftp IN A 1.1.1.10rnrnrnrn[root@localhost named]# vi 1.1.1.zonern$TTL 1Drn@ IN SOA hello521.com. root.hello521.com. (rn1997022700 ; Serialrn28800 ; Refreshrn14400 ; Retryrn3600000 ; Expirern86400 ) ; MinimumrnIN NS www.hello521.com.rn11 IN PTR www.hello521.com.rn12 IN PTR ftp.hello521.com.rn10 IN PTR mail.hello521.com.rnrnrn测试::::rnrn[root@localhost etc]# cat resolv.confrnnameserver 1.1.1.10rnrnrn[root@localhost named]# service named restartrn停止 named: [确定]rn启动 named: [确定]rn[root@localhost named]# host localhostrnHost localhost not found: 2(SERVFAIL)rnrnrnrn[root@localhost named]# rndc statusrnnumber of zones: 0rndebug level: 0rnxfers running: 0rnxfers deferred: 0rnsoa queries in progress: 0rnquery logging is OFFrnrecursive clients: 0/1000rntcp clients: 0/100rnserver is up and runningrn[root@localhost named]# nslookup www.hello520.comrnServer: 1.1.1.10rnAddress: 1.1.1.10#53rnrn** server can't find www.hello520.com: SERVFAILrnrnrn结束,请大家帮忙看下::rnrnrnrnrnrnrn
exe4j打包jarexe,实现在没JDK环境电脑运行
首先下载<em>exe</em>4j https://download.csdn.net/download/qq_25189723/10368588或https://download.csdn.net/download/qq_25189723/10368595不破解的话,<em>运行</em>打包的<em>exe</em>会有<em>exe</em>4j的欢迎语。我把64位的破解了,但用32位的也没欢迎,不知道咋回事。准备可执行<em>jar</em>文件。复制jre到<em>导出</em>目录。打开e...
myeclipse中没出错但是浏览器运行的时候出错了,这是配置struts零配置出的错。web.xml代码如下……
rnrn rn struts2rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn actionPackagesrn /src/leern rn rn rn struts.custom.i18n.resourcesrn messageResourcern rn rn rn rn rn struts2rn /*rn rn rn login.jsprn rnrn浏览器<em>运行</em>的时候报错如下,以上代码是我照着书上敲的………………rnrnrnrnrnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnjava.lang.NullPointerExceptionrn org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)rn com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)rn org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)rn org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)rn com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)rn org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:432)rnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rnApache Tomcat/6.0.18rn各位高手大侠帮帮小弟我啊!!!!!!!在此先拜谢了
android运行出错!代码并没有报错,但是运行出错了!
大神看一下啊 代码并没有报错 用天天模拟器<em>运行</em>就报<em>错了</em>。n我还是按照老师案例写的 老师的案例就能<em>运行</em>我的就不行,求解啊!n![![![![![![![![图片说明](https://img-ask.csdn.net/upload/201605/31/1464692931_725118.png)图片说明](https://img-ask.csdn.net/upload/201605/31/1464692925_764113.png)图片说明](https://img-ask.csdn.net/upload/201605/31/1464692916_890731.png)图片说明](https://img-ask.csdn.net/upload/201605/31/1464692911_415224.png)图片说明](https://img-ask.csdn.net/upload/201605/31/1464692905_938499.png)图片说明](https://img-ask.csdn.net/upload/201605/31/1464692897_229678.png)图片说明](https://img-ask.csdn.net/upload/201605/31/1464692889_198331.png)图片说明](https://img-ask.csdn.net/upload/201605/31/1464692875_245698.png)
调用存储过程是出错了,未找到项目
rn本人对存储过程不大熟悉
Mac配置idea 配置java环境jdk环境,maven环境
给大家找了自己亲测的一些有用的<em>配置</em><em>环境</em>变量的博文,收集起来集合一下: 注:所有的<em>环境</em><em>配置</em>请注意自己软件的安装位置;<em>可以</em>把安装的软件拖入终端来查看软件路径。 以下操作按照顺序进行: mac<em>电脑</em>idea激活: https://jetlicense.nss.im(有效期至2019.7) mac<em>电脑</em><em>配置</em>java开发<em>环境</em>(<em>jdk</em><em>环境</em>): https://jingyan.baidu.com/article/9...
安装时哪里出错了?
刚刚安装的Redhat 7.1,它倒是能够启动<em>但是</em>启动菜单里没有别的只有linuxrn请问我如何进WIN2K?rn现在该怎么办?
请问是哪里出错了?
vote_test.htm:rnrn[code=HTML]rnrn 讨个老婆需要多少钱rn rn rn rn rn rnrnrn rn rn 你认为结婚成本比去年增加了多少?rn rn rn rn投票总人数:1344 rnrn没增加,结婚一点压力也没有rnrn         rn2票 (2%) rnrn增加了,已经超出自己的承担rnrnrn         rn2票 (2%) rnrn不清楚rnrnrn         rn2票 (2%) rnrn增加了,但自己还<em>可以</em>承担rnrn         rn2票 (2%) rnrn面对生活成本压力,不想结婚了rnrn         rn2票 (2%) rn rn rn[投票截止时间:2008-12-05 14:19:39]rn rn rnrnrn[/code]rnrnrnvote_test.jsp:rn[code=Java]rnrn< 5; j++)rn if(j == voteid)rn str=str+j+",30%,";rn elsern str=str+j+",10%,";rnrnout.println(str);rn%>[/code]
不知是哪里出错了?
import java.io.*;rnrnpublic class TestDatarnrn public static void main(String[]args)throws IOExceptionrn rn double []priees=12.99,8.9;rn String []name="T-shout","XML-Boble";rn int []units=12,9;rn DataOutputStream out=new DataOutputStream(new FileOutputStream("H:\\acc.txt"));rn for(int i=0;i
linux下配置JDK JAVA环境
如果你的ubuntu系统,没有安装JDK<em>环境</em> <em>运行</em>步骤 1. 再上图的地址内,下载<em>jdk</em>-6u45-linux-x64.bin 2. 更改<em>jdk</em>-6u45-linux-x64.bin的权限,并执行./<em>jdk</em>-6u45-linux-x64.bin 3. 执行完会生成<em>jdk</em>1.6.0_45/的文件夹 4. 再~/.bashrc文件下添加,如上图<em>配置</em><em>环境</em>变量内容 5. 执行sourc
jdk的安装与java环境配置
1.下载<em>jdk</em>的安装包 2.安装<em>jdk</em>在E:\Program Files\Java\<em>jdk</em>1.8.0_144\路径下 3.安装<em>jdk</em>在E:\Program Files\Java\<em>jdk</em>1.8.0_144\路径下 4.<em>配置</em><em>环境</em>变量: ①JAVA_HOME---》E:\Program Files\Java\<em>jdk</em>1.8.0_144 ②PATH---》E:\Program Files\Java...
solaris9 在哪里配置JDK环境
root用户。rn在etc/profile 中添加了JAVA_HOME等变量,可是rnecho $。。。 还是显示找不到。rn是不是要在别的地方<em>配置</em>?rn<em>jdk</em>所在目录: /usr/<em>jdk</em>/<em>jdk</em>1.6.0_14
VC编译EXE在没装VC的电脑运行出错问题解决!
转自:https://www.cctry.com/thread-8837-1-1.html   大家好,欢迎大家来到 VC驿站 - www.cctry.com,近日有不少会员提及用 VC++6.0、VS2005/2008 等编译出来的EXE,放到没装VC<em>环境</em>的<em>电脑</em>上面<em>运行</em><em>出错</em>,提示少这个DLL或者少那个库的,这里教大家一个方法,起码在没装VC<em>运行</em>库的机器上面保证无错<em>运行</em>,当然提示缺少其他非MF...
jar模拟器,用于在电脑运行jar
<em>jar</em>模拟器,用于在<em>电脑</em>上<em>运行</em><em>jar</em>,<em>运行</em>手机上的<em>jar</em>
SSH 问题 应该是配置文件出错但是找不到哪里出错
HTTP Status 500 -rnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnUnable to instantiate Action, AdminAction, defined for 'login' in namespace '/'Error creating bean with name 'AdminAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [vmta.banckend.service.intf.AdminService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: rn com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:318)rn com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)rn com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)rn org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)rn org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)rn com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.<em>exe</em>cuteAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnrnroot causernrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AdminAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [vmta.banckend.service.intf.AdminService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:307)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)rn org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1098)rn com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:141)rn com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)rn com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:120)rn com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:299)rn com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)rn com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)rn org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)rn org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)rn com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.<em>exe</em>cuteAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnrnroot causernrnorg.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [vmta.banckend.service.intf.AdminService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: rn org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:952)rn org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:821)rn org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:439)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:417)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:559)rn org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)rn org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:304)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)rn org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1098)rn com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:141)rn com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)rn com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:120)rn com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:299)rn com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)rn com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)rn org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)rn org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)rn com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.<em>exe</em>cuteAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.10 logs.rnApache Tomcat/7.0.10
装不了JDK~说虚拟机还在运行!!!
我先是卸了JDK然后重装的时候就进行到一半就出来警告:”您的机子上JVM还在<em>运行</em>~请先关闭尤其是rn浏览器“之类的提示然后安装失败~怎么会事啊?应该怎么解决?还有您选择的安装目录已经被锁定是什么意思啊?郁闷中.........
有没有人知道这是哪里出错了?
[img=https://img-bbs.csdn.net/upload/201701/12/1484185160_339201.jpg][/img]
Myeclipse导出jar,无需安装jdk运行
[size=large]我用Myeclipse<em>导出</em><em>jar</em>文件,<em>jar</em>能正常<em>运行</em>。rn我的问题是:如果一个人的<em>电脑</em>上没有安装<em>jdk</em>5.0,就不能<em>运行</em>我的<em>jar</em>文件,请问怎么用Myeclipse<em>导出</em><em>jar</em>文件,附带<em>jdk</em>,使没有安装<em>jdk</em>的<em>电脑</em>能<em>运行</em>我的<em>jar</em>文件?rn用Myeclipse附带的<em>导出</em>怎么做?rn如果用fat<em>jar</em>怎么做?rn[/size]
Linux环境配置java环境
主要是为了记录自己<em>配置</em><em>java<em>环境</em></em>,学习部署Hadoop<em>环境</em>,作为笔记。  下载java的Linux版的<em>jdk</em>文件,<em>可以</em>到官网下载  解压压缩文件,tar -zxvf  压缩包文件路径  -C 解压后文件路径  例如:压缩包文件路径:/mnt/<em>jdk</em>-8u77-linux-i586.tar.gz    解压后文件路径:/env_java/<em>jdk</em>  则指令为
C++ 运行出错了,但是不知道错哪里
[img=https://img-bbs.csdn.net/upload/201305/10/1368154252_800369.jpg][/img]rnrn谁能告诉我<em>这是</em>为什么,比较小白的问题。来个人告诉下,记性不好,实在记不起这有什么错。。。
运行VS2008出错了 VS2005确可以 没有出错 这是什么原因 IIS是5.1的
VS2005确<em>可以</em> 没有<em>出错</em> <em>这是</em>什么原因 IIS是5.1的rnrnrnrnrnInternet Explorer 无法显示该页面 rn rn 最可能的原因是: rn未连接到 Internet。 rn该网站遇到了问题。 rn在地址中可能存在键入错误。 rnrn 您<em>可以</em>尝试以下操作: rn 诊断连接问题 rnrn 更多信息 rnrn此问题可能是由下列各种问题导致的: rnrnInternet 连接已丢失。 rn该网站暂时不可用。 rn无法连接到域名服务器(DNS)。 rn域名服务器(DNS)没有该网站的域的列表。 rn如果<em>这是</em> HTTPS (安全)地址,请单击“工具”菜单下的“Internet 选项”,再单击“高级”选项卡,然后请检查以确保“安全”部分下的 SSL 和 TLS 协议已启用。 rnrn对于脱机用户 rnrn仍可查看已订阅的源和最近查看过的一些网页。 rn若要查看已订阅的源 rnrn单击“收藏夹中心”按钮,单击“源”,然后单击希望查看的源。 rnrn查看最近访问过的网页(不查看所有页面) rnrn单击“工具”,然后单击“脱机工作”。 rn单击“收藏夹中心”按钮,,单击“历史记录”,然后单击希望查看的页面。 rn------------------------------------------------------------------------------------- rnrn怎么办? rn
程序哪里出错了?vc.net 2003 环境
#include rnrnusing namespace std;rnrnvoid a();rnvoid main()rnrn rn a();rn a();rn a();rnrnvoid a()rnrn //static int n;rn int n;rn n++;rn cout<
菜鸟问题一个:怎么把做好的Java程序做成exe并在其他没装jdk电脑运行呢?
是不是不现实啊?
帮我看看这个是哪里出错了,程序应该没问题,可能是IIS上配置没弄好?
“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn操作必须使用一个可更新的查询。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。rnrn源错误: rnrnrn行 19: myCmd = New OleDbCommand(sql, myconn)rn行 20: myconn.Open()rn行 21: myCmd.ExecuteNonQuery()rn行 22: myconn.Close()rn行 23: End Functionrn rnrn源文件: c:\inetpub\wwwroot\zpadd.aspx 行: 21 rnrn堆栈跟踪: rnrnrn[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]rn System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& <em>exe</em>cuteResult) +267rn System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& <em>exe</em>cuteResult) +192rn System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& <em>exe</em>cuteResult) +48rn System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106rn System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +108rn ASP.zpadd_aspx.<em>exe</em>cutesql(String sql) in c:\inetpub\wwwroot\zpadd.aspx:21rn ASP.zpadd_aspx.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\zpadd.aspx:42rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34rn System.Web.UI.Control.OnLoad(EventArgs e) +99rn System.Web.UI.Control.LoadRecursive() +47rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42
Java GUI项目读取Jar内部外部文件 打包EXE 在没有java环境电脑上可运行
本文记录我最近一个业余swing swt项目中遇到的问题及解决办法,主要问题有三点: 1. Jar包内部外部文件读取问题 2. 打包为EXE问题 3. 在没有<em>java<em>环境</em></em>的<em>电脑</em>上使用问题 1. Jar包内部外部文件读取问题 通常项目中会用到图片文件、音乐文件、<em>配置</em>文件等,这些文件除了<em>配置</em>文件一般放在<em>jar</em>包外部,其他文件一般<em>导出</em>Jar时都放在Jar内部,这时你会发现本来在Ec
说执行到set方法时,出错了,求解
[code=java]rnpackage cn.itcast.domain;rnrn/**rn * 咨询部rn * @author Administratorrn *rn */rnpublic class Consulting rn private Integer id;rn private String name;rn private Integer gender;rn private String QQNO;rn private String address;rn private String school;rn private String phone;rn private int age;rn private String degree;rn private String description;rn private Clazz clazz;rn rn rn public Consulting() rn super();rn rn rn public Consulting(Integer id, String name, Integer gender, String qQNO,rn String address, String school, String phone, int age,rn String degree, String description, Clazz clazz) rn super();rn this.id = id;rn this.name = name;rn this.gender = gender;rn QQNO = qQNO;rn this.address = address;rn this.school = school;rn this.phone = phone;rn this.age = age;rn this.degree = degree;rn this.description = description;rn this.clazz = clazz;rn rn public Integer getId() rn return id;rn rn public void setId(Integer id) rn this.id = id;rn rn public String getName() rn return name;rn rn public void setName(String name) rn this.name = name;rn rn public Integer getGender() rn return gender;rn rn public void setGender(Integer gender) rn this.gender = gender;rn rn public String getQQNO() rn return QQNO;rn rn public void setQQNO(String qQNO) rn QQNO = qQNO;rn rn public String getAddress() rn return address;rn rn public void setAddress(String address) rn this.address = address;rn rn public String getSchool() rn return school;rn rn public void setSchool(String school) rn this.school = school;rn rn public String getPhone() rn return phone;rn rn public void setPhone(String phone) rn this.phone = phone;rn rn public int getAge() rn return age;rn rn public void setAge(int age) rn this.age = age;rn rn public String getDegree() rn return degree;rn rn public void setDegree(String degree) rn this.degree = degree;rn rn public String getDescription() rn return description;rn rn public void setDescription(String description) rn this.description = description;rn rn public Clazz getClazz() rn return clazz;rn rn public void setClazz(Clazz clazz) rn this.clazz = clazz;rn rn @Overridern public String toString() rn return "Consulting [id=" + id + ", name=" + name + ", gender=" + genderrn + ", QQNO=" + QQNO + ", address=" + address + ", school="rn + school + ", phone=" + phone + ", age=" + age + ", degree="rn + degree + ", description=" + description + ", clazz=" + clazzrn + "]";rn rn rn rnrn[/code]rnrn错误消息:rnStruts Problem ReportrnrnStruts has detected an unhandled exception:rnMessages: rnrn argument type mismatchrn IllegalArgumentException occurred while calling setter of cn.itcast.domain.Consulting.clazzrn IllegalArgumentException occurred while calling setter of cn.itcast.domain.Consulting.clazz; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of cn.itcast.domain.Consulting.clazzrnrnFile: org/hibernate/property/BasicPropertyAccessor.javarnLine number: 128rnStacktracesrnorg.springframework.orm.hibernate3.HibernateSystemException: IllegalArgumentException occurred while calling setter of cn.itcast.domain.Consulting.clazz; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of cn.itcast.domain.Consulting.clazzrnrn org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:690)rn org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)rn org.springframework.orm.hibernate3.HibernateTemplate.<em>exe</em>cuteWithNativeSession(HibernateTemplate.java:374)rn org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:912)rn org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:904)rn cn.itcast.dao.ConsultingDao.findAll(ConsultingDao.java:17)rn cn.itcast.service.ConsultingService.findAll(ConsultingService.java:20)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInv
这是怎么回事?出错了!
我在头文件写了如下的代码:rntypedef unsigned int HASHFN (const char *name, int type);rn在实现文件中写了下面的代码:rnextern NIMAP* nim_create (int init, int max, HASHFN hash, SYMFN delfn)rntract.obj : error LNK2001: unresolved external symbol "struct SYMTAB * __cdecl nim_create(int,int,unsigned int (__cdecl*)(char const *,int),void (__cdecl*)(void *))" (?nim_create@@YAPAUSYMTAB@@HHP6AIPBDH@ZP6AXPAX@Z@Z)rn在编译时,未出现任何问题,在连接的时候出现了这样的错误,请问高手<em>这是</em>什么问题?有高恩相送。rn
如何在无JDK的电脑运行jar
写了一个java应用程序,打包成了<em>jar</em>文件,<em>但是</em>在没有安装<em>jdk</em>的<em>电脑</em>上不能<em>运行</em>,请问怎么做到在没有安装<em>jdk</em>的<em>电脑</em>上<em>运行</em>呢?
请问Applet可否再没有按装JDK的电脑上正常显示。没装JDK==没装Java虚拟机吗?
如题。
程序部署到其他电脑运行出错
See the end of this message for details on invoking rnjust-in-time (JIT) debugging instead of this dialog box.rnrn************** Exception Text **************rnSystem.MissingMethodException: Method not found: 'System.String System.Windows.Forms.OpenFileDialog.get_SafeFileName()'.rn at AutoFill.Form1.button2_Click(Object sender, EventArgs e)rn at System.Windows.Forms.Control.OnClick(EventArgs e)rn at System.Windows.Forms.Button.OnClick(EventArgs e)rn at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)rn at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.ButtonBase.WndProc(Message& m)rn at System.Windows.Forms.Button.WndProc(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** Loaded Assemblies **************rnmscorlibrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dllrn----------------------------------------rnAutoFillrn Assembly Version: 1.0.0.0rn Win32 Version: 1.0.0.0rn CodeBase: file:///H:/chupan/AutoFill.<em>exe</em>rn----------------------------------------rnSystem.Drawingrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllrn----------------------------------------rnSystemrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dllrn----------------------------------------rnSystem.Windows.Formsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dllrn----------------------------------------rnSystem.Datarn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dllrn----------------------------------------rnSystem.Xmlrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dllrn----------------------------------------rnSystem.Configurationrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dllrn----------------------------------------rnInterop.SHDocVwrn Assembly Version: 1.1.0.0rn Win32 Version: 1.1.0.0rn CodeBase: file:///H:/chupan/Interop.SHDocVw.DLLrn----------------------------------------rnMicrosoft.mshtmlrn Assembly Version: 7.0.3300.0rn Win32 Version: 7.0.3300.0rn CodeBase: file:///H:/chupan/Microsoft.mshtml.DLLrn----------------------------------------rnMicrosoft.Office.Interop.Excelrn Assembly Version: 12.0.0.0rn Win32 Version: 12.0.4518.1014rn CodeBase: file:///H:/chupan/Microsoft.Office.Interop.Excel.DLLrn----------------------------------------rnrn************** JIT Debugging **************rnTo enable just-in-time (JIT) debugging, the .config file for thisrnapplication or computer (machine.config) must have thernjitDebugging value set in the system.windows.forms section.rnThe application must also be compiled with debuggingrnenabled.rnrnFor example:rnrnrn rnrnrnWhen JIT debugging is enabled, any unhandled exceptionrnwill be sent to the JIT debugger registered on the computerrnrather than be handled by this dialog box.rnrnrnrn是<em>哪里</em>的原因啊?
exe文件在没装PB的机子上还不能运行
我把c:\Program Files\Sybase\Shared\PowerBuilder下所有的文件(包括DLL)都copy到<em>exe</em>同目录下了还不能<em>运行</em>,提示<em>出错</em>::rn链接文件msvcirt.dll到不存在的输出msvcrt.dll:??_u@yapaxi@zrn怎么办?rn再说了,PB难道没有打包程序吗?
电脑装两个jdk
step1 https://jingyan.baidu.com/article/47a29f2474ba55c015239957.html <em>环境</em>切换不起作用,看step2 step2 https://blog.csdn.net/qq_26545305/article/details/66472521
程序运行出错,请各位帮忙看一下是哪里出错了。
MFC程序<em>运行</em><em>出错</em>,请各位帮忙看一下是<em>哪里</em><em>出错</em>了,告诉我怎么改,小弟感激不尽。 rn<em>运行</em>后不用点登陆,点“课程管理”—>“学生选课”<em>就会</em>出现<em>运行</em>错误。 rnrn由于上传附件的时候老出现上传错误,我把程序放到网络硬盘里了,下载地址是: rn[url=http://tele.126disk.com/down.aspx?down=ok&filepath=zxh0528%2fMFC%2f%d1%a7%c9%fa%b6%cb%a3%a8%d4%cb%d0%d0%b3%f6%b4%ed%a3%a9.rar][/url]
JSP试运行出错了...哪里出错了吗?我是初学者
/*rn * Generated by MyEclipse Strutsrn * Template path: templates/java/JavaClass.vtlrn */rnpackage com.djzhou.struts.action;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport org.apache.struts.action.Action;rnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionForward;rnimport org.apache.struts.action.ActionMapping;rnimport org.apache.struts.action.DynaActionForm;rnrn/**rn * MyEclipse Struts Creation date: 06-11-2009rn * rn * XDoclet definition:rn * rn * @struts.action path="/login" name="loginForm" input="/login.jsp"rn * scope="request" validate="true"rn */rnpublic class LoginAction extends Action rn /*rn * Generated Methodsrn */rnrn /**rn * Method <em>exe</em>cutern * rn * @param mappingrn * @param formrn * @param requestrn * @param responsern * @return ActionForwardrn */rn public ActionForward <em>exe</em>cute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response) rn DynaActionForm loginForm = (DynaActionForm) form;rnrn String username = (String) loginForm.get("username");rn String password = (String) loginForm.get("password");rnrn if (username.equals("zdj") && password.equals("11111")) rn return mapping.findForward("success");rnrn rnrn return mapping.findForward("fail");rn rn
opencv程序停止运行哪里出错
#include"highgui.h"rnint main(int argc,char** argv)rnrn cvNamedWindow("Example2",CV_WINDOW_AUTOSIZE);rn CvCapture* capture=cvCreateFileCapture(argv[1]);rn IplImage* frame;rn while(1)rn frame=cvQueryFrame(capture);rn if(!frame)break;rn cvShowImage("Example2",frame);rn char c=cvWaitKey(33);rn if(c==27)break;rn rn cvReleaseCapture(&capture);rn cvDestroyWindow("Example2");rnrnrn只要有这个ARGV【1】 程序停止<em>运行</em>rnlearning opencv上的教程rn[img=https://img-bbs.csdn.net/upload/201501/17/1421463326_298813.jpg][/img]
不知道哪里出错了,运行不出来,求助;
#include rn#include rn#include rn#include rn rntypedef char ElemType; //定义结点数据为字符型 rntypedef int Status; //定义函数类型为int型 rn#define ERROR 0 rn#define OK 1 rnrnint leafNum=0;rnrntypedef struct BiTNode //定义结构体 rn ElemType data; //结点数值 rn struct BiTNode *lchild; //左孩子指针 rn struct BiTNode *rchild; //右孩子指针 rnBiTNode, *BiTree; rnrnStatus InitBiTree(BiTree &T) //构造空二叉树T rn rn T=NULL; rn cout>ch; rn if(ch=='#')rn T=NULL; rn else rn rn T=(BiTNode*)malloc(sizeof(BiTNode));//申请一段关于该节点类型的存储空间 rn T->data=ch; //生成根结点 rn CreatBiTree(T->lchild); //构造左子树 rn CreatBiTree(T->rchild); //构造右子树 rn rn return OK;rnrnVoid Visit(ElemType T)rnrn if(T!=NULL)rn printf("%c",T->data);rn rnrnrnStatus PreOrder(BiTree T) //按先序次序(递归)访问二叉树 rn rn if(T==NULL) return 0;rn Visit (T->data);rn PreOrder(T->lchild);rn PreOrder(T->rchild);rn //填空rn return OK; rnrnrnStatus InOrder(BiTree T) //按中序次序(递归)访问二叉树 rn rn if(T==NULL) return 0;rn InOrder(T->lchild);rn Visit (T->data);rn InOrder(T->rchild);rn return OK; rnrnrnStatus PostOrder(BiTree T) //按后序次序(递归)访问二叉树 rn rn if(T==NULL) return 0;rn PostOrder(T->lchild);rn PostOrder(T->rchild);rn Visit (T->data);rn return OK; rnrnrnStatus PrePrintLeaf(BiTree T) //按先序次序(递归)输出叶子结点rnrn if(T==NULL)rn return 0;rn rn if(T->lchild==NULL&&T->rchild==NULL)rn printf("%c",T->data);rn PreOrderPrePrintLeaf(T->lchild);rn PreOrderPrePrintLeaf(T->rchild);rn rn return OK; rnrnrnStatus CountLeafNum(BiTree T) //统计叶子结点的个数rnrn int n;n==0;rn if(T==NuLL)rn return 0;rn rn if(T->lchild==NULL&&T->rchild==NULL)rn n++;rn CountLeafNum(T->lchild);rn CountLeafNum(T->rchild);rn rn return OK; rnrnrnStatus PostPrintNode(BiTree T) //按后序次序(递归)输出度为2的结点rn rn if(T==NuLL)rn return 0;rn rn PreOrderPrePrintLeaf(T->lchild);rn PreOrderPrePrintLeaf(T->rchild);rn if(T->lchild!=NULL&&T->rchild!=NULL)rn printf("%c",T->data);rn rn return OK; rnrnrnint PostTreeDepth(BiTree T) //获取二叉树高度 rn rn int hl,hr,max;rn if(T!=NULL)rn rn hl=PostTreeDepth(T->lchild );rn hr=PostTreeDepth(T->rchild );rn max=hl>hr?hl:hr;rn return(max+1);rn rn elsern return 0; rn
哪里出错了,把引号替换去
表结构如下:rnweb_contact_enrnid contact[类型为long]rn18 your mother 's '' name is ko''rnrn当rn怎么做啊?rn[img=http://img.my.csdn.net/uploads/201304/07/1365329982_3605.JPG][/img]
安装java JDK 配置java环境
安装java <em>配置</em><em>java<em>环境</em></em> 超级详细步骤有图有真相
如何安装jdk配置Java环境
1. 学会<em>配置</em>Java<em>环境</em>NO1.首先安装<em>jdk</em>,流程如下 按照此<em>配置</em>一路下一步即可NO2 <em>配置</em><em>环境</em> 右键计算机→属性→高级系统设置→高级→<em>环境</em>变量系统变量→新建 JAVA_HOME 变量 。变量值填写<em>jdk</em>的安装目录系统变量→寻找 Path 变量→编辑在变量值前输入 “%JAVA_HOME%;”之后的东西不要删除即可最后在开始栏输入cmd进入dos命令后输入Java -version即可验证...
错了,错了,但是错在哪里!
Response.Write "紧急程度:"rnResponse.Write ""rnrnResponse.Write "缓慢"rnrnResponse.Write "一般"rnrnResponse.Write "紧急"rnrnResponse.Write "*"rnResponse.Write ""rnrn为什么老是提语法错
我得网站是在unix下的resin下运行的,我把他拷到本地windows环境下,配置了resin,但是问题出来了
启动resin时就有错,好像是一些类初始化错误rn<em>但是</em> 程序却<em>可以</em><em>运行</em>,连接数据库等都没问题.rnrn可是用到某些特别的类时 就<em>出错</em>,得不到数据rnrn我搞了一天 都没成功rn我怀疑是 unix and windows下 resin的<em>配置</em> 是不是 不一样的?rn大家帮帮忙,是不是路径 加载错误?rn因为那些类里 有的把路经 写进去了rn
Debug中的程序在没装VC的电脑上不能运行
为什么?该怎么办呀?
关于程序在没装DELPHI的电脑运行的问题?
大家好,我编了个数据库程序,数据库是在服务器上,用ado访问.要在没装DELPHI的<em>电脑</em>上<em>运行</em>,除了只拷贝.<em>exe</em>程序还用拷贝别的文件吗?那个.dcu文件还用拷贝吗?
程序在没装VC的电脑上没法运行,如何解决?
在一台Windows XP的机器上编译<em>运行</em>,没问题。rnrn拷到另一台Windows me的机器上,不能<em>运行</em>,安装VC后就<em>可以</em><em>运行</em>了,如何解决?rnrn补充一下,在Project->Settings->General里,已经选择了“Use MFC in static Library”rnrn谢谢!rn
看不明白哪里配置出错
Server Error in '/' Application.rn--------------------------------------------------------------------------------rnrnConfiguration Error rnDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. rnrnParser Error Message: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。rnrnSource Error: rnrnrnLine 82: rnLine 83: rn[color=#FF0000]Line 84: [/color]Line 85: rnLine 86: rnrnSource File: C:\Inetpub\wwwroot\Web\web.config Line: 84 rnrnAssembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.rnrnrn=== Pre-bind state information ===rnLOG: User = PC-GAO\ASPNETrnLOG: DisplayName = Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3arn (Fully-specified)rnLOG: Appbase = file:///C:/Inetpub/wwwroot/Web/rnLOG: Initial PrivatePath = C:\Inetpub\wwwroot\Web\binrnCalling assembly : (Unknown).rn===rnLOG: This bind starts in default load context.rnLOG: Using application configuration file: C:\Inetpub\wwwroot\Web\web.configrnLOG: Using host configuration file: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet.configrnLOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.rnLOG: Post-policy reference: Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3arnLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/abb090c1/1e3d6f12/Microsoft.VisualStudio.QualityTools.UnitTestFramework.DLL.rnLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/abb090c1/1e3d6f12/Microsoft.VisualStudio.QualityTools.UnitTestFramework/Microsoft.VisualStudio.QualityTools.UnitTestFramework.DLL.rnLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/Web/bin/Microsoft.VisualStudio.QualityTools.UnitTestFramework.DLL.rnLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/Web/bin/Microsoft.VisualStudio.QualityTools.UnitTestFramework/Microsoft.VisualStudio.QualityTools.UnitTestFramework.DLL.rnLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/abb090c1/1e3d6f12/Microsoft.VisualStudio.QualityTools.UnitTestFramework.EXE.rnLOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/abb090c1/1e3d6f12/Microsoft.VisualStudio.QualityTools.UnitTestFramework/Microsoft.VisualStudio.QualityTools.UnitTestFramework.EXE.rnLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/Web/bin/Microsoft.VisualStudio.QualityTools.UnitTestFramework.EXE.rnLOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/Web/bin/Microsoft.VisualStudio.QualityTools.UnitTestFramework/Microsoft.VisualStudio.QualityTools.UnitTestFramework.EXE.rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
我的hiber配置哪里出错了?
[code=XML]rn jdbc:sqlserver://localhost:1433;DatabaseName=Test rn com.microsoft.sqlserver.jdbc.SQLServerDriver rn sa rn sa rn org.hibernate.dialect.SQLServerDialect rn rn rn [/code]rnrn说明我的机子是sqlserver2000,装visule studio的 时候装了点sqlserver2005(vs自带的,没有企业管理器)rnrn现在我<em>运行</em>的错误是:rnorg.hibernate.exception.JDBCConnectionException: Cannot open connectionrn at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)rn at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)rn at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)rn at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)rn at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1354)rn at com.test.hibernate.Client.main(Client.java:19)rnCaused by: com.microsoft.sqlserver.jdbc.SQLServerException: 到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection refused: connectrn at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)rn at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)rn ... 5 morernException in thread "main" org.hibernate.TransactionException: Transaction not successfully startedrn at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:183)rn at com.test.hibernate.Client.main(Client.java:32)
读取文件哪里出错
import java.io.*;rnimport java.util.Scanner;rnrnrnrnpublic class FileRd rn public static void main(String[] agrs) throws Exceptionrn File file=new File("e:\\111.txt");rn Scanner sc=new Scanner(file);rn int num=0;rn int sum=0;rn if(sc.hasNextLine())rn sum=sum+sc.nextInt();rn num++;rn rn rn System.out.println("文件中的数据总和为:"+sum);rn System.out.println("文件中数据的平均值为:"+sum/num);rn rn rnrnrnrn打印结果只读入了文件的第一行数据,为什么??不知道问题出在<em>哪里</em>rn
请问哪里出错了???
rn想编写独立模块,不知道下面<em>哪里</em><em>出错</em>了,用的是python2.5rndef show():rn print 'i am a moudle'rn if _name_=='_main_':rn rn File "", line 3rn if _name_=='_main_':rn rn^rnIndentationError: unindent does not match any outer indentation levelrnrnrnrndef show():rn pirnt ' I am a module!'rnif _name_='_main_':rn show()rn print ' I am not a module!'rnrn rnrn
哪里出错
select (case when 200%60/60.0=0 then (200/60) else (case when 200%60/60.0>0.5 then (200/60+1) else (cast(200/60 as varchar)+'.5') end) end)rn
哪里出错了???
服务器端代码:rnimport java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnimport java.io.*;rnimport java.net.*;rnimport java.sql.*;rnrnclass Net extends Threadrn private Socket socket;rn private BufferedReader in;rn private PrintWriter out;rn private Connection con = null;rn private Statement stmt;rn private ResultSet rst;rn private String [] str = new String [3];rn private boolean flag = true;rnrn public Net (Socket s) throws IOException, SQLException, ClassNotFoundExceptionrn socket = s;rn in = new BufferedReader(rn new InputStreamReader(rn socket.getInputStream()));rnrn out = new PrintWriter(rn new BufferedWriter(rn new OutputStreamWriter(rn socket.getOutputStream())),true);rnrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn con = DriverManager.getConnection("jdbc:odbc:net");rn stmt = con.createStatement();rnrn start();rn rnrn public void run()rn tryrn for(int i = 0; i);rn ResultSetMetaData rsmd = rst.getMetaData();rn column = rsmd.getColumnCount();rn columnname = new String [column - 2];rn for(int i = 0; i
【求助】 哪里出错了?
Inputrn每组输入数据占3行,第一行是2个整数 n ( 0 < n ≤ 100 ) 和 m ( 0 < m ≤ 100 ) ,分别表示集合A和集合B的元素个数。rn第二行是n个整数,表示集合A的n个元素。rn第三行是m个整数,表示集合B的m个元素。rn每个元素为不超出int范围的整数,元素之间有一个空格隔开。rn如果n=0并且m=0表示输入的结束,不做处理。rnrnOutputrn针对每组数据输出一行数据,表示A-B的结果,如果结果为空集合,则输出"NULL",否则从小到大输出结果。 两个元素之间有一个空格,行末没有空格。rnrnSample Inputrn3 3rn1 2 3rn1 4 7rn3 7rn2 5 8rn2 3 4 5 6 7 8rn0 0rnrnSample Outputrn2 3rnNULLrnrn[code=c]#includernvoid bubble(int p[],int t);rnint main()rnrn int i,j,n,k,m,t,a[101],b[101],p[101];rn while(scanf("%d%d",&n,&m)!=EOF)rn rn if(n==0&&m==0)rn break;rn t=n;rn for(i=0;ip[j+1])rn rn s=p[j];p[j]=p[j+1];p[j+1]=s;rn rn rn[/code]
匿名方法,哪里出错了?
string[] strArr = "sdf", "df", "er", "tyyt", "uiyytr", "uyigf", "ewrfw", "e", "33" ;rnrn IEnumerable newArr = Enumerable.Where(strArr, rn rn new Delegate(string dd)rn int a;rn return int.TryParse(dd,out a);rn rn rn rn );
哪里出错了呢?
照书上的rn//FrameTest.javarnimport java.awt.*;rnclass FrameTest extends Framernpublic boolean handleEvent(Event evt)rnif (evt.id==Event.WINDOW_DESTROY) System.exit(0);rn//书上原来是return super.handleEvent(e);rnreturn super.handleEvent(evt);rnrnrnpublic static void main(String[] args) rnrnFrame f=new Frame();rnf.resize(300,200);rnf.show();rnrnrnrnrnrn
哪里出错了?
有下面一段程序:rn//---------------------------------------------------------------------------rnrnrn#include rn#include rn#include rn#include rnrn//---------------------------------------------------------------------------rnrnrnstruct Entryrn string bookname ;rn string card ;rn;rnvoid f(vector& ve, list& le)rnrn sort(ve.begin(), ve.end()) ;rn unique_copy(ve.begin(), ve.end), le.begin()) ;rnrnvoid f1(vector& ve, list& le)rnrn sort(ve.begin(), ve.end) ;rn unique_copy(ve.begin(), ve.end(), back_insert(le))rnrnint main(int argc, char* argv[])rnrn vector &vbook ;rn list& &lbook ;rn f(vbook, lbook) ;rnrnrn return 0;rnrn//---------------------------------------------------------------------------rn在vc6种编译时除下面错误:rnaglor1.cpprnG:\exise\aglor1.cpp(13) : error C2146: syntax error : missing ';' before identifier 'bookname'rnG:\exise\aglor1.cpp(13) : error C2501: 'string' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(13) : error C2501: 'bookname' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(14) : error C2146: syntax error : missing ';' before identifier 'card'rnG:\exise\aglor1.cpp(14) : error C2501: 'string' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(14) : error C2501: 'card' : missing storage-class or type specifiersrnG:\exise\aglor1.cpp(16) : error C2065: 'vector' : undeclared identifierrnG:\exise\aglor1.cpp(16) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(16) : error C2065: 've' : undeclared identifierrnG:\exise\aglor1.cpp(16) : error C2065: 'list' : undeclared identifierrnG:\exise\aglor1.cpp(16) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(16) : error C2065: 'le' : undeclared identifierrnG:\exise\aglor1.cpp(17) : error C2448: '' : function-style initializer appears to be a function definitionrnG:\exise\aglor1.cpp(21) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(21) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(22) : error C2448: '' : function-style initializer appears to be a function definitionrnG:\exise\aglor1.cpp(28) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(28) : error C2065: 'vbook' : undeclared identifierrnG:\exise\aglor1.cpp(29) : error C2275: 'Entry' : illegal use of this type as an expressionrn G:\exise\aglor1.cpp(12) : see declaration of 'Entry'rnG:\exise\aglor1.cpp(29) : error C2065: 'lbook' : undeclared identifierrnG:\exise\aglor1.cpp(29) : error C2102: '&' requires l-valuernG:\exise\aglor1.cpp(30) : error C2065: 'f' : undeclared identifierrnError <em>exe</em>cuting cl.<em>exe</em>.rnrnaglor1.obj - 22 error(s), 0 warning(s)rn//____________________________________rn请问错再哪了?
哪里出错了啊?
考务管理系统中的自动安排考场和监考安排rnrn <em>哪里</em><em>错了</em>啊??rnrnpublic class Ramdrnpublic static int[] randoms()rnrnRandom r = new Random();rnint temp1,temp2;rnint send[] = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21;rnint len = send.length;rnint returnValue[] = new int[22];rnfor(int i=0;i<22;i++)rnrntemp1 = Math.abs(r.nextInt())% len;rnreturnValue[i] = send[temp1];rntemp2 = send[temp1];rnsend[temp1] = send[len-1];rnsend[len-1] = temp2;rnlen--;rnrnreturn returnValue;rnrnrnpublic static void main(String args[])rnrn int r;rn Ramd m=new Ramd();rn m.randoms();rn r=m.randoms();rn system.out.println(r);rnrnrnrn
到底哪里出错了?
CREATE PROCEDURE UpdateTraffic rn @Start datetime,rn @endtime datetime,rn @Serial_no varchar(50),rn @Src_add varchar(50),rn @Src_port varchar(50),rn @Dst_addr varchar(50),rn @Dst_port varchar(50),rn @Date_len int,rn @IPPacketSerial int,rnASrn if exists (select IPPacketSerial from Traffic rn where IPPacketSerial = @IPPacketSerial)rnrn beginrn update Traffic set Date_len = Date_len + @Date_len , [end] = @end rn where IPPacketSerial = @IPPacketSerialrn endrn elsern beginrn insert Traffic (Start,endtime,Serial_no,Src_add,Src_port,Dst_addr,Dst_port,Date_len,IPPacketSerial)rn values(@Start,@endtime,@Serial_no,@Src_add,@Src_port,@Dst_addr,@Dst_port,@Date_len,@IPPacketSerial)rn endrnrnrnrn我用SQL Server Query Analyzer 调用这个存储过程的语句是rnrnUpdateTraffic('20:01:00','20:01:01',rn '58612885','192.168.1.111','2000','192.168.1.166',rn '2000',30,1)rnrn为什么会<em>出错</em>?rn错误提示是rnServer: Msg 170, Level 15, State 1, Line 1rnLine 1: Incorrect syntax near '20:01:00'.rnrn即便是我把时间<em>换成</em> '2001-11-12 20:11:00'这种格式也不对,请问这究竟是怎么回事?
哪里出错了。
[code=HTML]rn[/code]rn直接返回没有问题rn如下rn Response.Charset = "gb2312" rn response.expires = -1rn xname = request.QueryString("xname")rn xpass = request.QueryString("xpass")rn response.write xpassrn <em>但是</em>按最上面查询就有问题了 郁闷, 返回的是一个莫名奇妙的页面代码
哪里出错了????
#include rn#include rn#define N 7rn//定义一个含有两个域的结点rntypedef struct nodern int data;rn struct node *next;rnElemSN;rnrn//创建正向链表(尾插)rnElemSN * CreatLink1(int a[],int n)rnrn ElemSN *h,*p,*t;rn for(int i=0;idata=a[i];rn p->next=NULL;rn if(!i) h=t=p;//是第一个结点rn else t=t->next=p;rn rn return h;rnrnrn//创建逆向链表(头插)rnElemSN * CreatLink2(int a[],int n)rnrn ElemSN *h,*p;rn h=NULL;rn for(int i=0;idata=a[i];rn p->next=NULL;rn p->next=h;//挂链rn h=p;//挪头指针rn rn return h;rnrnrn//输出单向链表rnvoid PrintLink(ElemSN *h)rnrn ElemSN *p;rn printf("\n输出的链表为:\n");rn for(p=h;p;p=p->next)rn printf("%5d",p.data);rnrnrn//主函数调用rnint main(void)rnrn ElemSN *head1,*head2;rn int a[N]=0;rn int i;rn printf("\n请依次输入链表每个结点的值:\n");rn for(i=0;i
不知道哪里出错了…
各位大哥好, 工作上临时需要用php操作个数据库, <em>但是</em>不知道为什么一直无法成功Insert数据进Database, 想请各位帮忙检查一下<em>哪里</em><em>出错</em>了rnrnrn rnrn". $row1[0] . " ";rn rn rn rnrnelsernrn echo "different-". $row[0]. " ";rn rn rn mysql_select_db("testPLM",$connect);rn rn mysql_query("SET NAMES utf8");rn //底下要把另一个数据库没有的数据加入, 可是都报错rn mysql_query("INSERT INTO version (name, time, description) VALUES('$row[0]', NULL, NULL)") or die('Insert data fail');rn rnrnrn rnrnrn rn?>
myEclipse哪里出错了???!!!
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 22 in the generated java filernThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryrnrnStacktrace:rn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.rnrnrn--------------------------------------------------------------------------------rn
哪里出错了,非常感谢
[img=https://img-bbs.csdn.net/upload/201711/24/1511512807_958720.png][/img]
请问哪里出错
在数据库的表中还有id这列,我把它设置为int,自增rnrnPrivate Sub GetConnected()rn Set cn = New ADODB.Connectionrn cn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=hardware;Data Source=CHENDONG-2E7F71"rn cn.CommandTimeout = 30rn cn.OpenrnEnd SubrnrnPublic cn As ADODB.ConnectionrnDim str As StringrnDim rs As ADODB.RecordsetrnrnPrivate Sub Command1_Click()rn GetConnectedrn Set rs = New ADODB.Recordsetrn rs.Open str, cn, adOpenDynamic, adLockOptimisticrn rs.AddNewrn rs("type") = Text2.Textrn rs("brand") = Combo1.Textrn rs("info") = Text3.Textrn rs.UpdaternEnd Sub
到底哪里出错了?
Option ExplicitrnPrivate Sub Command1_Click()rn Dim t As Longrn Dim i As Longrn Dim m_switch As Booleanrn i = 2rn t = Val(Text1.Text)rn m_switch = Falsern Do Until i > t Or m_switchrn If t Mod i = 0 Thenrn m_switch = Truern Elsern i = i + 1rn End Ifrn Looprn If m_switch Thenrn Text2.Text = t & "是素数"rn Elsern Text2.Text = t & "不是素数"rn End IfrnEnd Subrnrn这段程序<em>运行</em>后,无论输入的数值是什么,都提示XX是素数.到底<em>哪里</em><em>出错</em>了?
这是哪里错了
#--数据表td_guestbookrnrnCREATE TABLE `td_guestbook` (rn`id` BIGINT(10) DEFAULT '0' NOT NULL AUTO_INCREMENT, rn`name` VARCHAR(30) NOT NULL, rn`qq` VARCHAR(30) DEFAULT 'no' NOT NULL, rn`email` VARCHAR(100) DEFAULT 'no' NOT NULL, rn`homepage` VARCHAR(100) DEFAULT 'no' NOT NULL, rn`headima` TINYINT(1) DEFAULT '0' NOT NULL, rn`time` BIGINT(19) DEFAULT '0' NOT NULL, rn`content` TEXT NOT NULL,rnPRIMARY KEY (`id`)rn);rnrn#--数据表td_guestbook_adminrnCREATE TABLE `td_guestbook_admin` (rn`id` INT(2) DEFAULT '0' NOT NULL AUTO_INCREMENT, rn`user` VARCHAR(50) NOT NULL, rn`psw` VARCHAR(40) NOT NULL, rn`title` VARCHAR(100) NOT NULL, rn`pageshownumber` INT(4) DEFAULT '15' NOT NULL,rnPRIMARY KEY (`id`)rn);rnrnrninsert into td_guestbook_admin values(1,'admin','565491d704013245','天地网络--JSP留言rnrnrnmysql 中导入这段sql没反映啊
看看这是哪里错了
#includernusing namespace std;rnclass Datarn private:rn int year;rn int month;rn int day;rn public:rn Data(int x=2010,int y=12,int z=22)rn rn year=x;month=y;day=z;rn rn void show()rn rn cout<<
请问这是哪里错了?
请问一下代码<em>哪里</em>有问题?我想在状态栏显示当前鼠标位置rn[code=C/C++]void CStyleView::OnMouseMove(UINT nFlags, CPoint point)rnrn // TODO: 在此添加消息处理程序代码和/或调用默认值rn CString str;rn str.Format(L"x:%d,y:d%",point.x,point.y);rn ((CMainFrame*)GetParent())->m_wndStatusBar.SetWindowText(str);rn CView::OnMouseMove(nFlags, point);rn[/code]我的<em>环境</em>是VS2010 <em>可以</em>正常编译<em>但是</em>我把鼠标一移动到窗口中<em>就会</em>报错:rn(((state == ST_NORMAL) || (state == ST_TYPE))rnrn谢谢
请问这是哪里错了
struct StackStruct rn int* array;rn int sp;rn int size;rn;rntypedef StackStruct Stack;rnrn void initialize( Stack* s, int size ) rn s->array = new int[size];//为什么到这就<em>错了</em>?rn s->size = size;rn s->sp = 0; rnclass Queuernrnpublic:rn Queue(int size)rn rn initialize(_stack,size);rn rnprivate:rn Stack* _stack;rn;rnvoid main()rnrn Queue queue(15);rn
不知道哪里出错
[code=C#]rnrn protected void Button1_Click(object sender, EventArgs e)rn rn // int a = Convert.ToInt32(this.RadioButtonList1.SelectedValue);rn SqlConnection con = DB.createConnection();rn con.Open();rn SqlCommand cmd = new SqlCommand();rn cmd.Connection = con;rn cmd.CommandText = "update Title set titleID=Convert.ToInt32(this.RadioButtonList1.SelectedValue)";rn cmd.ExecuteNonQuery(); rn con.Close(); rn rnrnrn[/code]rn提示我“。”附近有错误。不知道是update写<em>错了</em>还是怎么了。rn之前我弄了个RadioButtonList,我想获得被选中项的this.RadioButtonList1.DataValueField的值,不知道this.RadioButtonList1.SelectedValue是不是这个值。rnrn我想用这个值更新一下下面的表[code=SQL]rncreate table Titlern(rn id int primary key, --编号rn titleID int default 1 not null --投票的标题序号rn)rnrninsert into Title values(1,1)rn[/code]rn之前还有一段我绑定控件的代码:rn[code=C#]rn protected void Page_Load(object sender, EventArgs e)rn rn SqlConnection con = DB.createConnection();rn con.Open();rn SqlCommand cmd = new SqlCommand("select * from voteMaster",con);rn SqlDataReader sdr = cmd.ExecuteReader();rn this.RadioButtonList1.DataTextField = "voteTitle";rn this.RadioButtonList1.DataValueField = "voteID";rn this.RadioButtonList1.DataSource = sdr;rn this.RadioButtonList1.DataBind();rn sdr.Close();rn con.Close();rn [/code]rnrn我就是想实现用voteMaster表中的voteID的值去更新Title表中的titleID。好心人帮帮忙吧,先谢了。
克鲁斯卡尔算法哪里出错了??
//克鲁斯卡尔算法rntypedef structrnrnint u;int v;int w;rnEdge;rnvoid Kruskal(Edge E[],int n,int e)rnrn int i,j,m1,m2,sn1,sn2,k;rn int vset[MAXVEX];rn for(i=0;i
ObQueryNameString哪里出错
buf=*(ULONG*)irp->AssociatedIrp.SystemBuffer;rn pdev=(PDEVICE_OBJECT)buf;rn dev_name=(POBJECT_NAME_INFORMATION)ExAllocatePool(NonPagedPool,1024);rn status=ObQueryNameString((PVOID)pdev,dev_name,1024,rl);rn DbgPrint("%d",status);rn if(status==STATUS_INFO_LENGTH_MISMATCH)rn rn ExFreePool(dev_name);rn dev_name=(POBJECT_NAME_INFORMATION)ExAllocatePool(NonPagedPool,*rl);rn status=ObQueryNameString((PVOID)pdev,dev_name,*rl,rl);rn rn if(status==STATUS_SUCCESS)rn rn memcpy(irp->UserBuffer,(const void*)(dev_name->Name.Buffer),(dev_name->Name.Length));rn ExFreePool(dev_name);rn rn这儿buf是win32传进去的DEVICE_OBJECT的地址,地址是正确的,然后将设备名传出去rn编译正常但执行ObQueryNameString后它返回了-1073741819,怎么回事STATUS_INFO_LENGTH_MISMATCH应该是-1073741820
请问哪里出错了?
[code=C/C++]#include rntemplate rnvoid ShowArray (T arr[], int n);rnrntemplate rnvoid ShowArray(T * arr[], int n);rnrnstruct debts rnrn char name[50];rn double amount;rn;rnrnint main(void)rnrn using namespace std;rn int things[6] = 13,31,103,301,310,130;rn struct debts mr_E[3] = rn rn "Ima Wolfe", 2400,rn "Ura Foxe ", 1300,rn "Iby Stout", 1800rn ;rn double * pd[3];rn for (int i = 0; i < 3; i++)rn pd[i] = &mr_E[i].amount;rn cout << "Listing Mr.E's counts of things: \n";rn ShowArray(things, 6);rn cout << "Listing Mr.E's debts:\n";rn ShowArray(pd, 3);rn return 0;rnrnrntemplate rnvoid ShowArray(T arr[], int n)rnrn using namespace std;rn cout << "template A\n";rn for (int i = 0; i < n; i++)rn cout << arr[i] << ' ';rn cout << endl;rnrnrntemplate rnvoid ShowArray(T * arr[], int n)rnrn using namespace std;rn cout << "template B\n";rn for (int i = 0; i < n; i++)rn cout << *arr[i] << ' ';rn cout endl;rn[/code]
归并排序,哪里出错
[code=C/C++]rnvoid merge(int a[], int low, int mid, int high)rnrn int n1 = mid - low + 1;rn int n2 = high - mid;rn int b[10];rn int c[10];rn int i, j, k;rnrn for(i = 0; i < n1; i++)rn b[i] = a[low+i-1];rn for(i = 0; i < n2; i++)rn c[i] = a[mid+i];rn i = 0;rn j = 0;rn k = 0;rn while((i < n1) && (j < n2) && (k < high))rn rn if(b[i] < c[j])rn rn a[k] = b[i];rn i++;rn rn else rn rn a[k] = c[j];rn j++;rn rn k++;rn rn rnrnrnrnvoid mergeSort(int a[], int low, int high)rnrn int mid;rn if(high >= low)rn rn mid = (low + high)/2;rn mergeSort(a, low, mid);rn mergeSort(a, mid, high);rn merge(a, low, mid, high); rn rnrnrnrnrn[/code]rnrn代码很乱,大家凑合看
SQL语法哪里出错了。
<em>哪里</em><em>出错</em>了。rn[code=SQL]rndeclarern tname varchar2(60);rn cname varchar(100);rn dlength number;rn maxlength number;rnbeginrn maxlength := 0;rn for idx in (select u.TABLE_NAME,rn u.COLUMN_NAME,rn u.DATA_LENGTH,rn decode(mod(u.DATA_LENGTH, 2), 0, 'EVEN', 'ODD') ODD_EVENrn from user_tab_columns urn where u.DATA_TYPE = 'VARCHAR2'rn and u.TABLE_NAME inrn (select t.table_namern from all_tables trn where t.num_rows > 0rn and t.owner = 'BXDB')) looprn tname := idx.TABLE_NAME;rn cname := idx.COLUMN_NAME;rn dlength := idx.DATA_LENGTH;rn <em>exe</em>cute immediate 'select max(lengthb(' || cname || ')) from ' || tnamern into maxlength;rn if (1.5 * maxlength) > dlength thenrn if idx.odd_even = 'ODD' thenrn dbms_output.put_line('alter table ' || tname || ' modify ' ||rnrn cname || 'varchar2(' || 2 * maxlength || ');');rn elsern dbms_output.put_line('alter table ' || tname || ' modify ' ||rn cname || 'varchar2(' || 1.5 * maxlength || ');');rn end if;rn end if;rn end loop;rnend;rn[/code]
哪里出错了?求教!
rnclass kothread extends Threadrnrn int n;rn String st;rn public kothread(String ko)rn rn st=ko;rn rn public void run()rn rn for(n=0;n java.lang.NoSuchMethodError: kothread.start()Vrn at ko3.main(ko3.java:34)
哪里出错了?
错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80004005)rn[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x4bc Thread 0x848 DBC 0x8f3fd4 Jet'。rn/QIANQIAN/connopen.asp, 第 7 行rn
这是哪里错了
我用appletviewer <em>运行</em>一个applet程序时,显示如下信息:rn"java.lang.nullpointerexceptionrnstack trace is disabled. set java_copcmd=sta(cktrace) to enable."rn请问是<em>哪里</em><em>出错</em>了?rn
不知道哪里出错了:(
我想复制一个标记块,但就是出不来~rnrnrn rnrnrn rnrnrnrn其中book.xml为:rnrnrn rn 我rn Carl Saganrn Ballantine Booksrn rn rn Catwingsrn Ursula K. Le Guinrn Scholasticrn rn rn Home Townrn Tracy Kidderrn Random Housern rnrnrn就是跳不出什么东西来啊~
这个哪里出错了?
test.jsprnrnrnrnrn rntestrnrnrnrn rn夺rnrnrnrnrnrntest1.jsprnrnrnrn rntest1rnrnrnrnrnrnrnrnrn在jbuilder里面显示是:before:'ÎÒ°®Äã'after:'�Ұ���rn在ie显示是:before:'我爱ä½?rnafter:'我爱�? rnrn该怎么解决这个乱码问题?
这个哪里出错了?
[code=C/C++]#includern#includernusing namespace std;rnint main()rnrn vector snum;rn int count;rn cout<>count)rn snum.push_back(count);rn int *pt= new int[snum.size()];rn int *pt2=pt;rn for(vector::iterator i=snum.begin();i!=snum.end();++i,++pt)rn *pt2=*i;rn delete [] pt;rn for(int a=0;a!=sizeof(pt2)/sizeof(int);a++)rn cout<
看下哪里出错了???
rn文件:rnrnrn用:set objrs_new=server.CreateObject("adodb.recordset")rn objrs_new.open sql_now,con,1,3,1rn出现同样的问题.rnrnrn错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80040E10)rn[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。rn/e/now_re.asp, 第 15 行rnrnrn大家帮下忙啊,我做了一整天啦,都没有通过...^^rn
分页程序哪里出错了?
<em>这是</em>我写的一段分页程序rndim MaxPerPage=10rnrnrs.MoveFirst rnrs.PageSize =MaxPerPagernhowmanyfields=rs.RecordCount-1rnif trim(request("page"))<>"" thenrn currentpage=Clng(request("page"))rn if currentpage>rs.PageCount thenrn currentpage=rs.PageCount rn end ifrnelsern currentpage=1rnend ifrn rnif rs.EOF thenrn Response.Write "记录录入中......"rnelsern totalput=rs.RecordCount rn if currentpage<>1 thenrn if (currentpage-1)*MaxPerPagern第 页 共记录rn<>1 thenrn Response.Write "["+"首页]"rn Response.Write "["+"上一页]"rn elsern Response.Write "[首页][上一页]"rn end ifrn if k<>n then rn Response.Write "["+"下一页]"rn Response.Write "["+"尾页]"rn elsern Response.Write "[下一页][尾页]"rn end if rn%>rnrnrn总共有34行,可是首页显示了1-34,然后第2页显示了11-34,然后....请问<em>这是</em>为什么?看了老半天了,
哪里出错了??
CREATE TABLE 门诊结算单(rn 结算单编号 CHAR(5) PRIMARY KEY,rn 诊疗费用 MONEY,rn 药品费用 MONEY )rnCREATE PROC consume;1rnASrnDECLARE @ total MONEY,rntotal=SELECT诊疗费用FROM门诊结算单+SELECT药品费用FROM门诊结算单
哪里出错了啊
1.指出以下程序的错误,并说明原因rnvoid func2(int *value)rnrn *value = 2;rnrnvoid func1()rnrn int * p = 0;rn func2(p);rnrnrn2.rnint a = 9; int b = 10;rnvoid swap(int x,int y)rnrn int temp = x;rn x = y;rn y = x;rnrnswap(a,b);rnrn;rnrnint main()rnrn D cd;rn cd.a = 1000;rn cout << "a=" << cd.a << endl;rn return 0;rnrnrnrn3.class Exaplernrn public:rn Static double rate = 6.5;rn;rnrn
哪里出错了~
rn为什么inputInteger1,inputInteger2输出的是4097、3840而不是15,16?rnrn[code=Java]/*rn * To change this template, choose Tools | Templatesrn * and open the template in the editor.rn */rnrnimport javax.microedition.midlet.*;rnimport javax.microedition.lcdui.*;rnimport javax.microedition.rms.*;rnimport java.io.*;rnrn/**rn * @author stcLhongrn */rnpublic class WriteReadExample extends MIDlet implements CommandListenerrn private Display display;rn private Alert alert;rn private Form form;rn private Command exit;rn private Command start;rn private RecordStore recordstore = null;rnrn public WriteReadExample()rn display = Display.getDisplay(this);rn exit = new Command("Exit",Command.EXIT,1);//sdfrn start = new Command("Start",Command.SCREEN,1);rn form = new Form("Record");rn form.addCommand(exit);rn form.addCommand(start);rn form.setCommandListener(this);rn rn public void startApp() rn display.setCurrent(form);rn rnrn public void pauseApp() rn rnrn public void destroyApp(boolean unconditional) rn rnrn public void commandAction(Command command,Displayable displayable)rn if(command == exit)rn destroyApp(true);rn notifyDestroyed();rn rn else if(command == start)rn tryrn recordstore = RecordStore.openRecordStore("myRecordStore", true);rn rn catch(Exception error)rn alert = new Alert("Error Creating",error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn tryrn byte[] outputRecord;rn String outputString = "First Record";rn int outputInteger1 = 15;rn int outputInteger2 = 16;rn boolean outputBoolean = true;rn ByteArrayOutputStream outputStream = new ByteArrayOutputStream();rn DataOutputStream outputDataStream = new DataOutputStream(outputStream);rn outputDataStream.writeUTF(outputString);rn outputDataStream.writeInt(outputInteger1);rn outputDataStream.writeInt(outputInteger2);rn outputDataStream.writeBoolean(outputBoolean);rn outputDataStream.flush();rn outputRecord = outputStream.toByteArray();rn recordstore.addRecord(outputRecord, 0, outputRecord.length);rn outputStream.reset();rn outputStream.close();rn outputDataStream.close();rn rn catch(Exception error)rn alert = new Alert("Error Writing",error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn tryrn String inputString = null;rn int inputInteger1 = 0;rn int inputInteger2 = 0;rn boolean inputBoolean = false;rn byte[] byteInputData = new byte[100];rn ByteArrayInputStream inputStream = new ByteArrayInputStream(byteInputData);rn DataInputStream inputDataStream = new DataInputStream(inputStream);rnrn for(int x = 1;x,error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn rn rn rnrn[/code]
nonlinear system 非线性系统 part 2/2下载
Nonlinear Systems Third Edition Solutions Manual 非线性系统 (第三版) Hassan K. Khalil 总共是两个压缩分卷,这个是第二个。 相关下载链接:[url=//download.csdn.net/download/xiaonenisu/2247102?utm_source=bbsseo]//download.csdn.net/download/xiaonenisu/2247102?utm_source=bbsseo[/url]
Dr. Dobb's Essential Books on Algorithms and Data Structures(Part 1)下载
P.S. 因为上传附件大小受限,故将本资源分为两部分,第二部分是 Dr. Dobb's Essential Books on Algorithms and Data Structures(Part 2) ,请注意两个一起下载,否则内容不全。 1.Data Structures and Algorithm Analysis in C (C) 1993, The Benjamin/Cummings Publishing Co., Inc. All rights reserved. 2.Data Structures, Algorithms, and Program Style Using 相关下载链接:[url=//download.csdn.net/download/gslshbs/3260172?utm_source=bbsseo]//download.csdn.net/download/gslshbs/3260172?utm_source=bbsseo[/url]
可生存性DBMS中恶意事务修复算法毕业论文下载
可生存性DBMS中恶意事务修复算法 毕业论文 相关下载链接:[url=//download.csdn.net/download/huangcheng861218/4766461?utm_source=bbsseo]//download.csdn.net/download/huangcheng861218/4766461?utm_source=bbsseo[/url]
我们是很有底线的