首页 > 其他分享 >No compiler detected, make sure you are running on top of a JDK instead of a JRE

No compiler detected, make sure you are running on top of a JDK instead of a JRE

时间:2023-11-07 17:25:41浏览次数:39  
标签:util JRE sure java JDK Unknown DynamicClientFactory Source org

Java 调 webservice 报如下错误

[2023-11-07 17:01:02.315] ERROR [scheduling-1] ToHisApiImpl.java:106 - No compiler detected, make sure you are running on top of a JDK instead of a JRE.
java.lang.IllegalStateException: No compiler detected, make sure you are running on top of a JDK instead of a JRE.
    at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:193)
    at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:141)
    at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:136)
    at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.compileJavaSrc(DynamicClientFactory.java:639)
    at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:389)
    at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:244)
    at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:237)
    at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:192)
    at com.vipsoft.his.hospital.service.impl.GoodwillcisServiceImpl.archiveFile(GoodwillcisServiceImpl.java:85)
    at com.vipsoft.his.hospital.service.impl.ToHisApiImpl.syncReport(ToHisApiImpl.java:92)
    at com.vipsoft.his.hospital.schedule.HisTaskJob.syncReport(HisTaskJob.java:38)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
    at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
    at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

安装 JDK 默认使用 JRE 环境,新增 JAVA_HOME 环境变量,指向 JDK 目录即可
image
image

标签:util,JRE,sure,java,JDK,Unknown,DynamicClientFactory,Source,org
From: https://www.cnblogs.com/vipsoft/p/17815443.html

相关文章

  • ReentrantLock源码笔记 - 获取锁(JDK 1.8)
    ReentrantLock学习-获取锁(JDK1.8)ReentrantLock提供非公平锁与公平锁两种加锁方式,默认加锁方式为非公平锁。ReentrantLock类的结构为:从图中可以看出,ReentrantLock类包含三个静态内部类:SyncNonfairSyncFairSync其中Sync类继承AbstractQueuedSynchronize(AQS),Nonf......
  • ReentrantLock源码笔记 - 释放锁(JDK 1.8)
    ReentrantLock源码学习-释放锁(unlock)上次谈到了利用ReentrantLock的非公平和公平加锁方式,那么接下来看看释放锁的流程首先调用ReentrantLock的unlock方法publicvoidunlock(){sync.release(1);}然后会调用AbstractQueuedSynchronizer(AQS)的release方法,在这个方法......
  • Spring Boot 2.x版本 + JDK17使用虚拟线程
    来源:https://spring.io/blog/2022/10/11/embracing-virtual-threadsconfig里定义两个类:@ConfigurationpublicclassThreadConfig{@Bean(TaskExecutionAutoConfiguration.APPLICATION_TASK_EXECUTOR_BEAN_NAME)publicAsyncTaskExecutorasyncTaskExecutor(){......
  • Java:SpringBoot实现JDK动态代理和CGLIB动态代理
    (目录)需要代理的对象//接口publicinterfacePayService{voidpay();}//实现publicclassAliPayServiceimplementsPayService{@Overridepublicvoidpay(){System.out.println("AliPayService");}}1.JDK动态代理在JDK动态代......
  • JDK 21安装及环境配置
    注意:1、本文的性质为初学者的实操记录,文中内容若与你遭遇的情况不符,请另行寻找更靠谱的教程。比如我参考的就是:“AAA黄豆AAA”的JDK21安装教程2、本文撰写时间为2023年11月6日,操作系统为Windows10家庭版,若时殊事异,请理性对待。一、安装JDK211、从Oracle官网获取JDK21安......
  • Linux Centos安装JDK1.8教程
    第一步:先下载JDK1.8,可以去官网下载,也可以直接这里的:下载地址:链接:https://pan.baidu.com/s/1f1EDWvG-GzpQRJaC_W4SpA密码:9pj1先检查是否有安装JDK:#rpm-qa|grepjdk先把系统自带的干掉(如果没有直接跳过):   rpm-e--nodepsjava-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64......
  • 切换JDK版本时修改JAVA_HOME环境变量不生效
     Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\Environment           解决方法: (1)检查环境变量Path;(2)删除java.exe,javaw.exe,javaws.exe 在修改JDK的安装目录的情况下会出现失效的时候,因为jdk在安装的时候自己在path中添加了......
  • JDK8新特性
    JDK8新特性目录JDK8新特性1、总览2、接口中的默认方法和静态方法(DefaultMethodsforInterfaces)3、函数式接口什么是函数式接口?四大内置核心函数式接口自定义函数式接口4、Lambda表达式概述lambda表达式具体语法格式类型推断5、方法引用概述举例6、构造器引用概述示例7、Stream......
  • Entering China's strategies of water pollution and identifying an effective mea
    WaterPollutionControlStrategiesinChina(Someexamples)(1)China’sstrategyforcontrollingwaterpollutionfocusedfirstonreducingthedischargeofoxygen-demandingsubstances.The11thFiveYearPlan(FYP),adoptedin2006containedbindingtargets......
  • 解决JDK URLEncoder.encode 编码空格变 + 号
    JDKURLEncoder.encodejdk自带的URL编码工具类URLEncoder,在对字符串进行URI编码的时候,会把空格编码为+号。空格的URI编码是:%20解决方案:可以对编码后的字符串进行+替换成%20,但这种解决方案并不优雅另外字符串中的+会encode成%2B使用jdk提供的URLEncoder工具......