Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 16-10-2006, 08:58 AM   #1 (permalink)
Come get Some
 
DukeNukem's Avatar
 
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
Question 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)
DukeNukem is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-10-2006, 09:23 AM   #2 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default 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
mehulved is offline  
Old 16-10-2006, 09:42 AM   #3 (permalink)
Come get Some
 
DukeNukem's Avatar
 
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
Default 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"")
DukeNukem is offline  
Old 16-10-2006, 09:50 AM   #4 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default 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!
mediator is offline  
Old 16-10-2006, 09:52 AM   #5 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default 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
mehulved is offline  
Old 16-10-2006, 09:52 AM   #6 (permalink)
Come get Some
 
DukeNukem's Avatar
 
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
Default 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.
DukeNukem is offline  
Old 16-10-2006, 10:01 AM   #7 (permalink)
Come get Some
 
DukeNukem's Avatar
 
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
Default 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
DukeNukem is offline  
Old 16-10-2006, 10:07 AM   #8 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: C++ and JAVA in Suse 10.1 ??

sir??
lol
mehul ppl respect u a lot
gary4gar is offline  
Old 16-10-2006, 10:16 AM   #9 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 365
Default 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
Desi-Tek.com is offline  
Old 16-10-2006, 10:18 AM   #10 (permalink)
"The Cake is a Lie!!"
 
[xubz]'s Avatar
 
Join Date: Oct 2006
Posts: 471
Default 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
[xubz] is offline  
Old 16-10-2006, 10:19 AM   #11 (permalink)
Come get Some
 
DukeNukem's Avatar
 
Join Date: Aug 2005
Location: Home Sweet Home
Posts: 417
Cool 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
DukeNukem is offline  
Old 16-10-2006, 10:22 AM   #12 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 365
Default Re: C++ and JAVA in Suse 10.1 ??

http://ubuntuforums.org/showthread.php?t=6762
Desi-Tek.com is offline  
Old 16-10-2006, 04:11 PM   #13 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default 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
JGuru is offline  
Old 17-10-2006, 02:06 AM   #14 (permalink)
aku
Gonna make it BiG
 
aku's Avatar
 
Join Date: Dec 2004
Location: Familiar with Java... SORRY POINTER NOT ALLOWED!!!
Posts: 543
Default 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
aku is offline  
Old 17-10-2006, 02:44 AM   #15 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default 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
mehulved is offline  
Old 17-10-2006, 02:55 AM   #16 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default 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!
mediator is offline  
Old 17-10-2006, 07:36 AM   #17 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 365
Default Re: C++ and JAVA in Suse 10.1 ??

@mediator mySql and oracle has majour difference not minor
Comparing mysql with Oracle
and
Why PostgreSQL can best SQLServer, as Oracle


http://www.thinkdigit.com/forum/show...60&postcount=8
Desi-Tek.com is offline  
Old 17-10-2006, 11:41 AM   #18 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default 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.
mediator is offline  
Old 19-10-2006, 03:37 AM   #19 (permalink)
aku
Gonna make it BiG
 
aku's Avatar
 
Join Date: Dec 2004
Location: Familiar with Java... SORRY POINTER NOT ALLOWED!!!
Posts: 543
Default Re: C++ and JAVA in Suse 10.1 ??

... im in a fix.. school follows oracle... seems hav i to install oracle...
aku is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by icebags
- by Sujeet
- by clinton

Advertisement




All times are GMT +5.5. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2