Tag Info

New answers tagged

0

In my case , the problem was solved adding the following to the end of eclipse.ini org.eclipse.swt.browser.DefaultType=mozilla SOURCES: http://stackoverflow.com/questions/20203771/eclipse-continue-crash Eclipse (ADT) crash Failed to write core dump. Core dumps have been disabled


0

It sounds like you're trying to run the file from within your home directory (abbreviated ~), but it can't find the file. My guess is that your downloaded file ended up somewhere else, e.g. in ~/Downloads, so you have to navigate to that directory first, using the cd command like this: cd Downloads ./jdevstudio11117install.bin If that doesn't work, find ...


0

You can create a desktop file and make it executable, then run it from nautilus or desktop directly. Here is an example: Create a file using: gedit myjar.desktop Copy and paste the code below: #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=java -jar my.jar Name=My Java Gui ...


0

When you have made it executable with chmod +x file/name.sh, you can run it by typing ./file/name.sh in terminal. Edit: Actually just read what you where trying to do. Try commenting out the "exec" line of the script, and change the second line to ./home/me/myfolder/my.jar after you have run chmod +x /home/me/myfolder/my.jar. I don't know much about java, ...


0

Download JDK 5 Create directory for JDK: sudo mkdir /usr/lib/jvm/java5 Extract archive in a new folder: sudo tar xf java5.tar.gz -C /usr/lib/jvm/java5 Now run: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java5/jdk1.5.0/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" ...


2

There are detailed instructions on java.com covering Chrome and Firefox with Java 6 and Java 7. To summarize: Install Oracle JRE or JVM as 'usual' and locate the file libnpjp2.so(for example, under $JRE_HOME/lib/amd64. Change directory to either /opt/google/chrome/plugins (for Chrome) or /usr/lib/mozilla/plugins (for Firefox) -- if this does not exist you ...


0

Having a similar issue, I approached the thinkorswim tech support and received these instructions which worked for me: Linux java 7 and tos install instructions Before installing think or swim you will need to install Oracle Java 7. One way to install it by adding the Webd8 PPA. http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html ...


1

To create a connexion, this code: DriverManager.registerDriver (new com.mysql.jdbc.Driver()); m_Connexion = DriverManager.getConnection("jdbc:mysql://localhost:3306/Database_name","root",password); should work. Maybe yours too if you quote correctly the password (you should have "password" or password, not password"). If it still don't work you should ...


1

Open Firefox and click on "addons" and select "plugins". Scroll to the java plugin and make sure it is set to either "ask to activate" or "always" (note: it should not be set to activate when not in use for security reasons). If the opensource java plugin is not compatable, you can install the non-free proprietary java and plugins using the following ...


0

It clearly says that "sudo apt-get -f install" without giving anything after that. That'll automatically clear the unwanted packages and you'll be good to go. Trust me it worked for me.


1

You need the jdk-8u20-linux-x64.tar.gz package. Unpack it somewhere (/usr/share for instance), it is ready to work. But you can experience some conflicts with OpenJDK which is most probably already installed on your computer. If you want to make sure a jar file is executed with Oracle java, start it from the command line using java full path: ...


2

Using a PPA You can use WebUpd8 PPA (this will download the required files from Oracle and install JDK 8): $ sudo apt-add-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer Manual install The tar.gz provided by Oracle don't have an actual installation process. You just extract those files to a location ...


0

You should be able to run Java jar files in terminal by running java -jar path/to/jar. Note that some jar files only print things out; they don't display a window.


0

It depends on how you installed it. If you're going for "My workspace is portable. So I just extract zips/archives everywhere" then you need to check out update-alternatives: schadenfreude@oubliette:~$ update-alternatives --display java java - auto mode link currently points to /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java


1

Nevermind, solved it. Turns out my MATLAB license was expired and it was trying to run the installation, which required root privileges, so sudo /usr/local/MATLAB/R2012a/bin/matlab allowed the installation to run correctly. Thanks!


0

If you change the JAVA_HOME and PATH variables as below you should be able to access your local installation. export JAVA_HOME=/home/port8080/jdk1.8.0_11/bin export PATH=/home/port8080/jdk1.8.1.0_11/bin:$PATH


1

Install Oracle Java 8 for Ubuntu. From the terminal run the following commands: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer The installation also includes JRE8 and the Java browser plugin. The installer requires you to accept the Oracle license before the installation begins. For more ...


1

This sort of question was also answered on Stack Overflow. Turns out that there is an export in /usr/bin/gradle that probably shouldn't be there. One solution is to comment out that export line. Another solution is to use a PPA that has a different/newer Gradle.


0

According to this You can't. You would have to recompile Chromium and edit the line that disallows NPAPI.


0

The stack trace in your console implies that it's an issue with the Java applet itself. Which leads to a few possible answers to your issue: It's an issue with the Logisim application itself. Maybe it's not compatible with a Linux operating system, or maybe it's not compatible with your version of java.... The program needs to be run with elevated ...


0

Try AcetoneISO. It worked quite well for me without the need of manually converting to an .iso file. It has also got a user-friendly GUI.


0

Don't worry, it is just a warning. It wont affect your hadoop functionalities. But if you want that to be solved, you have to comple libraries using 32-bit compiler.


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 window, the Projects's tab contains org.eclipse.swt.%GUI%.%PLATFORM% ...


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



Top 50 recent answers are included