Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i just now started with linux and have very basic knowledge of vi script, commands and all. may i know , knowing all this can i shift to java programming on linux.
and may i also know any tutorial or book , which i can refer?
Java programming in linux is the same as everywhere else. If you know Jva, you can execute your code anywhere, linux doesn't make it anything different.
Google is always a good reference. Its exactly the same on Windows. You can download and install netbeans if you wish, or use similar editors you would use in Windows. If you want to use commandline its the same as well.
javac test.java
java test
jar also exists the same as it does on Windows. You might need to tell Linux the default program to run the jar file when you double click, because sometimes it tries to run it with a file extracting program instead by default.
so there's no difference in the syntax in java between windows and linux?
Are you asking about the language itself, or the command line program "java"? If the former: no, why would there be? It's a programming language, so why should it depend on the platform you're using? The language just gives the programmer an interface to the computer - the details of the platform and architecture should be hidden from the programmer, since they don't really need to know about those (in some sense) for high level programming. Of course, some details will differ between platforms - like specifying paths to files, for example. However, these aren't part of the languages concerned.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.