I am trying to follow the terrier quick start guide but am facing an issue, I try to run the bin\terrier.bat on windows cmd but I get the following
"Error: Could not find or load main class
Caused by: java.lang.ClassNotFoundException:"
I am in the terrier directory which is in my downloads folder, I have java version 11, my system path environment variables are all set. According to the guide it should show me the terrier version and all the commands available. Here is a link to the quick start guide https://github.com/terrier-org/terrier-core/blob/5.x/doc/quickstart_experiments.md
Related
I am currently trying to learn about Appium Automated Testing. Everything is setup perfectly on my Mac.
All my environmental variables are set up correctly :
export ANDROID_HOME=/Users/abc/Library/Android/sdk
export
PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
However when I run the eclipse program, eclipse throws an error saying:
remote stacktrace: UnknownError: An unknown server-side error occurred
while processing the command. Original error: Could not find 'aapt' in
["/usr/local/share/android-sdk/platform-tools/aapt","/usr/local/share/android-sdk/emulator/aapt","/usr/local/share/android-sdk/tools/aapt","/usr/local/share/android-sdk/tools/bin/aapt"].
Do you have Android Build Tools installed at
'/usr/local/share/android-sdk'?
So my question is why eclipse is looking for Android SDK tools in usr/local , my sdk tools are located in
/Users/abc/Library/Android/sdk.
How can I tell eclipse to look for the appt,adb, etc in my User folder and not the admin usr folder.
My expectation is that your PATH variable has /usr/local/share/android-sdk/emulator/aapt entry and it is resolved before your additions of the ANDROID_HOME variable.
So either remove that Android SDK which lives under /usr/local/share/android-sdk/ from your operating system like:
brew cask uninstall android-sdk
or amend your PATH variable definition so your "good" Android SDK installation goes before anything else like:
export PATH=$JAVA_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH
See Appium Java Code examples for more information regarding proper setup of Appium environment. You might also want to check the integrity of the infrastructure setup using appium-doctor
appium-doctor --android
I just struggled with on MacOS Catalina 10.15.3, Appium 1.10.1, Appium Doctor v.1.13.0 trying to set up Android with Appium.
Make sure you are changing the correct file. You have 3 possible locations.
~/.bash_profile
~/.profile
~/.zshrc
I was editing my ~/.bash_profile instead of ~/.zshrc you can have a situation where you are setting the correct path but not in the right file.
If your trying to get going with Android Appium in Mac here is what I put in my ~/.zshrc at the bottom
# Android Paths for Appium
export ANDROID_HOME=/Users/**PUT_YOUR_USER_NAME_HERE_WITHOUT_STARS**/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform_tools
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=${JAVA_HOME}/bin:$PATH
Also if you don't want to edit in a terminal-based editor use the following command to open the files in a text editor.
open -e .bash_profile
open -e .zshrc
open -e .profile
After editing do not forget to save.
Quit your Terminal.
Run Appium_Doctor
The following post helped me out a lot when setting up my Appium
appium-workshop/Appium Mac Installation Instructions
https://github.com/isonic1/appium-workshop/blob/master/Appium%20Mac%20Installation%20Instructions.md
If you have a system-wide eclipse installation, it usually won't read your environment variables from your .bashrc or .bashprofile, but from /etc/environment.
If you don't want to modify this file, or if it doesn't exist on a Mac, then you can always set the variables at a project level. This is done in the "Environment" tab of the configuration (run, debug, external tools,...) you're running within Eclipse, like this:
i am trying make react-native application to .apk file. I have keystore file, but when i try
sudo ./gradlew bundleRelease
i got error message
"1 exception was raised by workers: java.lang.RuntimeException: java.lang.RuntimeException: Cannot start "jarsigner" process, please add it to the PATH"
How can i fix this problem?
This should be included within the bin folder of Java SDK.
If you don't have the SDK installed, download it and install it, e.g:
https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html
There is also a video on Youtube showing how to find it, see https://www.youtube.com/watch?v=Qtz88Vf0bdw
RPI 2B, running Debian/Jessie, with java version 1.8.0_65.
Downloaded latest nukkitx from https://nukkitx.com.
Followed installation instructions at https://github.com/IntellectualCrafters/PlotSquared/wiki/Installation.
Plugins I have installed:
Plot Squared 18.07.21-aaa7088-2022
FastAsyncWorldEdit 18.07.21-a00345f-1159-20.4.0
DbLib 0.2.3
Error I am encountering:
java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open(Ljava/lang/String;I)V
Stack trace: https://pastebin.com/C3DrUm0Q.
Full server log: https://pastebin.com/2iuvQmbC.
As you can see, it says that PlotSquared has been loaded, but none of the plot commands are available. It just says unknown command when I type it. I have tried several different versions of all of the plugins, and a couple previous versions of nukkitx, all have the same problem. I'm thinking its something about my device, but I'm still pretty new to Linux and am not sure what to try next. Any suggestions would be amazing!
EDIT: I download the driver from https://github.com/xerial/sqlite-jdbc, and added it to the class path when calling the nukkitx jar to start the server. This didn't fix the problem. Here is the .sh file to start the nukkit jar:
#!/bin/sh
echo $USER
java -Xms1G -Xmx1G -cp ".;sqlite-jdbc-3.23.1.jar" -jar nukkit-1.0-SNAPSHOT.jar
I figured it out! For whatever reason, the JbLib sqlite driver apparently wasn't working. The solution was to remove JbLib (jar and folder) from the plugins folder, change the start.sh file (which I created according to the installation instructions) to use a classpath command instead of a jar command, add the xerial sqlite driver to the class path, and specify the Main Nukkit class to execute, like so:
java -classpath nukkit-1.0-SNAPSHOT.jar:sqlite-jdbc-3.23.1.jar cn.nukkit.Nukkit
I got a trouble. When I create and build a project java native, I got an error:
-bash: android: command not found when run "android update project -p" in cygwin.
I use windows 7, and I set environment variables : ANDROID_HOME and PATH.
I searched on this site but with them I cannot fix it.
Please help me
Try this
Go to android tools directory and type
./android update project -p
command not found typically indicates that your PATH variable is not set correctly.
In windows
set PATH = %PATH%;C:\devtools\adt-bundle-windows-x86_64\adt-bundle-windows-x86_64\sdk\tools;
I'm trying to run FIREFOX selenium IDE generated file in GOOGLE CHROME.
Below is a step by step description of what the problem is and what I have tried (unsuccessfully so far) to fix it.
Environment
Selenium IDE – installed**strong text**
Selenium RC – installed
Java version 1.7.0.05 - installed
What I'm trying to Do:
Running an FIREFOX IDE Generated Test in GOOGLE CHROME
Steps
(1) Following three .htm files created using FIREFOX
a. google_for_selenium_rc.htm
b. google_for_testing.htm
c. visit_google_videos
(2) Created suite.htm file (see attached)
(3) Run the following command in cmd:
java –jar selenium-server.jar –htmlSuite “C:\Program Files
(x86)\Google\Chrome\Application\chrome.exe¬” “http://www.google.com.au”
“C:\Users\shelleymoudgil\Documents\KB\Selenium\SeleniumIDE\suite.htm”
“C:\Users\shelleymoudgil\Documents\KB\Selenium\SeleniumIDE\results.htm”
Expected
(4) Script successfully executed in GOOGLE CROME
Actual
(5) Following Error displayed:
Error:
Could not find or load main class ûjar
Solutions tried so far
Added C:\Program Files\Java\jre7\bin\ to PATH
Added C:\Program Files (x86)\Java\jre7\bin to PATH
Added C:\Program Files (x86)\Google\Chrome\Application\ to PATH
I'm new to java and selenium. I'm stuck for the past 1 day. Can somebody guide and advise a possible solution or what I might be doing wrong.
Thanks
Americain
Just from the error message, it looks like your -jar argument has something other than - as the first character, probably an en-dash. It would then interpret –jar as a class to search for on the class path. Attempting this yields the same error message for me, modulo whatever encoding transformation is happening to the error message on your system.
Download this Jar file from the below link and paste it on the desktop.
https://code.google.com/p/selenium/downloads/detail?name=selenium-server-standalone-2.28.0.jar&can=2&q=
then type the following in the command prompt and run this jar.
cd desktop
java -jar typejarname
after this the jar will start running.
now execute the code and see whether it is working or not.