Before I found your video I was struggling tremendously trying to figure out my java issue. I am learning Salesforce development and I was stuck at step 1 trying to get my VS Code connected and operable with Salesforce DX due to incompatible java versions. I had version 22 set as my default and could not figure out how to delete it or switch over to 17. I stopped trying for a month. This was so easy and clear to follow. Thank you!
Damn I end up in same situation ...installed 22 version and my VS code saying 21 is the compatible one. Couldn't figure out how to delete the older version until now. So Thank you for this Video @RaghavPal
@@awesomekj5812 Sure. I've earned my Certified Admin and Platform App Builder cert so now I'm working on the Platform Developer material. I've been on trailhead working through the Platform Developer Beginner material. I'm learning more about installing and updating the org with Lightning Web Components is fun. I'm also learning about writing Apex which is challenging and pretty dull material so far. I don't have a coding background so it's taking me a little longer to grasp some of the concepts there but it's coming. How about you?
I will suggest anyone who is working on any technology which has perquisite of Java and if you have dependency in switching Java version for different codebase to build .. just follow this video excellent
Hi Raghav, Thank you for creating all these amazing videos, your content is amazing and is helping me learn test automation. I am learning Python and Selenium using Python by following your playlists. I do have the following two questions for you: 1 - Will you be making some more videos on Selenium using Python, like advanced frameworks or advanced reporting? 2 - Is the following certification worth pursuing, PCAT - Certified Associate Tester with Python? If, Yes can you please recommend a good course for it? Regards Svens
Sandeep Let's troubleshoot this issue step by step. Step 1: Check if the Terminal app is functioning correctly Open a new Terminal window on your Mac. You can do this by searching for "Terminal" in Spotlight, or by navigating to Applications > Utilities > Terminal. Step 2: Verify that the shell is set to bash In the Terminal window, type `echo $SHELL` and press Enter. This should output `/bin/bash`. If it doesn't, please let me know what it outputs. Step 3: Check if the commands are installed The `vi`, `nano`, and `ls` commands are part of the basic Unix toolkit and should be installed by default on a Mac. However, let's verify this. Type `which vi` and press Enter. If `vi` is installed, it should output the path to the `vi` executable, such as `/usr/bin/vi`. If it outputs "vi not found", then `vi` might not be installed. Repeat the same step for `nano` and `ls`. Step 4: Check the PATH environment variable The `PATH` environment variable tells the shell where to look for executable files. Type `echo $PATH` and press Enter. This should output a list of directories separated by colons. Look for the following directories in the output: * `/bin` * `/usr/bin` * `/usr/local/bin` If any of these directories are missing, it might cause issues with finding the commands. Step 5: Try running the commands with an absolute path Let's try running the commands with an absolute path to see if they're installed but not in the `PATH`. Type `/usr/bin/vi` and press Enter. If `vi` is installed, this should launch the `vi` editor. Repeat the same step for `nano` and `ls`. Step 6: Check for any issues with the shell configuration files Sometimes, issues with the shell configuration files can cause problems with command execution. Let's check the shell configuration files for any issues. Type `cat ~/.bashrc` and press Enter. This will output the contents of the `~/.bashrc` file. Look for any lines that might be causing issues with the `PATH` variable or command execution. --
Fabulous and helpful video! But, I still had a confusion on how to decide if I should install ARM64 dmg or X64 dmg? Please clarify if you could, I would be obliged! Thank you!
Aakash If you have a Mac with an Apple Silicon processor (M1, M2, or M3), you should choose the ARM64 dmg. This is because Apple Silicon processors use the ARM architecture, which is different from the x86-64 architecture used by Intel processors On the other hand, if you have a Mac with an Intel processor, you should choose the X64 dmg. This is because Intel processors use the x86-64 architecture, which is compatible with the x64 dmg Here's a simple way to check your Mac's processor architecture: Click the Apple logo in the top left corner of the screen Select About This Mac Click the System Report button In the System Report window, scroll down and select Hardware on the left Look for Processor Name on the right. If it says "Apple M1" or "Apple M2", you have an ARM-based processor. If it says "Intel Core i5" or "Intel Core i7", you have an Intel processor -
Thansk for great explanation. I have a question Should I remove export JAVA_HOME=$(/usr/libexec/java_home) from my zshrc? It was already there and java -version was pointing 21 but I needed 17 and I put path for 17 at the end of zshrc file
Necmettin Here's my take on it Understanding the Line: - Purpose: This line dynamically sets the `JAVA_HOME` environment variable to the path of the default Java version on your system, as determined by the `/usr/libexec/java_home` command. Your Situation: - Desired Java 17: You need Java 17 for your project. - Manual Path Set: You've already set the `JAVA_HOME` path to Java 17 at the end of your zshrc file. Recommendations: - Remove the Dynamic Line: Since you've manually specified the path to Java 17, keeping the dynamic line might lead to conflicts or unexpected behavior. It's generally recommended to remove it to ensure clarity and consistency in your environment. Steps: 1. Open zshrc: Use a text editor to open your zshrc file. It's typically located in your home directory: `~/.zshrc`. 2. Comment or Remove: - Comment: Add a `#` at the beginning of the line to temporarily disable it without removing it: ```bash # export JAVA_HOME=$(/usr/libexec/java_home) ``` - Remove: Delete the line entirely to permanently remove it. 3. Source zshrc: Apply the changes to your current shell session: ```bash source ~/.zshrc ``` Verification: - Check Java Version: Confirm that `java -version` now points to Java 17: ```bash java -version ``` Additional Considerations: - Multiple Java Versions: If you need to switch between Java versions frequently, consider using tools like `jenv` or `sdkman` to manage multiple installations seamlessly. - Project-Specific Requirements: If you're working with projects that require specific Java versions, using version managers or setting `JAVA_HOME` within those project environments can help isolate dependencies. By following these steps and considering the additional points, you can effectively manage your Java environment and ensure the correct version is used for your projects.
Hello Raghav, I'm really sorry as I was not sure where to ask this question but as needed so posted here, is there any plan in near future that you start tutorials on 'Selenium automation using C#' please? The reason being our company uses C# for automation and it would be great help if you make tutorials on this course please. Thanks again a lot once again for providing such a valuable knowledge to us.
If you're trying to display the value of the `JAVA_HOME` environment variable in your terminal, but nothing is showing up, there are a few steps you can take to troubleshoot this. Let's go through them: 1. Check if JAVA_HOME is Set: - First, confirm whether you have set the `JAVA_HOME` environment variable at all. - Open your terminal and type the following command: ``` echo $JAVA_HOME ``` - If it returns `%JAVA_HOME%` (or nothing), it means the variable is not set. 2. Windows Command Prompt (cmd.exe): - If you're using Windows Command Prompt, try this: ``` echo %JAVA_HOME% ``` - It should display the correct path to your Java installation (e.g., `C:\Program Files\Java\jdk1.7.0_80`). 3. Git Bash (within Windows): - If you're using Git Bash within Windows, use the following command: ``` echo $JAVA_HOME ``` - Again, it should show the correct path. 4. Windows PowerShell: - In Windows PowerShell, you can use either of these commands: ``` Get-ChildItem Env:JAVA_HOME ``` or ``` echo $env:JAVA_HOME ``` - Both should display the correct Java home directory. 5. Linux and macOS: - On Linux or macOS, simply use: ``` echo $JAVA_HOME ``` - It should show the correct path. 6. Double-Check the Path: - Make sure the path you've set for `JAVA_HOME` is correct. It should point to the root directory of your Java installation. Remember that environment variables are case-sensitive, so ensure you're using the correct capitalization. If you're still having issues, double-check your Java installation and verify that the `JAVA_HOME` variable is correctly set.
Sir I am from Gilgit Baltistan Sir I want to start selenium automation using java Will you please make a video of its installation with every new version setup and first test case to visit website.. I need a vedio of selenium setup using java.. Please help me
I learned performance testing with loadrunner tool sir and I've 5y career gap dou to govt jobs preparation.now what's the approach to get the job sir ??
Getting a job in performance testing after a 5-year career gap due to government job preparation requires a strategic approach. Here are some steps you can take: 1. Highlight relevant skills and experience: * Focus on transferable skills: While your experience hasn't been directly in performance testing, highlight relevant skills gained during your govt job preparation, such as analytical thinking, problem-solving, time management, and data analysis. These skills are valuable in performance testing. * Quantify your achievements: Did you lead any projects, analyze data to draw conclusions, or implement efficiency measures? Quantify your achievements using metrics to demonstrate your effectiveness. * Relevancy of LoadRunner: Though LoadRunner may not be the latest tool, emphasize your proficiency in its core concepts like performance metrics, script development, and load generation. This knowledge can be translated to other tools. 2. Upskill and bridge the gap: * Refresh your LoadRunner knowledge: Take online courses or participate in boot camps to refresh your LoadRunner skills and stay updated with the latest features. * Learn new performance testing tools: Research popular tools like JMeter, NeoLoad, k6, and SoapUI. Choose one or two to learn based on industry demand and your career goals. Free online resources and tutorials are available. * Contribute to open-source projects: Participating in open-source performance testing projects can showcase your practical skills and passion for the field. 3. Network and build your brand: * Connect with performance testing professionals: Attend industry events, conferences, and workshops. Join online communities and forums to network with professionals and learn about current trends. * Build your online presence: Create a LinkedIn profile showcasing your skills and experience. Share relevant articles, blogs, and projects to demonstrate your knowledge and passion. * Reach out to recruiters: Contact recruiters specializing in performance testing roles. Express your enthusiasm and willingness to learn, highlighting your transferable skills and desire to bridge the gap. 4. Emphasize your learning agility and dedication: * Be transparent about your career gap: Address your gap upfront and frame it as a period of self-improvement and skill development. Highlight the skills you gained during that time. * Showcase your eagerness to learn: Show your willingness to learn new tools and adapt to industry changes. Your passion for performance testing and learning mindset will be appreciated. 5. Tailor your resume and cover letter: * Customize your resume for each job application: Highlight relevant skills and experience mentioned in the job description. Quantify your achievements and use keywords from the job posting. * Write a compelling cover letter: Explain your career journey and motivation for pursuing performance testing. Connect your skills and experience with the specific requirements of the job. Remember, landing a job after a career gap requires initiative, perseverance, and a willingness to learn. By highlighting your relevant skills, upskilling yourself, and building your network, you can increase your chances of success in performance testing. I hope this helps! Good luck with your job search!
Thank you for the video. When I try %/Library/Java/JavaVirtualMachines I got zsh: permission denied: /Library/Java/JavaVirtualMachines I have all 1.8, 17.0, 22.0 in both versions from Oracle and Homebrew, the path are different for installed from Oracle and Homebrew. I may don't need both versions? I actually try to set up connection with Spark in R-Studio and still have error there. I guess I need 1.8 for the specific SparkR version and I Studio not catching correct PATH. Have headache with it... Any thoughts?
Irina I understand how frustrating it can be when dealing with Java versions and paths. Let's break it down: 1. Multiple Java Versions: - Having both Oracle and Homebrew versions of Java installed can indeed cause conflicts. - First, let's determine which version you need for your specific use case. 2. Spark and Java: - Apache Spark typically requires Java 8 (1.8) or later. - If you're using a specific SparkR version that relies on Java 8, then having Java 8 installed is crucial. 3. Checking Java Versions: - Open your terminal and run: ``` java -version ``` This will show you the default Java version. - To see all installed Java versions, use: ``` /usr/libexec/java_home -V ``` 4. Setting the Correct PATH: - Ensure that the correct Java version is in your `PATH`. - You can set the `JAVA_HOME` environment variable to point to the desired Java version. For example: ``` export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_XXX.jdk/Contents/Home ``` Replace `XXX` with the actual version number. 5. RStudio Configuration: - In RStudio, check if the Java path is correctly configured. - Go to Tools > Global Options > General and verify the Java path under "R version" settings. 6. Testing SparkR: - After adjusting the Java path, try connecting to Spark in RStudio again. - If you encounter any specific errors, feel free to share them, and I'll assist further. Remember, troubleshooting can be challenging, but we'll get through it --
Never mind, I fixed it, all are working now. I upload new R Studio and rJava packages, and miracle happen :) No actually, I add PATH from terminal output %echo $JAVA_HOME to R-Studio to Sys.getenv("JAVA_HOME") and it helped to miracle :)
Thank you so much. I went through the steps, set the JAVA HOME path permanently. However, once I open new terminal and check the version, its still returning JAVA 8. I have been sitting trying to solve this issue for 2 days now. Anyone please help!
Goto Terminal Add path in .bash_profile (old macs) Or .zshrc (new macs) Starting with macOS Monterey (released in 2021), Apple switched the default shell from Bash to Zsh for new user accounts Check what is our default Shell echo $SHELL For e.g. for command echo $SHELL you got response as /bin/zsh that means your default shell is zsh (also called Z shell) and you will add env variables in file .zshrc (Else your default shell will be bash and you will add all env variables in file .bash_profile. And if that is the case just replace .zshrc with .bash_profile in all below commands) Now assuming the default shell is Zsh and we need to add env variables in .zshrc file Open Terminal Run command open .zshrc In case the file does not already exist, create the file touch ~/.zshrc This command creates the .zshrc file in your home directory (~ ) Now to edit .zshrc file we have 2 options On terminal, run command open .zshrc This should open the file in a text editor where you can edit and save it Add the below mentioned env variables and save the file If option 1 does not work, On terminal, run command cat .zshrc This will show the contents of the file on the terminal itself Now use vi editor to edit the file Run command vi .zshrc this will open file in vi editor Press i on keyboard to go into insert mode Now add the env variables as shown below (make sure to update the paths as per your system) export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home export PATH=$PATH:$JAVA_HOME/bin here you can also use $HOME in place of your home directory (e.g. /Users/raghavpal) Also notice, to give path of bin folder instead of mentioning the complete path we can refer from env variable JAVA_HOME that we have already set by using $JAVA_HOME After editing press escape key on the keyboard Now write wq! and hit Enter. This will write and quit To check the paths are set, open a new terminal and run commands cat .zshrc echo $JAVA_HOME echo $PATH Mac OS - To find all versions of JAVA available on the system and set a specific version Run command /usr/libexec/java_home -V This will show the available versions STEP 4 : Goto folder - /Library/Java/JavaVirtualMachines This should have folders of all Java/JDK available on the system STEP 5 : Goto the folder of JAVA you want and get the path of its home folder (which has bin folder) Update the path in JAVA_HOME and PATH env variables To remove Java Remove path for JAVA_HOME from shell file (.zshrc or .bash_profile) Check java -version in new terminal If you still get response Run command env Check if you see JAVA_HOME If yes run unset JAVA_HOME References: How to install Java JDK on Mac OS and set JAVA_HOME variable - ruclips.net/video/mAIxIhVJ7N0/видео.html How to Switch Java Version and set JAVA_HOME on Mac OS with Apple M1 M2 chip - ruclips.net/video/-ecG6B_jNW8/видео.html ..
Dear sir... my java_home points to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home instead of /library/java/javaVirtualMachines? how do I fix that? Thanks A LOT!
To fix your JAVA_HOME on macOS: Open the terminal and edit your shell profile: nano ~/.zshrc # or ~/.bash_profile if using bash Add this line: export JAVA_HOME=$(/usr/libexec/java_home) Save and apply the changes: source ~/.zshrc # or ~/.bash_profile This sets JAVA_HOME to the correct Java installation path -
@@RaghavPal Sorry one more thing. It seem like if you go below java 8 to 7 or 6, there is no home folder. Could you point it to bin or man? My mission is to run an app the require SE6
For Java 6 (SE6), if there is no HOME folder, you can set the JAVA_HOME environment variable to the bin or man directory: Set JAVA_HOME to bin: export JAVA_HOME=/path/to/java6/bin Set JAVA_HOME to man (if needed): export JAVA_HOME=/path/to/java6/man Make sure to use the full path to the Java 6 installation directory After setting JAVA_HOME, try running your app again
Hi Raghav, Im having trouuble in step 3. When I run the command /"usr/libexec/java_home -V" my terminal says this "he operation couldn’t be completed. Unable to locate a Java Runtime." What can I do? Thks for your content, is really useful!
Mario If you're encountering the "Unable to locate a Java Runtime" error on your Mac, there are a few steps you can take to resolve it: 1. Install Java JDK or JRE: - First, ensure that you have Java installed on your system. As of now, you can install Java versions from Java 8 to Java 21 on your Mac². It's recommended to get a stable LTS (Long Term Supported) version of Java. 2. Using Homebrew: - Open your terminal and run the following command to install OpenJDK 11 (you can choose other versions as well): ``` brew install openjdk@11 ``` - To make sure the system can find this JDK, create a symbolic link: ``` sudo ln -sfn $(brew --prefix)/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk ``` 3. Check Java Security Settings: - Go to System Preferences > Java > Security. - Make sure that "Enable launching Java Web Start applications from the browser" is enabled, even when launching them without a browser⁴. 4. Verify Java Installation: - Run the following command to check if Java is correctly set up: ``` java -version ``` - You should see information about the installed Java version. 5. Update Environment Variables: - Ensure that your `PATH` environment variable includes the correct path to the Java installation. - You can add the following line to your shell profile (e.g., `.zshrc` or `.bashrc`): ``` export PATH="/usr/local/opt/openjdk@11/bin:$PATH" ``` 6. Restart Your Terminal: - After making changes, close and reopen your terminal to apply the updates. Remember to replace `openjdk@11` with the desired Java version if you prefer a different one. Once you've completed these steps, try running your command again. It should locate the Java Runtime successfully.
.zshenv:1: command not found: Export Do you know what is this mean? I'm getting with error whenever open the new terminal. Example: Last login: Thu Mar 7 17:34:17 on ttys000 /Users/praveenbhuvaneswaran/.zshenv:1: command not found: Export
The error message `.zshenv:1: command not found: Export` suggests that there is a typo in your `.zshenv` file. The correct command should be `export` (all lowercase), not `Export`. The shell commands are case-sensitive, and having the wrong case can lead to such command not found errors. To fix this, you'll need to edit the `.zshenv` file and correct the command. Here's how you can do it: 1. Open the terminal. 2. Type `nano ~/.zshenv` and press Enter to open the file in the nano text editor. 3. Look for the line that contains `Export` and change it to `export`. 4. Save the changes by pressing `Ctrl + O`, then press Enter. 5. Exit nano by pressing `Ctrl + X`. After making these changes, the error should no longer appear when you open a new terminal window. If you're not comfortable using nano, you can use any other text editor you're familiar with to make this change. Remember to be cautious when editing configuration files like `.zshenv` to avoid further issues. .
thanks sir for reply but here no any new video its 4 or 3 year back sir i need new one dear sirrrrrr kindly help mostly students avoid automation because selenium setup is complex and no any new video on selenium setup
I am an automation tester with knowledge in Selenium (Java), Cucumber, Appium, and API Testing (Postman and RestAssured). How much salary can I expect with 1.5 years of experience in Chennai and Bangalore?"
Naveen With your 1.5 years of experience as an automation tester with the skillset you mentioned (Selenium (Java), Cucumber, Appium, and API Testing (Postman and RestAssured)), you can expect a decent salary in both Chennai and Bangalore. Here's a breakdown: Salary Range: * Chennai: 4.5 Lakhs per annum (₹450,000) to 7 Lakhs per annum (₹700,000) * Bangalore: 5 Lakhs per annum (₹500,000) to 8 Lakhs per annum (₹800,000) Factors Affecting Salary: * Specific skills and experience: The depth of your knowledge in each tech stack and your experience with specific projects can significantly impact your salary. Strong expertise in frameworks like Appium or RestAssured can be particularly advantageous. * Company size and type: MNCs and product-based companies generally offer higher salaries compared to startups or service-based companies. * Negotiation skills: Don't hesitate to negotiate your salary based on your qualifications and market value. Additional Considerations: * Bonus and benefits: Some companies offer attractive bonuses, stock options, and comprehensive health insurance, which can add to your overall compensation package. * Location within the city: Certain areas in Bangalore might offer slightly higher salaries compared to others. Remember: 1.5 years is still early in your career. Focus on continuously improving your skills, gaining experience on diverse projects, and building a strong portfolio. This will put you in a better position to command a higher salary in the future. I hope this information helps.. best wishes
This was very detailed and left no doubts or concerns. Thank you so much for the great tutorial!
I appreciate your kind words. I'm happy it was useful
Before I found your video I was struggling tremendously trying to figure out my java issue. I am learning Salesforce development and I was stuck at step 1 trying to get my VS Code connected and operable with Salesforce DX due to incompatible java versions. I had version 22 set as my default and could not figure out how to delete it or switch over to 17. I stopped trying for a month. This was so easy and clear to follow. Thank you!
So happy to hear this helped Gerald .. humbled
Damn I end up in same situation ...installed 22 version and my VS code saying 21 is the compatible one. Couldn't figure out how to delete the older version until now. So Thank you for this Video @RaghavPal
Hey do you mind sharing what all you learning in SF development ? I am on the same boat . Thanks
@@awesomekj5812 Sure. I've earned my Certified Admin and Platform App Builder cert so now I'm working on the Platform Developer material. I've been on trailhead working through the Platform Developer Beginner material. I'm learning more about installing and updating the org with Lightning Web Components is fun. I'm also learning about writing Apex which is challenging and pretty dull material so far. I don't have a coding background so it's taking me a little longer to grasp some of the concepts there but it's coming.
How about you?
I will suggest anyone who is working on any technology which has perquisite of Java and if you have dependency in switching Java version for different codebase to build .. just follow this video excellent
This is the most detailed video I've ever seen. thanks...
Glad it was helpful Sai
I would say exactaly this! Very didactic.
Really appreciate you also explained the vi/nano command as I'm very new to cmd. Super helpful!
Glad it was helpful Rose
Thanks Raghav. I was struggling lot to set Maven path as new Mac user but your video fill me handy for it. Nicely explained..👌👍
Glad it helped Pradeep
Thanks for sharing with clear steps 🙂
You're welcome Nihal.. Glad it was helpful.
Won a new subscribe from Brazil. Thank you very much.
Most welcome Jhonny
Thank you very much! I was able to set my java version to java 23 when I didnt even have a java runtime present!
Glad I could help Justin
Very useful, really appreciate your hard work and attention to details :)
Glad it was helpful Moreed
Hi Raghav,
Thank you for creating all these amazing videos, your content is amazing and is helping me learn test automation. I am learning Python and Selenium using Python by following your playlists. I do have the following two questions for you:
1 - Will you be making some more videos on Selenium using Python, like advanced frameworks or advanced reporting?
2 - Is the following certification worth pursuing, PCAT - Certified Associate Tester with Python? If, Yes can you please recommend a good course for it?
Regards
Svens
Svens
1. Yes, I will plan more lectures on these topics
2. I am not very sure on this
It's Detailed lecture. Thank you.
You are welcome
I can't thank you enough. You have helped me a ton!
You are so welcome
Thank you, super helpful!
Appreciate the kind words Emily
terima kasih tutorialnya bung, sangat membantu
Sama-sama, bung! Senang bisa membantu
thank you my friend!! very helpful video!!
Glad it was helpful Guillermo
🔥🔥🔥
Thanks for watching
THANK YOU SO MUCH
I AM ABLE TO SUCESSFULL DO THAT BY USING THIS VIDEO
Great to know this Vikram
Thank you, master.
Glad you found it helpful Kyi
Sir, vi , nano, ls commands are nor working in my terminal. It says command not found
Sandeep
Let's troubleshoot this issue step by step.
Step 1: Check if the Terminal app is functioning correctly
Open a new Terminal window on your Mac. You can do this by searching for "Terminal" in Spotlight, or by navigating to Applications > Utilities > Terminal.
Step 2: Verify that the shell is set to bash
In the Terminal window, type `echo $SHELL` and press Enter. This should output `/bin/bash`. If it doesn't, please let me know what it outputs.
Step 3: Check if the commands are installed
The `vi`, `nano`, and `ls` commands are part of the basic Unix toolkit and should be installed by default on a Mac. However, let's verify this.
Type `which vi` and press Enter. If `vi` is installed, it should output the path to the `vi` executable, such as `/usr/bin/vi`. If it outputs "vi not found", then `vi` might not be installed.
Repeat the same step for `nano` and `ls`.
Step 4: Check the PATH environment variable
The `PATH` environment variable tells the shell where to look for executable files. Type `echo $PATH` and press Enter. This should output a list of directories separated by colons.
Look for the following directories in the output:
* `/bin`
* `/usr/bin`
* `/usr/local/bin`
If any of these directories are missing, it might cause issues with finding the commands.
Step 5: Try running the commands with an absolute path
Let's try running the commands with an absolute path to see if they're installed but not in the `PATH`.
Type `/usr/bin/vi` and press Enter. If `vi` is installed, this should launch the `vi` editor.
Repeat the same step for `nano` and `ls`.
Step 6: Check for any issues with the shell configuration files
Sometimes, issues with the shell configuration files can cause problems with command execution. Let's check the shell configuration files for any issues.
Type `cat ~/.bashrc` and press Enter. This will output the contents of the `~/.bashrc` file.
Look for any lines that might be causing issues with the `PATH` variable or command execution.
--
Hello, can you make a tutorial for automation with Appium and Python along with installation with or without Android Studio. Thank You
I will plan
Thank you, best one on youtube.
Glad i could help Sudhindra
Fabulous and helpful video! But, I still had a confusion on how to decide if I should install ARM64 dmg or X64 dmg?
Please clarify if you could, I would be obliged! Thank you!
Aakash
If you have a Mac with an Apple Silicon processor (M1, M2, or M3), you should choose the ARM64 dmg. This is because Apple Silicon processors use the ARM architecture, which is different from the x86-64 architecture used by Intel processors
On the other hand, if you have a Mac with an Intel processor, you should choose the X64 dmg. This is because Intel processors use the x86-64 architecture, which is compatible with the x64 dmg
Here's a simple way to check your Mac's processor architecture:
Click the Apple logo in the top left corner of the screen
Select About This Mac
Click the System Report button
In the System Report window, scroll down and select Hardware on the left
Look for Processor Name on the right. If it says "Apple M1" or "Apple M2", you have an ARM-based processor. If it says "Intel Core i5" or "Intel Core i7", you have an Intel processor
-
Thansk for great explanation. I have a question
Should I remove export JAVA_HOME=$(/usr/libexec/java_home) from my zshrc?
It was already there and java -version was pointing 21 but I needed 17 and I put path for 17 at the end of zshrc file
Necmettin
Here's my take on it
Understanding the Line:
- Purpose: This line dynamically sets the `JAVA_HOME` environment variable to the path of the default Java version on your system, as determined by the `/usr/libexec/java_home` command.
Your Situation:
- Desired Java 17: You need Java 17 for your project.
- Manual Path Set: You've already set the `JAVA_HOME` path to Java 17 at the end of your zshrc file.
Recommendations:
- Remove the Dynamic Line: Since you've manually specified the path to Java 17, keeping the dynamic line might lead to conflicts or unexpected behavior. It's generally recommended to remove it to ensure clarity and consistency in your environment.
Steps:
1. Open zshrc: Use a text editor to open your zshrc file. It's typically located in your home directory: `~/.zshrc`.
2. Comment or Remove:
- Comment: Add a `#` at the beginning of the line to temporarily disable it without removing it:
```bash
# export JAVA_HOME=$(/usr/libexec/java_home)
```
- Remove: Delete the line entirely to permanently remove it.
3. Source zshrc: Apply the changes to your current shell session:
```bash
source ~/.zshrc
```
Verification:
- Check Java Version: Confirm that `java -version` now points to Java 17:
```bash
java -version
```
Additional Considerations:
- Multiple Java Versions: If you need to switch between Java versions frequently, consider using tools like `jenv` or `sdkman` to manage multiple installations seamlessly.
- Project-Specific Requirements: If you're working with projects that require specific Java versions, using version managers or setting `JAVA_HOME` within those project environments can help isolate dependencies.
By following these steps and considering the additional points, you can effectively manage your Java environment and ensure the correct version is used for your projects.
Hello Raghav, I'm really sorry as I was not sure where to ask this question but as needed so posted here, is there any plan in near future that you start tutorials on 'Selenium automation using C#' please?
The reason being our company uses C# for automation and it would be great help if you make tutorials on this course please.
Thanks again a lot once again for providing such a valuable knowledge to us.
Ashish
yes, actually i have been planning that for long, but somehow it's getting delayed everytime. I will try to start on it as early as I can
@@RaghavPal ❤ thanks a lot! for considering my request.
Hello, when I Entering Echo $JAVA _HOME Nothing Show in the Terminal.
If you're trying to display the value of the `JAVA_HOME` environment variable in your terminal, but nothing is showing up, there are a few steps you can take to troubleshoot this. Let's go through them:
1. Check if JAVA_HOME is Set:
- First, confirm whether you have set the `JAVA_HOME` environment variable at all.
- Open your terminal and type the following command:
```
echo $JAVA_HOME
```
- If it returns `%JAVA_HOME%` (or nothing), it means the variable is not set.
2. Windows Command Prompt (cmd.exe):
- If you're using Windows Command Prompt, try this:
```
echo %JAVA_HOME%
```
- It should display the correct path to your Java installation (e.g., `C:\Program Files\Java\jdk1.7.0_80`).
3. Git Bash (within Windows):
- If you're using Git Bash within Windows, use the following command:
```
echo $JAVA_HOME
```
- Again, it should show the correct path.
4. Windows PowerShell:
- In Windows PowerShell, you can use either of these commands:
```
Get-ChildItem Env:JAVA_HOME
```
or
```
echo $env:JAVA_HOME
```
- Both should display the correct Java home directory.
5. Linux and macOS:
- On Linux or macOS, simply use:
```
echo $JAVA_HOME
```
- It should show the correct path.
6. Double-Check the Path:
- Make sure the path you've set for `JAVA_HOME` is correct. It should point to the root directory of your Java installation.
Remember that environment variables are case-sensitive, so ensure you're using the correct capitalization. If you're still having issues, double-check your Java installation and verify that the `JAVA_HOME` variable is correctly set.
Sir I am from Gilgit Baltistan
Sir I want to start selenium automation using java
Will you please make a video of its installation with every new version setup and first test case to visit website..
I need a vedio of selenium setup using java..
Please help me
Can find these videos here - automationstepbystep.com/
I struggles to set the JAVA home path in my macbook for 3 hours. Ton of thanks to Raghav
So happy it helped Manish
I learned performance testing with loadrunner tool sir and I've 5y career gap dou to govt jobs preparation.now what's the approach to get the job sir ??
Getting a job in performance testing after a 5-year career gap due to government job preparation requires a strategic approach. Here are some steps you can take:
1. Highlight relevant skills and experience:
* Focus on transferable skills: While your experience hasn't been directly in performance testing, highlight relevant skills gained during your govt job preparation, such as analytical thinking, problem-solving, time management, and data analysis. These skills are valuable in performance testing.
* Quantify your achievements: Did you lead any projects, analyze data to draw conclusions, or implement efficiency measures? Quantify your achievements using metrics to demonstrate your effectiveness.
* Relevancy of LoadRunner: Though LoadRunner may not be the latest tool, emphasize your proficiency in its core concepts like performance metrics, script development, and load generation. This knowledge can be translated to other tools.
2. Upskill and bridge the gap:
* Refresh your LoadRunner knowledge: Take online courses or participate in boot camps to refresh your LoadRunner skills and stay updated with the latest features.
* Learn new performance testing tools: Research popular tools like JMeter, NeoLoad, k6, and SoapUI. Choose one or two to learn based on industry demand and your career goals. Free online resources and tutorials are available.
* Contribute to open-source projects: Participating in open-source performance testing projects can showcase your practical skills and passion for the field.
3. Network and build your brand:
* Connect with performance testing professionals: Attend industry events, conferences, and workshops. Join online communities and forums to network with professionals and learn about current trends.
* Build your online presence: Create a LinkedIn profile showcasing your skills and experience. Share relevant articles, blogs, and projects to demonstrate your knowledge and passion.
* Reach out to recruiters: Contact recruiters specializing in performance testing roles. Express your enthusiasm and willingness to learn, highlighting your transferable skills and desire to bridge the gap.
4. Emphasize your learning agility and dedication:
* Be transparent about your career gap: Address your gap upfront and frame it as a period of self-improvement and skill development. Highlight the skills you gained during that time.
* Showcase your eagerness to learn: Show your willingness to learn new tools and adapt to industry changes. Your passion for performance testing and learning mindset will be appreciated.
5. Tailor your resume and cover letter:
* Customize your resume for each job application: Highlight relevant skills and experience mentioned in the job description. Quantify your achievements and use keywords from the job posting.
* Write a compelling cover letter: Explain your career journey and motivation for pursuing performance testing. Connect your skills and experience with the specific requirements of the job.
Remember, landing a job after a career gap requires initiative, perseverance, and a willingness to learn. By highlighting your relevant skills, upskilling yourself, and building your network, you can increase your chances of success in performance testing.
I hope this helps! Good luck with your job search!
@@RaghavPal ok tq sir
Thank you for the video. When I try %/Library/Java/JavaVirtualMachines I got zsh: permission denied: /Library/Java/JavaVirtualMachines
I have all 1.8, 17.0, 22.0 in both versions from Oracle and Homebrew, the path are different for installed from Oracle and Homebrew. I may don't need both versions? I actually try to set up connection with Spark in R-Studio and still have error there. I guess I need 1.8 for the specific SparkR version and I Studio not catching correct PATH. Have headache with it... Any thoughts?
Irina
I understand how frustrating it can be when dealing with Java versions and paths. Let's break it down:
1. Multiple Java Versions:
- Having both Oracle and Homebrew versions of Java installed can indeed cause conflicts.
- First, let's determine which version you need for your specific use case.
2. Spark and Java:
- Apache Spark typically requires Java 8 (1.8) or later.
- If you're using a specific SparkR version that relies on Java 8, then having Java 8 installed is crucial.
3. Checking Java Versions:
- Open your terminal and run:
```
java -version
```
This will show you the default Java version.
- To see all installed Java versions, use:
```
/usr/libexec/java_home -V
```
4. Setting the Correct PATH:
- Ensure that the correct Java version is in your `PATH`.
- You can set the `JAVA_HOME` environment variable to point to the desired Java version. For example:
```
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_XXX.jdk/Contents/Home
```
Replace `XXX` with the actual version number.
5. RStudio Configuration:
- In RStudio, check if the Java path is correctly configured.
- Go to Tools > Global Options > General and verify the Java path under "R version" settings.
6. Testing SparkR:
- After adjusting the Java path, try connecting to Spark in RStudio again.
- If you encounter any specific errors, feel free to share them, and I'll assist further.
Remember, troubleshooting can be challenging, but we'll get through it
--
Never mind, I fixed it, all are working now. I upload new R Studio and rJava packages, and miracle happen :)
No actually, I add PATH from terminal output %echo $JAVA_HOME to R-Studio to Sys.getenv("JAVA_HOME") and it helped to miracle :)
Thank you so much. I went through the steps, set the JAVA HOME path permanently. However, once I open new terminal and check the version, its still returning JAVA 8. I have been sitting trying to solve this issue for 2 days now. Anyone please help!
Goto Terminal
Add path in .bash_profile (old macs)
Or .zshrc (new macs)
Starting with macOS Monterey (released in 2021), Apple switched the default shell from Bash to Zsh for new user accounts
Check what is our default Shell echo $SHELL
For e.g. for command echo $SHELL you got response as /bin/zsh
that means your default shell is zsh (also called Z shell) and you will add env variables in file .zshrc
(Else your default shell will be bash and you will add all env variables in file .bash_profile. And if that is the case just replace .zshrc with .bash_profile in all below commands)
Now assuming the default shell is Zsh and we need to add env variables in .zshrc file
Open Terminal
Run command open .zshrc
In case the file does not already exist, create the file touch ~/.zshrc
This command creates the .zshrc file in your home directory (~ )
Now to edit .zshrc file we have 2 options
On terminal, run command open .zshrc
This should open the file in a text editor where you can edit and save it
Add the below mentioned env variables and save the file
If option 1 does not work, On terminal, run command cat .zshrc
This will show the contents of the file on the terminal itself
Now use vi editor to edit the file
Run command vi .zshrc this will open file in vi editor
Press i on keyboard to go into insert mode
Now add the env variables as shown below (make sure to update the paths as per your system)
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
here you can also use $HOME in place of your home directory (e.g. /Users/raghavpal)
Also notice, to give path of bin folder instead of mentioning the complete path we can refer from env variable
JAVA_HOME that we have already set by using $JAVA_HOME
After editing press escape key on the keyboard
Now write wq! and hit Enter. This will write and quit
To check the paths are set, open a new terminal and run commands
cat .zshrc
echo $JAVA_HOME
echo $PATH
Mac OS - To find all versions of JAVA available on the system and set a specific version
Run command /usr/libexec/java_home -V This will show the available versions
STEP 4 : Goto folder - /Library/Java/JavaVirtualMachines This should have folders of all Java/JDK available on the system
STEP 5 : Goto the folder of JAVA you want and get the path of its home folder (which has bin folder)
Update the path in JAVA_HOME and PATH env variables
To remove Java
Remove path for JAVA_HOME from shell file (.zshrc or .bash_profile)
Check java -version in new terminal
If you still get response
Run command
env
Check if you see JAVA_HOME
If yes run
unset JAVA_HOME
References:
How to install Java JDK on Mac OS and set JAVA_HOME variable - ruclips.net/video/mAIxIhVJ7N0/видео.html
How to Switch Java Version and set JAVA_HOME on Mac OS with Apple M1 M2 chip - ruclips.net/video/-ecG6B_jNW8/видео.html
..
Thank you mate
You're welcome
Dear sir... my java_home points to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home instead of /library/java/javaVirtualMachines? how do I fix that? Thanks A LOT!
To fix your JAVA_HOME on macOS:
Open the terminal and edit your shell profile:
nano ~/.zshrc # or ~/.bash_profile if using bash
Add this line:
export JAVA_HOME=$(/usr/libexec/java_home)
Save and apply the changes:
source ~/.zshrc # or ~/.bash_profile
This sets JAVA_HOME to the correct Java installation path
-
@@RaghavPal AWESOME!
@@RaghavPal Sorry one more thing. It seem like if you go below java 8 to 7 or 6, there is no home folder. Could you point it to bin or man? My mission is to run an app the require SE6
For Java 6 (SE6), if there is no HOME folder, you can set the JAVA_HOME environment variable to the bin or man directory:
Set JAVA_HOME to bin:
export JAVA_HOME=/path/to/java6/bin
Set JAVA_HOME to man (if needed):
export JAVA_HOME=/path/to/java6/man
Make sure to use the full path to the Java 6 installation directory
After setting JAVA_HOME, try running your app again
@ Jesus your a sport! Thanks a million
Hi Raghav,
Im having trouuble in step 3. When I run the command /"usr/libexec/java_home -V" my terminal says this "he operation couldn’t be completed. Unable to locate a Java Runtime." What can I do?
Thks for your content, is really useful!
Mario
If you're encountering the "Unable to locate a Java Runtime" error on your Mac, there are a few steps you can take to resolve it:
1. Install Java JDK or JRE:
- First, ensure that you have Java installed on your system. As of now, you can install Java versions from Java 8 to Java 21 on your Mac². It's recommended to get a stable LTS (Long Term Supported) version of Java.
2. Using Homebrew:
- Open your terminal and run the following command to install OpenJDK 11 (you can choose other versions as well):
```
brew install openjdk@11
```
- To make sure the system can find this JDK, create a symbolic link:
```
sudo ln -sfn $(brew --prefix)/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
```
3. Check Java Security Settings:
- Go to System Preferences > Java > Security.
- Make sure that "Enable launching Java Web Start applications from the browser" is enabled, even when launching them without a browser⁴.
4. Verify Java Installation:
- Run the following command to check if Java is correctly set up:
```
java -version
```
- You should see information about the installed Java version.
5. Update Environment Variables:
- Ensure that your `PATH` environment variable includes the correct path to the Java installation.
- You can add the following line to your shell profile (e.g., `.zshrc` or `.bashrc`):
```
export PATH="/usr/local/opt/openjdk@11/bin:$PATH"
```
6. Restart Your Terminal:
- After making changes, close and reopen your terminal to apply the updates.
Remember to replace `openjdk@11` with the desired Java version if you prefer a different one. Once you've completed these steps, try running your command again. It should locate the Java Runtime successfully.
.zshenv:1: command not found: Export
Do you know what is this mean?
I'm getting with error whenever open the new terminal.
Example: Last login: Thu Mar 7 17:34:17 on ttys000
/Users/praveenbhuvaneswaran/.zshenv:1: command not found: Export
The error message `.zshenv:1: command not found: Export` suggests that there is a typo in your `.zshenv` file. The correct command should be `export` (all lowercase), not `Export`. The shell commands are case-sensitive, and having the wrong case can lead to such command not found errors.
To fix this, you'll need to edit the `.zshenv` file and correct the command. Here's how you can do it:
1. Open the terminal.
2. Type `nano ~/.zshenv` and press Enter to open the file in the nano text editor.
3. Look for the line that contains `Export` and change it to `export`.
4. Save the changes by pressing `Ctrl + O`, then press Enter.
5. Exit nano by pressing `Ctrl + X`.
After making these changes, the error should no longer appear when you open a new terminal window. If you're not comfortable using nano, you can use any other text editor you're familiar with to make this change. Remember to be cautious when editing configuration files like `.zshenv` to avoid further issues.
.
Thank you, sir @RaghavPal. The error is gone now. Once again, thank you for your valuable comments. I subscribed to you.👍
thanks sir for reply but here no any new video its 4 or 3 year back sir
i need new one dear sirrrrrr
kindly help mostly students avoid automation because selenium setup is complex and no any new video on selenium setup
As soon as possible
thank you
You're welcome
Thanks bro
Most welcome Deshan
Export java home path just copy pest in editer that are not found path taket it problem
it will help if you can clarify this with more details
I am an automation tester with knowledge in Selenium (Java), Cucumber, Appium, and API Testing (Postman and RestAssured). How much salary can I expect with 1.5 years of experience in Chennai and Bangalore?"
Naveen
With your 1.5 years of experience as an automation tester with the skillset you mentioned (Selenium (Java), Cucumber, Appium, and API Testing (Postman and RestAssured)), you can expect a decent salary in both Chennai and Bangalore. Here's a breakdown:
Salary Range:
* Chennai: 4.5 Lakhs per annum (₹450,000) to 7 Lakhs per annum (₹700,000)
* Bangalore: 5 Lakhs per annum (₹500,000) to 8 Lakhs per annum (₹800,000)
Factors Affecting Salary:
* Specific skills and experience: The depth of your knowledge in each tech stack and your experience with specific projects can significantly impact your salary. Strong expertise in frameworks like Appium or RestAssured can be particularly advantageous.
* Company size and type: MNCs and product-based companies generally offer higher salaries compared to startups or service-based companies.
* Negotiation skills: Don't hesitate to negotiate your salary based on your qualifications and market value.
Additional Considerations:
* Bonus and benefits: Some companies offer attractive bonuses, stock options, and comprehensive health insurance, which can add to your overall compensation package.
* Location within the city: Certain areas in Bangalore might offer slightly higher salaries compared to others.
Remember: 1.5 years is still early in your career. Focus on continuously improving your skills, gaining experience on diverse projects, and building a strong portfolio. This will put you in a better position to command a higher salary in the future.
I hope this information helps.. best wishes
@@RaghavPal Thank you so much for this information and your tutorial videos, sir.
thank you
You're welcome