Tag Info

New answers tagged

0

First off, you should install the official Java. Install openjdk-7-jre. The default-jre package doesn't really do much. I don't think it really does anything. If this doesn't work, check your PATH variable and make sure it contains the Java install path. You can check where it is installed by running dpkg-query -S 'openjdk-7-java*' and look for the java ...


0

So now it looks like it can't find libswt-gtk-4233.so and the other file. However, when I took a look at the .swt folder I had an libswt-gtk-3740.so not 4233. The plugin itself has those libraries. Right click in your project: -> Properties -> Build path Once on Java Build Path, the Projects's tab contains org.eclipse.swt.%GUI%.%PLATFORM% (the ...


0

Your JAVA_HOME setting is fine. The file /usr/lib/jvm/default-java should be a symlink pointing to the JRE and is provided by the default-jre-headless package. This package is required for a regular Java (default JRE) installation of Java in Ubuntu. Apparently you removed this symlink, removed the individual package or something like that, or, you installed ...


0

Well I think you almost got it. You can use this command to detect where your jvm is located. whereis jvm I have same setting and I believe you can point on either dir in JAVA_HOME as java-1.7.0-openjdk-amd64 is a weak link to other( see man for ln). Ah and Answer "it is not correct! Take one from pwd command."


0

I tried Ben Glasser's answer, but it didn't work. It tried the other answer here, http://stackoverflow.com/a/22955890/1198772, and it works. We just need to download (manually) the latest jdk from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html, and replace the old jdk. Then try to install again.


0

Did you increase font/desktop scaling ? This can cause a difference in scale between the window and its contents, eg the window is normal but the contents are larger. Open system settings and then universal access and turn off large fonts. OR if you have any tweak tools unity-tweak-tool gnome-tweak-tool etc...) installed reset any scaling options you set ...


1

It looks like you don't have the required browser plugin installed. The following commands will install version 7 instead of version 6 because it is more secure. If version 6 is required, just substitute the command accordingly. First, open a terminal and typing the following commands: sudo apt-get update sudo apt-get install icedtea-plugin ...


1

I got the same error when trying to run the android-studio beta installation. I tried various options, but the one that worked for me was: sudo apt-get install openjdk-7-jdk Didn't have to do anything else. But, I am surprised that java -version listed the same 3 lines before and after the jdk install: java version "1.7.0_55" OpenJDK Runtime ...


0

Try this PPA version from webupd8 sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer Source - HERE


0

Open the software by ./idea.sh from bin folder In the IntelliJ IDEA click on Tools > Create desktop entry... Right click on IntelliJ icon on launcher and stick it there by locking it.


1

Most likely the exact 1.7.17 version is different now and the jdk1.7.0_17 does not exists, so use the interactive command to change the java or javaws alternative. $ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ...


-1

May be this can hepls to somebody: I had some problem. And i fix it changing symlink /etc/alternatives/java from openJDK to Oracle JDK (you must install it previous). To install Oracle JDK i used this instructions: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html


0

I found this answer i am looking for addition to oli's : After a few search, I found that i need to run as a valid user instead from root. * * * * * su fadabi -c "DISPLAY=:0.0 /usr/bin/firefox -new-window x.com/iqms/packetloss/iqmspacket2.html"; tq


6

Cron runs in an environment that knows nothing about the display manager ($DISPLAY isn't set). Your terminal window that you've been testing in has this set for it. If you tried it in a "real" terminal, or over SSH, you'd see it break. If you've only got one X server running, just specifying the display might work: * * * * * DISPLAY=:0 firefox ... You ...


0

Taken from here. foo="Hello" foo="$foo World" echo $foo > Hello World In general to concatenate two variables you can just write them one after another: a='hello' b='world' c=$a$b echo $c > helloworld


1

There are nicer ways for sure; a simple approach however would be starting your application from terminal. There you see the output even after it has crashed.


1

You can convert a .jar file to an .exe file in Ubuntu using Launch4j Executable Wrapper. Launch4j is a cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Launch4j provides advanced JRE search, application startup configuration and better user experience. The latest version of Launch4j as of the date of posting this answer is ...


0

try going to this url http://www.webupd8.org/2013/05/how-to-get-systray-whitelist-back-in.html hope its helpful


0

Remove the s from the beginning of the line. Save the file, and run sudo apt-get update.


0

appletviewer is provided by the JDK packages. In Ubuntu 14.04, you can install it using: sudo apt-get install openjdk-7-jdk Then open the HTML file using: appletviewer /path/to/html/file You can copy the path to the file from the browser's address bar.


0

I have the same, even if I use oracle JDK instead of openJDK. I've solved the problem by the previous way : this.setlocation(0,0) I've also tested this : setLocation(0,2000) -> this display the window to the right workspace (my screen resolution is 1600*1200) setLocation(1500,0) -> window will appear in the bottom workspace ... It seems that UNITY ...


-1

To fix this, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below: sudo apt-get install openjdk-7-jdk


0

type this command: update-alternatives --display java for example on my system it displays: java - manual mode link currently points to /opt/java6/bin/java /opt/java6/bin/java - priority 1 /opt/java7/bin/java - priority 2 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java - priority 1071 slave java.1.gz: /usr/lib/jvm/java-7-openjdk-amd64/jre/man/man1/java.1.gz ...


0

You have java 1.7 installed, as I see from java -version If you want to know where is some executed command is located - use which command. $ which java /usr/bin/java Quote from man: DESCRIPTION which returns the pathnames of the files (or links) which would be exe‐ cuted in the current environment, had its arguments been given as com‐ ...


1

It wasn't a source package, it worked by converting the rpm to a deb installer


0

somehow following these instructions solved my problem: http://www.youtube.com/watch?v=nSEWrm9djGA but the kernel issue is still a mystery.


0

Install gtk3-engines-oxygen for Gtk3 and gtk2-engines-qtcurve for Gtk2, and switch to theme in System Settings > Application Appearance > Gtk Configuration. If you don't have a Gtk Configuration, install kde-config-gtk. It's also recommended to install whole qtcurve packages and use it.


0

The newest OpenJDK Java packaged for trusty (14.04) right now is 7u55. You can check your Java version with java -version from the command line in Terminal. If you want a newer one your best options will be to: wait for an update from Ubuntu, OR install the Oracle distribution of Java which currently is at 7u65: sudo add-apt-repository ...


1

Use ppa : sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer if you want java8 : sudo apt-get install oracle-java8-installer If you ABSOLUTELY need to have the latest update of java you must manualy install from official source, follow this tuto : ...


0

Try sudo apt-get update and then sudo apt-get install openjdk-6-jdk


0

$ sudo apt-get install openjdk-6-* try this in the terminal Perhaps openjdk6 might have been phased out from the ubuntu repositories try this $ sudo apt-get install openjdk-7-jdk


0

I had same problem and following way i resolve it. you should use command line for updating SDK use following commoand. go to [ADT bundle]/sdk/tools folder. by cd /home/yousaf/android-sdks/tools/ then android update sdk this resolve my problem.


1

To set JAVA_HOME for all users do as Follows: sudo gedit /etc/environment JAVA_HOME =":usr/lib/jvm/java-7-openjdk-amd64/bin" CLASSPATH =":usr/lib/jvm/java-7-openjdk-amd64/bin:/home/something etc whatever you want etc"( separated by semicolon )


0

First need to grand ownership of the folder to myself: sudo chmod -R 755 /usr/local/apache-maven-3.2.2/ Then I opened ~/.bash_aliases with: sudo gedit ~/.bash_aliases And I added: alias mvn='/usr/local/apache-maven-3.2.2/bin/mvn Thanks to @Ploutox for the right commands and I also did a bit of editing / corrections myself.


0

Try changing the mirror Manish. To do this , go to System Settings -> Softwares & Updates -> Ubuntu Software and select 'Main Server' or 'Other...' to select other mirrors. If you select Other... option you can select any other mirror other than the Indian mirrors


0

Sound like you may need to chage mirrors and resynchronize the package index files from their sources. open Ubuntu Software Centre And choose Edit -> Software Services -> Ubuntu Software -> Download From Since your current mirror is in India i'm gussing you would like one close to that. Navigate to India -> mirror.cse.iitk.ac.in select the ...


1

I suggest you use webup8's PPA. I use it for Java 8, but there's also for Java 7. See here for Java 7 http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html and here for Java 8 (both can coexist in your system) http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html


1

Just install the latest version of Java by opening a Terminal (CTRL + ALT + T) and running sudo apt-get install openjdk-7-jre


1

Follow below mentioned steps: Go to netbeans-8.0/etc folder. Open netbeans.conf file. Check for the line with netbeans_jdkhome Mention the Jdk you want to use.


1

Open a terminal and type: sudo update-alternatives --config java There will be a list with your JVMs. Type the number that is the row number of your JVM that you want to use. Start NetBeans and you should have the version you want for more info check Ubuntu Wiki


0

Open a terminal and navigate to the file. Make sure you have permission to execute it: chmod u+x foo.jar (you'll only need to do this once). Then just type ./foo.jar and it should run.



Top 50 recent answers are included