I am trying to show 5 GB in my InstallationDirectoryChooser component and I can not fine the exactly number in bytes I have to use.
For example 4766254545L give me show 5,318 MB and I need to show exactly 5GB
It is not practical to use this script for this purpose, because the size of a bundled JRE will be added to to the returned value.
I would suggest deselecting the "Show required disk space" property of the "Installation directory chooser" form component and add your own "Label" form component whose text is set to
${installer:myLabelText}
The installer variable myLabelText can be updated programmatically in the "Validation script" property of the "Installation directory chooser" form component by calling
context.setVariable("myLabelText", newText);
This requires install4j 8.0+.
Related
I wanted to add a java class to a project, but I did a mistake and added it as a text file. Then, I removed it and tried to add it again as a java class, but unfortunately it doesn't work anymore. And I get the following error:
Unable to parse template "Class" Error message: ABC.java mapped to not java file type text
As I searched, I faced some solutions like
this one but I can't find File Type under Editor or anything similar that I can change as suggested in the solution.
Any help would be appreciated.
PS: I am using IntelliJ 2018.3.4.
Thanks in advance,
Go on File->Settings and a dialog will open. In that dialog navigate on the left part to Editor/File Types and then you need to choose from the section Recognized File Types Java Class and remove from bottom section the problematic extension (note you have a small minus button on the right)
https://www.jetbrains.com/help/idea/creating-and-registering-file-types.html
This is a variant of Markov's answer that worked in my scenario.
Try going to File->Settings->Editor->File Types and to the Recognized File Types tab. Click the "Auto-detect file type by content" choice, and delete the name of the file you are trying to create from the "File Name Patterns" section by using the minus button.
Select required file type in top list (Recognized File Types) -- do it for "Text files"
In bottom list (Registered Patterns) select undesired pattern -- "SomeFileName.java"
Click on "-" (Minus) button to remove pattern from the list
Repeat 1-2-3 for other undesired patterns
If desired, you can also do this manually by editing config file while IDE is closed. Because it's IDE-wide setting, it is not stored in .idea folder (which has project settinsg only) -- the file to look for is called filetypes.xml and shoudl be located in ~/Library/Preferences/IntelliJIdeaXX/options ( see http://devnet.jetbrains.net/docs/DOC-181 for other OS etc )
Certainly inelegant, but you can simply copy the contents of the file to the clipboard (ctrl-c or similar), delete the file (maybe make a temporary backup somewhere outside the project), then in IntelliJ go to the desired package, right click, select new, select Java Class, name it correctly, and then you can paste in the contents of your file (ctrl-v or similar).
I am using JMeter with 2.13 version.
I want to increase font size for JMeter.
I have tried following question jmeter test plan navigation pane font size. However for 2.13 version doesn't have src folder.
Here is a picture, how it looks now:
How to change font size for JMeter test plan section.
Since JMeter 3.2, use Menu:
Options > Zoom In
Options > Zoom Out
See this:
https://bz.apache.org/bugzilla/show_bug.cgi?id=59995
JMeter 3.0 (released 2 weeks ago) has improved regarding the icons and tables but does not yet support full HiDPI mode:
See this particular bug:
https://bz.apache.org/bugzilla/show_bug.cgi?id=58426
https://bz.apache.org/bugzilla/show_bug.cgi?id=59168
To set properties, see:
https://jmeter.apache.org/usermanual/hints_and_tips.html#hidpi
Now for fonts, you can use Swing mechanism. To do that, add to jmeter.sh or jmeter.bat the JVM System property:
-Dswing.plaf.metal.controlFont=Dialog-20
And ensure you use the Cross Platform LAF
JMeter 4.0 update :
Before any update of Jmeter setting
After the update of Jmeter setting
JMeter 4.0 update using Windows 10 :
1. Go here : C:\apache-jmeter-4.0\bin
2. Open to edit this : jmeter.properties
3. Over here you need to update all required fields for you
This is what I changed and it looks good to me :
jmeter.loggerpanel.display=true
jmeter.loggerpanel.enable_when_closed=true
jmeter.loggerpanel.maxlength=1000
jmeter.gui.refresh_period=500
jmeter.hidpi.mode=true
jmeter.hidpi.scale.factor=2.0
jmeter.toolbar.icons=org/apache/jmeter/images/toolbar/icons-toolbar.properties
jmeter.toolbar=new,open,close,save,save_as_testplan,|,cut,copy,paste,|,expand,collapse,toggle,|,test_start,test_stop,test_shutdown,|,test_start_remote_all,test_stop_remote_all,test_shutdown_remote_all,|,test_clear,test_clear_all,|,search,search_reset,|,function_helper,help
jmeter.toolbar.icons.size=48x48
jmeter.icons=org/apache/jmeter/images/icon_1.properties
jmeter.tree.icons.size=48x48
save_automatically_before_run=true
onload.expandtree=true
jsyntaxtextarea.wrapstyleword=true
jsyntaxtextarea.linewrap=true
jsyntaxtextarea.codefolding=true
jsyntaxtextarea.maxundos=50
jsyntaxtextarea.font.family=Hack
jsyntaxtextarea.font.size=28
loggerpanel.usejsyntaxtext=true
view.results.tree.max_size=10485760
please refer : https://jmeter.apache.org/usermanual/hints_and_tips.html
In order to get src folder you need to download JMeter source code separately, i.e. from here. Unpack the folder and make required changes
You will need Apache Ant to build JMeter. Install it and make sure that %ANT_HOME%/bin folder is added to your system PATH variable
Build JMeter using next 2 commands:
ant download_jars
ant package
Now your should be able to run JMeter with increased font from apache-jmeter-2.13/bin folder like:
jmeter -Djmeter.dialog.font=20 .....
or ir you want to make font size change permanent add the next line to system.properties file (located in JMeter's "bin" folder)
jmeter.dialog.font=20
JMeter restart will be required to pick the property up. See Apache JMeter Properties Customization Guide for more information regarding JMeter properties usage.
If you trust me and Bitbucket hosting you can take the risk and get compiled binary with aforementioned change from
https://bitbucket.org/glinius/jmeter-font-increase/downloads/ApacheJMeter_core.jar
and dropping it to /lib/ext folder of your JMeter installation, however downloading binaries of unknown origin is not recommended (your PC can become a member of a botnet or someone's bitcoin mining farm) so it's better to take above 4 steps.
Using Jmeter 3.2
Options > Zoom In
Zoomed some panes but not others.
However modifying apache-jmeter-3.2\bin\jmeter.properties works. Tested with Win 10.
#jmeter.hidpi.mode=false
# To enable pseudo-hidpi mode change to true
jmeter.hidpi.mode=true
# HiDPI scale factor
#jmeter.hidpi.scale.factor=1.0
# Suggested value for HiDPI
jmeter.hidpi.scale.factor=2.0
In Jmeter 3.1 and 3.2, uncomment below lines in jmeter.properties file, and restart the Jmeter. It worked and the font size increased for all the icons and components
jmeter.hidpi.mode=true
jmeter.hidpi.scale.factor=2.0
After setting the following properties in bin\jmeter.properties it looks better
jmeter.hidpi.mode=true
jmeter.hidpi.scale.factor=2.0
jmeter.toolbar.icons.size=32x32
jmeter.tree.icons.size=24x24
jsyntaxtextarea.font.family=Hack
jsyntaxtextarea.font.size=28
ref: https://jmeter.apache.org/usermanual/hints_and_tips.html
Can anybody reproduce the following?
In my NetBeans 7.2 project I've set the "project.license" property (in project.properties) to "apache20" so that NetBeans generates the appropriate license text in every new .java file. The license text (which is located in "license-apache20.txt") contains the following FreeMarker reference:
${project.organization!user}
When "project.organization" is not set it displays my user name as expected. Also, when I set a custom user name in the User.properties file it displays this user name instead. So far so good.
However, I want to set the "project.organization" property. But when I do this in the project.properties file NetBeans simply doesn't recognize it, displaying my user name instead.
When I remove "!user" from the FreeMarker reference it generates the text "Expression project.organization is undefined on line 4, column 59 in Templates/Licenses/license-apache20.txt." When I set the property in User.properties instead (silly place, but I did it for sake of analysis) I get the same behavior. Does anyone know what might be wrong or how to get NetBeans to find the "project.organization" property? Does anyone have the same behavior on his or her NetBeans?
In license-apache20.txt (or any other license template), change ${project.organization!user} to ${organization!user}
In NetBean menu, Tools ❯ Template, when you click the Setting button, a User.properties file is opened. Add organization=FooBar Inc there.
(This is not very ideal, but at least it allows to customize the organization.)
To manually show the memory usage widget on Netbeans Platform, I have to right click on the toolbar and then select Memory.
Is there a way to get the memory usage widget to be shown on start up as default? Such that it will be displayed on startup without user input.
It appears that this setting is saved in the User's directory, where their Netbeans preferences are saved. This wouldn't be a "deployable" solution but the following shows you where the setting is stored http://wiki.netbeans.org/FaqWhatIsUserdir
I verified this with Windows 7 and Netbeans 7.0.1. The file you're looking for is .netbeans/7.0/config/Toolbars/Standard.xml. Inside this you should see a line like <Toolbar name="Memory" visible="false" draggable="true" align="left"/>, make sure "visible" is set to "true", save the file, then start Netbeans.
After some reading I found that there is a property that can be set in the Core UI module.
In the package explorer:
- Important Files | XML Layer | | Toolbars | Standard
Set:<Toolbar name="Memory" visible="true">
In Eclipse, I've setup the Java formatter to wrap lines only when they exceed 120 characters. I would like the same setting to be used when I format JSP files, but at the moment it wraps them when they exceed 90 characters, is it possible to change this?
Window - Preferences - Web - JSP Files - Editor. Click on the link for your kind of JSP (HTML or XML content), and adjust the line width.
Note in the latest version of eclipse you won't see the line width option in jsp files editor, instead this is covered by the line with setting in html files - editor menu
Window -> Preferences -> type HTML...You'll see "Editor" so in line width, enter the value as you need. Works for me on eclipse 2018-12 version