Spring Tool Suite(STS) desktop entry for ubuntu - ide

How to create desktop entry for Spring Tool Suite in Ubuntu?.Want to open the IDE from desktop.

Open terminal
Type gedit and press enter
Paste the below code in gedit
[Desktop Entry]
Type=Application
Name=sts
Comment=Spring Tool Suite
Icon=/home/user/sts-bundle/sts-3.8.2.RELEASE/icon.xpm
Exec=/home/user/sts-bundle/sts-3.8.2.RELEASE/STS
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=STS
Change the path in above code to your path
Save the file with .desktop extension
Right click the file >properties>permissions
Tick Allow executing file as program

For Spring Tool Suite 4 you can use the following. StartupWMClass is important if you want the new window to open on the same dock icon (if you don't set StartupWMClass, it will add a new icon at the end of the dock for the new open window).
[Desktop Entry]
Name=Spring Tool Suite 4
Comment=Spring Tool Suite 4
Exec=/sts_folder_path/SpringToolSuite4
Icon=/sts_folder_path/icon.xpm
Terminal=false
Type=Application
Categories=Development;IDE;Java;
StartupWMClass=Spring Tool Suite 4
Tested using Ubuntu 19.10.

On debian 9 you have to place the .desktop file at /usr/share/applications directory and run sudo update-desktop-database.
You can refer to stack exchange

This worked for me on Ubuntu 20.04 LTS, the important bit is the StartupVMClass=SpringToolSuite4 had to match the executable in the line Exec=/home/johan/bin/sts-4.13.1.RELEASE/SpringToolSuite4 %u:
[Desktop Entry]
Version=1.1
Name=Spring Tool Suite 4
Comment=Spring Tool Sutie 4.13.1
Exec=/home/johan/bin/sts-4.13.1.RELEASE/SpringToolSuite4 %u
Type=Application
MimeType=x-scheme-handler/eclipse+command;x-scheme-handler/eclipse+mpc;
Icon=/home/johan/bin/sts-4.13.1.RELEASE/icon.xpm
Terminal=false
Categories=Utility;Development;IDE;
StartupWMClass=SpringToolSuite4
Otherwise another icon opened up.

Open terminal
Type gedit and press enter
Paste the below code in gedit
[Desktop Entry]
Type=Application
Name=STS
Comment=Spring Tool Suite
Icon=/opt/sts-4.8.1.RELEASE/icon.xpm
Exec="/opt/sts-4.8.1.RELEASE/SpringToolSuite4"
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=STS
Change the path in above code to your path
Save the file with .desktop extension
Right click the file >properties>permissions
Tick Allow executing file as program

[Desktop Entry]
Type=Application
Name=Spring Tool Suite 4
Comment=Spring Tool Suite 4
Icon=/your_folder/sts-4.11.1/icon.xpm
Exec=/your_folder/sts-4.11.1/SpringToolSuite4
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=Spring Tool Suite 4
Save the file with .desktop extension in your desktop
Right click => Properties => "Allow Executing as a program"
Right click => "Allow launching". <= The Solution

STPE 1: cd Desktop
STEP 2: touch STS.desktop
STEP 3:
[Desktop Entry]
Type=Application
Name=STS
Comment=Spring Tool Suite
Icon=Location/sts-4.12.0.RELEASE/icon.xpm
Exec="Location/sts-4.12.0.RELEASE/SpringToolSuite4"
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=STS
STEP 3: chmod u+x STS.desktop

Related

How to setup Botium Box

As per the details available at below link: https://medium.com/#floriantreml/botium-in-a-nutshell-part-3-automating-chatbot-tests-6c4e9e85121e
"Botium Box includes management of your chatbot capabilities, so you won’t have to write those botium.json files by hand. Instead the configuration is done within an easy 3-step-wizard"
Can someone let me know how to download and setup Botium Box on local machine ? Is there any user guide/handbook available? Please suggest.
Thanks,
Ravi
•Install docker desktop version .It'll be installed with docker compose
•Create your own new folder
•Open command prompt and navigate to the newly created folder
• Eg:cd mynewfolder
• Type the below command in command prompt
curl --output docker-compose-all.yml https://raw.githubusercontent.com/codeforequity-at/botium-box-basic-dist/master/docker-compose-all.yml
Result - all packages will be installed.It'll take some time wait till installation is complete
• restart the docker.for info see docker in windows in link below
docker compose installation
https://docs.docker.com/compose/install/
main windows insallation steps
https://docs.docker.com/docker-for-windows/install/
•Now enter the below command in cmd
up the local server .Everytime run this the main botium folder through cmd
run this to up the url-> docker-compose -f docker-compose-all.yml up
note -of you face any issues just restart the docker and then try the above command again
• paste the below url in browser
• Botium box will open in your browser
• Open the browser and enter the URL:http://127.0.0.1:4000
• Login to Botium Box
Default username: "admin"
Default password: "nooneknows"
• The above step will install botium box community edition which is the fastest way to launch Botium Box and all required components

In Oracle Sql in ubuntu How Can I open editor to write PL/SQL?

Unlike windows writing the command
ED "name.sql"
editor is not opened here.
Like in windows writing the command ED "name.sql", notepad opens.
How can I do it in Ubuntu?I have installed SQL* plus in ubuntu.
you would have a vim/vi editor in ubuntu. Enter the below line in your SQL* plus session.
define _editor='vim'
Now, when you do
ED name.sql
It will launch the vim editor.
To save the editor settings permanently, edit the file $ORACLE_HOME/sqlplus/admin/glogin.sql and add the line
define _editor='vim'

How to download Appium Desktop in Ubuntu 16

I am trying to download Appium Desktop in Ubuntu 16 (I've just been using the terminal to run it so far).
I understand that for Ubuntu, I must download the source code release they have on git (Source Code tar.gz), as apposed to their .exe (windows) or .dmg (mac) releases. After downloading it and un-tarring it, I do not know how to "install" it. I tried reading the README.md, but cannot find the instruction.
How to do this?
Many thanks in advance
1.2.0-beta.2 offers an AppImage for Linux - https://github.com/appium/appium-desktop/releases/
Download it, run chmod a+x on it, and then ./AppImage to execute it.
Offical url: https://github.com/appium/appium-desktop/releases
If you have no idea which file to download, there's a file contains "linux" and end with format "yml", the file name is contained in it.
The file should be an AppImage file as above mentioned, you should change the permission by checking box of "Allow executing file as program" of its "Properties".
And then run "./appiumimagename" in terminal to launch Appium Desktop or install it.
download file named'Appium-linux-1.18.2.AppImage'.
change file permission to "Allow executing file as program" in file properties.
Right click and click on RUN.

How to Open Lua scripts in NetBeans IDE 8.0.2 From a Terminal : Using a ubuntu 14.0.4

I want to open lua script file in Netbeans IDE 8.0.2 from terminal using ubuntu 14.0.4
I have follow this commends:
open /Applications/NetBeans/NetBeans\ 7.0\ M2.app/ && /Applications/NetBeans/NetBeans\ 7.0\ M2.app/Contents/MacOS/netbeans --open dummy.r
If you install Netbeans via software center, you should find a shell script in /usr/bin/.
You can call the program with the following command:
netbeans
If that does not work, you have to add the path for Netbeans. Otherwise, you just need to pass the file name:
netbeans /pathtofile/file.lua

How do I install uncrustify?

How do I install uncrustify? I followed the instruction to install uncrustify but when I run it, it does not work. Can anyone give me some help installing this tool? I want to run it on objective-c code in xcode 4. Thanks in adavance
On OS X Mavericks 10.9.1 :
1- to install brew, open a terminal windows and type :
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
It will ask you to download some other files, answer OK for all (for more information see : http://brew.sh/index_fr.html).
2 - to install uncrusify, open a terminal windows an type :
brew install uncrustify
3 - to make your code beautiful, download BBUncrustifyPlugin-Xcode available at https://github.com/benoitsan/BBUncrustifyPlugin-Xcode
You will just have to :
compile the project
copy the file uncrusify.cfg in your home directory
restart Xcode.
NB : With BBUncrustifyPlugin, you don't need to use Automator.
4 - After restarting Xcode, use the menu Edit > Uncrustify Selected Files to uncrustify the selected items in the project navigator.
Your code is now beautiful! That's magic!
post-scriptum : You can easily change your uncrusify configuration file by using :
https://github.com/ryanmaxwell/UncrustifyX
http://universalindent.sourceforge.net (better in my case)
I hope that this will help!
I setup Uncrustify with Xcode 4 like so: http://blog.carbonfive.com/2011/03/10/code-formatting-in-xcode-4/
Can you explain what you tried to do, what you expected to happen, and how it didn't work?
Download zip
On Windows, download the latest version of Uncrustify here: https://sourceforge.net/projects/uncrustify/files/latest/download
Extract zip
The program is a standalone exe, so just extract the downloaded uncrustify-...-win32.zip file anywhere. For this example, I'll use C:\Uncrustify. So, the uncrustify.exe would be in that directory.
Add directory to PATH System Environment Variable
In Windows 7+: Type Winkey + env - Select "Edit the system environment variables"
On the Advanced tab, click the Environment Variables button at the bottom.
In the System variables section at the bottom, click the Path variable, then click the Edit... button.
Click the New button, and type C:\Uncrustify, or the directory that you extracted uncrustify.exe to.
Important: Click OK to close the dialog boxes or your change will not save.
Verify
In a CMD window, typing where uncrustify should return the path to the uncrustify.exe.
In my case it shows C:\Uncrustify\uncrustify.exe
Close Atom and reopen it. Now you should be able to atom-beautify and it will use Uncrustify to format your selection