Tag Info

New answers tagged

0

http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.9.1/lwjgl-2.9.1.zip/download open up terminal and run command unzip lwjgl-2.9.1.zip cd lwjgl-2.9.1/ cp jar/* ~/.minecraft/bin/ cp native/linux/* ~/.minecraft/bin/natives/ run Minecraft again


1

You have set the environment variable JAVA_HOME, but this is only a value used by applications that want to know where the JRE or JDK are. The PATH is what your shell is looking in when you try to run executables. So when you type java -version, it is looking in the JDK folder. Note that java is actually inside $JAVA_HOME/bin. That's why it can't find ...


1

First, you have a typo in export line. It should be export PATH=$PATH:$JAVA_HOME/bin No space, add a $ character before JAVA_HOME, add /bin However fixing above line may not fix your problem in installing java. The easiest way to install java is by using webup8 ppa: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install ...


0

Java (IcedTea) doesn't have a PPAPI plugin available, and so it's not usable in Chromium.


2

The Chromium maintainer announced that Chromium is going to experience 'growing pains'. Several things will be breaking. Regarding flash, you will need to install the pepper flash plugin instead sudo apt-get install pepperflashplugin-nonfree sudo update-pepperflashplugin-nonfree --install


1

Give the Pepper Flash Player for Chromium a try: sudo apt-get install pepperflashplugin-nonfree


0

You are able to launch Android Studio, which indicates that you're fine on the Java front. Android Studio itself, however, may have trouble finding the Android SDK. You need to create a file called local.properties and place it in the root of your project, with contents like this sdk.dir=/home/jodii/programs/androisdkfolder After that, Gradle should ...


0

As I see no obvious better solutions, it's possible that this will help: You could get rid of the tray alltogether! either disable it, if possible or replace the whole panel by some other that you can configure manually, just not adding a tray element. (I like xfce4-panel for this kind of things) If you would miss tray-based features now, most should ...


0

Try replacing Exec=env UBUNTU_MENUPROXY= usr/local/eclipse with Exec=env UBUNTU_MENUPROXY= /usr/local/eclipse (there's a / before usr).


1

I installed Spark 2.6.3 on my Ubuntu 13.10 64 bit system. I installed Oracle Java 1.7 using the instructions for Java installation (Step 2) found here. To get Spark to run, because it comes with a 32 bit JRE, I had to modify the ./Spark script to get it to find the Oracle JRE, and also so it would accept version 1.7. Changes to line 4 (was commented out, ...


0

Finally I figured it out. It is in fact a mounting option (exec). Now my fstab looks like this and it works all pretty fine. UUID=E24E8DDC4E8DAA3D /media/nelson/data ntfs users,defaults,exec 0 0


0

Upstart scripts have to placed at /etc/init, ending with .conf. Basically they require 2 sessions: one to indicate when to start, and another with the command to exec. The easiest script to start with your sample is: # myprogram.conf start on filesystem exec /usr/bin/java -jar /path_to/program Of course, created as root under /etc/init/myprogram.conf. ...


1

The name of the control panel is different depending on whether you are using the Oracle JDK or OpenJDK. Search for "control panel" in the dash. If you're using the Oracle JDK, you'll see the Oracle Java 7 Plugin Control Panel. If you're using OpenJDK, you'll see the Iced Tea Web Control Panel.


0

Make sure that you are typing correct and the commands are for specific type As Linux is flexible and complex don't get confuse... To install you must follow these: find the readme or install file read that carefully if there is a sheel script then run it as root user if script dos't make good then open the script & do the function manually


0

For everyone who has the same question, I found a description here. I did not try the solution myself, but it sounds helpful.


0

Remove current JDK then download another version and install.


1

Try to install libxerces2-java: sudo apt-get install libxerces2-java To actually find the right package, try using the powerful http://packages.ubuntu.com using the query on package content: http://packages.ubuntu.com/search?searchon=contents&keywords=xerces+jar&mode=filename&suite=saucy&arch=any


0

If you have problems with your download hanging you can direct download the same eclipse package that is in the Ubuntu Software Center for Ubuntu 12.04 from the Ubuntu 12.04 Download Page for Eclipse. Select a mirror that is both close to you and also seems unlikely to be too slow or interrupted. Here is how to ensure that you will have a successfully ...


0

Search for "java" in dash and it will show java control panel. Images from what it shows when started:


2

1st thing you need to supply is an argument. According to man update-alternatives those can be ... Synopsis alternatives [options] --install link name path priority [--slave link name path]... [--initscript service] alternatives [options] --remove name path alternatives [options] --set name path alternatives [options] --auto name ...


0

for me it works. I installed Netbeans 8 and it ask me to join the jd path. I used the first answer: sudo apt-get install openjdk-7-jdk than sh netbeans-8.0-linux.sh (suppose I'm in the /home/MYNAME/Download/ where I downloaded .sh file)


0

Right click the minecraft.jar hit properties then do execute file as a program. This works for me and for others. Most likely this should get your minecraft to work.


0

Not all steps in my answer here can be done without internet. However for the others this is a possible way out: Do step 1 as in my answer. The required packages in Steps 2 and 3 can be installed as follows: Get those packages in .tar.gz form (you can google them) and download them on friend's PC and transfer to yours. Follow the instructions in the ...


0

Try deploying the war by using tomcat manager. Set the tomcat user in conf/tomcat-users.xml, type http://localhost:8080/manager on your browser, and then deploy it using Tomcat-GUI manager. Make sure you give manager-gui and manager roles to your user.


0

you need to place the war file in the correct Tomcat directory and then by default the name of the WAR file defines the context root. Then your web.xml file (unless you are using anotations) defines these rest of the URL by way of servlet mappings. Thus the full URL you type in the browser is: ...


0

Another workaround until this gets fixed is to modify the deb file from webupd8 and remove sun-java6-jdk from the Provides line in the deb control file. There's a handy script in this answer on superuser.com. Just grab the original file, run the script on it, modify the Provides line and install the modified file with sudo dpkg -i. I uploaded the modified ...


0

In many cases, the file system on which the install disk is mounted, is such that the file's permission cannot be changed to +x. In such cases, open the install script, go to somewhere around line which does echo Installing.... and eval $java_cmd. Just put a read between these two lines. Then, in another tab, go to ...


6

Andy S has the underlying problem here and I'd expect a fix out soon. Please use the bug report link he provided and indicate that it also affects you so that it gains higher priority. If you absolutely can't wait, here's a temporary workaround to ignore the dependency issues and force the install: Download the .deb package from apt sudo apt-get download ...


7

This recent change referenced in the 'apt' package ChangeLog appears to be the likely culprit: apt (0.9.15.4ubuntu4) trusty; urgency=low Cherry pick fixes from the apt 1.0 branch: [ Michael Vogt ] * add sun-java{5,6}-jdk to breaks/replaces as that provided a "apt" binary as well The oracle-java8-installer package "Provides" the "sun-java6-jdk" ...


2

The correct way of compiling java code in your case is javac Code.java and then run using java Code


0

apt-cache performs a variety of operations on APT's package cache, it won't list the installed packages. To see if an openjdk package is actually installed on your system you can just type in a terminal: dpkg -l | grep openjdk


1

I have tried installing as well. It worked on Tomcat7. You can try that...


0

Linux can run foreign binary, like a JAR file. This is how Wine works, for example. To run JAR files as executable do the following in a console sudo apt-get install binfmt-support Cd to your JAR file and change it to executable (you can also do this through file properties in Nautilus) chmod a+x myjar.jar You can then run your jar file using a ...


0

You have incorrectly set your JAVA_HOME variable in your ~/.bash_profile file. Change your JAVA_HOME variable to: export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/ and then do source ~/.bash_profile This should resolve your issue.


0

Ubuntu uses the update-alternatives system to manage which installation of the Java JDK or JRE should be used. This allows you to have multiple versions of Java installed, but still control which one is used by default. This is why which java doesn't show the version you installed; /usr/bin/java is just a symlink. If you run ls -l /usr/bin/java you'll see ...


1

This worked for me # update-alternatives --config javaws There are 2 choices for the alternative javaws (providing /usr/bin/javaws). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws 1061 auto mode 1 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws 1061 manual ...


0

With the proyect Java Ayatana (http://code.google.com/p/java-swing-ayatana/), The appmenu for Java 6/7 Swing application is supported. sudo add-apt-repository ppa:danjaredg/jayatana sudo apt-get update sudo apt-get install jayatana Finally, restar your session


1

You can select java version using update-alternatives command. Run below command in terminal. sudo update-alternatives --config java And type selection number that you want to use. Like this: Caution: The above description is the procedures for changing a default version. It is not an answer of this question, but should help you set the JAVA home


0

This sould be enough : sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java6-installer If you encounter problems, edit your main post and leave a comment here ;) Regarding your java -version output, the packages aren't installed yet, that's why Ubuntu tells you to install one of them.


0

Java is probably getting updated/upgraded. You can stop this process if you don't want java to be updated. By right-clicking on the process when in System Monitor and clicking on "Kill process". If this does not stop java, open a terminal Ctrl+Alt+t and type the following: sudo killall oracle-java* This will kill all oracle-java processes on your system. ...


1

It's probably because you don't have access to /opt/java folder as normal user. Try below commands and then try to access: sudo chmod -R 755 /opt/[java folder name] sudo chown -R [username] /opt/[java folder name] In case you are willing to try another method. I use it and it works all the time. Download the latest Java SE SDK version. ...


1

There' a bug that keeps the menu from working see https://bugs.launchpad.net/ubuntu/+source/unity-gtk-module/+bug/1208019 the work around is to change one line in the eclipse.desktop file Exec=eclipse to Exec=env UBUNTU_MENUPROXY= eclipse Also I had to make the desktop executable before I did the desktop-file-install in order to make it work.


1

You shouldn't be launching Minecraft by running launcher.jar. This file is not built to be executed alone and can't be. You have to use Minecraft.jar instead. This is the program that takes care of the login and actually calls the launcher. The technical reason is the following: Executable Java Archives (.jar files) have to contain a line in their ...


1

Please follow below steps to install oracle java: Download the latest Java SE SDK version. http://www.oracle.com/technetwork/java/javase/downloads/index.html Untar the Archive: tar -xzvf /root/jdk-7u17-linux-x64.tar.gz mv jdk1.7.0_17 /opt cd /opt/jdk1.7.0_17 This step registers the downloaded version of Java as an alternative, and switches it to be used ...


10

There are currently two java versions (vendors, if you will) available: Oracle's (Previously Sun) JDK, the closed source java, with commertial support from oracle 'n stuff. OpenJDK, the open source java. Oracle released part of their source and renamed it. In the days of java6, there used to be a big difference between the two of them, OpenJDK running ...



Top 50 recent answers are included