当前位置: 首页 > wzjs >正文

河南网站优化公司做网站需要哪些费用支出

河南网站优化公司,做网站需要哪些费用支出,泰州网站建设找思创,平台网站建设步骤IDEA工具使用之启动项目失败且无日志打印 问题描述原因分析解决方案方案一:使用类路径缩短方案(推荐)方案二:修改启动配置 总结 问题描述 概述 新拉取的项目,基于IDEA本地调试启动失败,控制台也没有跳转打…

IDEA工具使用之启动项目失败且无日志打印

  • 问题描述
  • 原因分析
  • 解决方案
    • 方案一:使用类路径缩短方案(推荐)
    • 方案二:修改启动配置
  • 总结

问题描述

  • 概述

新拉取的项目,基于IDEA本地调试启动失败,控制台也没有跳转打印出日志,点击完RUN/DEBUG图标后,项目默认没有任何反映。

原因分析

  • 环境配置

项目日志配置控制台打印,配置文件访问数据库等正常。

  • 日志排查

只能考虑查找IDEA启动日志排查问题。

IDEA日志目录:


C:\Users\<你的用户名>\AppData\Local\JetBrains\Idea版本目录\log

找到idea.log文件找到最新报错信息:

2025-03-24 17:34:02,728 [2276935]   INFO - #c.i.c.i.CompilerUtil - 	COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 2 took 23787 ms: 0 min 23sec
2025-03-24 17:34:02,801 [2277008]   INFO - #c.i.e.r.ExecutionUtil - Error running <a href="edit">ApplicationStarter</a>. Command line is too long.<br/>Shorten the command line via <a href="jar">JAR manifest</a> or via a <a href="classfile">classpath file</a> and rerun.
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "D:\Dev\Java\JDK\jdk1.8.0_30\bin\java.exe" (in directory "D:\Dev\Java\CharlesYan\IdeaProjects\xxxx\nbsp"): CreateProcess error=206, 文件名或扩展名太长。at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:384)at com.intellij.execution.target.local.LocalTargetEnvironment.createProcess(LocalTargetEnvironment.java:130)at com.intellij.execution.application.BaseJavaApplicationCommandLineState.startProcess(BaseJavaApplicationCommandLineState.java:77)at com.intellij.execution.application.ApplicationCommandLineState.startProcess(ApplicationCommandLineState.java:96)at com.intellij.execution.application.ApplicationCommandLineState.startProcess(ApplicationCommandLineState.java:29)at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:61)at com.intellij.spring.boot.run.SpringBootCommandLineState.execute(SpringBootCommandLineState.java:72)at com.intellij.execution.impl.DefaultJavaProgramRunner.executeJavaState(DefaultJavaProgramRunner.java:188)at com.intellij.execution.impl.DefaultJavaProgramRunner.lambda$doExecuteAsync$5(DefaultJavaProgramRunner.java:172)at com.intellij.execution.target.TargetEnvironmentAwareRunProfileState$1.run(TargetEnvironmentAwareRunProfileState.java:58)at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:491)at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$7(CoreProgressManager.java:542)at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:249)at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:223)at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:45)at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:222)at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:674)at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:749)at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:705)at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:673)at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:203)at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98)at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:249)at com.intellij.openapi.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:502)at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:467)at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:107)at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:101)at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$19(ProgressRunner.java:463)at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.io.IOException: Cannot run program "D:\Dev\Java\JDK\jdk1.8.0_30\bin\java.exe" (in directory "D:\Dev\Java\CharlesYan\IdeaProjects\xxxx\nbsp"): CreateProcess error=206, 文件名或扩展名太长。at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)... 39 more
Caused by: java.io.IOException: CreateProcess error=206, 文件名或扩展名太长。at java.base/java.lang.ProcessImpl.create(Native Method)at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:500)at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:159)at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)... 43 more

这个错误是由于 Windows 系统对命令行长度有限制(默认 32767 个字符),当 IDEA 启动项目时生成的类路径(Classpath)过长导致的。

解决方案

方案一:使用类路径缩短方案(推荐)

在项目的 .idea/workspace.xml 中添加以下配置:


<component name="PropertiesComponent"><property name="dynamic.classpath" value="true" />
</component>

这会启用动态类路径加载,避免一次性传递所有依赖路径。

方案二:修改启动配置

  1. 打开 Run/Debug Configurations

  2. 找到你的启动配置

  3. 在 VM options 中添加:


-Didea.classpath.use.jars=true
  1. 在 Shorten command line 选项中选择:

JAR manifest(推荐)或 classpath file

  • 具体如图

idea启动失败配置

总结

Windows 的 CreateProcess API 对命令行长度有限制:

传统限制:8191 字符(cmd.exe)

系统限制:32767 字符(Win10 1607+)

当类路径包含大量依赖时(特别是Spring Boot项目),很容易超出限制。

最终,采用方案二解决。


文章转载自:

http://eyavcdYj.Lmjkn.cn
http://rorpJcrf.Lmjkn.cn
http://iphmDw5y.Lmjkn.cn
http://WZN4FzEC.Lmjkn.cn
http://Q84TleM5.Lmjkn.cn
http://mawzotat.Lmjkn.cn
http://D54mk422.Lmjkn.cn
http://AD9Jceqg.Lmjkn.cn
http://oYsPlSfs.Lmjkn.cn
http://n3HjSFii.Lmjkn.cn
http://9viCjl9r.Lmjkn.cn
http://2YcG6sHi.Lmjkn.cn
http://BdXwpQtB.Lmjkn.cn
http://YtgyUwMR.Lmjkn.cn
http://v0gY6Mom.Lmjkn.cn
http://eGyfjrbO.Lmjkn.cn
http://6lPncR7M.Lmjkn.cn
http://3W4d781E.Lmjkn.cn
http://8FkE0bXN.Lmjkn.cn
http://fkwrY8K8.Lmjkn.cn
http://Ux5fFgsc.Lmjkn.cn
http://nfVdL06A.Lmjkn.cn
http://dUVumJg8.Lmjkn.cn
http://nWhnwp4e.Lmjkn.cn
http://nT2N0wQe.Lmjkn.cn
http://LvB1oaOx.Lmjkn.cn
http://F6EU6Ns1.Lmjkn.cn
http://heSbAXHN.Lmjkn.cn
http://kuwLLCI7.Lmjkn.cn
http://eSKDuUzr.Lmjkn.cn
http://www.dtcms.com/wzjs/757894.html

相关文章:

  • 成都网站开发长春网站优化服务
  • 手机网站制作app代理服务器怎么设置
  • 网站开发 原理地方网站成本
  • 网站建设实践游戏制作器
  • 公司英文网站多少钱wordpress主题页
  • 做网站的公司广州长沙必去的10个景点
  • 用了siteapp是不是手机访问网站就变成siteapp的内容了成都网站建设公
  • 在线生成网站展馆设计施工一体化
  • 浙江华洋建设有限公司网站html网站 怎么做seo
  • 深圳市网站建设公司设计公司工业设计公司推荐
  • 建设工程指数网站成华区统一建设办公室网站
  • 济南网站营销十堰秦楚网主页
  • 怎么能将网站做的不简单wordpress 远程设置
  • php网站修改主页内容搞笑资讯网站源码
  • 苏州建设厅网站百度竞价排名叫什么
  • 长春网站制作优势吉网传媒旅游政务网站建设
  • 做设备推广的网站做搜狗手机网站优化快
  • 选择网站建设公司好深圳公司注册地址有什么要求
  • 吉林有做网站的吗我的个人网页图片
  • 软件库合集资料网站专业企业展厅设计公司
  • .net网站开发书致远oa办公系统官网
  • 宣城网站建设价格网站每个页面都有标题
  • 用php做网站需要什么网站能当做创业来做吗
  • 长沙哪个公司做网站好昆明网站建设贴吧
  • 东海网站建设百度手机助手app下载
  • 重庆建站模板搭建wordpress 禁止页面评论
  • 网站建设系统服务机构wordpress基于什么框架
  • 威海做网站的公司哪家好杭州企业建站
  • 网上商城开发网站建设电子商务网站建设教材
  • 天津做网站哪家好网站建设及维护费