Archive for the 'Help' Category

13
Nov
09

Setting CLASSPATH for Java in Linux

This was really tough for me since I had never used command line for compiling java programs, I always used Netbeans for coding in Java. Recently I started learning JUnit for which I decided to use command Line.

Whenever I googled for its solution I got
$ export CLASSPATH=$CLASSPATH:

But this did not fix my problem. Eventually I landed up on some websites and finally here. Though it is mainly written for Windows but can be used likewise for linux also.

So the thing to be done is either add all the jar files explicitly to the classpath or put all the jars in a directory (/home/roshan/jars for me).

Now run this command:
$ export CLASSPATH=$CLASSPATH:/home/roshan/jars/*

The wildcard ‘*’ fixed the problem. Now you can make this change permanent by adding this command to your .bash_profile in home directory or /etc/profile to make system wide changes.

23
Aug
08

mp3 support and software installation

This is the requirement of all the people in my college and many others. Initially it was a big problem for me also but later I was able to resolve it.

Additionally you can take a look on http://www.google.com/linuxrepositories which I have noticed just now and it actually explains you how to add repositories to a Linux system.

What is a repository?

This is a question asked to me by several people. Repository is a database which stores rpms, debs etc which Linux users use to install packages on a Linux system.

How to add a repository?

Refer to the above link for adding repositories. Some good repositories are Packman for openSUSE and Livna for Fedora, see this video .

People in NIT Durgapur can add Packman fromhttp://10.0.0.150/?q=node/30 or check out the list of all repositories available at http://en.opensuse.org/Additional_YaST_Package_Repositories .

How to install a package?

In openSUSE go to Yast > Software search whatever package you want and install. Also you can use the advanced 1-click install feature of openSUSE (most easy to use). Search the packages at Webpin http://software.opensuse.org/search and then install them using 1-click feature.

In Fedora you can use

#yum install <package> from the command line.

How to listen to mp3 and watch avi files?

You can either install VLC from http://www.videolan.org/vlc/download-suse.html and or search mplayer at webin and install it for openSUSE.

For fedora, VLC is available at http://www.videolan.org/vlc/download-fedora.html. Just follow the instructions there.

How to compile C/C++, Java programs?

Gcc is the compiler for C/C++ , java.

sample:

Write the c program in a text editor on Linux gedit or kwrite or VI. Then compile from the command line

$gcc helloworld.c

Then run the program

$./a.out

Netbeans is also available for Linux.

09
May
08

Find help on ORKUT

People think that orkut is just a time pass…

But with communities like Linux you can always find help and they are reliable too. This community is very active and most of the questions are solved within hours of posting.

I have learnt a lot from this community.




Blog Stats

  • 21,090 hits

Email Subscription

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

 

December 2009
M T W T F S S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28293031  

Cluster Map

Tweets

Google Groups
GNU/Linux Users' Group, NIT Durgapur
Visit this group

openSUSE

Email Subscription

Enter your email address to subscribe to this blog and receive notifications of new posts by email.