How to change language in WebSphere MQ Explorer? - ibm-mq

IBM's advice doesn't work for me: http://www-01.ibm.com/support/docview.wss?uid=swg21454454

Open file ...\MQExplorer\eclipse\configuration\config.ini and add this lines:
org.osgi.framework.language=en
osgi.nl=en_US
credits go to: http://blog.ondruska.com/2012/12/switch-eclipse-language.html

With MQ Explorer 9.1.4.0 and following this reply, you need to change the file at:
C:\Program Files\IBM\MQ Explorer\MQExplorer.ini
And add the fourth line:
-vm
jre/jre/bin
-vmargs
-Duser.language=en
-Xmx512M

Related

How to generate an HTML JFR report on JMC 8?

I hope somebody could help with the following.
In JMC6 to generate a JFR report the syntax was:
java com.oracle.jmc.flightrecorder.rules.report.JfrRulesReport file.jfr -format html|json -min ok
Then I had to move to JMC8 (http://jdk.java.net/jmc/8/) and started to have issues with the syntax of that report. Based on https://github.com/openjdk/jmc , it should be:
java -cp <the built core jars> org.openjdk.jmc.flightrecorder.rules.report.html.JfrHtmlRulesReport <file> [<outputfile>]
The output shows no error and a 16K HTML is generated no matter what JFR file is passed as an argument. When viewing that HTML in a browser, it shows nothing but "Show OK Results". I tried with Mozilla, Chrome, and Edge, with similar results.
According to the source code of that html, some images are created, but I found no way to see them.
This Oracle JDK1.8u301 on Win10:
$ java -version
java version "1.8.0_301"
Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)
$ echo %CLASSPATH%
plugins\org.openjdk.jmc.flightrecorder.rules_8.0.1.qualifier.jar;plugins\org.openjdk.jmc.flightrecorder_8.0.1.qualifier.jar;plugins\org.openjdk.jmc.common_8.0.1.qualifier.jar;plugins\org.lz4.lz4-java_1.7.1.jar;plugins\org.owasp.encoder_1.2.3.jar
Has anybody generated a HTML JFR report on JMC8 successfully to provide tips?
Thank you very much!
An additional jar file was required to produce the output:
org.openjdk.jmc.flightrecorder.rules.jdk_8.1.0.qualifier.jar
In the latest version of JMC8.1.0, the list of jar files is:
org.openjdk.jmc.flightrecorder.rules_8.1.0.qualifier.jar;
org.openjdk.jmc.common_8.1.0.qualifier.jar;
org.openjdk.jmc.flightrecorder_8.1.0.qualifier.jar;
org.lz4.lz4-java_1.7.1.jar;
org.owasp.encoder_1.2.3.jar;
org.openjdk.jmc.flightrecorder.rules.jdk_8.1.0.qualifier.jar

can't run integrated WebLogic 12.2.1.4 server on Windows 10

I have windows 10 machine, and JDeveloper 12.2.1.4.0 , when i try to run the weblogic server for the first time i get this error :
Adding environment variable to WLST script USER_MEM_ARGS = -Xms32m -Xmx1024m -XX:MaxPermSize=384m
Log File: C:\Users\OSMOHAME\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain.log
Label: JDEVADF_PT.12.2.1.4.0_GENERIC_190911.2248.S
Product Home: D:\Oracle\Middleware\BPM_12.4\jdeveloper\jdev\
Domain: C:\Users\OSMOHAME\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\DefaultDomain
BuildDefaultDomain1.py 2020-06-05 09:14:45
cmd.exe /c ""D:\Oracle\Middleware\BPM_12.4\oracle_common\common\bin\wlst.cmd" "C:\Users\OSMOHAME\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py""
Cannot run program "cmd.exe" (in directory "D:\Oracle\Middleware\BPM_12.4\oracle_common\common\bin"): Malformed argument has embedded quote: "D:\Oracle\Middleware\BPM_12.4\oracle_common\common\bin\wlst.cmd" "C:\Users\OSMOHAME\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
java.io.IOException: Cannot run program "cmd.exe" (in directory "D:\Oracle\Middleware\BPM_12.4\oracle_common\common\bin"): Malformed argument has embedded quote: "D:\Oracle\Middleware\BPM_12.4\oracle_common\common\bin\wlst.cmd" "C:\Users\OSMOHAME\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at oracle.jdevimpl.adrs.weblogic.wlst.ScriptRunnerImpl.runScript(ScriptRunnerImpl.java:106)
at oracle.jdevimpl.adrs.weblogic.builder.DomainScriptRunnerImpl.runScript(DomainScriptRunnerImpl.java:146)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.createDomain(DefaultDomainBuilder.java:606)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.build(DefaultDomainBuilder.java:274)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder$1.run(DefaultDomainBuilder.java:225)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Caused by: java.lang.IllegalArgumentException: Malformed argument has embedded quote: "D:\Oracle\Middleware\BPM_12.4\oracle_common\common\bin\wlst.cmd" "C:\Users\OSMOHAME\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
at java.lang.ProcessImpl.needsEscaping(ProcessImpl.java:279)
at java.lang.ProcessImpl.createCommandLine(ProcessImpl.java:202)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:436)
at java.lang.ProcessImpl.start(ProcessImpl.java:140)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more
i did some research and most people tell that the solution in the following url is fixing the problem
http://unversioned.blogspot.com/2015/12/jdeveloper-12c-generic-installer-cannot-create-weblogic-domain.html
but the problem is when i open the javashell.py file , i don't find an entry for
_osTypeMap =
it Doesn't Exist in the file
Also , another solution the people said it worked is by adding this line
Djdk.lang.Process.allowAmbiguousCommands=true
but they didn't said where to add it and what is the exact steps !
There is a known issue with JDeveloper, WLS 12.2.1.4 and JDK 8 opened at My Oracle Support : Bug 30670839 : INTEGRATED WLS CANNOT BE CREATED WHEN USING JDK1.8.0_231
There is no patch available for now but you can try the workaround provided in the bug note : Revert back to JDK shipped with JDeveloper
If we see, problem is with the type of command that JDeveloper executes to start the weblogic instance is old and therefore does not work correctly, however below solution is working. It did solve the issue in my machine
We must modify this file:
C:<JDEVELOPER Install Path>\ide\bin\ide.conf
Add the following line:
AddVMOption -Djdk.lang.Process.allowAmbiguousCommands = true
Post modification, save the file.
Restart the Jdeveloper, compile and launch the weblogic server.

Typesafe activator: Java JDK can't be found

I am trying to run the typesafe activator on Windows 8.1 x64. It keeps saying I don't have a valid JDK installation:
A Java JDK is not installed or can't be found.
JAVA_HOME = "C:\Program Files\Java\jdk1.7.0_45\bin"
Please go to
http://www.oracle.com/technetwork/java/javase/downloads/index.html
and download a valid Java JDK and install before running Activator.
If you think this message is in error, please check
your environment variables to see if "java.exe" and "javac.exe" are
available via JAVA_HOME or PATH.
Press any key to continue . . .
I have my JAVA_HOME set to:
C:\Program Files\Java\jdk1.7.0_45\bin
Which is a valid location.
JAVA_HOME should just point to the JDK directory, not bin.
Here was my workaround:
Add the following code to your activator.bat on line 112:
if "%JAVAOK%"=="false" (
set "_JAVACMD=C:\Program Files (x86)\Java\jdk1.6.0_91\bin\java.exe"
set "JAVAOK=true"
set "JAVA_VERSION=1.6"
)
Or where ever your java.exe is located at, and whatever your Java Version is.
Your code should now look like:
rem BAT has no logical or, so we do it OLD SCHOOL! Oppan Redmond Style
set JAVAOK=true
if not defined JAVAINSTALLED set JAVAOK=false
if not defined JAVACINSTALLED set JAVAOK=false
if "%JAVAOK%"=="false" (
set "_JAVACMD=C:\Program Files (x86)\Java\jdk1.6.0_91\bin\java.exe"
set "JAVAOK=true"
set "JAVA_VERSION=1.6"
)
if "%JAVAOK%"=="false" (
echo.
When I typed "path" in cmd, I got my classpath, but "java_home", "java -v", etc didn't work. I don't know why I am having that issue, but my (ugly) workaround worked.
I had a similar problem on Windows 7 64b. The problem solved by changing the installed directory from 'C:\Program Program..' to a directory without space like 'c:\java'.
So the solution is: Installing Java to a path without spaces.
I hope it can help.
This worked for me:
Open a Command Prompt as administrator
Navigate to the folder with activator.bat
Type 'activator ui' without the '
Press enter

Java error when starting Eclipse on Win 8

When starting Eclipse I get the following error:
Obviously it's trying to use javaw.exe from system32-folder, which it shouldn't I guess. I've set the environment-vars to the following:
JAVA_HOME : "C:\Program Files\Java\jdk1.7.0_07;C:\Program Files (x86)\Java\jdk1.7.0_07"
Path : "... ;C:\Program Files (x86)\Java\jdk1.7.0_07\bin;C:\Program Files\Java\jdk1.7.0_07\bin"
and I added -vm C:\Program Files\Java\jdk1.7...\bin\javaw.exe to eclipse.ini
Java and JDK are installed. x86-version and x64-version.
Has anybody an idea, how I can solve this?
The solution is the following:
I removed the -vm C:\Program ... entry from eclipse.ini
I removed the JAVA_HOME variable
I edited the Path as follows:
I moved the path to javaw.exe to the beginning of the Path-variable, because it's using the first javaw.exe it finds and there's one in system32-folder whyever.

How to give more memory to IntelliJ Idea 9-11

This concerns Intellij from 9 to 11.
In the IDEA window On the bottom right corner I see the current memory usage, typically "224M of 254M" How do I give more memory to Idea so it may read like "224M of 512M" ?
Thank you.
On Mac, $IDEA_HOME/Contents/Info.plist
~: grep --context=5 Xmx /Applications/Maia-IU-94.426.app/Contents/Info.plist
<string>true</string>
<key>apple.awt.fullscreencapturealldisplays</key>
<string>false</string>
</dict>
<key>VMOptions</key>
<string>-Xms128m -Xmx912m -Dfile.encoding=UTF-8 -XX:MaxPermSize=250m -ea -agentlib:yjpagent=disablej2ee,disablecounts,disablealloc,sessionname=IntelliJIdea90 -Xbootclasspath/a:../lib/boot.jar</string>
<key>WorkingDirectory</key>
<string>$APP_PACKAGE/bin</string>
</dict>
</dict>
</plist>
On Windows/Linux, %IDEA_HOME%\bin\idea.vmoptions
Edit the following file:
idea/bin/idea.vmoptions
For Windows, in your IntelliJ Idea folder modify idea.exe.vmoptions.
See http://blogs.jetbrains.com/idea/2006/04/configuring-intellij-idea-vm-options/
If you are using:
Ubuntu
64 bit hardware
then you need to create idea64.vmoptions by simply copying the options from idea.vmoptions file
cat idea.vmoptions > idea64.vmoptions
The parameters remain the same: -Xmx1024M -Xms512M
On the MacOS find the folder where Idea is installed. then open file
Contents/Info.plist
Go all the way to the bottom and find the section that looks like this:
<key>VMOptions</key> <string>-Xms64m -Xmx512m -XX:MaxPermSize=128m -Xbootclasspath/p:
go to that path "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\bin\idea.exe.vmoptions" and change size to -Xmx512m
-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
hope its will work
On windows 7 (64-bits).
In the folder : C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 13.0\bin
There is a file named : idea64.exe.vmoptions
-Xms128m
-Xmx750m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=96m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
Beware that if the underlying JVM used is 32-bits, the maximum memory is still somewhere below 2048Mb

Resources