<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Windows &#8211; Pauls Blog</title>
	<atom:link href="https://sterl.org/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://sterl.org</link>
	<description></description>
	<lastBuildDate>Fri, 15 Aug 2025 11:56:54 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Run Eclipse/STS on Windows WSL</title>
		<link>https://sterl.org/2024/09/run-eclipse-sts-on-windows-wsl/</link>
					<comments>https://sterl.org/2024/09/run-eclipse-sts-on-windows-wsl/#respond</comments>
		
		<dc:creator><![CDATA[Paul Sterl]]></dc:creator>
		<pubDate>Thu, 26 Sep 2024 08:01:01 +0000</pubDate>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[App Defender]]></category>
		<category><![CDATA[AppLocker]]></category>
		<category><![CDATA[ASR Block]]></category>
		<category><![CDATA[ASR Block Exception]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Spring STS]]></category>
		<category><![CDATA[VcXsrv]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WSL]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[Xlaunch]]></category>
		<guid isPermaLink="false">https://sterl.org/?p=1052</guid>

					<description><![CDATA[Problem In some companies, App Defender/AppLocker makes the entire Windows OS practically unusable. EXEs are blocked, and the virus scan slows any build to a crawl. Nevertheless, we still need to work, and WSL is often the only feasible solution. But how can we start, for example, Eclipse or any other application in WSL that&#8230;]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Problem</h2>



<p>In some companies, App Defender/AppLocker makes the entire Windows OS practically unusable. EXEs are blocked, and the virus scan slows any build to a crawl. Nevertheless, we still need to work, and WSL is often the only feasible solution. But how can we start, for example, Eclipse or any other application in WSL that requires a screen?</p>



<h2 class="wp-block-heading">Solution</h2>



<p>We might wither build on x11 (steps 4 and 5) or use the build in <strong>WSLg</strong> which should run out of the box:</p>



<ol class="wp-block-list">
<li>Install eclipse or STS in Linux</li>



<li>Export the DISPLAY env variable export <code>DISPLAY=:0</code></li>



<li>Run <strong>eclipse </strong>or any other application in Linux</li>



<li>(optional) Install x11 in Linux <code>sudo apt install x11-xserver-utils</code></li>



<li>(optional) Install <a href="https://sourceforge.net/projects/vcxsrv/">VcXsrv </a>on windows</li>
</ol>



<h2 class="wp-block-heading">Install eclipse or Spring STS in Linux</h2>



<p>We might either install eclipse with <code>sudo</code> apt install eclipse or as many other of us choose to install a different IDE here an example for spring sts (update the URL as needed to the current version):</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;bash&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">wget https://cdn.spring.io/spring-tools/release/STS4/4.25.0.RELEASE/dist/e4.33/spring-tool-suite-4-4.25.0.RELEASE-e4.33.0-linux.gtk.x86_64.tar.gz
tar -xvf spring-tool-suite-4-4.25.0.RELEASE-e4.33.0-linux.gtk.x86_64.tar.gz
rm -rf spring-tool*
ln -s sts-4.25.0.RELEASE/SpringToolSuite4 sts</pre></div>



<h2 class="wp-block-heading">Export the DISPLAY env variable</h2>



<p>In order to find our windows screen we have to define the DISPLAY destination with the same named environment variable. The simplest way is to extend the .profile that it is automatically exported on each shell start (or .zprofile if zsh is used).</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;.profile&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">export DISPLAY=:0</pre></div>



<h2 class="wp-block-heading">Run <strong>eclipse </strong>or any other application</h2>



<p>Now we can either start eclipse using <code>./eclipse</code> or the spring STS using <code>./sts</code>. </p>



<p>In case of any issues the x11 app might help you e.g. using xeyes:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">sudo apt install x11-apps
xeyes</pre></div>



<h2 class="wp-block-heading">Install x11 in Linux</h2>



<p>x11 tools on Linux are responsible to send the screen information from our Linux system to windows and on the other hand receive mouse and keyboard commands. In ubuntu the tools can be installed by using:</p>



<p><code>sudo apt install x11-xserver-utils</code></p>



<p>This step is not need anymore on a newer WSL as by default windows support UI apps in the WSL using WSLg.</p>



<p>If x11 is used the DISPLAY variable has to be adjusted to point to the Windows Host machine.</p>



<h2 class="wp-block-heading">Install <a href="https://sourceforge.net/projects/vcxsrv/">VcXsrv </a>on windows</h2>



<p>In order to receive the screen information from Linux in Windows and to display the application started in Linux we need an x11 client here too. First we have to install <a href="https://sourceforge.net/projects/vcxsrv/">VcXsrv</a> and start it using <strong>XLaunch</strong> which will prompt us of the settings:</p>



<ol class="wp-block-list">
<li><strong>Multiple windows</strong> in the display settings, which allows us to start more than one app</li>



<li><strong>Start no client which</strong> of course requires us to start the app in Linux manually later on</li>
</ol>



<p>Everything else may stay in the default settings.</p>



<p>This step is not need anymore on a newer WSL as by default windows support UI apps in the WSL using WSLg.</p>



<h2 class="wp-block-heading">Alternatives</h2>



<ul class="wp-block-list">
<li><a href="https://github.com/microsoft/wslg">https://github.com/microsoft/wslg</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://sterl.org/2024/09/run-eclipse-sts-on-windows-wsl/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install minishift</title>
		<link>https://sterl.org/2020/05/install-minishift/</link>
					<comments>https://sterl.org/2020/05/install-minishift/#respond</comments>
		
		<dc:creator><![CDATA[Paul Sterl]]></dc:creator>
		<pubDate>Sat, 02 May 2020 13:33:50 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[minishift]]></category>
		<category><![CDATA[ODK]]></category>
		<category><![CDATA[OpenShift]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://sterl.org/?p=566</guid>

					<description><![CDATA[Install on Windows Startup Guide Note: Windows 10 Pro or higher is required for Hyper-V &#8212; the install was recommended to be on the C: drive. Auto Install Check that your CPU virtualization is enabled Download minishift and extract it into a folder Add your user to the Hyper-V Administrators Open Command-Line as Admin User&#8230;]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Install on Windows</h2>



<p><a rel="noreferrer noopener" href="https://docs.okd.io/latest/minishift/getting-started/index.html" target="_blank">Startup Guide</a></p>



<div class="bs-callout bs-callout-info"><strong>Note:</strong>
Windows 10 Pro or higher is required for Hyper-V &#8212; the install was recommended to be on the C: drive.
</div>



<h3 class="wp-block-heading">Auto Install</h3>



<ol class="wp-block-list"><li>Check that your CPU virtualization is enabled</li><li>Download <a rel="noreferrer noopener" href="https://github.com/minishift/minishift/releases" target="_blank">minishift</a> and extract it into a folder</li><li>Add your user to the <a rel="noreferrer noopener" href="https://docs.okd.io/3.11/minishift/troubleshooting/troubleshooting-driver-plugins.html#insufficient-privileges" target="_blank">Hyper-V Administrators</a></li><li>Open Command-Line as Admin User</li><li>Execute minishift Install</li><li>Reboot</li><li>Configure network</li><li>Start (use optional <code>--cpus</code> and <code>--memory</code>)</li></ol>



<p>The network install doesn&#8217;t always work, see manual install, step 4 and the following, to setup the network in case the following message is encountered <code>[Virtual Switch not found]</code> in step 7.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"> # 5. run install as admin in the folder minishift was extracted
 minishift setup
 # 5. reboot, no admin mode needed anymore
 # 7. configure network
 minishift config set hyperv-virtual-switch minishift-external
 # 8. start minishift
 minishift start</pre></div>



<h3 class="wp-block-heading">Manual install</h3>



<ol class="wp-block-list"><li>Enable Virtualization in the Bios</li><li>Download <a rel="noreferrer noopener" href="https://github.com/minishift/minishift/releases" target="_blank">minishift</a> and extract it into a folder</li><li>Enable <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v" target="_blank">Hyper-V in Windows 10 Pro</a></li><li>Create a <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network" target="_blank">virtual network</a></li><li>Add the <a rel="noreferrer noopener" href="https://docs.okd.io/3.11/minishift/troubleshooting/troubleshooting-driver-plugins.html#insufficient-privileges" target="_blank">Hyper-V Administrators</a> role to your user account</li><li>Update minishift config to use the network</li><li>Start minishift</li></ol>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}"># Requires admin permissions
# 3. enable hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

# 4. create virtual network
Get-NetAdapter
# Select the adapter and provide the name in this line
$net = Get-NetAdapter -Name 'Ethernet 2'
New-VMSwitch -Name &quot;minishift-external&quot; -AllowManagementOS $True -NetAdapterName $net.Name</pre></div>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"># 6. update minishift config and use the network
minishift config set hyperv-virtual-switch &quot;minishift-external&quot;
# 7. start minishift
minishift start</pre></div>



<h2 class="wp-block-heading">Troubleshooting</h2>



<h3 class="wp-block-heading">Checking if Hyper-V driver is installed … FAIL</h3>



<p>This error can occur e.g.:</p>



<ul class="wp-block-list"><li>Hyper-V Service is not running</li><li>Virtualization in the firmware isn&#8217;t enabled</li><li>Hyper-V isn&#8217;t supported</li></ul>



<p>Run the following command to check the virtualization settings:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}"># following command should return true
@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent
# show all CPU settings
gwmi Win32_Processor | fl *</pre></div>



<p>The following settings should be both <code>true</code>. Most likely the first one which means the Bios settings aren&#8217;t set to enabled &#8211; (SVM Mode for Ryzen CPUs).</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}">VirtualizationFirmwareEnabled           : False
VMMonitorModeExtensions                 : True</pre></div>



<h3 class="wp-block-heading">.SSH cmd err, output: exit status 255</h3>



<p>During the start of minishift following error often occur on Windows:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"># during normal start &quot;minishift start&quot;
Error starting the VM: Error creating the VM. Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.

# with logging the details
minishift start --show-libmachine-logs -v5

About to run SSH command:
exit 0
.SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 255</pre></div>



<p>The main problem here is the <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse" target="_blank">SSL client version 0.0.1.0</a> from Microsoft which as to be uninstalled. After that, the minishift start works fine.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}">Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0</pre></div>



<h2 class="wp-block-heading">Useful shell Commands</h2>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}"># delete VM, delete the ssh identities after that, as the SSH key will change
minishift delete
# delete everything
minishift delete --force --clear-cache

# set auto start for Hyper-V Manager Service 
sc config vmms start=auto
# start Hyper-V Manager Service
sc start vmms

# start minishift with log output
minishift start --show-libmachine-logs -v5</pre></div>



<h2 class="wp-block-heading">Useful Power Shell Commands</h2>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PowerShell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;powershell&quot;}"># check if Hyper-V is running well
@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent

# output ip of the minishift VM
echo (( Hyper-V\Get-VM minishift ).networkadapters[0]).ipaddresses[0]</pre></div>



<h2 class="wp-block-heading">Useful Links</h2>



<ul class="wp-block-list"><li><a href="https://www.okd.io/minishift/">https://www.okd.io/minishift/</a></li><li><a href="https://docs.okd.io/3.11/minishift/using/profiles.html">https://docs.okd.io/3.11/minishift/using/profiles.html</a></li><li><a href="https://docs.okd.io/3.11/minishift/using/basic-usage.html">https://docs.okd.io/3.11/minishift/using/basic-usage.html</a></li><li><a href="https://github.com/minishift/minishift/issues/2568">https://github.com/minishift/minishift/issues/2568</a></li><li><a href="https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network">https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network</a></li></ul>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sterl.org/2020/05/install-minishift/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>IDE: Eclipse &#038; VSCode</title>
		<link>https://sterl.org/2019/02/ide-eclipse-visualstudio/</link>
					<comments>https://sterl.org/2019/02/ide-eclipse-visualstudio/#respond</comments>
		
		<dc:creator><![CDATA[Paul Sterl]]></dc:creator>
		<pubDate>Fri, 15 Feb 2019 12:23:24 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Angular]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[eclipse memory settings]]></category>
		<category><![CDATA[eclipse.ini]]></category>
		<category><![CDATA[faster eclipse]]></category>
		<category><![CDATA[STS]]></category>
		<category><![CDATA[visual studio code]]></category>
		<category><![CDATA[vs code]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://sterl.org/?p=293</guid>

					<description><![CDATA[IDE &#38; Plugins &#38; Tools Tools Tools for Linux / MAC Tools for Windows Database Tools Java Test Libs Visual Studio Code &#38; Windows Install PowerShell 7.x.x Check the current version $PSVersionTable.PSVersion This requires admin permissions on the windows system. Configure PowerShell 7 as CMD default Open the windows shell, select in the menu the&#8230;]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">IDE &amp; Plugins &amp; Tools</h2>



<ul class="wp-block-list">
<li><strong>Java:</strong> 
<ul class="wp-block-list">
<li><a href="https://adoptium.net/">https://adoptium.net/</a></li>



<li><a href="https://www.graalvm.org/downloads/">https://www.graalvm.org/downloads/</a></li>



<li><a href="https://jdk.java.net/">https://jdk.java.net/</a></li>
</ul>
</li>



<li><strong>Visual Studio Code:</strong><a rel="noreferrer noopener" aria-label="https://code.visualstudio.com/ (öffnet in neuem Tab)" href="https://code.visualstudio.com/" target="_blank">https://code.visualstudio.com/</a>
<ul class="wp-block-list">
<li><strong>Plugins</strong>
<ul class="wp-block-list">
<li>GitLens</li>



<li>Angular Language Service</li>



<li>Docker</li>



<li>Kubernetes</li>



<li>ESLint</li>
</ul>
</li>
</ul>
</li>



<li><strong>Java Eclipse STS:</strong> <a rel="noreferrer noopener" aria-label="https://spring.io/tools (öffnet in neuem Tab)" href="https://spring.io/tools" target="_blank">https://spring.io/tools</a>
<ul class="wp-block-list">
<li>PlantUML: <a href="https://marketplace.eclipse.org/content/plantuml-plugin">https://marketplace.eclipse.org/content/plantuml-plugin</a></li>
</ul>
</li>



<li><strong>Git: </strong><a href="https://git-scm.com/">https://git-scm.com/</a></li>
</ul>



<h2 class="wp-block-heading">Tools </h2>



<ul class="wp-block-list">
<li><strong>Docker Desktop</strong>: <a href="https://www.docker.com/products/docker-desktop">https://www.docker.com/products/docker-desktop</a></li>



<li><strong>Insomnia: </strong><a href="https://insomnia.rest/">https://insomnia.rest/</a></li>
</ul>



<h2 class="wp-block-heading">Tools for Linux / MAC</h2>



<ul class="wp-block-list">
<li>Java SDK Management: <a href="https://sdkman.io/sdks">https://sdkman.io/sdks</a></li>



<li>Node version management: <a href="https://github.com/nvm-sh/nvm">https://github.com/nvm-sh/nvm</a></li>
</ul>



<h2 class="wp-block-heading">Tools for Windows</h2>



<ul class="wp-block-list">
<li><strong>Command Line:</strong> <a rel="noreferrer noopener" aria-label="http://cmder.net/  (öffnet in neuem Tab)" href="http://cmder.net/" target="_blank">http://cmder.net/ </a></li>



<li><strong>Text Editor:</strong> <a rel="noreferrer noopener" aria-label="https://notepad-plus-plus.org/ (öffnet in neuem Tab)" href="https://notepad-plus-plus.org/" target="_blank">https://notepad-plus-plus.org/</a></li>
</ul>



<h2 class="wp-block-heading">Database Tools</h2>



<ul class="wp-block-list">
<li>Graphical DB client for Eclipse <a href="https://dbeaver.io/">https://dbeaver.io/</a> </li>



<li>Oracle Developer <a href="https://www.oracle.com/de/database/technologies/appdev/sqldeveloper-landing.html">https://www.oracle.com/de/database/technologies/appdev/sqldeveloper-landing.html</a></li>
</ul>



<h2 class="wp-block-heading">Java Test Libs</h2>



<ul class="wp-block-list">
<li><a href="https://github.com/awaitility/awaitility" target="_blank" rel="noreferrer noopener">https://github.com/awaitility/awaitility</a></li>
</ul>



<h2 class="wp-block-heading">Visual Studio Code &amp; Windows</h2>



<h3 class="wp-block-heading">Install PowerShell 7.x.x</h3>



<p>Check the current version <code>$PSVersionTable.PSVersion</code></p>



<p>This requires admin permissions on the windows system.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">winget install --id Microsoft.Powershell --source winget</pre></div>



<h3 class="wp-block-heading">Configure PowerShell 7 as CMD default</h3>



<p>Open the windows shell, select in the menu the drop down and settings, select powershell and save.</p>



<figure class="wp-block-image size-large"><a href="https://sterl.org/wp-content/uploads/2023/03/use-powershell-7-windows-default.png"><img fetchpriority="high" decoding="async" width="1024" height="237" src="https://sterl.org/wp-content/uploads/2023/03/use-powershell-7-windows-default-1024x237.png" alt="" class="wp-image-883" srcset="https://sterl.org/wp-content/uploads/2023/03/use-powershell-7-windows-default-1024x237.png 1024w, https://sterl.org/wp-content/uploads/2023/03/use-powershell-7-windows-default-300x69.png 300w, https://sterl.org/wp-content/uploads/2023/03/use-powershell-7-windows-default-768x178.png 768w, https://sterl.org/wp-content/uploads/2023/03/use-powershell-7-windows-default.png 1144w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<h3 class="wp-block-heading">Configure PowerShell 7 as VS Code default</h3>



<p>There is also now a plugin available: <a href="https://code.visualstudio.com/docs/languages/powershell">https://code.visualstudio.com/docs/languages/powershell</a></p>



<p>Open the user Settings <code>settings.json</code> to add the new shell, you can see all Settings (read only) in the <code>Default Settings (JSON)</code>. </p>



<ul class="wp-block-list">
<li><code>ctrl+p</code></li>



<li>type <code>Open Settings</code></li>
</ul>



<figure class="wp-block-image size-full"><a href="https://sterl.org/wp-content/uploads/2023/03/visual-studio-code-open-user-settings.png"><img decoding="async" width="603" height="222" src="https://sterl.org/wp-content/uploads/2023/03/visual-studio-code-open-user-settings.png" alt="" class="wp-image-887" srcset="https://sterl.org/wp-content/uploads/2023/03/visual-studio-code-open-user-settings.png 603w, https://sterl.org/wp-content/uploads/2023/03/visual-studio-code-open-user-settings-300x110.png 300w" sizes="(max-width: 603px) 100vw, 603px" /></a></figure>



<p>Add the new install PowerShell 7 and set it as the new default.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;javascript&quot;,&quot;mime&quot;:&quot;application/json&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;JSON&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;json&quot;}">&quot;terminal.integrated.profiles.windows&quot;: {
    &quot;PowerShell_7&quot;: {
        &quot;source&quot;: &quot;PowerShell&quot;,
        &quot;icon&quot;: &quot;terminal-powershell&quot;,
        &quot;path&quot;: &quot;C:\\Program Files\\PowerShell\\7\\pwsh.exe&quot;
    },
},
&quot;terminal.integrated.defaultProfile.windows&quot;: &quot;PowerShell_7&quot;,</pre></div>



<div class="bs-callout bs-callout-info"><strong>Note:</strong>
Visual Studio Code needs a restart after this change.
</div>



<h2 class="wp-block-heading">Eclipse ini settings</h2>



<h3 class="wp-block-heading">Memory settings G1 or ZGC</h3>



<p>Where the G1 is optimized for shorter GC pause, which maybe is good too (default with Java 17), adjust the <code>Xmx</code> as you see fit <code>eclipse.ini</code>:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;textile&quot;,&quot;mime&quot;:&quot;text/x-textile&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Textile&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;textile&quot;}">-Xms512m
-Xmx2048m
-XX:+UseG1GC
-XX:MaxGCPauseMillis=50
-XX:+UnlockExperimentalVMOptions
-XX:+UseStringDeduplication
-XX:+OptimizeStringConcat
-Dfile.encoding=UTF-8
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-Dorg.eclipse.swt.internal.gtk.useCairo=false</pre></div>



<p>adjust the following settings based on your CPU count</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;textile&quot;,&quot;mime&quot;:&quot;text/x-textile&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Textile&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;textile&quot;}">-XX:ParallelGCThreads=6
-XX:ConcGCThreads=4</pre></div>



<h3 class="wp-block-heading">Increase icon size for large screens</h3>



<pre class="wp-block-code"><code>-Dswt.autoScale=quarter</code></pre>



<p><a href="https://www.eclipse.org/eclipse/news/4.6/platform.php#swt-autoscale-tweaks">Eclipse&nbsp;autoscale</a>&nbsp;comes with some examples. Basically quarter means leave it to the system to scale in 25% steps. Alternatively, use integers like 200 to scale to 200%. </p>



<pre class="wp-block-code"><code>-Dswt.autoScale=200</code></pre>



<h2 class="wp-block-heading">Miscellaneous</h2>



<ul class="wp-block-list">
<li><strong>Autogenerate Getter/Setter:</strong>  <a rel="noreferrer noopener" aria-label="https://projectlombok.org/ (öffnet in neuem Tab)" href="https://projectlombok.org/" target="_blank">https://projectlombok.org/</a> </li>



<li><strong>Angular Browser Plugin:</strong> <a rel="noreferrer noopener" aria-label="https://augury.rangle.io/ (öffnet in neuem Tab)" href="https://augury.rangle.io/" target="_blank">https://augury.rangle.io</a></li>



<li><a href="https://google.github.io/styleguide/javaguide.html" target="_blank" rel="noreferrer noopener">https://google.github.io/styleguide/javaguide.html</a> </li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://sterl.org/2019/02/ide-eclipse-visualstudio/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
