Thread: Kindlet How to make a new Kindlet?
View Single Post
Old 03-27-2023, 05:53 PM   #13
evilReader
Junior Member
evilReader has learned how to buy an e-book online
 
evilReader's Avatar
 
Posts: 8
Karma: 84
Join Date: Mar 2023
Device: Kindle Paperwhite 2
Quote:
Originally Posted by mrfakename View Post
Hi,
Thank you @AABBox! I tried your fixes, however I'm still getting the class not found error. I looked more carefully at my console and realized it may have something to do with my Java installation. I'm very new to Java so I might be completely wrong, but here's my console output:
Code:
added manifest
adding: src/test/(in = 0) (out= 0)(stored 0%)
adding: src/test/main.java(in = 624) (out= 254)(deflated 59%)
Buildfile: <DIRECTORY>build.xml

compile:
    [javac] <DIRECTORY>build.xml:15: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to <DIRECTORY>/bin
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.4
    [javac] error: Source option 1.4 is no longer supported. Use 7 or later.
    [javac] error: Target option 1.4 is no longer supported. Use 7 or later.

BUILD FAILED
<DIRECTORY>/build.xml:15: Compile failed; see the compiler error output for details.

Total time: 0 seconds
jar signed.

Warning:
The signer's certificate is self-signed.
jar signed.

Warning:
The signer's certificate is self-signed.
jar signed.

Warning:
The signer's certificate is self-signed.
I don't know if this is the issue, because when I ran "jar tf kindlet.azw2," it seems to have compiled properly:
Code:
$ jar tf kindlet.azw2
META-INF/MANIFEST.MF
META-INF/DNKINDLE.SF
META-INF/DNKINDLE.RSA
META-INF/DIKINDLE.SF
META-INF/DIKINDLE.RSA
META-INF/DKKINDLE.SF
META-INF/DKKINDLE.RSA
META-INF/
src/test/
src/test/main.java
$ jar tf kindlet.jar
META-INF/
META-INF/MANIFEST.MF
src/test/
src/test/main.java
Thank you!
Looking at the compiler output,
Code:
    [javac] error: Source option 1.4 is no longer supported. Use 7 or later.
    [javac] error: Target option 1.4 is no longer supported. Use 7 or later.
It never properly compiled the .java into .class files, looks like the JDK you have installed is too new. Try using java 8, that's what worked for me.
evilReader is offline   Reply With Quote