linux-4e1s:/home/oguzhan/Desktop # rpm -e java-1_6_0-openjdk-1.6.0.0_b24.1.11.5-16.1.x86_64
warning: /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/fontconfig.SuSE.properties saved as /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/fontconfig.SuSE.properties.rpmsave
update-alternatives: warning: alternative /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java (part of link group java) doesn't exist. Removing from list of alternatives.
update-alternatives: warning: /etc/alternatives/java is dangling, it will be updated with best choice.
update-alternatives: warning: alternative /usr/lib64/jvm/jre-1.6.0-openjdk (part of link group jre_openjdk) doesn't exist. Removing from list of alternatives.
update-alternatives: warning: /etc/alternatives/jre_openjdk is dangling, it will be updated with best choice.
update-alternatives: warning: alternative /usr/lib64/jvm/jre-1.6.0-openjdk (part of link group jre_1.6.0) doesn't exist. Removing from list of alternatives.
update-alternatives: warning: /etc/alternatives/jre_1.6.0 is dangling, it will be updated with best choice.
linux-4e1s:/home/oguzhan/Desktop # rpm -qa | grep jdk
linux-4e1s:/home/oguzhan/Desktop # java -version
bash: /usr/bin/java: No such file or directory
I ensure that OpenJDK is uninstalled completely with listing rpm packages(rpm -qa | grep jdk), again. Then, call "rpm -ivh" to install oracle JDK 1.7 64-bit version. Finally, java and javac commands works well as you see bottom of the terminal output.
rpm -ivh jdk-7u9-linux-x64.rpm
linux-4e1s:/home/oguzhan/Desktop # rpm -ivh jdk-7u9-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/charsets.pack
tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_09/lib/tools.pack
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/ext/localedata.pack
linux-4e1s:/home/oguzhan/Desktop #
linux-4e1s:/home/oguzhan/Desktop #
linux-4e1s:/home/oguzhan/Desktop #
linux-4e1s:/home/oguzhan/Desktop # java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
linux-4e1s:/home/oguzhan/Desktop #
linux-4e1s:/home/oguzhan/Desktop #
linux-4e1s:/home/oguzhan/Desktop #
linux-4e1s:/home/oguzhan/Desktop # javac
Usage: javac
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
...
...
...
All essential java commands seem works fine but there is something we have to commit, finally: Setting JAVA_HOME directory in PATH.
1) grant access under the /etc/profile.d with root
linux-4e1s:/etc/profile.d # su
2) create jdk.sh file under /etc/profile. and write output of below echo command
I' ve been already using SoapUI Pro 3.6.1 since license expires. Previous migrations to soapUI newer versions had not caused problems but when starting using SoapUI 4.5.0(free) version resulted destroying existing projects. I checked log file ("C:\...\SmartBear\soapUI-4.5.0\bin\soapui.log") and realised that something went wrong about encoding of soapUI project XMLs. Turkish language characters in wsdl files are located in soapUI project XMLs and they are violating cp1254 character convention and causes below exception log. java.io.CharConversionException: Malformed UTF-8 character: 0xc5 0x3f at org.apache.xmlbeans.impl.piccolo.xml.UTF8XMLDecoder.decode(UTF8XMLDecoder.java:80) at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader$FastStreamDecoder.read(XMLStreamReader.java:762) at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.read(XMLStreamReader.java:162) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474) at org.apac
In order to create operating system processes (even another java application), running a command, and defining an environment variable; a simple approach is succeeded by using " java.lang.ProcessBuilder " class in Java . Process process = Runtime.getRuntime().exec("cmd /c java -cp bin B"); BufferedReader inputStream = new BufferedReader(new InputStreamReader(process.getInputStream())); String line; while( (line = inputStream.readLine()) != null) { // inputStream is enabling this thread(main method) // to read "System.out" prints of started process (B.main method) System.out.println("#read from inputStream: " + line); } The above example illustrates how to start a java application from another one. /c option has vital importance since the rest of the parameters that command line is fed to run them properly. java command must be in environment variables to run B (which consists the " main(String[] args) " method) and -cp is sta
The motivation to use java.awt.Robot class is creating mouse-keyboard input events to test applications. Testing the application just using rough mouse and key event is extremely difficult. I think, there should be a handy framework to enhance and wrap java.awt.Robot class to support such following functionality: Taking ascii characters to map key events Soft mouse movements instead of instant mouse location changes Recording user actions to regenerate sequence of actions Appropriate xml schema to save actions into xml file windows, unix and mac native implementations to manage os specific actions that are not supported by java.awt.Robot As a kickstart, I tried to explicitly show off setAutoDelay, keyPress, keyRelase, mouseWheel, mouseMove methods usages. Comments over code blocks are covering the all following code target action. Obviously, a single tab key, costs 2 lines of code; this is too much for a single key if you are developing a great application project with hundred
Comments
Post a Comment
Thx for reading! Comments are appreciated...