ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Hello,
I am trying to learn a few suites of Programming on the Linux side. My question is currentl on the Java Programming Language. I have installed eclipse and it runs nice and smooth.
But when i was doing the tutorial, doing the "Hello World" program. I went to "Run -> Run As ->" but there is no "Java" option
It only shows "eclipse Application". I konw Java is installed:
Code:
$ java -version
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)
Can we take a look at the code? If you don't have a public static void main method you won't be able to run as application. I also am wondering if you have Java SDK, not only the RE.
usually the first time you attempt to run an application you have to right click on the source file in the file navigation panel and goto run, then you should see run as java application..
it does not seem to showup initially on the top menu for some reason..
to see if you have sdk try a `locate javac` and see what it says..
usually the first time you attempt to run an application you have to right click on the source file in the file navigation panel and goto run, then you should see run as java application..
So I did that an I believe it ran. Displayed Hello World in bottom of the screen. Sweet.
>So I did that an I believe it ran. Displayed Hello World in bottom of the screen. Sweet.
cool! its alive! muwhahahaha!
anyhow.. no the results you got back from locate are not saying you have sdk installed..
but apparently it is either on there somewhere else or eclipse is compiling it.. i have not looked behind the scenes in eclipse to see what it will do if there is no sdk, maybe it has its own version.. ??
anyhow since your program executed then there has to be somthing there.. not that you have run it once is is runnable by clicking the run button at the top of the screen? it should be..
yes now it's up top. in the Run Menu. Eclipse is pretty neat. I have used Visual Basic .Net and It is nice to build Windows and applying Widgets.
Does Eclipse offer this feature? From what I see I don't see anything of that nature. I also was looking at Glade, which does that, but I having separate problems with that program :-P
yeh eclipse is nice.. i use it pretty much all day every day and have few complaints.. there are a couple of weird things it will do sometimes.. but still its the best java ide i have used..
and there is a plugin for eclipse call VE or 'visual editor'.. you can find it on the eclipse website.. it will assist in building uis..
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by JerryMcFarts
yes now it's up top. in the Run Menu. Eclipse is pretty neat. I have used Visual Basic .Net and It is nice to build Windows and applying Widgets.
Does Eclipse offer this feature? From what I see I don't see anything of that nature. I also was looking at Glade, which does that, but I having separate problems with that program :-P
I believe NetBeans has Matisse for such a feature.
anyhow.. no the results you got back from locate are not saying you have sdk installed..
but apparently it is either on there somewhere else or eclipse is compiling it.. i have not looked behind the scenes in eclipse to see what it will do if there is no sdk, maybe it has its own version.. ??
Eclipse compiles using the Eclipse Compiler for Java (ecj) so all it needs is a JVM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.