LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2007, 10:55 AM   #1
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Rep: Reputation: 30
GUI for Mplayer in fedora core 6


Hi everyone

I have installed the compiled the source file of mplayer and installed it by the following commands
./configure
make
make install

when i have used ./configure --enable -gui
i have got some error .....something related to gtk

Can any one help me to get GUI for mplayer??

mplayer is working through CUI . but i feel with gui we can organize and manage things easily

Thanks in advancce

waiting for a nice reply

Bye
 
Old 03-03-2007, 10:59 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Lots of mplayer frontends here:
http://www.mplayerhq.hu/design7/projects.html
(Google is your friend!)
 
Old 03-04-2007, 03:02 AM   #3
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tredegar
Lots of mplayer frontends here:
http://www.mplayerhq.hu/design7/projects.html
(Google is your friend!)
Hi tredegar

Thanks for ur quick reply
I have installed fc6_i386 on x86_64 bit machine
Will it create any problem
I want to learn create apache webserver along with jsp support using tomcat which uses mysql
Will i get any problem for setting all these things?

bye
 
Old 03-04-2007, 05:00 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
I had some troubles myself using 32 bit mplayer in Fedora 64 bit, especially with the mplayerplug-in tumbling over 64 bit firefox at times. You can always install 32 bit firefox as an alternative.

Tomcat and jsp work just fine on my system but I'm afraid I don't know whether Apache does as well.

Btw, why did you compile mplayer yourself? It can easily be downloaded from livna, including any plug-ins and skins.

Last edited by jay73; 03-04-2007 at 05:01 AM.
 
Old 03-05-2007, 05:14 AM   #5
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jay73

Tomcat and jsp work just fine on my system but I'm afraid I don't know whether Apache does as well.

Btw, why did you compile mplayer yourself? It can easily be downloaded from livna, including any plug-ins and skins.
Hai jay73

Thanks for you reply

Can u tell me the steps to be followed to run a servlet using tomcat
I tried it once but it shows error something like
Import serv.* failed

I have run a testing servlet program[given in some e-book] which is first program to check whether jsp is woking or not

Please help me to configure tomcat and run a servlet

Bye

waiting for a nice reply
 
Old 03-05-2007, 06:15 AM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Hello,

You can't run tomcat unless you start it up first. In order to do so, you cd into /path/to/tomcat/bin and then you type
sh startup.sh
In order to bring it down again:
sh shutdown.sh

I'm typing this during a break from work so I've got limited time right now; I'll post more information when I get home.
 
Old 03-05-2007, 10:17 AM   #7
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jay73
Hello,

You can't run tomcat unless you start it up first. In order to do so, you cd into /path/to/tomcat/bin and then you type
sh startup.sh
In order to bring it down again:
sh shutdown.sh

I'm typing this during a break from work so I've got limited time right now; I'll post more information when I get home.

Hi jay73

Thanks for ur reply

I have started tomcat by typing the following
/etc/init.d/tomcat5 start
is this same as
you cd into /path/to/tomcat/bin and then you type
sh startup.sh

i have also tried http://localhost:8080
and i got the default page for tomcat saying that installation is ok

i am confused with the setting of CLASSPATH variable....

Where java is installed in Fedora ?

I saw in some e-book abt giving the path of some java libraries.....etc.Is it actually necessary???


Please guide me about all prerequisites to run servlet??



About Multimedia


mplayer is not playing video of rmvb files.Its playing only audio
can we play .rmvb files in mplyer if so how to play ??

suggest me a player that can play all the formats
if u dont mind Please give me the links with all the dependancies
as my net speed is very slow so that i can t update using yum

WAITING FOR YOUR REPLY

bye
 
Old 03-05-2007, 12:55 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
/etc/init.d would be used to run tomcat as a service, while my own method would be used if you don't want tomcat to be up all the time. But don't worry about that, it's not so important to you right now.

So I hear you get to see the tomcat page from localhost:8080. That indicates tomcat is installed correctly AND that your java is set up correctly too. If your environment path were wrong, tomcat would refuse to install. It didn't so don't worry about path anymore.

Now why can't you see any jsps or servlets? Hmm, I see two possibilities:
- your servlet/jsp was not correctly uploaded to tomcat
- you are typing an incorrect address to view the page

Could you let me know what you did exactly to have the jsp/servlet uploaded?


On the second subject, did you include all the codecs before you compiled your mplayer?
 
Old 03-06-2007, 01:40 AM   #9
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
HI jay73

I installed tomcat prviously in fedora 5 64bit and i got the default page for http://localhost:8080
But now i have formatted the old one and installed fedora 6 32 bit
I have installed all the rpm packages starting with tomcat
the default page for http://localhost:8080 is not coming

I didnt find startup.sh or shutdown.sh in /path of tomcat/bin
Will it mean that there is any problem in the installation

How to know whick package is not installed?
Shall i install latest version of tomcat??
What pakages related to java are necessary for tomcat to work??

If i want to install packages related to java then which package should i install ...can u give me the links

I have once posted a thread in this forum with the title
setting classpath and javahome in fedora 5
The error messages displayed are also included in this post

http://www.linuxquestions.org/questi...d.php?t=526272

The thread is as follows
HI everyone
i am using tomcat Apache Tomcat/5.5.15
when i have compiled my testservlet file i got the following error message
[root@localhost classes]# javac TestingServlet.java----------
1. ERROR in TestingServlet.java
(at line 1)
import javax.servlet.*;
^^^^^^^^^^^^^
The import javax.servlet cannot be resolved
----------
2. ERROR in TestingServlet.java
(at line 2)
import javax.servlet.http.*;
^^^^^^^^^^^^^
The import javax.servlet cannot be resolved
----------
3. ERROR in TestingServlet.java
(at line 6)
public class TestingServlet extends HttpServlet {
^^^^^^^^^^^
HttpServlet cannot be resolved to a type
----------
4. ERROR in TestingServlet.java
(at line 8)
public void doGet(HttpServletRequest request,
^^^^^^^^^^^^^^^^^^
HttpServletRequest cannot be resolved to a type
----------
5. ERROR in TestingServlet.java
(at line 9)
HttpServletResponse response)
^^^^^^^^^^^^^^^^^^^
HttpServletResponse cannot be resolved to a type
----------
6. ERROR in TestingServlet.java
(at line 10)
throws ServletException, IOException {
^^^^^^^^^^^^^^^^
ServletException cannot be resolved to a type
----------
6 problems (6 errors)[root@localhost classes]#


I found in one of the threads that BY SETTING THE CLASSPATH VARIABLE IT CAN BE RESOLVED

How to set the classpath variable in Fedora core 5
I read i a book that JAVA_HOME variuable also should be assigned a value i.e the poath where java is installed

Please explain me about setting the variable JAVA_HOME,CLASSPATH....etc[IF ANY] in detail

Bye

Last edited by me4linux; 03-06-2007 at 01:44 AM.
 
Old 03-06-2007, 02:24 AM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
What's wrong with installing the packages that are Fedora specific with command:

yum install mplayer-gui

I have Fedora 6 x86_64 and am looking at the GUI sotware installer and see a couple packages named: mplayer-4:1.0-58_r21812.fc6.at.x86_64 and mplayer-gui-1.0-0.69.rc1.lvn6.x86_64. Of course according to the name of the second one you need livna repository in you repos. There are also skins-mini, skins, doc, docs, fonts, mplayerplug-In, all either noarch or x86_64. I'm sure with the command above you'll get mplayer with GUI.
And firefox 32bit is usually automatically installed alongside firefox 64 on mine, the only thing I have to install seperately is the firefox 32bit launcher to use it.
You can install either i386 or x86_64 on x86_64 arch.

Last edited by Junior Hacker; 03-06-2007 at 02:54 AM.
 
Old 03-06-2007, 02:54 AM   #11
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
The error messages all indicate that either your java isn't set up (correctly) or that it's simply misconfigured.

First thing to do = get a jdk (tomcat requires only jre, but if you're going to compile things ourself, you positively need the full development kit).Have a look here:
http://java.sun.com/javase/downloads/index.jsp
You should download the jdk6 rpm file for Linux 32 bit; you could also get the Netbeans IDE, which I find really useful, but it's rather a big download.
Instructions on installing:
http://java.sun.com/javase/6/webnote...ml#install-rpm
If the installer can't run in graphical mode, you need to do the install with sudo instead.

If you install the rpm.bin, it should take care of everything itself. Check by issuing the commands:
java -version
and
echo $JAVA_HOME

If it still can't find JAVA_HOME, you need to issue these commands as root:
echo JAVA_HOME=/usr/java/jdk1.6.0 >> /etc/profile
echo export JAVA_HOME >> /etc/profile
(just check first whether /usr/java/jdk1.6.0 is the correct path to the jdk on your box)

Now try again:
echo $JAVA_HOME

One more file to edit is under tomcat/conf/ and is called tomcat-users-xml; it defines who gets which permissions:

<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="yourusername" password="yourpassword" roles="admin,manager"/>
</tomcat-users>

Let me know if it works.
 
Old 03-06-2007, 10:43 AM   #12
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Hi jay73

thanks for your reply
i have week test tommorrow
I will surely try it tommorow and tell u the result
Dont mind if my feedback is late.

bye
 
Old 03-07-2007, 12:01 AM   #13
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
I have installed the packaged "jdk-6-linux-i586-rpm.bin"
The installation completed sucesfully
I have got the following in the end
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...

Done.

Then i have installed java netbeans "jdk-6-nb-5_5-linux.bin"
The following info is displayed during installtion

Netbeans Installation directory
/opt/netbeans-5.5
J2SDK Installation Directory
/opt/jdk1.6.0

Finally after installtion i got that installtion is complete and the methods to start netbeans ,uninstall........etc

I have run the netbeans and i got the ide for it...

Can you explain me how to write a servlet using netbeans and make the apache to compatible with servlets

SHALL I START NEW THREAD NAMED
---USING NETBEANS TO BUILD APPLICATIONS---
SINCE MANY QUERIES IN THIS POST ARE NOT RELATED TO "GUI in Mplayer" which is the actual title of this post
others can also learn how to tackle netbeans
 
Old 03-07-2007, 09:51 AM   #14
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Hi

i have installed succesfully and edited /etc/profile by adding new environment values as u has stated
The default page for tomcat is coming
But i am unable to complile the servlet program
the program is as follows
TestingServlet.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class TestingServlet extends HttpServlet {

public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {

PrintWriter out = response.getWriter();
out.println("<HTML>");
out.println("<HEAD>");
out.println("<TITLE>Servlet Testing</TITLE>");
out.println("</HEAD>");
out.println("<BODY>");
out.println("Welcome to the Servlet Testing Center");
out.println("</BODY>");
out.println("</HTML>");
}
}

I have saved the file with the name "TestingServlet.java"
and copied it to the directory
/path_to_tomcat/webapps/my_apps/WEB-INF/classes/

when i complile the program in this directory iam getting the following error
[root@localhost classes]# javac TestingServlet.java
TestingServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
TestingServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
TestingServlet.java:6: cannot find symbol
symbol: class HttpServlet
public class TestingServlet extends HttpServlet {
^
TestingServlet.java:8: cannot find symbol
symbol : class HttpServletRequest
location: class TestingServlet
public void doGet(HttpServletRequest request,
^
TestingServlet.java:9: cannot find symbol
symbol : class HttpServletResponse
location: class TestingServlet
HttpServletResponse response)
^
TestingServlet.java:10: cannot find symbol
symbol : class ServletException
location: class TestingServlet
throws ServletException, IOException {
^
6 errors

Please help me to overcome this problem

bye
 
Old 03-07-2007, 02:22 PM   #15
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
I just ran it on my own machine: no problem.

The errors indicate that the compiler can't locate the jdk.

You will need to set an additional path in .bash_profile:

nano $HOME/.bash_profile

Look for the line that starts with PATH and append

:/path/to/jdk1.6.0/bin (the colon too!)
(I installed jdk in /opt, so I have PATH=$PATH:$HOME/bin:/opt/jdk1.6.0/bin/)
Ctrl + O (+enter)
Ctrl + X (+enter)

Then you type at the command line:
source $HOME/.bash_profile

Let's test it. Open a text editor and type this:

public class Hello{

public static void main (String [] args){

System.out.println("Hello");

}
}

Save the file to your home directory as "Hello.java".

Compile it:
cd /home/username
javac Hello.java

Now type:
java Hello
That should return Hello.

Next, as root, copy Hello.java to /var
cp /home/username/Hello.java /var
cd /var
Now you compile the file in /var:
javac Hello.java
Denied permissions, right? That's because regular users haven't got any rights to mess with directories other than their own. Conclusion: you should do all your compiling in your home directory, then move the compiled class files to their proper destination (if required).

A bit inconvenient, isn't it? Imagine you have a load of stuff to compile and move... And that's where netbeans comes in handy: you do everything INSIDE netbeans: editing, compiling, uploading to your server, etc. - so you never have to sweat over paths or permissions. I suggest you have a look at their site for a tutorial. There's just too much to explain in a thread like this one.

Note: yes, I do think this topic deserves a thread of its own by now. If you have any further questions, please do start a new one under an appropriate title.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer for fedora core-4 g_gaurav Linux - Software 3 09-15-2006 03:22 PM
Extremely Flakey GUI in Fedora Core 5 Wheat_Thins Linux - Software 8 05-05-2006 06:15 AM
Fedora Core GUI problems hazle Linux - Newbie 3 07-22-2005 12:35 AM
Problems with mplayer GUI in Fedora C2 x86_64 dwmorton Linux - Newbie 5 06-19-2004 01:09 PM
GUI Display Distortion in Fedora Core Tabitha Fedora 0 04-09-2004 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration