Skip to content

Script "run_example.sh" not working. #2

@felipelageduarte

Description

@felipelageduarte

I just grab the source code from git repository. I tried to run the script and got the following error

~/hist4j$ ./run_example.sh
Buildfile: /home/felipelageduarte/hist4j/build.xml

prepare:
[delete] Deleting directory /home/felipelageduarte/hist4j/output
[mkdir] Created dir: /home/felipelageduarte/hist4j/output

compile:
[javac] /home/felipelageduarte/hist4j/build.xml:52: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to /home/felipelageduarte/hist4j/build

jar:
[jar] Building jar: /home/felipelageduarte/hist4j/output/hist4j-trunk.jar

BUILD SUCCESSFUL
Total time: 0 seconds
Exception in thread "main" java.lang.UnsupportedClassVersionError: Hist4jExample : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: Hist4jExample. Program will exit.

Could anyone please help me and fix the script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions