#47 Helloworld will not run

open
nobody
Compiler (12)
5
2011-04-12
2011-04-12
Eric Schuler
No

Hi,

After compiling the helloworld sample program...it will no longer run. Output below:

mvn output

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jclarion.example:helloworld:jar:1.5
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 38, column 10
[WARNING] The expression ${pom.url} is deprecated. Please use ${project.url} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building clarion 1.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-assembly-plugin:2.2-beta-2:assembly (default-cli) @ helloworld >>>
[INFO]
[INFO] --- clarion-maven-plugin:1.19:clarion (default) @ helloworld ---
[INFO] Clarion: Processing source directory C:\source\clarion2java-1.5-bin\examples\HelloWorld\src\main\clarion
1 Files loaded
Wrote 0 java file(s)
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ helloworld ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\source\clarion2java-1.5-bin\examples\HelloWorld\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ helloworld ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ helloworld ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\source\clarion2java-1.5-bin\examples\HelloWorld\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ helloworld ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ helloworld ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\source\clarion2java-1.5-bin\examples\HelloWorld\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ helloworld ---
[INFO]
[INFO] <<< maven-assembly-plugin:2.2-beta-2:assembly (default-cli) @ helloworld <<<
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-2:assembly (default-cli) @ helloworld ---
[INFO] Processing DependencySet (output=/)
[INFO] Building zip: C:\source\clarion2java-1.5-bin\examples\HelloWorld\target\helloworld-1.5-bin.zip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.002s
[INFO] Finished at: Tue Apr 12 14:12:18 EDT 2011
[INFO] Final Memory: 7M/17M
[INFO] ------------------------------------------------------------------------

***********************************************
java -jar ...... output:

Exception in thread "main" java.lang.noclassdeffounderror: org/jclarion/clarion/crash/crash
at clairon.main.main(main.java:21)
caused by: java.lang.classnotfound....

**************************************

Did I do something wrong? Any help appreciated.

Eric

Discussion

  • Andrew Barnham
    Andrew Barnham
    2011-04-12

    Hi

    Did you unpack the contents of the zip file placed into the target directly. the HelloWorld .jar file is not enough to run. It also needs to be able to find .jar files for clarion runtime plus a few other dependencies. All this are placed inside a HelloWorld -bin.zip file on running mvn.

    Hope this helps
    Andrew

     
  • Eric Schuler
    Eric Schuler
    2011-04-13

    Hi Andrew,

    Thanks so much for helping me with my silly question. That was exactly it - just need to unzip that file. Hopefully I am off and running on this now, as I got a sample .app I wrote to compile and run just fine now. One day hopefully I can do something to contribute.

    Eric