Tag Info

New answers tagged

5

The read system call reads some bytes from an open file. The “odd string” is the bytes that are read by the call. This call attempts to read 32 bytes (third parameter), and succeeds (return value), from file descriptor 34. To find out what file your application is reading for, look back in the trace for the system call that opens this file descriptor. This ...


0

I downloaded "1.7.0_60" from java.com in .tar.gz format and installed it into /usr/local/jre1.7.0_60. I then created a hard link to /usr/local/bin/java and received the error described above. Changing the hardlink to a symbolic link fixed the issue. Short version: $ sudo ln /usr/local/jre1.7.0_60/bin/java /usr/local/bin/java Is bad. $ sudo ln -s ...


2

This was only to be found in the Oracle version but now support is dropped. http://docs.oracle.com/javase/7/docs/technotes/guides/jdbc/bridge.html


1

I do not know of any Java APIs which expose KVM but the source for virt-manager is accessible here in the official Git repo. https://git.fedorahosted.org/git/virt-manager.git Additionally I'd look to the libvirt API for interacting with KVM or any other virtualization technology. Specifically there are Java bindings to the libvirt API.


1

Perhaps one of the methods in Interface OperatingSystemMXBean be adapted to what you are looking for. See http://docs.oracle.com/javase/7/docs/jre/api/management/extension/com/sun/management/OperatingSystemMXBean.html


0

This seems to be known Java related bug on Linux: https://netbeans.org/bugzilla/show_bug.cgi?id=227754 On above URL you can find workaround for NetBeans IDE, workaround which works for Java app I use is to NOT maximize Java app by pressing maximize button, but to resize window manually to size you prefer. Please share info if this help you, thanks!


1

To restore your /etc/bash.bashrc to its original state (if you can't remember what that is), you can do: sudo rm /etc/bash.bashrc sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall bash Otherwise @aprad046's answer seems like the best solution.


1

Try restoring bash.bashrc to its default setting, and edit your local copy of PATH in your ~/.bashrc file instead. In other words, put those last two lines: export PATH=$PATH:/usr/lib/jvm/jdk1.7.0_60/bin/ export JAVA_HOME=$JAVA_HOME:/usr/lib/jvm/jdk1.7.0_60/bin/java/ in your ~/.bashrc file instead of /etc/bash.bashrc. You might have to restart for changes ...


-1

Java is a non script language so you need to compile the code. I recommend compiling it into a jar bundle and then write a Shell Script to launch the jar. #!/bin/sh java -jar <compiled jar>.jar exit 0


1

It is a bug in new jre7: Downgrade or add this line in the /etc/profile.d/jre.sh file. export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'


0

You could try to control the path's where pgk_add stores the temporary files. You can read how to do this here (Environment section). Basically you can adjust the environment variables : PKG_PATH, PKG_DBDIR, PKG_TMPDIR and TMPDIR. Might do the trick! Best regards, multimho


2

I had the same issue. Using the system's anti-aliased fonts fixed the issue for me. You can find a description in the Arch Wiki: https://wiki.archlinux.org/index.php/java#Tips_and_tricks Short answer: put the following line into /etc/profile.d/jre.sh: export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' You may have to log out ...


1

It appears to be an issue with the latest version of Java (7.u60_2.5.0-2). If I rollback the versions of jre7-openjdk and jre7-openjdk-headless to 7.u55_2.4.7-1 using the pacman cache # pacman -U '/var/cache/pacman/pkg/jre7-openjdk-7.u55_2.4.7-1-x86_64.pkg.tar.xz' # pacman -U '/var/cache/pacman/pkg/jre7-openjdk-headless-7.u55_2.4.7-1-x86_64.pkg.tar.xz' ...


0

Yes, in order to update to a newer JDK you need to repeat the process manually. The webupd8team ppa is a far more convenient way to get the Oracle JDK with automatic updates. You are right, as stated in Debian Basic Precautions: Do not mix standard Debian with other non-Debian archives such as Ubuntu in "/etc/apt/sources.list". But in this case (from ...



Top 50 recent answers are included