ubuntu-11.04

Where can I download the mp3plugin.jar to play MP3s in Java code?

半世苍凉 提交于 2019-11-28 08:22:38
I need to Play a MP3 File in Java code under Linux environment ( Ubuntu 11.04 ). I tried to download the MP3plugin.jar file from http://www.oracle.com/technetwork/java/javase/download-137625.html ,but I can't see it in the list. Note : "I downloaded the sun Java Media Framework" That is the link from which I downloaded the Jar some time ago, but it seems broken now. It leads to a page with a long list of APIs for download, none of which are that archive. :( Fortunately, I use it in various web start apps. You can get it direct from my share drive . Using that link, it appears in a list. Here

Can't stop WEBrick 1.3.1 with ctrl-c on Ubuntu 11.04

雨燕双飞 提交于 2019-11-27 19:00:50
I'm using RVM, Ruby 1.9.2, and Rails 3.0.7 A standard kill of the process from another terminal doesn't work, either, but kill -9 does, of course. I found a similar question, CTRL+C to Webbrick server ignored , but it's unclear whether that question is describing the same underlying issue. Also, the resolution doesn't seem to apply, since I'm not using :git in my Gemfile. update 1: (old now... see update 2, below, for the real scoop) I managed to narrow the issue down to a single gem. If you source the following test script, you can see the issue, too (assuming you're on Ubuntu 11.04... there

does using “:platforms =>” in your gemfile work?

醉酒当歌 提交于 2019-11-27 17:34:32
问题 I have a Rails app that I'm developing on Windows and deploying to Linux. I suspect I'll just switch entirely over to Linux in the future. Anyway, on Linux I need 'execjs' and 'therubyracer' but I don't need those in Win7. So I put these lines in my gemfile: gem 'therubyracer', :platforms => :ruby gem 'execjs', :platforms => :ruby Ran a bundle install on the Linux VM and the app started up fine. But on Windows I get: Uncaught exception: Could not find execjs-1.2.11 in any of the sources Now,

String comparison in bash. [[: not found

这一生的挚爱 提交于 2019-11-27 17:21:44
I am trying to compare strings in bash. I already found an answer on how to do it on stackoverflow . In script I am trying, I am using the code submitted by Adam in the mentioned question: #!/bin/bash string='My string'; if [[ "$string" == *My* ]] then echo "It's there!"; fi needle='y s' if [[ "$string" == *"$needle"* ]]; then echo "haystack '$string' contains needle '$needle'" fi I also tried approach from ubuntuforums that you can find in 2nd post if [[ $var =~ regexp ]]; then #do something fi In both cases I receive error: [[: not found What am I doing wrong? [[ is a bash-builtin. Your /bin

Android Emulator is not starting in Ubuntu

橙三吉。 提交于 2019-11-27 15:17:39
问题 I have Ubuntu 11.04 and i downloaded latest eclipse ADT bundle, i also have installed all ia32libs , i dont know why the emulator is not starting, i have tried various device configurations, i have 4 platforms 2.2, 2.3 , 4.0 ,4.2. i have tried various permutation and combination, but virtual device does not show up-none of them. I have also tried various solutions in other SO'questions, they do not solve my problem. i have been stuck in these for weeks , still i have reached no where?Please

Hadoop: «ERROR : JAVA_HOME is not set»

余生长醉 提交于 2019-11-27 11:55:48
问题 I'm trying to install Hadoop on Ubuntu 11.10. I set the JAVA_HOME variable in the file conf/hadoop-env.sh to: # export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk and then I execute these commands (Standalone Operation): $ mkdir input $ cp conf/*.xml input $ bin/hadoop jar hadoop-examples-*.jar grep input output 'dfs[a-z.]+' $ cat output/* but I have the following error when executing the third command: ERROR : JAVA_HOME is not set Is the JAVA_HOME variable not set correctly? 回答1: Make sure

How to run a script at the start up of Ubuntu? [closed]

元气小坏坏 提交于 2019-11-27 06:39:40
I want to run some Java programs in the background when the system boots in Ubuntu. I have tried to add a script in /etc/init.d directory but failed to start a program. i.e programs are not started. What should I do for that? opqdonut First of all, the easiest way to run things at startup is to add them to the file /etc/rc.local . Another simple way is to use @reboot in your crontab. Read the cron manpage for details. However, if you want to do things properly, in addition to adding a script to /etc/init.d you need to tell ubuntu when the script should be run and with what parameters. This is

curl : (1) Protocol https not supported or disabled in libcurl

断了今生、忘了曾经 提交于 2019-11-27 06:17:13
I'm trying to install the Rails environments on Ubuntu 11.04. When I launch the command rvm install 1.9.2 --with-openssl-dir=/usr/local the following error is received: curl : (1) Protocol https not supported or disabled in libcurl How can this be resolved? cnlevy Got the answer HERE for windows, it says there that: curl -XPUT 'http://localhost:9200/api/twittervnext/tweet' Woops, first try and already an error: curl: (1) Protocol 'http not supported or disabled in libcurl The reason for this error is kind of stupid, Windows doesn’t like it when you are using single quotes for commands . So the

Can't stop WEBrick 1.3.1 with ctrl-c on Ubuntu 11.04

[亡魂溺海] 提交于 2019-11-27 04:20:08
问题 I'm using RVM, Ruby 1.9.2, and Rails 3.0.7 A standard kill of the process from another terminal doesn't work, either, but kill -9 does, of course. I found a similar question, CTRL+C to Webbrick server ignored, but it's unclear whether that question is describing the same underlying issue. Also, the resolution doesn't seem to apply, since I'm not using :git in my Gemfile. update 1: (old now... see update 2, below, for the real scoop) I managed to narrow the issue down to a single gem. If you

Where can I download the mp3plugin.jar to play MP3s in Java code?

耗尽温柔 提交于 2019-11-27 02:16:45
问题 I need to Play a MP3 File in Java code under Linux environment ( Ubuntu 11.04 ). I tried to download the MP3plugin.jar file from http://www.oracle.com/technetwork/java/javase/download-137625.html ,but I can't see it in the list. Note : "I downloaded the sun Java Media Framework" 回答1: That is the link from which I downloaded the Jar some time ago, but it seems broken now. It leads to a page with a long list of APIs for download, none of which are that archive. :( Fortunately, I use it in