different version of java and compiled classes jar -


i have java 2 sdk standard edition ve 1.4.2-06 , compile java program use classes in jar called visad after extracting contents of jar have folder called visad contains subfolders of classes. compile program , receive error message

cannot access visad.java3d.displayimplj3d bad class file .\visad\java3d\displayimplj3d.class  class file has wrong version 50.0 should 48.0  please remove or make sure appears in correct subdirectory of classpath 

i read maybe problem version of java different compiled classesin jar , d'ont know do

thanks

cannot access visad.java3d.displayimplj3d bad class file .\visad\java3d\displayimplj3d.class  class file has wrong version 50.0 should 48.0  

the part of error message "class file has wrong version 50.0" tells class file displayimplj3d.class created using jdk 1.6 , using javac compiler jdk 1.4 "should 48.0".

  • if must stick on jdk 1.4 need visad.jar compiled java 1.4
  • if there no constraint stick on jdk 1.4 should update @ least jdk 1.6 , compile source

edit download visad source visad homepage , compile jdk

howto build visad jdk 1.4

  • download visad source , extract prefered destination
  • download , install java 3d api jdk 1.4 java 3d api, during installation check *.jar file installed
  • cd visad source directory
  • run ant build jar
  • if build fails error: package javax.media.j3d not exist must copy necessary jar files manually installation directory (you had remember during installation)
  • copy files j3dcore.jar, j3dutils.jar , vecmath.jar visad source directory
  • amend build.xml, add bold part

    <javac srcdir="." memorymaximumsize="512m" fork="true" debug="on" classpath=".;j3dcore.jar;j3dutils.jar;vecmath.jar" />

  • run ant build jar

  • if build successful there should visad.jar in visad source directory

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -