Closed crowlogic closed 6 months ago
how can i remedy this or figure out what's causing it?
Can you attach sources of your project? At least HestonProcessChart would be interesting. Also please check if there were any errors reported in the log of the IDE during compilation .
how can i remedy this or figure out what's causing it?
Can you attach sources of your project? At least HestonProcessChart would be interesting. Also please check if there were any errors reported in the log of the IDE during compilation .
Sure thing, expect a link shortly, it requires swig and flint-arb for a native library to be built
Hello @iloveeclipse , I appreciate your patience, the code can be found at
https://github.com/crowlogic/arb4j
I just verified the issue is still happening. You might find the library fun, it's becoming quite useful
how can i remedy this or figure out what's causing it?
Can you attach sources of your project? At least HestonProcessChart would be interesting. Also please check if there were any errors reported in the log of the IDE during compilation .
I checked eclipse logs.. nothing related to compiler
Running HestonProcessChart produces (when using class files generated by eclipse)
Exception in Application start method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1081)
Caused by: java.lang.RuntimeException: Exception in Application start method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.NoClassDefFoundError: arb/stochastic
at arb4j/arb.stochastic.volatility.heston.HestonProcessChart.start(HestonProcessChart.java:17)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
... 1 more
Caused by: java.lang.ClassNotFoundException: arb.stochastic
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 10 more
Exception running application arb.stochastic.volatility.heston.HestonProcessChart
@crowlogic : thanks. May I ask you try with latest nightly build of Eclipse (https://download.eclipse.org/eclipse/downloads/drops4/I20230806-1800/)?
Other remark: this project uses m2e to resolve dependencies and also CDT to build which requires to install those for reproducing.
Is there a way to get a stripped down self contained project or java code that would show the problem in a plain SDK?
@crowlogic : thanks. May I ask you try with latest nightly build of Eclipse (https://download.eclipse.org/eclipse/downloads/drops4/I20230806-1800/)?
Other remark: this project uses m2e to resolve dependencies and also CDT to build which requires to install those for reproducing.
Is there a way to get a stripped down self contained project or java code that would show the problem in a plain SDK?
I can upload the .so then you can just disable or ignore the cdt part. I'm not sure about other platforms
@crowlogic : thanks. May I ask you try with latest nightly build of Eclipse (https://download.eclipse.org/eclipse/downloads/drops4/I20230806-1800/)?
Other remark: this project uses m2e to resolve dependencies and also CDT to build which requires to install those for reproducing.
Is there a way to get a stripped down self contained project or java code that would show the problem in a plain SDK?
I can upload the .so then you can just disable or ignore the cdt part. I'm not sure about other platforms
If you instruct me how to generate a standalone lib directory...
if you update you will find libarblib.so in the root directory, just add
-Djava.library.path=. -ea --enable-preview --enable-native-access=arb4j
to the commandline params
crow@hotspot:~/a$ ldd libarblib.so
linux-vdso.so.1 (0x00007ffd84085000)
libflint-arb.so.2 => /lib/x86_64-linux-gnu/libflint-arb.so.2 (0x00007fc356a00000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc356600000)
libflint.so.17 => /lib/x86_64-linux-gnu/libflint.so.17 (0x00007fc355e00000)
libmpfr.so.6 => /lib/x86_64-linux-gnu/libmpfr.so.6 (0x00007fc356db6000)
libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007fc356d33000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc356917000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc356ec7000)
libntl.so.44 => /lib/x86_64-linux-gnu/libntl.so.44 (0x00007fc355a00000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc355600000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc356d0d000)
libgf2x.so.3 => /lib/x86_64-linux-gnu/libgf2x.so.3 (0x00007fc356cfe000)
crow@hotspot:~/a$ file libarblib.so
libarblib.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=fc74c2e79b53c76198c1af6678ced167007c0b67, with debug_info, not stripped
@iloveeclipse The problem still persists with Eclipse Java Development Tools from the nightly url you provided
is there some tool that will do a structural diff of class files or something like that?
/me listens to the crickets
/me listens to the crickets
Sorry that you seem to be blocked here - but you first submitted this on Saturday evening and have gotten lots of response already.
structural diff of class files or something like that?
Try using javap to see the difference in class files. With -c
it disassembles the code.
My hunch was right that it was getting confused by having a class named arb.arb , i renamed the swig module to arblib so that mapping is arb.arblib and everything works great. there isn't sufficient incentive to investigate further, thanks --StΣvε
I figured this out because if I clean and rebuild outside of eclipse with maven, all is well,
the thing is, arb.stochastic is a packaeg name I've no idea why it would be trying to load it as a class..
heres my directory structure of the project..
src/bonanzai/stochastic/volatility/heston src/bonanzai/stochastic/volatility/heston/FullAndFastLogSpotProcessφ.java src/bonanzai/stochastic/volatility/heston/StochasticVolatilityProcess.java src/bonanzai/stochastic/volatility/heston/rough src/bonanzai/stochastic/volatility/heston/rough/LiftedHestonProcessTest.java src/bonanzai/stochastic/volatility/heston/rough/JointCalibrator.java src/bonanzai/stochastic/volatility/heston/rough/package-info.java src/bonanzai/stochastic/volatility/heston/rough/LiftedHestonProcess.java src/bonanzai/stochastic/volatility/heston/HestonVarianceProcessTest.java src/bonanzai/stochastic/volatility/heston/InteractiveInterface.java src/bonanzai/stochastic/volatility/heston/HestonProcessChart.java src/bonanzai/stochastic/volatility/heston/ExponentiallyDampedLogSpotProcessφ.java src/bonanzai/stochastic/volatility/heston/HestonProcessState.java src/bonanzai/stochastic/volatility/heston/ValueSetter.java src/bonanzai/stochastic/volatility/heston/LogProcessIntegrator.java src/bonanzai/stochastic/volatility/heston/SpotProcessφTest.java src/bonanzai/stochastic/volatility/heston/LogSpotφIntegrand.java src/bonanzai/stochastic/volatility/heston/SpotProcess.java src/bonanzai/stochastic/volatility/heston/HestonProcessTest.java src/bonanzai/stochastic/volatility/heston/LogHestonProcess.java src/bonanzai/stochastic/volatility/heston/ExponentiallyRegularizedFullAndFastLogSpotProcessφTest.java src/bonanzai/stochastic/volatility/heston/LogSpotProcess.java src/bonanzai/stochastic/volatility/heston/SpotProcessφ.java src/bonanzai/stochastic/volatility/heston/HestonProcessIntegrator.java src/bonanzai/stochastic/volatility/heston/LogSpotφΠ2Integrand.java src/bonanzai/stochastic/volatility/heston/HestonProcess.java src/bonanzai/stochastic/volatility/heston/SpotProcessTest.java src/bonanzai/stochastic/volatility/heston/VarianceProcess.java src/bonanzai/stochastic/volatility/heston/package-info.java src/bonanzai/stochastic/volatility/heston/FullAndFastLogSpotProcessφTest.java src/bonanzai/stochastic/volatility/heston/HestonLogSpotProcessφ.java src/bonanzai/stochastic/volatility/heston/HestonCharacteristicFunction.java src/bonanzai/stochastic/volatility/heston/ExponentiallyDampedCallPriceIntegrand.java src/bonanzai/stochastic/volatility/heston/ExponentiallyDampedCallPriceIntegrandTest.java src/bonanzai/stochastic/volatility/heston/HestonLogSpotProcessφTest.java src/bonanzai/stochastic/volatility/heston/HestonProcessTest.java~ src/bonanzai/stochastic/volatility/heston/LogSpotφΠ1Integrand.java src/bonanzai/stochastic/volatility/heston/LogSpotProcessCharacteristicFunctionPlotter.java
how can i remedy this or figure out what's causing it?
Thanks in advance, --Stephen