Java анотации
Friday, March 26, 2010
0
коммент.
JAVA: Подсчёт времени выполнения метода через аннотацию http://bit.ly/bgsZXU
# rar regex/\.[rR]([aA][rR]|[0-9][0-9])$ Open=%cd %p#urar View=%view{ascii} rar v -c- %fto
# rar regex/\.[rR]([aA][rR]|[0-9][0-9])$ Open=%cd %p#uzip View=%view{ascii} unzip -v %fin /etc/mc/mc.ext or
28.11.2009 21:16:25 *ERROR* [Timer-2,JBoss-Cache-Cluster_db1tck_ws,127.0.0.1:7800] MPING: failed sending discovery request (MPING.java, line 346) java.io.IOException: Invalid argument at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.jgroups.protocols.MPING.sendMcastDiscoveryRequest(MPING.java:341) at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:259) at org.jgroups.protocols.Discovery$PingSenderTask$1.run(Discovery.java:407) at java.util.concurrent.Executors$RunnableAdapter.on Ubuntu 9.10 or over operation system try to run you application with
-Djava.net.preferIPv4Stack=trueThis happens because JGroups does work with IPv6.
tar -zxvf eclipse-jee-galileo-linux-gtk.tar.gz
Links :
TODO for part 2
To unpack the archive in the form *. tar.gz use the command:
tar xvfz *. tar.gzUsed in the command keys
deb http://deb.opera.com/opera/ etch non-free
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
sudo apt-get install debian-archive-keyring
More links:
Small "how to" to upgrate skype to version "Skype 2.1 Beta for Linux"
http://www.skype.com/download/skype/linux/choose/
sudo apt-get remove skype skype-common
Exception in thread "main" java.lang.InternalError: libXt loaded before libXm at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) .....Workaround is to change AWT_TOOLKIT. You should add “export AWT_TOOLKIT=XToolkit” to you jprofiler5/bin/jprofiler file.
LD_LIBRARYN32_PATH="$app_home/bin/linux-x86:$LD_LIBRARYN32_PATH" LD_LIBRARYN64_PATH="$app_home/bin/linux-x86:$LD_LIBRARYN64_PATH" export LD_LIBRARY_PATH export DYLD_LIBRARY_PATH export SHLIB_PATH export LIBPATH export LD_LIBRARYN32_PATH export LD_LIBRARYN64_PATH export AWT_TOOLKIT=XToolkit
try { // Create channel on the source FileChannel srcChannel = new FileInputStream("srcFilename").getChannel(); // Create channel on the destination FileChannel dstChannel = new FileOutputStream("dstFilename").getChannel(); // Copy file contents from source to destination dstChannel.transferFrom(srcChannel, 0, srcChannel.size()); // Close the channels srcChannel.close(); dstChannel.close(); } catch (IOException e) { //TODO catch exception }