So, I downloaded the newest build for the JDK8 but it still says the same: was made with major version 53 not with 52 (which I am using = JDK8).
Warnings during compilation:
ant -f Z:\\_JAVA_\\DaeToObj -Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file: Z:\_JAVA_\DaeToObj\build\built-clean.properties
Deleting directory Z:\_JAVA_\DaeToObj\build
clean:
init:
deps-jar:
Created dir: Z:\_JAVA_\DaeToObj\build
Updating property file: Z:\_JAVA_\DaeToObj\build\built-jar.properties
Created dir: Z:\_JAVA_\DaeToObj\build\classes
Created dir: Z:\_JAVA_\DaeToObj\build\empty
Created dir: Z:\_JAVA_\DaeToObj\build\generated-sources\ap-source-output
Compiling 1 source file to Z:\_JAVA_\DaeToObj\build\classes
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/ObjSaveOptions.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/Scene.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/utils/MemoryStream.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/SceneObject.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/A3DObject.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/INamedObject.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/utils/Stream.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/SaveOptions.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/IOConfig.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: Z:\_JAVA_\DaeToObj\_JARS_\aspose-3d-23.11.0-jdk8.jar(com/aspose/threed/FileFormat.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
10 warnings
compile:
Created dir: Z:\_JAVA_\DaeToObj\dist
Copying 1 file to Z:\_JAVA_\DaeToObj\build
Copy libraries to Z:\_JAVA_\DaeToObj\dist\lib.
Building jar: Z:\_JAVA_\DaeToObj\dist\DaeToObj.jar
To run this application from the command line without Ant, try:
java -jar "Z:\_JAVA_\DaeToObj\dist\DaeToObj.jar"
deploy:
jar:
BUILD SUCCESSFUL (total time: 1 second)
Error when I try to run my app:
run:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/aspose/threed/SaveOptions has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)
C:\Users\[user-name-here]\AppData\Local\NetBeans\Cache\13\executor-snippets\run.xml:111: The following error occurred while executing this line:
C:\Users\[user-name-here]\AppData\Local\NetBeans\Cache\13\executor-snippets\run.xml:94: Java returned: 1
BUILD FAILED (total time: 0 seconds)
I really sill got the exact warnings/errors as before: I am using NetBeans 13 with Ant for compilations, not Maven (as I think your solution with that code to add is for Eclipse with Maven instead, right?) + there is no pom.xml file in my project anywhere (the only one is the one that comes with your library and it is not .xml but actually a .pom file type tho its internal structure is xml…mindboggling indeed) - I still cannot use it!
Or did you mean to put that .pom file that comes with your library alongside it and add there that missing line of <classifier>jdk8</classifier>
? Probably not, cos its internal structure is different as those are not under tag <dependency>
.
Can you tell me how to make it when one is using Ant and adding his dependency jar files MANUALLY?
Where to add/edit that <repository>
part? Do I guess correctly that it does not work that way with the Ant?
The only mention of the Aspose library file-wise are 3 lines in nbproject/project.properties
file like this:
file.reference.aspose-3d-23.11.0-jdk8.jar=_JARS_\\aspose-3d-23.11.0-jdk8.jar
javac.classpath=\
${file.reference.aspose-3d-23.11.0-jdk8.jar}:\
javadoc.reference.aspose-3d-23.11.0-jdk8.jar=_JARS_/aspose-3d-23.11.0-javadoc.jar
Sorry to sound dumb (or maybe I actually am JAVA-wise, bah) but I never ever needed to do anything like this before with any other jar I am using so I hope you do understand that this is really “a spaniard village to me” (a popular saying here in my country for cases where one have no clue )…so I hope you can tell me how exactly to do this basically step-by-step (fingers crossed).