 |
16-10-2006, 08:58 AM
|
#1 (permalink)
|
|
Come get Some
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
|
C++ and JAVA in Suse 10.1 ??
Hie Bro's an chicks
can any one tell me how to write and compile and run prog. made in c++ and java in Suse 10.1 from suse command prompt. (first part "write" i can do myself)
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
16-10-2006, 09:23 AM
|
#2 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: C++ and JAVA in Suse 10.1 ??
Use gc++ for c++ and for java you can use either sun-java or gcj.
GCC(GNU Compiler Collection) has lots of tools for various programming language.
Besides you can use IDE's like Ajunta.I guess Eclipse will be too slow to run on your system, but it's another good tool.
__________________
http://www.bash.org/?258908
|
|
|
16-10-2006, 09:42 AM
|
#3 (permalink)
|
|
Come get Some
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
|
Re: C++ and JAVA in Suse 10.1 ??
Sir
can you please tell me the procedure (if any) to compile and run the Progs in suse command prompt
(like "bc.exe myfirst.cpp" or "javac file.java" or java file"")
|
|
|
16-10-2006, 09:50 AM
|
#4 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: C++ and JAVA in Suse 10.1 ??
1. Fire up the terminal
2. Change the directory to the working (c++ files containing) directory
3. If the file's name is something like
( C ) a. "dukenukem.c" , then type "gcc dukenukem.c -o dukenukem"
(C++) b. "dukenukem.cpp" then type "g++ dukenukem.cpp -o dukenukem"
4. "Enter" ur done!
5. To run the file now just type "./dukenukem" and enter! Bingo
Here dukenukem is output file name and can be given any name and "-o" is the ouput parameter. If u wont give the output paramtere and output filename then default output file created is "a.out"!
compiling java files is same as in windows!
__________________
Bad Bad server.....No candy for u!
|
|
|
16-10-2006, 09:52 AM
|
#5 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: C++ and JAVA in Suse 10.1 ??
for c++ http://people.cs.uchicago.edu/~jacob...ogramming.html it's section 2,4 & 5 that you need to look at. Section 2 lists some CLI editors, but you can use GUI ones if you find CLI editors difficult to start with.
for java. use some package manager like yum or smart(i am using smart on suse 10 and it's good) and install sun-java-jdk or java-xxx-sun-devel, by whatever name it is listed. Then you can open up the terminal and you will have access to all the tools in sun's jdk.
__________________
http://www.bash.org/?258908
|
|
|
16-10-2006, 09:52 AM
|
#6 (permalink)
|
|
Come get Some
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
|
Re: C++ and JAVA in Suse 10.1 ??
Quote:
|
Originally Posted by mediator
1. Fire up the terminal
2. Change the directory to the working (c++ files containing) directory
3. If the file's name is something like
( C ) a. "dukenumem.c" , then type "gcc dukenukem.c -o dukenukem"
(C++) b. "dukenukem.cpp" then type "g++ dukenukem.cpp -o dukenukem"
4. END
Here dukenukem is output file name and can be given any name and "-o" is the ouput parameter. If u wont give the output paramtere and output filename then default output file created is "a.out"!
compiling java is same as in windows!
|
Thanks A Lot Bro.
|
|
|
16-10-2006, 10:01 AM
|
#7 (permalink)
|
|
Come get Some
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
|
Re: C++ and JAVA in Suse 10.1 ??
Quote:
|
Originally Posted by tech_your_future
for c++ http://people.cs.uchicago.edu/~jacob...ogramming.html it's section 2,4 & 5 that you need to look at. Section 2 lists some CLI editors, but you can use GUI ones if you find CLI editors difficult to start with.
for java. use some package manager like yum or smart(i am using smart on suse 10 and it's good) and install sun-java-jdk or java-xxx-sun-devel, by whatever name it is listed. Then you can open up the terminal and you will have access to all the tools in sun's jdk.
|
Thanks Sir thanks
|
|
|
16-10-2006, 10:07 AM
|
#8 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
Re: C++ and JAVA in Suse 10.1 ??
sir??
lol
mehul ppl respect u a lot
|
|
|
16-10-2006, 10:16 AM
|
#9 (permalink)
|
|
In The Zone
Join Date: Oct 2006
Location: Mumbai
Posts: 365
|
Re: C++ and JAVA in Suse 10.1 ??
use vi editor to write program
eg fif file name is test.c
than compile it using following command
gcc - o test test.c
and type
./test
to run that program.
how to compile java program
javac javaFilename.java
|
|
|
16-10-2006, 10:18 AM
|
#10 (permalink)
|
|
"The Cake is a Lie!!"
Join Date: Oct 2006
Posts: 471
|
Re: C++ and JAVA in Suse 10.1 ??
Well, since you use KDE, why dont you install KDevelop? Its a Pretty Good IDE!
__________________
[xubz] ● http://xubz.com/
[steam_id] ● http://steamcommunity.com/id/xubz
|
|
|
16-10-2006, 10:19 AM
|
#11 (permalink)
|
|
Come get Some
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
|
Re: C++ and JAVA in Suse 10.1 ??
Quote:
|
Originally Posted by gary4gar
sir??
lol
mehul ppl respect u a lot
|
REally Very Very Very Few get this privilege
|
|
|
16-10-2006, 10:22 AM
|
#12 (permalink)
|
|
In The Zone
Join Date: Oct 2006
Location: Mumbai
Posts: 365
|
Re: C++ and JAVA in Suse 10.1 ??
|
|
|
16-10-2006, 04:11 PM
|
#13 (permalink)
|
|
Wise Old Owl
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
|
Re: C++ and JAVA in Suse 10.1 ??
For Java use NetBeans IDE 5.0 BlueJ Edition , download it from here
It's light-weight Java IDE , also very easy to use. For C/C++ use Anjuta.
Download Anjuta from here .There is also Eclipse IDE for Java & C++,
but it needs 512 MB RAM, also it consumes lot of resources.
__________________
* Imagination is more important than knowledge.
-Albert Einstein
|
|
|
17-10-2006, 02:06 AM
|
#14 (permalink)
|
|
Gonna make it BiG
Join Date: Dec 2004
Location: Familiar with Java... SORRY POINTER NOT ALLOWED!!!
Posts: 543
|
Re: C++ and JAVA in Suse 10.1 ??
hey.. hw 2 work wid sql in linux.. since im havin rdbms and sql in my syllabus. btw, my school uses oracle.. so is there gonna be any diff. in case of sql (the default one in linux, not externally installed app) in linux and oracle in windows?
btw its oracle 8i
|
|
|
17-10-2006, 02:44 AM
|
#15 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: C++ and JAVA in Suse 10.1 ??
There's no such thing as internal sql. Most of the distros come with MySQL. See http://dev.mysql.com/ for more on MySQL. Here's the link to MySQL manual http://dev.mysql.com/doc/refman/5.1/en/index.html just compare it with Oracle and see. I don't have much clue. I am too bad at DBMS.
You also have other kinds of DBMS's on linux like PostgreSQL and even [url=www.oracle.com]Oracle. Get oracle 10g Express Edition for linux from here http://www.oracle.com/technology/products/database/xe/index.html
Also see this http://linas.org/linux/db.html for more on DBMS in linux and do a little bit of googling for more answers.
__________________
http://www.bash.org/?258908
|
|
|
17-10-2006, 02:55 AM
|
#16 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: C++ and JAVA in Suse 10.1 ??
@aku, mysql and oracle have only a minor difference! Neways oracle is still the best. But mysql is better for practising in mah opinion.
For running and working on mysql study this thread!
MySql in LINUX?
Have fun!
__________________
Bad Bad server.....No candy for u!
|
|
|
17-10-2006, 11:41 AM
|
#18 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: C++ and JAVA in Suse 10.1 ??
^^Whateva u say sir! BUt that difference is not much visible to noobs to sql, does it? I know mysql has less features. But to start with mysql is best in my opinion and so is Postgresql. Also php stands nicely with mysql, remember the LAMP??
So u dont have to start a debate here for mysql Vs oracle as everybody knows which is the best!
__________________
Bad Bad server.....No candy for u!
Last edited by mediator; 17-10-2006 at 11:46 AM.
|
|
|
19-10-2006, 03:37 AM
|
#19 (permalink)
|
|
Gonna make it BiG
Join Date: Dec 2004
Location: Familiar with Java... SORRY POINTER NOT ALLOWED!!!
Posts: 543
|
Re: C++ and JAVA in Suse 10.1 ??
... im in a fix.. school follows oracle... seems hav i to install oracle...
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|