zoukankan      html  css  js  c++  java
  • could not find the main class,program will exit

    写了个方法 然后main 调用 老是抛could not find the main class,program will exit 执行不了程序,网上全是说jdk 与编译的版本不是同一个频道上 坑了我搞一上午JDK配置

    后来我发现我的是maven 项目 没有给加构建输出的目录 

    如下得以解决:

    <sourceDirectory>${basedir}/src</sourceDirectory>
    <outputDirectory>${basedir}/WebRoot/WEB-INF/classes</outputDirectory>
    <resources>
    <resource>
    <directory>${basedir}/src</directory>
    <excludes>
    <exclude>**/*.java</exclude>
    </excludes>
    </resource>
    </resources>

    群交流(262200309)
  • 相关阅读:
    修改python默认版本
    Ansible基础
    day21
    paramiko上传文件到Linux
    参考书籍
    C++解析三
    块设备
    assert用法
    块设备驱动2
    块设备驱动1
  • 原文地址:https://www.cnblogs.com/webster1/p/4895031.html
Copyright © 2011-2022 走看看