Eclipse is unable to find adb even when specified in Run Configurations - java

I'm trying to run Appium tests with Java through Eclipse, but it can't find ANDROID_HOME. I've set the Run Configurations to use the ANDROID_HOME path and I've tried running Eclipse through terminal with open /Applications/Eclipse.app, but I'm still getting the error.
Worst part is this was all running fine yesterday, suddenly today Eclipse can't find the SDK. Running ADB in the terminal works fine as well. I changed nothing in the code
EDIT: I tried running a python test of Appium through terminal and got the same error. Restarted my machine and everything's working fine now lol. Not sure what the root cause is. This question can be closed
EDIT 2: It happened again, after around 30 minutes, started getting the error that it can't find adb. Is there a way to fix this? Right now it seems all I can do is restart my machine everytime it happens

Received the same error when running a pyhton script through terminal, which means the error is not constrained to Eclipse. Restarted machine and everything's working fine now.

Related

JavaFX jar runs on my machine but doesn't run on others

I have built a JavaFX application in IntelliJ with SDK corretto 15 and openjfx-17.0.0.1 and when I run it on my machine it works fine, however when it runs on other machines I get the error
"Error: A JNI error has occurred, please check your installation and try again"
Please let me know if there's any more information you need. Thanks!

Why doesn't Grails 2.4.5 version work when I try to see it's version and create a Application?

The current project I work on uses Groovy version 2.3.11 and Grails in version 2.4.5.
Everything went very well with the installation of Groovy. However, when I installed grails in the aforementioned version and ran the "grails -version" command, my terminal simply didn't show anything - (I'm using Ubuntu on version 18.04.5).
Still, I tried to test grails by creating an application, but nothing worked. When I changed the version of grails to 4.0.4, I was able to do everything normally.
I have already uninstalled and reinstalled manually and it didn't work. The problem persists.
I also tested versions 2.4.4 and 2.5.0 and the error is the same as the one for version 2.4.5. This problem doesn't happen, however, from version 3.0.0 on.
I tried this link too (Grails not working on Ubuntu) where in the first time worked (I got it create a HelloWorld application runing this command "grails create-app helloWorld") So, a deleted all and It tried again but, in the second time not worked.
Can someone help me?
The problem was the environment variable that wasn't set when I ran the command "export PATH =" $ PATH: $ GRAILS_HOME / bin" in my terminal.
I found that out by opening a new terminal and running the command echo $ PATH. I realized, the settings didn't change at all.
After this, I tried changing the settings on the bachrc file itself, according to the steps described on the following link: https://askubuntu.com/questions/554664/path-not-saved-as-i-login-again.
Besides that, I set the JAVA_HOME and GROOVY_HOME in that file too.
Now everything works normally.
Lesson learned: Always check if your PATH was actually set as desired, by opening a new terminal and running "echo $PATH"

JWrapper app crashes on all versions of OSX on load

I have a cross-platform Java app that I am deploying to Linux/Windows/OSX. Linux and Windows have been working fine for several months. I just went to test OSX, and I am finding that the JWrapper standalone offline launcher always crashes when I go to run the app (the install loading screen works and the proper JWrapper folders are created, however). Below is the log output from OSX and from my app regarding the crash. Looks like something memory related. No idea why this might be happening. Have tried disabling many advanced features of my app on startup to see if the crash goes away, to no avail.
OSX complains about this error:
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note: EXC_CORPSE_NOTIFY
Pastebin for JWrapper log output: http://pastebin.com/tcjLzN6J
Pastebin for OSX log output: http://pastebin.com/KnzaqL8z
Note that the real app name has been replaced with "MyApp"
UPDATE: according to the following, this might just be due to the fact that I'm testing in vmware: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8096072
It turns out that JavaFX just "won't work" on VMware, no matter what. I tried my app on friend's Mac Book, and experienced no errors so I am fairly certain now that that was the problem.

Android Eclipse Exit Code=15

I accidentally closed eclipse when I was sending my application to run on my phone, and when I went to open it I got the following error:
Java was started but returned exit code= 15
C:\windows\system32\javaw.exe
Dogsi.requiredJavaVersion=1.6
I have tried restarting my computer but it didn't change this message. I have been using eclipse for a while, and have never seen this error before.
How can I resolve this error?
EDIT:
I ended up just reinstalling eclipse.
It sounds like eclipse didn't get a chance to save its configuration properly while quitting, and now the configuration is invalid when attempting to open.
Please see https://stackoverflow.com/questions/18059686/jdk-error-while-running-eclipse-on-windows-7 and Running Eclipse on Windows 7 JRE and JDK not found . Alternatively, just reinstall the jre and ecipse, but if you don't want to do that, then you're going to have to fiddle with eclipse configuration.

java(1150,0x10df2d000) malloc: *** error for object 0x10df9b020: pointer being freed was not allocated

I'm working on a java project and keep getting this error message on my console when I try running my jUnit tests... it starts running and then randomly stops with this error.
I'm running running on
MacOSX v10.7.5
java version "1.7.0_25"
Eclipse Juno Service Release 2
I've tried running the disk repair thing because i've found that solution elsewhere but didn't do anything usefull for me.
thanks
I had similar errors when trying to start up tomcat with a similar setup of mac, java, and eclipse. My solution ended up being updating java to the latest update.
was running jdk1.7.0_11
now running jdk1.7.0_79
and the errors stopped.

Categories