Giter Club home page Giter Club logo

Comments (6)

mdclemen avatar mdclemen commented on September 21, 2024 1

@santorofer using make JAVASOURCE=8 works without errors.

from mdsplus.

santorofer avatar santorofer commented on September 21, 2024

Could you let us know explicitly the error message that you are seeing?. The error appears when running 'make', I assume.

from mdsplus.

zack-vii avatar zack-vii commented on September 21, 2024

JAVASOURCE was used to maintain backward compatibility for matlab (javamds, mdsobjects, and co) while also supporting newer modules such as mdsapi and jtraverser2. it may nor work with newer java versions. however we built with jdk8 (platform independdant). i you wish to build with a newer java version
make JAVASOURCE=8 may indeed do the trick. some projects also support maven. however, maintaining the java buildchain for all distributions was dropped a good while ago. i would not say its a bug or that JAVASOURCES=6 os incorrect, but simply that your jdk does not suppport the intended compatibility or the way we attempt to achive the compatibility does not support your jdk version.

best may be to download the compiled jars and only compile the binaries.

from mdsplus.

mdclemen avatar mdclemen commented on September 21, 2024

Could you let us know explicitly the error message that you are seeing?. The error appears when running 'make', I assume.

This is where compilation failed for me:

CLASSPATH=./classes: /usr/lib/jvm/java-17-openjdk-17.0.6.0.10-1.fc37.x86_64/bin/javac -d ./classes  -encoding UTF-8 -source 6 -target 6   src/main/java/MdsPlus/MdsPlusDescriptor.java src/main/java/MdsPlus/MdsPlusEvent.java src/main/java/MdsPlus/MdsPlusEvents.java src/main/java/MdsPlus/MdsPlusException.java src/main/java/MdsPlus/MdsPlus.java
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
make[1]: *** [Makefile:588: classjava.stamp] Error 2
make[1]: Leaving directory '/home/mitchell/PROJECTS/mdsplus-stable_release-7-132-0/java/mdsplus'
make: *** [Makefile:104: java/mdsplus] Error 2

I'd like to also note that JAVASOURCE = 8 is hard coded in a bunch of other Makefiles:

mdsplus-stable_release-7-132-0]$ grep -rin 'JAVASOURCE = ' ./*
./java/jtraverser2/Makefile.am:1:JAVASOURCE = 8
./java/jtraverser/Makefile.am:1:JAVASOURCE = 8
./java/jscope/Makefile.am:1:JAVASOURCE = 8
./java/devicebeans/Makefile.am:1:JAVASOURCE = 8
./java/jdevices/Makefile.am:1:JAVASOURCE = 8
./java/jdispatcher/Makefile.am:1:JAVASOURCE = 8
./java/mdsobjects/tests/Makefile.am:1:JAVASOURCE = 8
./java/mdsobjects/Makefile.am:1:JAVASOURCE = 6
./java/mdsplus-api/tests/Makefile.am:1:JAVASOURCE = 8
./java/mdsplus-api/Makefile.am:1:JAVASOURCE = 8
./java/tests/Makefile.am:1:JAVASOURCE = 8
./java/mdsplus/Makefile.am:1:JAVASOURCE = 6

from mdsplus.

santorofer avatar santorofer commented on September 21, 2024

mdclemen, could you use make with the modifier that Timo explained about?, i.e.:

make JAVASOURCE=8

will that avoid the errors that you see?

from mdsplus.

santorofer avatar santorofer commented on September 21, 2024

Excellent.

from mdsplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.