Skip to content

Problems with running jplag-2.11.8-SNAPSHOT-jar-with-dependencies.jar #14

@tsferreira

Description

@tsferreira

I downloaded this version of JPlag and tried to run it with the command:
java -jar jplag-2.11.8-SNAPSHOT-jar-with-dependencies.jar -l c -s mydir
and I got:
"Error: Illegal value: Language instantiation failed: Unknown language "c" ".
The same happened with "-l cpp". It seems to work only for the several versions of Java.

On the other hand, option "-p ?" produces:
"Error: No language found...".

I also tried to recompile JPlag by running: "mvn package" which produced a file: jplag-2.11.8-SNAPSHOT.jar. When I tried to execute it using the same command above, I got:

Exception in thread "main" java.lang.NoClassDefFoundError: jplag/Language
at jplag.JPlag.main(JPlag.java:12)
Caused by: java.lang.ClassNotFoundException: jplag.Language
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 1 more

All tests were executed under Ubuntu Linux, with Maven as follows:

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T14:41:47-02:00)
Maven home: /home/tomasz/temp/apache-maven-3.3.9
Java version: 1.7.0_80, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-77-generic", arch: "i386", family: "unix"

Any help will be appreciated. I am not very knowledgeable about Java and even less about Maven ;-(.

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