I need to connect to Matlab from Java using matlabcontrol.
I tried their demos and those are working fine but when I tried to connect to Matlab using a servlet I get this error (to be clear, my code succeeds in opening an instance of Matlab but afterwards the following appears in the Matlab window):
??? Undefined variable "matlabcontrol" or class "matlabcontrol.MatlabClassLoaderHelper.configureClassLoading".
And this appears in the eclipse server window:
matlabcontrol.MatlabConnectionException: MATLAB proxy could not be created in 180000 milliseconds
I saw that this exact same question was asked by someone on stack overflow but the question had been removed, I don't know why.
I tried searching for the answer and this came up: http://code.google.com/p/matlabcontrol/wiki/Compatibility
They say here that if this error comes, to run this command in Matab: java.lang.System.getProperty('java.class.version')
And if the answer is 50 or greater then matlabcontrol should work, but it doesn't for me.
I can't understand what's wrong (demo works, my code doesn't) and I'm desperately in need of an answer. This is for a project due soon and I would appreciate all the help I can get.
Related
Hello, I am getting this error when trying to run my java app in VS Code. I am trying to run an app that works with an instantiable class. This seems to only have started happening today for some reason.
I am a noob and will need some dumbed-down help, please.
I have tried the below links but they haven't helped:
Problem to run chrome debugger in VS Code (This does not work for me)
https://support.apple.com/en-gb/HT208050 (I did this and it doesn't change anything)
This comes up in my VS Code terminal:
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
It is working now after powering off and back on. One of the above two links must have done the job. Sorry, lol.
Problem
My code runs without problem but this prompt keeps appearing. I have run into this problem a lot but I just ignored it since the code runs fine. However it's starting to get rather annoying and all the fixes I saw online did not work. I suspect this has something to do with 'hot code replace'.
I also did set "Build automatically".
I saw on some other post that I could disable hot code replace by going to Preferences>Run/Debug, but I found no such option.
Any help is appreciated, thanks!
Apparently I was running in debug, I confused my shortcut keys... Problem fixed lol
I am having trouble installing the Android SDK on Windows 10. I am following a brazilian course on app development using react-native on android. This is a documentation page explaining how to create the development enviroment to do so: https://docs.rocketseat.dev/ambiente-react-native/android/windows (use google translate on the website to see the english version). However, on the part where they execute the following command :
$ C:\Android\Sdk\tools\bin\sdkmanager "platform-tools" "platforms;android-27" "build-tools;27.0.3"
the console returns:
Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
Caused by: java.lang.ClassNotFoundException: com.android.sdklib.tool.sdkmanager.SdkManagerCli
I have searched an entire day for a solution and discovered that, to my sorrowing dissapointment, this is a incredibly generic error when working with java in general. So I tried a plethra of things to no avail.
Reinstalling java(64-bit version)
Reinstalling jdk
Checking and rechecking what could possibly be wrong with the enviroment variables(I found no problems)
Searching through a dozen tutorials on how to install de Sdk via cmd.
Trying to get the Sdk on my machine through Android Studio(but couldnt use any of the Sdk commands necessary for the tutorial)
Some other stuff(I spent an entire day trying to fix this)
TLDR: I know this question has been posted in some form or regard before, I've read through all of them though, and none of them helped me.
If anyone has any idea of what I'm dealing with here, or has gone through this before, I would very much appreciate any advice that can be given. This problem has been drilling on me for a while now and I would really like to move on from it. I'm willing to provide any details on my current configuration but must of it you can find on the tutorial I linked earlier. Thank you for your attention.
It turns out there really are a billion reasons as to why this happens, and in my experience with stack, I don't think this will be answered anytime soon. So for future reference I will be giving some advice to anyone who ends up stumbling onto this problem.
Dual-boot your machine with Linux. I know this sounds like a non solution but it really is the only feasible solution. I spent an entire week trying to solve a problem that really wasn't worth solving. There are a ton of tutorials on how to do it. It took me less than 30 minutes to set up the whole thing and voilá, everything worked as a charm. Don't waste your time trying to make stuff like this work on Windows, especially since Java is involved.
The tutorial I used: https://docs.rocketseat.dev/dual-boot-windows-linux/introducao
PS: The tutorial is in Portuguese but Google Translate works pretty much perfectly on the page, so there should be no issues.
I'm recently working with Eclipse Che and have the task to import a Java Project that opens a GUI in it (like a simple Swing/SWT Calculator).
I am using the Java CentOS Stack, importing the .jar files, etc. is no problem but I get the "No X11 DISPLAY variable was set, but this program performed an operation which requires it." error.
Obviously, I found many threads about that Error, but I just wanted to ask if it is even possible to open a GUI in a web based IDE like Eclipse Che before wasting hours trying to fix that error when it's not even possible.
Maybe some of you already tried that and have a solution/tip or smth for me.
edit: found a video that answered my question. https://www.youtube.com/watch?v=AjgSp0dkxxU
Thanks anyway.
This will help you out - https://eclipse-che.readme.io/docs/che-and-swing
You need to use the right stack
You need to set the display variable. The way I did this was modify the run command to set it just before the other commands.
The command I used is:
export DISPLAY=:0.0
Also note that this worked for a while for me but randomly stop working a few days back so please tell if you manage to get it working.
I've been learning java for a while. I recently decided it's time to leave the simple console applications and start making applets. Everything is great so far except the fact that I can't find a way to run any applet made in eclipse on either of my browsers.
I downloaded this example to make sure everything is alright and it still renders the very same result when loaded in the browser.
When I open the html file the only thing in the tab is the border of the applet and the line "Error: click for details" top left. After I click the Java Console comes up and all that it says under the block of key instructions is:
Detected from bootclasspath: C:\PROGRA~1\Java\jre7\lib\deploy.jar
I don't even know if this is any sort of error report or just a notification... after the console is cleared it won't come up again...
I tried with: IE 8 and Chromium 17 on winxp 32
Applets on webpages run fine.
Please help me! This makes me very sad. The fact that I don't know anything about JRE and whether it needs any further configuration after installation gives me hope that there might be a simple and trivial solution to my issue.
Not too sure what your issue is right now. That's not an error report, just saying that deploy.jar, from the JRE, is being used.
When you say the example "renders the very same result" what result is that?
Can you properly run the "this example" you posted?
Are you compiling the project properly into a jar?
Are those jars in the same directory?