Tag Info

Hot answers tagged

3

Adding a file called /usr/share/applications/java.desktop with following content should do the trick. [Desktop Entry] Name=Java Comment=Java GenericName=Java Keywords=java Exec=java -jar %f Terminal=false X-MultipleArgs=false Type=Application MimeType=application/x-java-archive StartupNotify=true After adding this file you should be able to find an entry ...


3

This occurs when you open package manager and install from cmd at same time. Try closing all windows and re execute the command.


3

I have a BQ Aquarius E4.5 running Ubuntu 15.04 (r23). It comes with Python 3 (just remember to start "python3" - "python" does not exist and does not symlink to Python 3) so that's a start. I can't see any gcc, cc, or Java on the phone, and no hits on "gcc" or "compiler" or "java" in the Ubuntu Store. If you make the file system read-write you should be ...


2

Your question is not related to apt-get at all. Oracle-java9-installer has an installation script that downloads java from Oracle site and installs it. It is very specific to this package. But your answer is: the tarball is at /var/cache/oracle-jdk9-installer/


2

Actually, a better answer is to enter the following at the command prompt. sudo update-ca-certificates -f


2

It's possible, that MongoDB doesn't start if you use the Trusty packages: Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory. In this case, install the Debian Wheezy packages as described at the end. Install the Trusty DEB packages Download the DEB files cd wget ...


1

http://blog.chromium.org/2013/09/saying-goodbye-to-our-old-friend-npapi.html April 2014: NPAPI support was removed from Chrome for Linux in release 35.


1

You can play RuneScape locally without Wine using the RuneScape Unix Client (RSU Client). Installation instructions for all currently supported versions of Ubuntu: sudo add-apt-repository ppa:hikariknight/unix-runescape-client sudo apt-get update sudo apt-get install unix-runescape-client You can use different java versions by editing the ...


1

Are you running this on a server without x server? The installer tries to initialize a SWT Window for a GUI. Try running the install command with ./runInstaller -mode=console, maybe this will help - some oracle installers have this option, hopefully this one as well.


1

There is no definite location that you 'should' store your executable jars in. It is based solely on user preference. I find that keeping my executable jars on the desktop works best so i don't need to continuously travel through my file system to use them which can sometimes get lost if your memory isn't the best. Also little sidenote, if you install Java ...


1

It depends on you, i would suggest not to use any place designated to store system wide binary files. Although you can put it in /usr/local/bin or any other designated place to store system wide binary files but as it is not a regular binary file you better put somewhere else. Your home directory may be a good place too. Actually it does not matter where ...


1

The exception occurs when there is no running or listening mysql service: Start the MySQL server Check the port number, you use the standard port 3306 in your code private static final String dbClassName = "jdbc:mysql://127.0.0.1:<your_port_number>/demodb"; Use the IP address of your Virtual Machine private static final String dbClassName = ...


1

Installation of Oracle Java: Donwload the tarball from Oracle website unzip it by sudo tar -xvpzf fileName -C /installation_folder_name change the files permission and ownership add the following two lines in /etc/profile export JAVA_HOME=/home/abu/Java/jdk1.8.0_45/ export PATH=$JAVA_HOME/bin:$PATH restart the machine and check by java -version and ...


1

You need to add the Path=/home/YOURUSERNAME/Desktop to it, that's what made it work for me.


1

You CAN get Java to work on Chrome, or at least enable the NPAPI plug-in for it... temporarily. The option is being removed altogether in Chrome 45. (Currently we are at 43, estimate is September 2015.) Note that enabling NPAPI doesn't necessarily mean the Java Applet will work... I tried it with one and it didn't. This likely is due to having the latest ...


1

I used Oracle-java7 when I installed think-or-swim. It still works fine though I've since upgraded to Ubuntu 14.04. I used the instructions here and obtained the installer here. After making the script executable, it installed fine and works fine. There's a full writeup on installing here


1

To make DanielSteward anwser complete: Unfortunately tuxjdk for GTK look and feel uses font set in currently used gtkrc. But most of the themes don't set any font there. As a result netbeans will use bold Arial 15 as UI font. To fix that create gtkrc just for netbeans with fixed font and tell netbeans to use this file. I prepared special launcher that ...


1

Running jars in linux is easy. Just open a terminal and type java -jar <path to jarfile> then hit enter and voilà it works.


1

The above answer is not sufficient enough you also need to update mime list as open file in editor gedit ~/.local/share/applications/mimeapps.list then replace this application/x-java-archive=file-roller.desktop; to application/x-java-archive=OracleJDK.desktop; This will resolve the problem.


1

update-java-alternatives is actually pretty nice. So, to get it to work with my manual installation: copy jdk1.8.0_45 to /usr/lib/jvm cp .java-1.7.0-openjdk-amd64.jinfo .java-1.8.0-u45-amd64.jinfo ln -s jdk1.8.0_45 java-1.8.0-u45-amd64 Then I used vim for a search / replace: vim .java-1.8.0-u45-amd64.jinfo :%s/java-7-openjdk-amd64/java-1.8.0-u45-amd64 ...


1

If you want to log largest total memory usage for specific process, here's a script that can do that for you: $ cat watch-mem-usage.sh #!/bin/bash #set -x PREVIOUS=0 while true ;do sleep 1 DATA=$(ps -p $(pgrep firefox) -o vsize= ) if [ $PREVIOUS -lt $DATA ]; then ...


1

The main error here is error in opening zip file. That usually means that you're trying to open a corrupted .zip. Just get another copy of that file (download it again, copy it again from the same source you got it from, …)


1

The Java runtime has no graphical frontend. Show the java version with: java -version or run a jar file (java archive) java -jar <your_jar_file> For OpenJDK7, a desktop file doesn't exist by default. To start a java application (jar), via double-click or context menu in your file manager, you could create a desktop file for OpenJDK7: Create ...


1

Add to the /etc/profile file(For system wide change) or to ~/.bash_profile( local user) export CATALINA_HOME=/opt/apache-tomcat-8.0.23



Only top voted, non community-wiki answers of a minimum length are eligible