openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

Java 8 is not supported jtokkit

Open cuongnguyengit opened this issue 1 year ago • 2 comments

Great project i can't use because i use Java 8:

java: cannot access xyz.felh.openai.chat.ChatMessage bad class file: lib/jtokkit/core-4.0.2024080901.jar!/xyz/felh/openai/chat/ChatMessage.class class file has wrong version 65.0, should be 52.0 Please remove or make sure it appears in the correct subdirectory of the classpath.

cuongnguyengit avatar Aug 09 '24 10:08 cuongnguyengit

Sorry to hear that. Em...JDK 1.8 is released in 2014 while JDK21 is release on April 2024. You may use JDK 21 if the project you created lately. Or you can download the code to change some code to fit syntax compatibility for JDK 1.8.

forestwanglin avatar Aug 12 '24 02:08 forestwanglin

Thanks. I will convert it to JDK 1.8. Wish your support.

Vào Th 2, 12 thg 8, 2024 lúc 09:26 Wang Lin @.***> đã viết:

Sorry to hear that. Em...JDK 1.8 is released in 2014 while JDK21 is release on April 2024. You may use JDK 21 if the project you created lately. Or you can download the code to change some code to fit syntax compatibility for JDK 1.8.

— Reply to this email directly, view it on GitHub https://github.com/forestwanglin/openai-java/issues/14#issuecomment-2283016548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKZGI7O7E3JH3QBSOBPU54LZRAMOVAVCNFSM6AAAAABMIGAD66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBTGAYTMNJUHA . You are receiving this because you authored the thread.Message ID: @.***>

cuongnguyengit avatar Aug 13 '24 01:08 cuongnguyengit