[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Development & Programming  |  Topic: Java
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Java  (Read 911 times)
0 Members and 1 Guest are viewing this topic.
akashyak
Tux Awared
**
Offline Offline

Posts: 44


View Profile
« on: July 16, 2007, 11:59:40 PM »

Can I practice Java in Linux ? I'm running Ubuntu 6.10
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #1 on: July 17, 2007, 02:53:21 AM »

Yeah you can practise it , In some distribution Java is somewhat inbuild but I don't know about Ubuntu as I never got a chance to worked with it.

You can browse this link to know more:
https://help.ubuntu.com/community/Java
Logged
akashyak
Tux Awared
**
Offline Offline

Posts: 44


View Profile
« Reply #2 on: July 18, 2007, 05:12:32 AM »

Well thank you... but unfortunately my Internet connexn runs at 115kbps or below. My office system runs faster, but ...

Can it be possible that Java is available pre-recorded on a CD that can be run and installed in Linux ?
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #3 on: July 18, 2007, 05:25:46 AM »

Yeah as I already said that Java is inbuild in some distributions like SUSE ............., Don't know about Ubuntu.......but you can run command to know wheather its there or not using:

#java -version

Thanks
Gaurav
Logged
Ujjwol
Linux Learner
***
Offline Offline

Posts: 54


View Profile
« Reply #4 on: July 19, 2007, 02:04:23 AM »

Yeah as I already said that Java is inbuild in some distributions like SUSE ............., Don't know about Ubuntu.......but you can run command to know wheather its there or not using:

#java -version

Thanks
Gaurav
i search for java development kit rpm i din't find
can any body provide me the link
only virtual libary is inbuilt in my RHEL WS 4
thanks in advance
Logged
akashyak
Tux Awared
**
Offline Offline

Posts: 44


View Profile
« Reply #5 on: July 19, 2007, 03:12:45 AM »

I typed "java -version" in my Terminal, and got this:

****************
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-14ubuntu7)

*******************

What does it mean ? Can you explain. plz ? ThanQ.
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #6 on: July 20, 2007, 05:04:52 AM »

It means that java is installed on your system and the version is 1.4.2, So you can run your java program there .

Try to make first program of java and name it as test.java
Compile it  same as in Windows using
#javac test.java

After that execute it using
#java test

Thanks
Gaurav
Logged
akashyak
Tux Awared
**
Offline Offline

Posts: 44


View Profile
« Reply #7 on: July 20, 2007, 12:43:49 PM »

Oh thank you so much Gaurav. I was thinking of asking for compilation and execution commands.

By the way, is there a good resource on the Internet that teaches java in linux ?
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #8 on: July 23, 2007, 09:37:32 AM »

Try this

http://www.yolinux.com/TUTORIALS/LinuxTutorialJava.html#TUTORIALS

Thanks
Gaurav
Logged
akashyak
Tux Awared
**
Offline Offline

Posts: 44


View Profile
« Reply #9 on: July 31, 2007, 07:45:13 PM »

And for my last question:

even after I have installed Java SE 6 Update 2 on my linux machine, I get the answer 1.4.2 when I type 'java -version' in my terminal.

And then, I try to compile and run the following program:

(start)
/* This is my first Java applicaiton */
class Application
{
 public static void main(String args[])
 {
  System.out.println("This is my First java applicaiton");
 }
}
(end)

it compiles well without an error or warning. And when I run it, it runs well, but does not produce any output what so ever. Why is this ? Can you tell me ?
Logged
akashyak
Tux Awared
**
Offline Offline

Posts: 44


View Profile
« Reply #10 on: August 29, 2007, 06:59:58 AM »

Oh thanks Gaurav, I had got confused by # in your previous response, and typed it myself in front of javac test.java

So I had to type at the # prompt "javac test.java", and not "#javac test.java" at the hash prompt (with a redundant #)

Thank you.
akash.
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #11 on: September 18, 2007, 06:25:23 AM »

Srry Login after a long time , Its Great to hear that it worked for you

Thanks
Gaurav
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Mozilla and Java. Linux Application indigo 6 3108 Last post January 06, 2004, 06:06:59 PM
by Shadow_Spark
java swing and awt ! Linux Development & Programming creator 5 1660 Last post April 06, 2004, 06:48:31 AM
by dragoncity99
Installing & configuring JAVA / How to / tutorial Linux Tutorials & How To's yobbo 10 6995 Last post August 18, 2004, 03:08:27 PM
by edixon
Compiling C, C++, Java files in REDHAT 9 Linux Development & Programming oms 0 1049 Last post May 24, 2004, 05:09:44 AM
by oms
NewBe Needs Help RH 9 problems with MySql, and JAVA Linux Installation Support cjseyfried 0 985 Last post July 04, 2004, 07:32:08 AM
by cjseyfried
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 11:31:03 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6227
Latest: karunadct
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 7
Total: 7
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc