Comments (6)
@santorofer using make JAVASOURCE=8
works without errors.
from mdsplus.
Could you let us know explicitly the error message that you are seeing?. The error appears when running 'make', I assume.
from mdsplus.
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.
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.
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.
Excellent.
from mdsplus.
Related Issues (20)
- bootstrap class path warnings
- MDSplus for Windows installs 56 files in the System32 directory
- MDSplus contains Java 6 source code which cannot be compiled with modern JDKs HOT 2
- Can not store array of nids in a numeric node HOT 2
- jTraverser2 fails to display VMS floating point numbers (DTYPE_F) HOT 3
- The "alpine*-armhf" images in Docker Hub (for the MDSplus build system) don't have a working Java HOT 2
- Multiple alpha build versions' IDL fails on first MDSconnect HOT 3
- windows python install incompatible with recent numpy versions HOT 5
- mdsplus8: traverser does not allow adding long node names
- mdsplus8: jTraverser does not allow renaming nodes with long names
- mdsplus8: jTraverser2 does not allow renaming nodes with long names
- numpy deprecation warning for .tostring() HOT 3
- mdsplus8: the v7 versions of MDSplus should check to see if accessing a v8 tree HOT 1
- Datafile locks can take ~30 seconds/lock when tree files are on a NFS volume HOT 8
- Build system has inconsistencies regarding end-of-life for various platforms
- Support CIDR in mdsip.hosts
- MacOS Apple Silicon MDSplus Build HOT 10
- Homebrew Package HOT 1
- Locking problems on MACOS Ventura 13.1 (22C65) HOT 24
- IDL - bad forward_function reference to MdsGetAnsFN in mdsvalue.pro HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdsplus.