A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© startrek36   /  2014-12-12 18:18  /  14948 人查看  /  74 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

些许 中级黑马 2014-12-19 00:14:18
41#
些许 发表于 2014-12-19 00:12
http://jingyan.baidu.com/article/f96699bb8b38e0894e3c 如果看完过后你还有这种问题我就没办法了 ...

http://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html
回复 使用道具 举报
些许 中级黑马 2014-12-19 00:17:14
42#
http://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html
或者百度   配置JAVA的环境变量 老师讲的是Java5.0好像  现在是Java8.0了
回复 使用道具 举报
些许 中级黑马 2014-12-19 00:20:55
43#
不好意思初来乍到  东西发错了 廉价是http://jingyan.baidu.com/article/ab69b270c01a4d2ca7189f8c.html
jdk8环境变量 jdk8图解安装 java8安装   原因还是版本问题
回复 使用道具 举报
夜空中的星 来自手机 中级黑马 2014-12-19 07:19:05
44#
好高深,大神
回复 使用道具 举报
bjznh 中级黑马 2014-12-19 08:46:02
45#
来看看,:):)
回复 使用道具 举报
小平 中级黑马 2014-12-19 09:32:30
46#
http://dlsw.baidu.com/sw-search-sp/soft/52/14459/jdk-8u25-windows-i586.1413446415.exe下载重装
回复 使用道具 举报
能说的都被说了~~~
回复 使用道具 举报
如果是win7的系统,可以不用设置classpath环境变量的
回复 使用道具 举报
你需要把dos命令行关了,再重新打开才可以
回复 使用道具 举报
些许 中级黑马 2014-12-23 01:52:58
50#
你安装Java的路径  避免出现空格和汉字的路径
回复 使用道具 举报
在系统的环境变量中添一个classpath值,指向e盘就ok
回复 使用道具 举报
你把jdk安装在Program Files文件夹里面  在配置试一下
回复 使用道具 举报
你把jdk安装在Program Files文件夹里面  在配置试一下
回复 使用道具 举报
classpath 设置的是 编译后的  jar 或者class文件吧?
比如set classpath="a1.jar"或者a1.class
回复 使用道具 举报
classpath 设置的是 编译后的  jar 或者class文件吧?
比如set classpath="a1.jar"或者a1.class
回复 使用道具 举报
classpath 设置的是 编译后的  jar 或者class文件吧?
比如set classpath="a1.jar"或者a1.class
回复 使用道具 举报
我一眼就瞄到了倒数第四个文件夹
回复 使用道具 举报
  1. @echo off
  2. mode con cols=48 lines=30&color a
  3. @title     n3verl4nd QQ:253373586
  4. :start
  5. @echo.        1. set java environment variable
  6. @echo.        2. install mysql services
  7. @echo.        3. start mysql and apache
  8. @echo.        4. stop mysql
  9. @echo.        5. exit
  10. @echo.================================================
  11. @set /p choice=Please make a choice:
  12. @echo.================================================
  13. @if /i %choice%==1 goto 1
  14. @if /i %choice%==2 goto 2
  15. @if /i %choice%==3 goto 3
  16. @if /i %choice%==4 goto 4
  17. @if /i %choice%==5 goto end

  18. :1
  19. wmic ENVIRONMENT where "name='JAVA_HOME'" delete
  20. wmic ENVIRONMENT where "name='CLASSPATH'" delete
  21. wmic ENVIRONMENT create name="JAVA_HOME",username="<system>",VariableValue="%~dp0sdk"
  22. wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;%~dp0sdk\bin;%~dp0sdk\jre\bin;%~dp0mysql\bin"
  23. wmic ENVIRONMENT create name="CLASSPATH",username="<system>",VariableValue=".;%~dp0sdk\lib;%~dp0sdk\lib\tools.jar"
  24. @pause
  25. @cls
  26. @goto start

  27. :2
  28. @cd /d %~dp0mysql
  29. @taskkill /F /im mysqld.exe
  30. my.ini
  31. @cd /d %~dp0mysql\bin
  32. mysqld -remove
  33. mysqld install mysql --defaults-file="%~dp0mysql\my.ini"
  34. @pause
  35. @cls
  36. @cd /d %~dp0
  37. @goto start

  38. :3
  39. net start mysql
  40. @cd /d %~dp0tomcat\bin
  41. start startup.bat
  42. @pause
  43. @cls
  44. @cd /d %~dp0
  45. @goto start

  46. :4
  47. net stop mysql
  48. @pause
  49. @cls
  50. @goto start

  51. :5
  52. :end
  53. exit
复制代码
回复 使用道具 举报
新建变量CLASSPATH ,
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
回复 使用道具 举报
dos窗口设置只对当前窗口有效楼主
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马